2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for gmime 2.6.15.
5 # Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=gmime>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 test -z "$as_dir" && as_dir=.
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
234 *v*x* | *x*v* ) as_opts=-vx ;;
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: http://bugzilla.gnome.org/enter_bug.cgi?product=gmime
251 $0: about your system, including any error possibly output
252 $0: before this message. Then install a modern shell, or
253 $0: manually run the script under such a shell if you do
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Unset more variables known to interfere with behavior of common tools.
263 CLICOLOR_FORCE= GREP_OPTIONS=
264 unset CLICOLOR_FORCE GREP_OPTIONS
266 ## --------------------- ##
267 ## M4sh Shell Functions. ##
268 ## --------------------- ##
271 # Portably unset VAR.
274 { eval $1=; unset $1;}
278 # as_fn_set_status STATUS
279 # -----------------------
280 # Set $? to STATUS, without forking.
288 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
298 # Create "$as_dir" as a directory, including parents if necessary.
303 -*) as_dir=./$as_dir;;
305 test -d "$as_dir" || eval $as_mkdir_p || {
309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
312 as_dirs="'$as_qdir' $as_dirs"
313 as_dir=`$as_dirname -- "$as_dir" ||
314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315 X"$as_dir" : 'X\(//\)[^/]' \| \
316 X"$as_dir" : 'X\(//\)$' \| \
317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318 $as_echo X"$as_dir" |
319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 test -d "$as_dir" && break
338 test -z "$as_dirs" || eval "mkdir $as_dirs"
339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
343 # as_fn_append VAR VALUE
344 # ----------------------
345 # Append the text in VALUE to the end of the definition contained in VAR. Take
346 # advantage of any shell optimizations that allow amortized linear growth over
347 # repeated appends, instead of the typical quadratic growth present in naive
349 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350 eval 'as_fn_append ()
363 # Perform arithmetic evaluation on the ARGs, and store the result in the
364 # global $as_val. Take advantage of shells that can avoid forks. The arguments
365 # must be portable across $(()) and expr.
366 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
374 as_val=`expr "$@" || test $? -eq 1`
379 # as_fn_error STATUS ERROR [LINENO LOG_FD]
380 # ----------------------------------------
381 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383 # script with STATUS, using 1 if that was 0.
386 as_status=$1; test $as_status -eq 0 && as_status=1
388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
391 $as_echo "$as_me: error: $2" >&2
392 as_fn_exit $as_status
395 if expr a : '\(a\)' >/dev/null 2>&1 &&
396 test "X`expr 00001 : '.*\(...\)'`" = X001; then
402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
408 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
414 as_me=`$as_basename -- "$0" ||
415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416 X"$0" : 'X\(//\)$' \| \
417 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
419 sed '/^.*\/\([^/][^/]*\)\/*$/{
433 # Avoid depending upon Character Ranges.
434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437 as_cr_digits='0123456789'
438 as_cr_alnum=$as_cr_Letters$as_cr_digits
441 as_lineno_1=$LINENO as_lineno_1a=$LINENO
442 as_lineno_2=$LINENO as_lineno_2a=$LINENO
443 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
461 chmod +x "$as_me.lineno" ||
462 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
464 # Don't try to exec as it changes $[0], causing all sort of problems
465 # (the dirname of $[0] is not the place where we might find the
466 # original and so on. Autoconf is especially sensitive to this).
468 # Exit status is that of the last command.
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in #(((((
475 case `echo 'xy\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487 rm -f conf$$.dir/conf$$.file
490 mkdir conf$$.dir 2>/dev/null
492 if (echo >conf$$.file) 2>/dev/null; then
493 if ln -s conf$$.file conf$$ 2>/dev/null; then
495 # ... but there are two gotchas:
496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498 # In both cases, we have to default to `cp -p'.
499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
513 as_mkdir_p='mkdir -p "$as_dir"'
515 test -d ./-p && rmdir ./-p
519 if test -x / >/dev/null 2>&1; then
522 if ls -dL / >/dev/null 2>&1; then
529 if test -d "$1"; then
535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536 ???[sx]*):;;*)false;;esac;fi
540 as_executable_p=$as_test_x
542 # Sed expression to map a string onto a valid CPP name.
543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
545 # Sed expression to map a string onto a valid variable name.
546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
548 SHELL=${CONFIG_SHELL-/bin/sh}
551 test -n "$DJDIR" || exec 7<&0 </dev/null
555 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix=/usr/local
564 ac_config_libobj_dir=.
571 # Identity of this package.
573 PACKAGE_TARNAME='gmime'
574 PACKAGE_VERSION='2.6.15'
575 PACKAGE_STRING='gmime 2.6.15'
576 PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=gmime'
579 ac_unique_file="README"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
593 # ifdef HAVE_STDLIB_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
617 ac_subst_vars='am__EXEEXT_FALSE
642 ENABLE_LARGEFILE_FALSE
643 ENABLE_LARGEFILE_TRUE
648 GLIB_COMPILE_RESOURCES
654 ENABLE_CRYPTOGRAPHY_FALSE
655 ENABLE_CRYPTOGRAPHY_TRUE
659 GTK_DOC_USE_REBASE_FALSE
660 GTK_DOC_USE_REBASE_TRUE
661 GTK_DOC_USE_LIBTOOL_FALSE
662 GTK_DOC_USE_LIBTOOL_TRUE
663 GTK_DOC_BUILD_PDF_FALSE
664 GTK_DOC_BUILD_PDF_TRUE
665 GTK_DOC_BUILD_HTML_FALSE
666 GTK_DOC_BUILD_HTML_TRUE
721 MS_LIB_AVAILABLE_FALSE
722 MS_LIB_AVAILABLE_TRUE
747 MAINTAINER_MODE_FALSE
758 INSTALL_STRIP_PROGRAM
812 program_transform_name
825 enable_option_checking
826 enable_maintainer_mode
827 enable_dependency_tracking
852 ac_precious_vars='build_alias
872 # Initialize some variables set by options.
874 ac_init_version=false
875 ac_unrecognized_opts=
877 # The variables have the same names as the options, with
878 # dashes changed to underlines.
886 program_transform_name=s,x,x,
894 # Installation directory options.
895 # These are left unexpanded so users can "make install exec_prefix=/foo"
896 # and all the variables that are supposed to be based on exec_prefix
897 # by default will actually change.
898 # Use braces instead of parens because sh, perl, etc. also accept them.
899 # (The list follows the same order as the GNU Coding Standards.)
900 bindir='${exec_prefix}/bin'
901 sbindir='${exec_prefix}/sbin'
902 libexecdir='${exec_prefix}/libexec'
903 datarootdir='${prefix}/share'
904 datadir='${datarootdir}'
905 sysconfdir='${prefix}/etc'
906 sharedstatedir='${prefix}/com'
907 localstatedir='${prefix}/var'
908 includedir='${prefix}/include'
909 oldincludedir='/usr/include'
910 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
911 infodir='${datarootdir}/info'
916 libdir='${exec_prefix}/lib'
917 localedir='${datarootdir}/locale'
918 mandir='${datarootdir}/man'
924 # If the previous option needs an argument, assign it.
925 if test -n "$ac_prev"; then
926 eval $ac_prev=\$ac_option
932 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
937 # Accept the important Cygnus configure options, so we can diagnose typos.
939 case $ac_dashdash$ac_option in
943 -bindir | --bindir | --bindi | --bind | --bin | --bi)
945 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
948 -build | --build | --buil | --bui | --bu)
949 ac_prev=build_alias ;;
950 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
951 build_alias=$ac_optarg ;;
953 -cache-file | --cache-file | --cache-fil | --cache-fi \
954 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
955 ac_prev=cache_file ;;
956 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
957 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
958 cache_file=$ac_optarg ;;
961 cache_file=config.cache ;;
963 -datadir | --datadir | --datadi | --datad)
965 -datadir=* | --datadir=* | --datadi=* | --datad=*)
966 datadir=$ac_optarg ;;
968 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
969 | --dataroo | --dataro | --datar)
970 ac_prev=datarootdir ;;
971 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
972 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
973 datarootdir=$ac_optarg ;;
975 -disable-* | --disable-*)
976 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
977 # Reject names that are not valid shell variable names.
978 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
979 as_fn_error $? "invalid feature name: $ac_useropt"
980 ac_useropt_orig=$ac_useropt
981 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
982 case $ac_user_opts in
986 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
987 ac_unrecognized_sep=', ';;
989 eval enable_$ac_useropt=no ;;
991 -docdir | --docdir | --docdi | --doc | --do)
993 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
996 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
998 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1001 -enable-* | --enable-*)
1002 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1003 # Reject names that are not valid shell variable names.
1004 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1005 as_fn_error $? "invalid feature name: $ac_useropt"
1006 ac_useropt_orig=$ac_useropt
1007 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1008 case $ac_user_opts in
1010 "enable_$ac_useropt"
1012 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1013 ac_unrecognized_sep=', ';;
1015 eval enable_$ac_useropt=\$ac_optarg ;;
1017 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1018 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1019 | --exec | --exe | --ex)
1020 ac_prev=exec_prefix ;;
1021 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1022 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1023 | --exec=* | --exe=* | --ex=*)
1024 exec_prefix=$ac_optarg ;;
1026 -gas | --gas | --ga | --g)
1027 # Obsolete; use --with-gas.
1030 -help | --help | --hel | --he | -h)
1031 ac_init_help=long ;;
1032 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1033 ac_init_help=recursive ;;
1034 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1035 ac_init_help=short ;;
1037 -host | --host | --hos | --ho)
1038 ac_prev=host_alias ;;
1039 -host=* | --host=* | --hos=* | --ho=*)
1040 host_alias=$ac_optarg ;;
1042 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1044 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1046 htmldir=$ac_optarg ;;
1048 -includedir | --includedir | --includedi | --included | --include \
1049 | --includ | --inclu | --incl | --inc)
1050 ac_prev=includedir ;;
1051 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1052 | --includ=* | --inclu=* | --incl=* | --inc=*)
1053 includedir=$ac_optarg ;;
1055 -infodir | --infodir | --infodi | --infod | --info | --inf)
1057 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1058 infodir=$ac_optarg ;;
1060 -libdir | --libdir | --libdi | --libd)
1062 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1063 libdir=$ac_optarg ;;
1065 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1066 | --libexe | --libex | --libe)
1067 ac_prev=libexecdir ;;
1068 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1069 | --libexe=* | --libex=* | --libe=*)
1070 libexecdir=$ac_optarg ;;
1072 -localedir | --localedir | --localedi | --localed | --locale)
1073 ac_prev=localedir ;;
1074 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1075 localedir=$ac_optarg ;;
1077 -localstatedir | --localstatedir | --localstatedi | --localstated \
1078 | --localstate | --localstat | --localsta | --localst | --locals)
1079 ac_prev=localstatedir ;;
1080 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1081 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1082 localstatedir=$ac_optarg ;;
1084 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1086 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1087 mandir=$ac_optarg ;;
1089 -nfp | --nfp | --nf)
1090 # Obsolete; use --without-fp.
1093 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1094 | --no-cr | --no-c | -n)
1097 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1098 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1101 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1102 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1103 | --oldin | --oldi | --old | --ol | --o)
1104 ac_prev=oldincludedir ;;
1105 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1106 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1107 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1108 oldincludedir=$ac_optarg ;;
1110 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1112 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1113 prefix=$ac_optarg ;;
1115 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1116 | --program-pre | --program-pr | --program-p)
1117 ac_prev=program_prefix ;;
1118 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1119 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1120 program_prefix=$ac_optarg ;;
1122 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1123 | --program-suf | --program-su | --program-s)
1124 ac_prev=program_suffix ;;
1125 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1126 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1127 program_suffix=$ac_optarg ;;
1129 -program-transform-name | --program-transform-name \
1130 | --program-transform-nam | --program-transform-na \
1131 | --program-transform-n | --program-transform- \
1132 | --program-transform | --program-transfor \
1133 | --program-transfo | --program-transf \
1134 | --program-trans | --program-tran \
1135 | --progr-tra | --program-tr | --program-t)
1136 ac_prev=program_transform_name ;;
1137 -program-transform-name=* | --program-transform-name=* \
1138 | --program-transform-nam=* | --program-transform-na=* \
1139 | --program-transform-n=* | --program-transform-=* \
1140 | --program-transform=* | --program-transfor=* \
1141 | --program-transfo=* | --program-transf=* \
1142 | --program-trans=* | --program-tran=* \
1143 | --progr-tra=* | --program-tr=* | --program-t=*)
1144 program_transform_name=$ac_optarg ;;
1146 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1148 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1149 pdfdir=$ac_optarg ;;
1151 -psdir | --psdir | --psdi | --psd | --ps)
1153 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1156 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1157 | -silent | --silent | --silen | --sile | --sil)
1160 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1162 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1164 sbindir=$ac_optarg ;;
1166 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1167 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1168 | --sharedst | --shareds | --shared | --share | --shar \
1170 ac_prev=sharedstatedir ;;
1171 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1172 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1173 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1175 sharedstatedir=$ac_optarg ;;
1177 -site | --site | --sit)
1179 -site=* | --site=* | --sit=*)
1182 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1184 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1185 srcdir=$ac_optarg ;;
1187 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1188 | --syscon | --sysco | --sysc | --sys | --sy)
1189 ac_prev=sysconfdir ;;
1190 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1191 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1192 sysconfdir=$ac_optarg ;;
1194 -target | --target | --targe | --targ | --tar | --ta | --t)
1195 ac_prev=target_alias ;;
1196 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1197 target_alias=$ac_optarg ;;
1199 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1202 -version | --version | --versio | --versi | --vers | -V)
1203 ac_init_version=: ;;
1206 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1207 # Reject names that are not valid shell variable names.
1208 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1209 as_fn_error $? "invalid package name: $ac_useropt"
1210 ac_useropt_orig=$ac_useropt
1211 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1212 case $ac_user_opts in
1216 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1217 ac_unrecognized_sep=', ';;
1219 eval with_$ac_useropt=\$ac_optarg ;;
1221 -without-* | --without-*)
1222 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1223 # Reject names that are not valid shell variable names.
1224 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1225 as_fn_error $? "invalid package name: $ac_useropt"
1226 ac_useropt_orig=$ac_useropt
1227 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1228 case $ac_user_opts in
1232 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1233 ac_unrecognized_sep=', ';;
1235 eval with_$ac_useropt=no ;;
1238 # Obsolete; use --with-x.
1241 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1242 | --x-incl | --x-inc | --x-in | --x-i)
1243 ac_prev=x_includes ;;
1244 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1245 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1246 x_includes=$ac_optarg ;;
1248 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1249 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1250 ac_prev=x_libraries ;;
1251 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1252 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1253 x_libraries=$ac_optarg ;;
1255 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1256 Try \`$0 --help' for more information"
1260 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1261 # Reject names that are not valid shell variable names.
1262 case $ac_envvar in #(
1263 '' | [0-9]* | *[!_$as_cr_alnum]* )
1264 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1266 eval $ac_envvar=\$ac_optarg
1267 export $ac_envvar ;;
1270 # FIXME: should be removed in autoconf 3.0.
1271 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1272 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1273 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1274 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1280 if test -n "$ac_prev"; then
1281 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1282 as_fn_error $? "missing argument to $ac_option"
1285 if test -n "$ac_unrecognized_opts"; then
1286 case $enable_option_checking in
1288 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1289 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1293 # Check all directory arguments for consistency.
1294 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1295 datadir sysconfdir sharedstatedir localstatedir includedir \
1296 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1297 libdir localedir mandir
1299 eval ac_val=\$$ac_var
1300 # Remove trailing slashes.
1303 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1304 eval $ac_var=\$ac_val;;
1306 # Be sure to have absolute directory names.
1308 [\\/$]* | ?:[\\/]* ) continue;;
1309 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1311 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1314 # There might be people who depend on the old broken behavior: `$host'
1315 # used to hold the argument of --host etc.
1316 # FIXME: To remove some day.
1319 target=$target_alias
1321 # FIXME: To remove some day.
1322 if test "x$host_alias" != x; then
1323 if test "x$build_alias" = x; then
1324 cross_compiling=maybe
1325 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1326 If a cross compiler is detected then cross compile mode will be used" >&2
1327 elif test "x$build_alias" != "x$host_alias"; then
1333 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1335 test "$silent" = yes && exec 6>/dev/null
1338 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1339 ac_ls_di=`ls -di .` &&
1340 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1341 as_fn_error $? "working directory cannot be determined"
1342 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1343 as_fn_error $? "pwd does not report name of working directory"
1346 # Find the source files, if location was not specified.
1347 if test -z "$srcdir"; then
1348 ac_srcdir_defaulted=yes
1349 # Try the directory containing this script, then the parent directory.
1350 ac_confdir=`$as_dirname -- "$as_myself" ||
1351 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1352 X"$as_myself" : 'X\(//\)[^/]' \| \
1353 X"$as_myself" : 'X\(//\)$' \| \
1354 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1355 $as_echo X"$as_myself" |
1356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1374 if test ! -r "$srcdir/$ac_unique_file"; then
1378 ac_srcdir_defaulted=no
1380 if test ! -r "$srcdir/$ac_unique_file"; then
1381 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1382 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1384 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1386 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1388 # When building in place, set srcdir=.
1389 if test "$ac_abs_confdir" = "$ac_pwd"; then
1392 # Remove unnecessary trailing slashes from srcdir.
1393 # Double slashes in file names in object file debugging info
1394 # mess up M-x gdb in Emacs.
1396 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1398 for ac_var in $ac_precious_vars; do
1399 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1400 eval ac_env_${ac_var}_value=\$${ac_var}
1401 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1402 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1406 # Report the --help message.
1408 if test "$ac_init_help" = "long"; then
1409 # Omit some internal or obsolete options to make the list less imposing.
1410 # This message is too long to be a string in the A/UX 3.1 sh.
1412 \`configure' configures gmime 2.6.15 to adapt to many kinds of systems.
1414 Usage: $0 [OPTION]... [VAR=VALUE]...
1416 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1417 VAR=VALUE. See below for descriptions of some of the useful variables.
1419 Defaults for the options are specified in brackets.
1422 -h, --help display this help and exit
1423 --help=short display options specific to this package
1424 --help=recursive display the short help of all the included packages
1425 -V, --version display version information and exit
1426 -q, --quiet, --silent do not print \`checking ...' messages
1427 --cache-file=FILE cache test results in FILE [disabled]
1428 -C, --config-cache alias for \`--cache-file=config.cache'
1429 -n, --no-create do not create output files
1430 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1432 Installation directories:
1433 --prefix=PREFIX install architecture-independent files in PREFIX
1434 [$ac_default_prefix]
1435 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1438 By default, \`make install' will install all the files in
1439 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1440 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1441 for instance \`--prefix=\$HOME'.
1443 For better control, use the options below.
1445 Fine tuning of the installation directories:
1446 --bindir=DIR user executables [EPREFIX/bin]
1447 --sbindir=DIR system admin executables [EPREFIX/sbin]
1448 --libexecdir=DIR program executables [EPREFIX/libexec]
1449 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1450 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1451 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1452 --libdir=DIR object code libraries [EPREFIX/lib]
1453 --includedir=DIR C header files [PREFIX/include]
1454 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1455 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1456 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1457 --infodir=DIR info documentation [DATAROOTDIR/info]
1458 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1459 --mandir=DIR man documentation [DATAROOTDIR/man]
1460 --docdir=DIR documentation root [DATAROOTDIR/doc/gmime]
1461 --htmldir=DIR html documentation [DOCDIR]
1462 --dvidir=DIR dvi documentation [DOCDIR]
1463 --pdfdir=DIR pdf documentation [DOCDIR]
1464 --psdir=DIR ps documentation [DOCDIR]
1470 --program-prefix=PREFIX prepend PREFIX to installed program names
1471 --program-suffix=SUFFIX append SUFFIX to installed program names
1472 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1475 --build=BUILD configure for building on BUILD [guessed]
1476 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1477 --target=TARGET configure for building compilers for TARGET [HOST]
1481 if test -n "$ac_init_help"; then
1482 case $ac_init_help in
1483 short | recursive ) echo "Configuration of gmime 2.6.15:";;
1488 --disable-option-checking ignore unrecognized --enable/--with options
1489 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1490 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1491 --enable-maintainer-mode enable make rules and dependencies not useful
1492 (and sometimes confusing) to the casual installer
1493 --disable-dependency-tracking speeds up one-time build
1494 --enable-dependency-tracking do not reject slow dependency extractors
1495 --enable-shared[=PKGS] build shared libraries [default=yes]
1496 --enable-static[=PKGS] build static libraries [default=yes]
1497 --enable-fast-install[=PKGS]
1498 optimize for fast installation [default=yes]
1499 --disable-libtool-lock avoid locking (might break parallel builds)
1500 --enable-gtk-doc use gtk-doc to build documentation [[default=no]]
1501 --enable-gtk-doc-html build documentation in html format [[default=yes]]
1502 --enable-gtk-doc-pdf build documentation in pdf format [[default=no]]
1503 --enable-profiling enable profiling compile flags [[default=no]]
1504 --enable-warnings enable g_warning output when invalid MIME is
1505 encountered [[default=no]]
1506 --enable-strict-parser enable stricter MIME parser rules [[default=no]]
1507 --enable-cryptography enable cryptography support [[default=yes]]
1508 --disable-glibtest do not try to compile and run a test GLIB program
1509 --disable-rpath do not hardcode runtime library paths
1510 --enable-largefile enable support for large files [[default=yes]]
1511 --disable-largefile omit support for large files
1512 --enable-smime enable S/MIME support [[default=no]]
1513 --enable-mono enable Mono bindings [[default=auto]]
1516 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1517 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1518 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1520 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1521 --with-sysroot=DIR Search for dependent libraries within DIR
1522 (or the compiler's sysroot if not specified).
1523 --with-html-dir=PATH path to installed docs
1524 --with-gnu-ld assume the C compiler uses GNU ld default=no
1525 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1526 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1527 --with-gpgme-prefix=PFX prefix where GPGME is installed (optional)
1528 --with-gacdir Specify the Global Assembly Cache root directory
1530 Some influential environment variables:
1531 CC C compiler command
1532 CFLAGS C compiler flags
1533 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1534 nonstandard directory <lib dir>
1535 LIBS libraries to pass to the linker, e.g. -l<library>
1536 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1537 you have headers in a nonstandard directory <include dir>
1539 PKG_CONFIG path to pkg-config utility
1541 directories to add to pkg-config's search path
1543 path overriding pkg-config's built-in search path
1545 C compiler flags for GTKDOC_DEPS, overriding pkg-config
1547 linker flags for GTKDOC_DEPS, overriding pkg-config
1549 C compiler flags for GLIB_SHARP, overriding pkg-config
1551 linker flags for GLIB_SHARP, overriding pkg-config
1553 C compiler flags for GAPI_TOOLS, overriding pkg-config
1555 linker flags for GAPI_TOOLS, overriding pkg-config
1557 Use these variables to override the choices made by `configure' or to help
1558 it to find libraries and programs with nonstandard names/locations.
1560 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=gmime>.
1565 if test "$ac_init_help" = "recursive"; then
1566 # If there are subdirs, report their specific --help.
1567 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1568 test -d "$ac_dir" ||
1569 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1574 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1576 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1577 # A ".." for each directory in $ac_dir_suffix.
1578 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1579 case $ac_top_builddir_sub in
1580 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1581 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1584 ac_abs_top_builddir=$ac_pwd
1585 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1586 # for backward compatibility:
1587 ac_top_builddir=$ac_top_build_prefix
1590 .) # We are building in place.
1592 ac_top_srcdir=$ac_top_builddir_sub
1593 ac_abs_top_srcdir=$ac_pwd ;;
1594 [\\/]* | ?:[\\/]* ) # Absolute name.
1595 ac_srcdir=$srcdir$ac_dir_suffix;
1596 ac_top_srcdir=$srcdir
1597 ac_abs_top_srcdir=$srcdir ;;
1599 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1600 ac_top_srcdir=$ac_top_build_prefix$srcdir
1601 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1603 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1605 cd "$ac_dir" || { ac_status=$?; continue; }
1606 # Check for guested configure.
1607 if test -f "$ac_srcdir/configure.gnu"; then
1609 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1610 elif test -f "$ac_srcdir/configure"; then
1612 $SHELL "$ac_srcdir/configure" --help=recursive
1614 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1616 cd "$ac_pwd" || { ac_status=$?; break; }
1620 test -n "$ac_init_help" && exit $ac_status
1621 if $ac_init_version; then
1623 gmime configure 2.6.15
1624 generated by GNU Autoconf 2.68
1626 Copyright (C) 2010 Free Software Foundation, Inc.
1627 This configure script is free software; the Free Software Foundation
1628 gives unlimited permission to copy, distribute and modify it.
1633 ## ------------------------ ##
1634 ## Autoconf initialization. ##
1635 ## ------------------------ ##
1637 # ac_fn_c_try_compile LINENO
1638 # --------------------------
1639 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1640 ac_fn_c_try_compile ()
1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643 rm -f conftest.$ac_objext
1644 if { { ac_try="$ac_compile"
1646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1647 *) ac_try_echo=$ac_try;;
1649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1650 $as_echo "$ac_try_echo"; } >&5
1651 (eval "$ac_compile") 2>conftest.err
1653 if test -s conftest.err; then
1654 grep -v '^ *+' conftest.err >conftest.er1
1655 cat conftest.er1 >&5
1656 mv -f conftest.er1 conftest.err
1658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659 test $ac_status = 0; } && {
1660 test -z "$ac_c_werror_flag" ||
1661 test ! -s conftest.err
1662 } && test -s conftest.$ac_objext; then :
1665 $as_echo "$as_me: failed program was:" >&5
1666 sed 's/^/| /' conftest.$ac_ext >&5
1670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1671 as_fn_set_status $ac_retval
1673 } # ac_fn_c_try_compile
1675 # ac_fn_c_try_link LINENO
1676 # -----------------------
1677 # Try to link conftest.$ac_ext, and return whether this succeeded.
1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681 rm -f conftest.$ac_objext conftest$ac_exeext
1682 if { { ac_try="$ac_link"
1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685 *) ac_try_echo=$ac_try;;
1687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688 $as_echo "$ac_try_echo"; } >&5
1689 (eval "$ac_link") 2>conftest.err
1691 if test -s conftest.err; then
1692 grep -v '^ *+' conftest.err >conftest.er1
1693 cat conftest.er1 >&5
1694 mv -f conftest.er1 conftest.err
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; } && {
1698 test -z "$ac_c_werror_flag" ||
1699 test ! -s conftest.err
1700 } && test -s conftest$ac_exeext && {
1701 test "$cross_compiling" = yes ||
1702 $as_test_x conftest$ac_exeext
1706 $as_echo "$as_me: failed program was:" >&5
1707 sed 's/^/| /' conftest.$ac_ext >&5
1711 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1712 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1713 # interfere with the next link command; also delete a directory that is
1714 # left behind by Apple's compiler. We do this before executing the actions.
1715 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1717 as_fn_set_status $ac_retval
1719 } # ac_fn_c_try_link
1721 # ac_fn_c_try_cpp LINENO
1722 # ----------------------
1723 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727 if { { ac_try="$ac_cpp conftest.$ac_ext"
1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730 *) ac_try_echo=$ac_try;;
1732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1736 if test -s conftest.err; then
1737 grep -v '^ *+' conftest.err >conftest.er1
1738 cat conftest.er1 >&5
1739 mv -f conftest.er1 conftest.err
1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; } > conftest.i && {
1743 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1744 test ! -s conftest.err
1748 $as_echo "$as_me: failed program was:" >&5
1749 sed 's/^/| /' conftest.$ac_ext >&5
1753 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754 as_fn_set_status $ac_retval
1758 # ac_fn_c_try_run LINENO
1759 # ----------------------
1760 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1761 # that executables *can* be run.
1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765 if { { ac_try="$ac_link"
1767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1768 *) ac_try_echo=$ac_try;;
1770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771 $as_echo "$ac_try_echo"; } >&5
1772 (eval "$ac_link") 2>&5
1774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1776 { { case "(($ac_try" in
1777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778 *) ac_try_echo=$ac_try;;
1780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781 $as_echo "$ac_try_echo"; } >&5
1782 (eval "$ac_try") 2>&5
1784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785 test $ac_status = 0; }; }; then :
1788 $as_echo "$as_me: program exited with status $ac_status" >&5
1789 $as_echo "$as_me: failed program was:" >&5
1790 sed 's/^/| /' conftest.$ac_ext >&5
1792 ac_retval=$ac_status
1794 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796 as_fn_set_status $ac_retval
1800 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1801 # -------------------------------------------------------
1802 # Tests whether HEADER exists and can be compiled using the include files in
1803 # INCLUDES, setting the cache variable VAR accordingly.
1804 ac_fn_c_check_header_compile ()
1806 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1808 $as_echo_n "checking for $2... " >&6; }
1809 if eval \${$3+:} false; then :
1810 $as_echo_n "(cached) " >&6
1812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813 /* end confdefs.h. */
1817 if ac_fn_c_try_compile "$LINENO"; then :
1822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826 $as_echo "$ac_res" >&6; }
1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829 } # ac_fn_c_check_header_compile
1831 # ac_fn_c_check_func LINENO FUNC VAR
1832 # ----------------------------------
1833 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1834 ac_fn_c_check_func ()
1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1838 $as_echo_n "checking for $2... " >&6; }
1839 if eval \${$3+:} false; then :
1840 $as_echo_n "(cached) " >&6
1842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843 /* end confdefs.h. */
1844 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1846 #define $2 innocuous_$2
1848 /* System header to define __stub macros and hopefully few prototypes,
1849 which can conflict with char $2 (); below.
1850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1851 <limits.h> exists even on freestanding compilers. */
1854 # include <limits.h>
1856 # include <assert.h>
1861 /* Override any GCC internal prototype to avoid an error.
1862 Use char because int might match the return type of a GCC
1863 builtin and then its argument prototype would still apply. */
1868 /* The GNU C library defines this for functions which it implements
1869 to always fail with ENOSYS. Some functions are actually named
1870 something starting with __ and the normal name is an alias. */
1871 #if defined __stub_$2 || defined __stub___$2
1883 if ac_fn_c_try_link "$LINENO"; then :
1888 rm -f core conftest.err conftest.$ac_objext \
1889 conftest$ac_exeext conftest.$ac_ext
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1893 $as_echo "$ac_res" >&6; }
1894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1896 } # ac_fn_c_check_func
1898 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1899 # -------------------------------------------------------
1900 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1901 # the include files in INCLUDES and setting the cache variable VAR
1903 ac_fn_c_check_header_mongrel ()
1905 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906 if eval \${$3+:} false; then :
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1908 $as_echo_n "checking for $2... " >&6; }
1909 if eval \${$3+:} false; then :
1910 $as_echo_n "(cached) " >&6
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1914 $as_echo "$ac_res" >&6; }
1916 # Is the header compilable?
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1918 $as_echo_n "checking $2 usability... " >&6; }
1919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1920 /* end confdefs.h. */
1924 if ac_fn_c_try_compile "$LINENO"; then :
1925 ac_header_compiler=yes
1927 ac_header_compiler=no
1929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1931 $as_echo "$ac_header_compiler" >&6; }
1933 # Is the header present?
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1935 $as_echo_n "checking $2 presence... " >&6; }
1936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937 /* end confdefs.h. */
1940 if ac_fn_c_try_cpp "$LINENO"; then :
1941 ac_header_preproc=yes
1943 ac_header_preproc=no
1945 rm -f conftest.err conftest.i conftest.$ac_ext
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1947 $as_echo "$ac_header_preproc" >&6; }
1949 # So? What about this header?
1950 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1953 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1955 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1959 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1961 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1963 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1965 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1967 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1968 ( $as_echo "## -------------------------------------------------------------------- ##
1969 ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=gmime ##
1970 ## -------------------------------------------------------------------- ##"
1971 ) | sed "s/^/$as_me: WARNING: /" >&2
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1975 $as_echo_n "checking for $2... " >&6; }
1976 if eval \${$3+:} false; then :
1977 $as_echo_n "(cached) " >&6
1979 eval "$3=\$ac_header_compiler"
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983 $as_echo "$ac_res" >&6; }
1985 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1987 } # ac_fn_c_check_header_mongrel
1989 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1990 # -------------------------------------------
1991 # Tests whether TYPE exists after having included INCLUDES, setting cache
1992 # variable VAR accordingly.
1993 ac_fn_c_check_type ()
1995 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1997 $as_echo_n "checking for $2... " >&6; }
1998 if eval \${$3+:} false; then :
1999 $as_echo_n "(cached) " >&6
2002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003 /* end confdefs.h. */
2014 if ac_fn_c_try_compile "$LINENO"; then :
2015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016 /* end confdefs.h. */
2027 if ac_fn_c_try_compile "$LINENO"; then :
2032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2038 $as_echo "$ac_res" >&6; }
2039 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2041 } # ac_fn_c_check_type
2043 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2044 # --------------------------------------------
2045 # Tries to find the compile-time value of EXPR in a program that includes
2046 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2048 ac_fn_c_compute_int ()
2050 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2051 if test "$cross_compiling" = yes; then
2052 # Depending upon the size, compute the lo and hi bounds.
2053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h. */
2059 static int test_array [1 - 2 * !(($2) >= 0)];
2066 if ac_fn_c_try_compile "$LINENO"; then :
2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h. */
2075 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2082 if ac_fn_c_try_compile "$LINENO"; then :
2083 ac_hi=$ac_mid; break
2085 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2086 if test $ac_lo -le $ac_mid; then
2090 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2096 /* end confdefs.h. */
2101 static int test_array [1 - 2 * !(($2) < 0)];
2108 if ac_fn_c_try_compile "$LINENO"; then :
2111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2112 /* end confdefs.h. */
2117 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2124 if ac_fn_c_try_compile "$LINENO"; then :
2125 ac_lo=$ac_mid; break
2127 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2128 if test $ac_mid -le $ac_hi; then
2132 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2142 # Binary search between lo and hi bounds.
2143 while test "x$ac_lo" != "x$ac_hi"; do
2144 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2146 /* end confdefs.h. */
2151 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2158 if ac_fn_c_try_compile "$LINENO"; then :
2161 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2166 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2171 /* end confdefs.h. */
2173 static long int longval () { return $2; }
2174 static unsigned long int ulongval () { return $2; }
2181 FILE *f = fopen ("conftest.val", "w");
2186 long int i = longval ();
2189 fprintf (f, "%ld", i);
2193 unsigned long int i = ulongval ();
2196 fprintf (f, "%lu", i);
2198 /* Do not output a trailing newline, as this causes \r\n confusion
2199 on some platforms. */
2200 return ferror (f) || fclose (f) != 0;
2206 if ac_fn_c_try_run "$LINENO"; then :
2207 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2211 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2212 conftest.$ac_objext conftest.beam conftest.$ac_ext
2216 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2217 as_fn_set_status $ac_retval
2219 } # ac_fn_c_compute_int
2220 cat >config.log <<_ACEOF
2221 This file contains any messages produced by compilers while
2222 running configure, to aid debugging if configure makes a mistake.
2224 It was created by gmime $as_me 2.6.15, which was
2225 generated by GNU Autoconf 2.68. Invocation command line was
2237 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2238 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2239 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2240 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2241 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2243 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2244 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2246 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2247 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2248 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2249 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2250 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2251 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2252 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260 test -z "$as_dir" && as_dir=.
2261 $as_echo "PATH: $as_dir"
2277 # Keep a trace of the command line.
2278 # Strip out --no-create and --no-recursion so they do not pile up.
2279 # Strip out --silent because we don't want to record it for future runs.
2280 # Also quote any args containing shell meta-characters.
2281 # Make two passes to allow for proper duplicate-argument suppression.
2285 ac_must_keep_next=false
2291 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2292 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2293 | -silent | --silent | --silen | --sile | --sil)
2296 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2299 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2301 as_fn_append ac_configure_args1 " '$ac_arg'"
2302 if test $ac_must_keep_next = true; then
2303 ac_must_keep_next=false # Got value, back to normal.
2306 *=* | --config-cache | -C | -disable-* | --disable-* \
2307 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2308 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2309 | -with-* | --with-* | -without-* | --without-* | --x)
2310 case "$ac_configure_args0 " in
2311 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2314 -* ) ac_must_keep_next=true ;;
2317 as_fn_append ac_configure_args " '$ac_arg'"
2322 { ac_configure_args0=; unset ac_configure_args0;}
2323 { ac_configure_args1=; unset ac_configure_args1;}
2325 # When interrupted or exit'd, cleanup temporary files, and complete
2326 # config.log. We remove comments because anyway the quotes in there
2327 # would cause problems or look ugly.
2328 # WARNING: Use '\'' to represent an apostrophe within the trap.
2329 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2330 trap 'exit_status=$?
2331 # Save into config.log some information that might help in debugging.
2335 $as_echo "## ---------------- ##
2336 ## Cache variables. ##
2337 ## ---------------- ##"
2339 # The following way of writing the cache mishandles newlines in values,
2341 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2342 eval ac_val=\$$ac_var
2346 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2347 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2350 _ | IFS | as_nl) ;; #(
2351 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2352 *) { eval $ac_var=; unset $ac_var;} ;;
2357 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2358 *${as_nl}ac_space=\ *)
2360 "s/'\''/'\''\\\\'\'''\''/g;
2361 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2364 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2371 $as_echo "## ----------------- ##
2372 ## Output variables. ##
2373 ## ----------------- ##"
2375 for ac_var in $ac_subst_vars
2377 eval ac_val=\$$ac_var
2379 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2381 $as_echo "$ac_var='\''$ac_val'\''"
2385 if test -n "$ac_subst_files"; then
2386 $as_echo "## ------------------- ##
2387 ## File substitutions. ##
2388 ## ------------------- ##"
2390 for ac_var in $ac_subst_files
2392 eval ac_val=\$$ac_var
2394 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2396 $as_echo "$ac_var='\''$ac_val'\''"
2401 if test -s confdefs.h; then
2402 $as_echo "## ----------- ##
2409 test "$ac_signal" != 0 &&
2410 $as_echo "$as_me: caught signal $ac_signal"
2411 $as_echo "$as_me: exit $exit_status"
2413 rm -f core *.core core.conftest.* &&
2414 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2417 for ac_signal in 1 2 13 15; do
2418 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2422 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2423 rm -f -r conftest* confdefs.h
2425 $as_echo "/* confdefs.h */" > confdefs.h
2427 # Predefined preprocessor variables.
2429 cat >>confdefs.h <<_ACEOF
2430 #define PACKAGE_NAME "$PACKAGE_NAME"
2433 cat >>confdefs.h <<_ACEOF
2434 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2437 cat >>confdefs.h <<_ACEOF
2438 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2441 cat >>confdefs.h <<_ACEOF
2442 #define PACKAGE_STRING "$PACKAGE_STRING"
2445 cat >>confdefs.h <<_ACEOF
2446 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2449 cat >>confdefs.h <<_ACEOF
2450 #define PACKAGE_URL "$PACKAGE_URL"
2454 # Let the site file select an alternate cache file if it wants to.
2455 # Prefer an explicitly selected file to automatically selected ones.
2458 if test -n "$CONFIG_SITE"; then
2459 # We do not want a PATH search for config.site.
2460 case $CONFIG_SITE in #((
2461 -*) ac_site_file1=./$CONFIG_SITE;;
2462 */*) ac_site_file1=$CONFIG_SITE;;
2463 *) ac_site_file1=./$CONFIG_SITE;;
2465 elif test "x$prefix" != xNONE; then
2466 ac_site_file1=$prefix/share/config.site
2467 ac_site_file2=$prefix/etc/config.site
2469 ac_site_file1=$ac_default_prefix/share/config.site
2470 ac_site_file2=$ac_default_prefix/etc/config.site
2472 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2474 test "x$ac_site_file" = xNONE && continue
2475 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2477 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2478 sed 's/^/| /' "$ac_site_file" >&5
2480 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2481 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2482 as_fn_error $? "failed to load site script $ac_site_file
2483 See \`config.log' for more details" "$LINENO" 5; }
2487 if test -r "$cache_file"; then
2488 # Some versions of bash will fail to source /dev/null (special files
2489 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2490 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2492 $as_echo "$as_me: loading cache $cache_file" >&6;}
2494 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2495 *) . "./$cache_file";;
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2500 $as_echo "$as_me: creating cache $cache_file" >&6;}
2504 as_fn_append ac_header_list " stdlib.h"
2505 as_fn_append ac_header_list " unistd.h"
2506 as_fn_append ac_header_list " sys/param.h"
2507 # Check that the precious variables saved in the cache have kept the same
2509 ac_cache_corrupted=false
2510 for ac_var in $ac_precious_vars; do
2511 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2512 eval ac_new_set=\$ac_env_${ac_var}_set
2513 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2514 eval ac_new_val=\$ac_env_${ac_var}_value
2515 case $ac_old_set,$ac_new_set in
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2518 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2519 ac_cache_corrupted=: ;;
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2522 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2523 ac_cache_corrupted=: ;;
2526 if test "x$ac_old_val" != "x$ac_new_val"; then
2527 # differences in whitespace do not lead to failure.
2528 ac_old_val_w=`echo x $ac_old_val`
2529 ac_new_val_w=`echo x $ac_new_val`
2530 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2532 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2533 ac_cache_corrupted=:
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2536 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2537 eval $ac_var=\$ac_old_val
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2540 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2542 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2545 # Pass precious variables to config.status.
2546 if test "$ac_new_set" = set; then
2548 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2549 *) ac_arg=$ac_var=$ac_new_val ;;
2551 case " $ac_configure_args " in
2552 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2553 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2557 if $ac_cache_corrupted; then
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2561 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2562 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2564 ## -------------------- ##
2565 ## Main body of script. ##
2566 ## -------------------- ##
2569 ac_cpp='$CPP $CPPFLAGS'
2570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2579 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2580 if test -f "$ac_dir/install-sh"; then
2582 ac_install_sh="$ac_aux_dir/install-sh -c"
2584 elif test -f "$ac_dir/install.sh"; then
2586 ac_install_sh="$ac_aux_dir/install.sh -c"
2588 elif test -f "$ac_dir/shtool"; then
2590 ac_install_sh="$ac_aux_dir/shtool install -c"
2594 if test -z "$ac_aux_dir"; then
2595 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2598 # These three variables are undocumented and unsupported,
2599 # and are intended to be withdrawn in a future Autoconf release.
2600 # They can cause serious problems if a builder's source tree is in a directory
2601 # whose full name contains unusual characters.
2602 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2603 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2604 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2607 # Make sure we can run config.sub.
2608 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2609 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2612 $as_echo_n "checking build system type... " >&6; }
2613 if ${ac_cv_build+:} false; then :
2614 $as_echo_n "(cached) " >&6
2616 ac_build_alias=$build_alias
2617 test "x$ac_build_alias" = x &&
2618 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2619 test "x$ac_build_alias" = x &&
2620 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2621 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2622 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2626 $as_echo "$ac_cv_build" >&6; }
2627 case $ac_cv_build in
2629 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2632 ac_save_IFS=$IFS; IFS='-'
2638 # Remember, the first character of IFS is used to create $*,
2639 # except with old shells:
2642 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2646 $as_echo_n "checking host system type... " >&6; }
2647 if ${ac_cv_host+:} false; then :
2648 $as_echo_n "(cached) " >&6
2650 if test "x$host_alias" = x; then
2651 ac_cv_host=$ac_cv_build
2653 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2654 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2659 $as_echo "$ac_cv_host" >&6; }
2662 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2665 ac_save_IFS=$IFS; IFS='-'
2671 # Remember, the first character of IFS is used to create $*,
2672 # except with old shells:
2675 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2679 $as_echo_n "checking target system type... " >&6; }
2680 if ${ac_cv_target+:} false; then :
2681 $as_echo_n "(cached) " >&6
2683 if test "x$target_alias" = x; then
2684 ac_cv_target=$ac_cv_host
2686 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2687 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2692 $as_echo "$ac_cv_target" >&6; }
2693 case $ac_cv_target in
2695 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2697 target=$ac_cv_target
2698 ac_save_IFS=$IFS; IFS='-'
2704 # Remember, the first character of IFS is used to create $*,
2705 # except with old shells:
2708 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2711 # The aliases save the names the user supplied, while $host etc.
2712 # will get canonicalized.
2713 test -n "$target_alias" &&
2714 test "$program_prefix$program_suffix$program_transform_name" = \
2716 program_prefix=${target_alias}-
2720 # Save this value here, since automake will set cflags later
2721 cflags_set=${CFLAGS+set}
2723 am__api_version='1.11'
2725 # Find a good install program. We prefer a C program (faster),
2726 # so one script is as good as another. But avoid the broken or
2727 # incompatible versions:
2728 # SysV /etc/install, /usr/sbin/install
2729 # SunOS /usr/etc/install
2730 # IRIX /sbin/install
2732 # AmigaOS /C/install, which installs bootblocks on floppy discs
2733 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2734 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2735 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2736 # OS/2's system install, which has a completely different semantic
2737 # ./install, which can be erroneously created by make from ./install.sh.
2738 # Reject install programs that cannot install multiple files.
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2740 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2741 if test -z "$INSTALL"; then
2742 if ${ac_cv_path_install+:} false; then :
2743 $as_echo_n "(cached) " >&6
2745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749 test -z "$as_dir" && as_dir=.
2750 # Account for people who put trailing slashes in PATH elements.
2751 case $as_dir/ in #((
2752 ./ | .// | /[cC]/* | \
2753 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2754 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2757 # OSF1 and SCO ODT 3.0 have their own names for install.
2758 # Don't use installbsd from OSF since it installs stuff as root
2760 for ac_prog in ginstall scoinst install; do
2761 for ac_exec_ext in '' $ac_executable_extensions; do
2762 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2763 if test $ac_prog = install &&
2764 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2765 # AIX install. It has an incompatible calling convention.
2767 elif test $ac_prog = install &&
2768 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2769 # program-specific install script used by HP pwplus--don't use.
2772 rm -rf conftest.one conftest.two conftest.dir
2773 echo one > conftest.one
2774 echo two > conftest.two
2776 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2777 test -s conftest.one && test -s conftest.two &&
2778 test -s conftest.dir/conftest.one &&
2779 test -s conftest.dir/conftest.two
2781 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2794 rm -rf conftest.one conftest.two conftest.dir
2797 if test "${ac_cv_path_install+set}" = set; then
2798 INSTALL=$ac_cv_path_install
2800 # As a last resort, use the slow shell script. Don't cache a
2801 # value for INSTALL within a source directory, because that will
2802 # break other packages using the cache if that directory is
2803 # removed, or if the value is a relative name.
2804 INSTALL=$ac_install_sh
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2808 $as_echo "$INSTALL" >&6; }
2810 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2811 # It thinks the first close brace ends the variable substitution.
2812 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2814 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2816 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2819 $as_echo_n "checking whether build environment is sane... " >&6; }
2822 echo timestamp > conftest.file
2823 # Reject unsafe characters in $srcdir or the absolute working directory
2824 # name. Accept space and tab only in the latter.
2828 *[\\\"\#\$\&\'\`$am_lf]*)
2829 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2832 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2833 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2836 # Do `set' in a subshell so we don't clobber the current shell's
2837 # arguments. Must try -L first in case configure is actually a
2838 # symlink; some systems play weird games with the mod time of symlinks
2839 # (eg FreeBSD returns the mod time of the symlink's containing
2842 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2843 if test "$*" = "X"; then
2845 set X `ls -t "$srcdir/configure" conftest.file`
2848 if test "$*" != "X $srcdir/configure conftest.file" \
2849 && test "$*" != "X conftest.file $srcdir/configure"; then
2851 # If neither matched, then we have a broken ls. This can happen
2852 # if, for instance, CONFIG_SHELL is bash and it inherits a
2853 # broken ls alias from the environment. This has actually
2854 # happened. Such a system could not be considered "sane".
2855 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2856 alias in your environment" "$LINENO" 5
2859 test "$2" = conftest.file
2865 as_fn_error $? "newly created file is older than distributed files!
2866 Check your system clock" "$LINENO" 5
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2869 $as_echo "yes" >&6; }
2870 test "$program_prefix" != NONE &&
2871 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2872 # Use a double $ so make ignores it.
2873 test "$program_suffix" != NONE &&
2874 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2875 # Double any \ or $.
2876 # By default was `s,x,x', remove it if useless.
2877 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2878 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2880 # expand $ac_aux_dir to an absolute path
2881 am_aux_dir=`cd $ac_aux_dir && pwd`
2883 if test x"${MISSING+set}" != xset; then
2886 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2888 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2891 # Use eval to expand $SHELL
2892 if eval "$MISSING --run true"; then
2893 am_missing_run="$MISSING --run "
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2897 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2900 if test x"${install_sh}" != xset; then
2903 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2905 install_sh="\${SHELL} $am_aux_dir/install-sh"
2909 # Installed binaries are usually stripped using `strip' when the user
2910 # run `make install-strip'. However `strip' might not be the right
2911 # tool to use in cross-compilation environments, therefore Automake
2912 # will honor the `STRIP' environment variable to overrule this program.
2913 if test "$cross_compiling" != no; then
2914 if test -n "$ac_tool_prefix"; then
2915 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2916 set dummy ${ac_tool_prefix}strip; ac_word=$2
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2918 $as_echo_n "checking for $ac_word... " >&6; }
2919 if ${ac_cv_prog_STRIP+:} false; then :
2920 $as_echo_n "(cached) " >&6
2922 if test -n "$STRIP"; then
2923 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2929 test -z "$as_dir" && as_dir=.
2930 for ac_exec_ext in '' $ac_executable_extensions; do
2931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2932 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2942 STRIP=$ac_cv_prog_STRIP
2943 if test -n "$STRIP"; then
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2945 $as_echo "$STRIP" >&6; }
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2948 $as_echo "no" >&6; }
2953 if test -z "$ac_cv_prog_STRIP"; then
2955 # Extract the first word of "strip", so it can be a program name with args.
2956 set dummy strip; ac_word=$2
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2958 $as_echo_n "checking for $ac_word... " >&6; }
2959 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2960 $as_echo_n "(cached) " >&6
2962 if test -n "$ac_ct_STRIP"; then
2963 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2969 test -z "$as_dir" && as_dir=.
2970 for ac_exec_ext in '' $ac_executable_extensions; do
2971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2972 ac_cv_prog_ac_ct_STRIP="strip"
2973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2982 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2983 if test -n "$ac_ct_STRIP"; then
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2985 $as_echo "$ac_ct_STRIP" >&6; }
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2988 $as_echo "no" >&6; }
2991 if test "x$ac_ct_STRIP" = x; then
2994 case $cross_compiling:$ac_tool_warned in
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2997 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2998 ac_tool_warned=yes ;;
3003 STRIP="$ac_cv_prog_STRIP"
3007 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3010 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3011 if test -z "$MKDIR_P"; then
3012 if ${ac_cv_path_mkdir+:} false; then :
3013 $as_echo_n "(cached) " >&6
3015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3019 test -z "$as_dir" && as_dir=.
3020 for ac_prog in mkdir gmkdir; do
3021 for ac_exec_ext in '' $ac_executable_extensions; do
3022 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3023 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3024 'mkdir (GNU coreutils) '* | \
3025 'mkdir (coreutils) '* | \
3026 'mkdir (fileutils) '4.1*)
3027 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3037 test -d ./--version && rmdir ./--version
3038 if test "${ac_cv_path_mkdir+set}" = set; then
3039 MKDIR_P="$ac_cv_path_mkdir -p"
3041 # As a last resort, use the slow shell script. Don't cache a
3042 # value for MKDIR_P within a source directory, because that will
3043 # break other packages using the cache if that directory is
3044 # removed, or if the value is a relative name.
3045 MKDIR_P="$ac_install_sh -d"
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3049 $as_echo "$MKDIR_P" >&6; }
3053 [\\/$]* | ?:[\\/]*) ;;
3054 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3057 for ac_prog in gawk mawk nawk awk
3059 # Extract the first word of "$ac_prog", so it can be a program name with args.
3060 set dummy $ac_prog; ac_word=$2
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3062 $as_echo_n "checking for $ac_word... " >&6; }
3063 if ${ac_cv_prog_AWK+:} false; then :
3064 $as_echo_n "(cached) " >&6
3066 if test -n "$AWK"; then
3067 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3073 test -z "$as_dir" && as_dir=.
3074 for ac_exec_ext in '' $ac_executable_extensions; do
3075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3076 ac_cv_prog_AWK="$ac_prog"
3077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3087 if test -n "$AWK"; then
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3089 $as_echo "$AWK" >&6; }
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3092 $as_echo "no" >&6; }
3096 test -n "$AWK" && break
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3100 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3102 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3103 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3104 $as_echo_n "(cached) " >&6
3106 cat >conftest.make <<\_ACEOF
3109 @echo '@@@%%%=$(MAKE)=@@@%%%'
3111 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3112 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3114 eval ac_cv_prog_make_${ac_make}_set=yes;;
3116 eval ac_cv_prog_make_${ac_make}_set=no;;
3120 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3122 $as_echo "yes" >&6; }
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3126 $as_echo "no" >&6; }
3127 SET_MAKE="MAKE=${MAKE-make}"
3130 rm -rf .tst 2>/dev/null
3131 mkdir .tst 2>/dev/null
3132 if test -d .tst; then
3137 rmdir .tst 2>/dev/null
3139 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3140 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3141 # is not polluted with repeated "-I."
3142 am__isrc=' -I$(srcdir)'
3143 # test to see if srcdir already configured
3144 if test -f $srcdir/config.status; then
3145 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3149 # test whether we have cygpath
3150 if test -z "$CYGPATH_W"; then
3151 if (cygpath --version) >/dev/null 2>/dev/null; then
3152 CYGPATH_W='cygpath -w'
3159 # Define the identity of the package.
3164 cat >>confdefs.h <<_ACEOF
3165 #define PACKAGE "$PACKAGE"
3169 cat >>confdefs.h <<_ACEOF
3170 #define VERSION "$VERSION"
3173 # Some tools Automake needs.
3175 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3178 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3181 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3184 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3187 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3189 # We need awk for the "check" target. The system "awk" is bad on
3191 # Always define AMTAR for backward compatibility. Yes, it's still used
3192 # in the wild :-( We should find a proper way to deprecate it ...
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3197 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3198 # Loop over all known methods to create a tar archive until one works.
3199 _am_tools='gnutar plaintar pax cpio none'
3200 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3201 # Do not fold the above two line into one, because Tru64 sh and
3202 # Solaris sh will not grok spaces in the rhs of `-'.
3203 for _am_tool in $_am_tools
3207 for _am_tar in tar gnutar gtar;
3209 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3210 ($_am_tar --version) >&5 2>&5
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); } && break
3215 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3216 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3217 am__untar="$_am_tar -xf -"
3220 # Must skip GNU tar: if it does not support --format= it doesn't create
3221 # ustar tarball either.
3222 (tar --version) >/dev/null 2>&1 && continue
3223 am__tar='tar chf - "$$tardir"'
3224 am__tar_='tar chf - "$tardir"'
3225 am__untar='tar xf -'
3228 am__tar='pax -L -x ustar -w "$$tardir"'
3229 am__tar_='pax -L -x ustar -w "$tardir"'
3233 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3234 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3235 am__untar='cpio -i -H ustar -d'
3244 # If the value was cached, stop now. We just wanted to have am__tar
3245 # and am__untar set.
3246 test -n "${am_cv_prog_tar_ustar}" && break
3248 # tar/untar a dummy directory, and stop if the command works
3251 echo GrepMe > conftest.dir/file
3252 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3253 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); }
3258 if test -s conftest.tar; then
3259 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3260 ($am__untar <conftest.tar) >&5 2>&5
3262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263 (exit $ac_status); }
3264 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3269 if ${am_cv_prog_tar_ustar+:} false; then :
3270 $as_echo_n "(cached) " >&6
3272 am_cv_prog_tar_ustar=$_am_tool
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3276 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3282 ACLOCAL_AMFLAGS="-I m4 \${ACLOCAL_FLAGS}"
3284 ac_config_headers="$ac_config_headers config.h"
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3288 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3289 # Check whether --enable-maintainer-mode was given.
3290 if test "${enable_maintainer_mode+set}" = set; then :
3291 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3293 USE_MAINTAINER_MODE=no
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3297 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3298 if test $USE_MAINTAINER_MODE = yes; then
3299 MAINTAINER_MODE_TRUE=
3300 MAINTAINER_MODE_FALSE='#'
3302 MAINTAINER_MODE_TRUE='#'
3303 MAINTAINER_MODE_FALSE=
3306 MAINT=$MAINTAINER_MODE_TRUE
3311 GMIME_MAJOR_VERSION=2
3312 GMIME_MINOR_VERSION=6
3313 GMIME_MICRO_VERSION=15
3314 GMIME_INTERFACE_AGE=15
3315 GMIME_BINARY_AGE=615
3316 GMIME_API_VERSION=2.6
3317 GMIME_VERSION=2.6.15
3328 $as_echo "#define GMIME_VERSION \"2.6.15\"" >>confdefs.h
3331 # libtool versioning
3336 LT_CURRENT_MINUS_AGE=0
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for Win32" >&5
3344 $as_echo_n "checking if building for Win32... " >&6; }
3345 LIB_EXE_MACHINE_FLAG=X86
3348 platform_win32="yes"
3352 LIB_EXE_MACHINE_FLAG=X64
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $platform_win32" >&5
3363 $as_echo "$platform_win32" >&6; }
3367 if test "x$platform_win32" = "xyes"; then
3368 PLATFORM_WIN32_TRUE=
3369 PLATFORM_WIN32_FALSE='#'
3371 PLATFORM_WIN32_TRUE='#'
3372 PLATFORM_WIN32_FALSE=
3375 if test "$native_win32" = "xyes"; then
3383 if test "$LIB_EXE_MACHINE_FLAG" = "X64"; then
3385 OS_WIN32_X64_FALSE='#'
3387 OS_WIN32_X64_TRUE='#'
3392 if test "$glib_native_win32" = "yes"; then
3393 if test -n "$ac_tool_prefix"; then
3394 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3395 set dummy ${ac_tool_prefix}windres; ac_word=$2
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3397 $as_echo_n "checking for $ac_word... " >&6; }
3398 if ${ac_cv_prog_WINDRES+:} false; then :
3399 $as_echo_n "(cached) " >&6
3401 if test -n "$WINDRES"; then
3402 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3408 test -z "$as_dir" && as_dir=.
3409 for ac_exec_ext in '' $ac_executable_extensions; do
3410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3411 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
3412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3421 WINDRES=$ac_cv_prog_WINDRES
3422 if test -n "$WINDRES"; then
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
3424 $as_echo "$WINDRES" >&6; }
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3427 $as_echo "no" >&6; }
3432 if test -z "$ac_cv_prog_WINDRES"; then
3433 ac_ct_WINDRES=$WINDRES
3434 # Extract the first word of "windres", so it can be a program name with args.
3435 set dummy windres; ac_word=$2
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3437 $as_echo_n "checking for $ac_word... " >&6; }
3438 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
3439 $as_echo_n "(cached) " >&6
3441 if test -n "$ac_ct_WINDRES"; then
3442 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
3444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3448 test -z "$as_dir" && as_dir=.
3449 for ac_exec_ext in '' $ac_executable_extensions; do
3450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3451 ac_cv_prog_ac_ct_WINDRES="windres"
3452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3461 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
3462 if test -n "$ac_ct_WINDRES"; then
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
3464 $as_echo "$ac_ct_WINDRES" >&6; }
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3467 $as_echo "no" >&6; }
3470 if test "x$ac_ct_WINDRES" = x; then
3473 case $cross_compiling:$ac_tool_warned in
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3476 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3477 ac_tool_warned=yes ;;
3479 WINDRES=$ac_ct_WINDRES
3482 WINDRES="$ac_cv_prog_WINDRES"
3485 if test "$WINDRES" = no; then
3486 as_fn_error $? "*** Could not find an implementation of windres in your PATH." "$LINENO" 5
3488 if test -n "$ac_tool_prefix"; then
3489 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
3490 set dummy ${ac_tool_prefix}nm; ac_word=$2
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3492 $as_echo_n "checking for $ac_word... " >&6; }
3493 if ${ac_cv_prog_NM+:} false; then :
3494 $as_echo_n "(cached) " >&6
3496 if test -n "$NM"; then
3497 ac_cv_prog_NM="$NM" # Let the user override the test.
3499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3503 test -z "$as_dir" && as_dir=.
3504 for ac_exec_ext in '' $ac_executable_extensions; do
3505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3506 ac_cv_prog_NM="${ac_tool_prefix}nm"
3507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3517 if test -n "$NM"; then
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
3519 $as_echo "$NM" >&6; }
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3522 $as_echo "no" >&6; }
3527 if test -z "$ac_cv_prog_NM"; then
3529 # Extract the first word of "nm", so it can be a program name with args.
3530 set dummy nm; ac_word=$2
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3532 $as_echo_n "checking for $ac_word... " >&6; }
3533 if ${ac_cv_prog_ac_ct_NM+:} false; then :
3534 $as_echo_n "(cached) " >&6
3536 if test -n "$ac_ct_NM"; then
3537 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
3539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3543 test -z "$as_dir" && as_dir=.
3544 for ac_exec_ext in '' $ac_executable_extensions; do
3545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3546 ac_cv_prog_ac_ct_NM="nm"
3547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3556 ac_ct_NM=$ac_cv_prog_ac_ct_NM
3557 if test -n "$ac_ct_NM"; then
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
3559 $as_echo "$ac_ct_NM" >&6; }
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3562 $as_echo "no" >&6; }
3565 if test "x$ac_ct_NM" = x; then
3568 case $cross_compiling:$ac_tool_warned in
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3571 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3572 ac_tool_warned=yes ;;
3580 if test "$NM" = no; then
3581 as_fn_error $? "*** Could not find an implementation of nm in your PATH." "$LINENO" 5
3583 if test -n "$ac_tool_prefix"; then
3584 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3585 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3587 $as_echo_n "checking for $ac_word... " >&6; }
3588 if ${ac_cv_prog_RANLIB+:} false; then :
3589 $as_echo_n "(cached) " >&6
3591 if test -n "$RANLIB"; then
3592 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3598 test -z "$as_dir" && as_dir=.
3599 for ac_exec_ext in '' $ac_executable_extensions; do
3600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3601 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3611 RANLIB=$ac_cv_prog_RANLIB
3612 if test -n "$RANLIB"; then
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3614 $as_echo "$RANLIB" >&6; }
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3617 $as_echo "no" >&6; }
3622 if test -z "$ac_cv_prog_RANLIB"; then
3623 ac_ct_RANLIB=$RANLIB
3624 # Extract the first word of "ranlib", so it can be a program name with args.
3625 set dummy ranlib; ac_word=$2
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3627 $as_echo_n "checking for $ac_word... " >&6; }
3628 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3629 $as_echo_n "(cached) " >&6
3631 if test -n "$ac_ct_RANLIB"; then
3632 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3638 test -z "$as_dir" && as_dir=.
3639 for ac_exec_ext in '' $ac_executable_extensions; do
3640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3641 ac_cv_prog_ac_ct_RANLIB="ranlib"
3642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3651 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3652 if test -n "$ac_ct_RANLIB"; then
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3654 $as_echo "$ac_ct_RANLIB" >&6; }
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3657 $as_echo "no" >&6; }
3660 if test "x$ac_ct_RANLIB" = x; then
3663 case $cross_compiling:$ac_tool_warned in
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3667 ac_tool_warned=yes ;;
3669 RANLIB=$ac_ct_RANLIB
3672 RANLIB="$ac_cv_prog_RANLIB"
3675 # Extract the first word of "lib.exe", so it can be a program name with args.
3676 set dummy lib.exe; ac_word=$2
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3678 $as_echo_n "checking for $ac_word... " >&6; }
3679 if ${ac_cv_prog_ms_librarian+:} false; then :
3680 $as_echo_n "(cached) " >&6
3682 if test -n "$ms_librarian"; then
3683 ac_cv_prog_ms_librarian="$ms_librarian" # Let the user override the test.
3685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3689 test -z "$as_dir" && as_dir=.
3690 for ac_exec_ext in '' $ac_executable_extensions; do
3691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3692 ac_cv_prog_ms_librarian="yes"
3693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3700 test -z "$ac_cv_prog_ms_librarian" && ac_cv_prog_ms_librarian="no"
3703 ms_librarian=$ac_cv_prog_ms_librarian
3704 if test -n "$ms_librarian"; then
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ms_librarian" >&5
3706 $as_echo "$ms_librarian" >&6; }
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3709 $as_echo "no" >&6; }
3714 if test x$ms_librarian = xyes; then
3715 MS_LIB_AVAILABLE_TRUE=
3716 MS_LIB_AVAILABLE_FALSE='#'
3718 MS_LIB_AVAILABLE_TRUE='#'
3719 MS_LIB_AVAILABLE_FALSE=
3723 DEPDIR="${am__leading_dot}deps"
3725 ac_config_commands="$ac_config_commands depfiles"
3728 am_make=${MAKE-make}
3729 cat > confinc << 'END'
3731 @echo this is the am__doit target
3734 # If we don't find an include directive, just comment out the code.
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3736 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3740 # First try GNU make style include.
3741 echo "include confinc" > confmf
3742 # Ignore all kinds of additional output from `make'.
3743 case `$am_make -s -f confmf 2> /dev/null` in #(
3744 *the\ am__doit\ target*)
3750 # Now try BSD make style include.
3751 if test "$am__include" = "#"; then
3752 echo '.include "confinc"' > confmf
3753 case `$am_make -s -f confmf 2> /dev/null` in #(
3754 *the\ am__doit\ target*)
3755 am__include=.include
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3764 $as_echo "$_am_result" >&6; }
3765 rm -f confinc confmf
3767 # Check whether --enable-dependency-tracking was given.
3768 if test "${enable_dependency_tracking+set}" = set; then :
3769 enableval=$enable_dependency_tracking;
3772 if test "x$enable_dependency_tracking" != xno; then
3773 am_depcomp="$ac_aux_dir/depcomp"
3777 if test "x$enable_dependency_tracking" != xno; then
3787 ac_cpp='$CPP $CPPFLAGS'
3788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3791 if test -n "$ac_tool_prefix"; then
3792 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3793 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3795 $as_echo_n "checking for $ac_word... " >&6; }
3796 if ${ac_cv_prog_CC+:} false; then :
3797 $as_echo_n "(cached) " >&6
3799 if test -n "$CC"; then
3800 ac_cv_prog_CC="$CC" # Let the user override the test.
3802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806 test -z "$as_dir" && as_dir=.
3807 for ac_exec_ext in '' $ac_executable_extensions; do
3808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3809 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3820 if test -n "$CC"; then
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3822 $as_echo "$CC" >&6; }
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3825 $as_echo "no" >&6; }
3830 if test -z "$ac_cv_prog_CC"; then
3832 # Extract the first word of "gcc", so it can be a program name with args.
3833 set dummy gcc; ac_word=$2
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3835 $as_echo_n "checking for $ac_word... " >&6; }
3836 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3837 $as_echo_n "(cached) " >&6
3839 if test -n "$ac_ct_CC"; then
3840 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3846 test -z "$as_dir" && as_dir=.
3847 for ac_exec_ext in '' $ac_executable_extensions; do
3848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3849 ac_cv_prog_ac_ct_CC="gcc"
3850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3859 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3860 if test -n "$ac_ct_CC"; then
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3862 $as_echo "$ac_ct_CC" >&6; }
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3865 $as_echo "no" >&6; }
3868 if test "x$ac_ct_CC" = x; then
3871 case $cross_compiling:$ac_tool_warned in
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3874 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3875 ac_tool_warned=yes ;;
3883 if test -z "$CC"; then
3884 if test -n "$ac_tool_prefix"; then
3885 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3886 set dummy ${ac_tool_prefix}cc; ac_word=$2
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3888 $as_echo_n "checking for $ac_word... " >&6; }
3889 if ${ac_cv_prog_CC+:} false; then :
3890 $as_echo_n "(cached) " >&6
3892 if test -n "$CC"; then
3893 ac_cv_prog_CC="$CC" # Let the user override the test.
3895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3899 test -z "$as_dir" && as_dir=.
3900 for ac_exec_ext in '' $ac_executable_extensions; do
3901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3902 ac_cv_prog_CC="${ac_tool_prefix}cc"
3903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3913 if test -n "$CC"; then
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3915 $as_echo "$CC" >&6; }
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3918 $as_echo "no" >&6; }
3924 if test -z "$CC"; then
3925 # Extract the first word of "cc", so it can be a program name with args.
3926 set dummy cc; ac_word=$2
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3928 $as_echo_n "checking for $ac_word... " >&6; }
3929 if ${ac_cv_prog_CC+:} false; then :
3930 $as_echo_n "(cached) " >&6
3932 if test -n "$CC"; then
3933 ac_cv_prog_CC="$CC" # Let the user override the test.
3936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3940 test -z "$as_dir" && as_dir=.
3941 for ac_exec_ext in '' $ac_executable_extensions; do
3942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3943 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3944 ac_prog_rejected=yes
3948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3955 if test $ac_prog_rejected = yes; then
3956 # We found a bogon in the path, so make sure we never use it.
3957 set dummy $ac_cv_prog_CC
3959 if test $# != 0; then
3960 # We chose a different compiler from the bogus one.
3961 # However, it has the same basename, so the bogon will be chosen
3962 # first if we set CC to just the basename; use the full file name.
3964 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3970 if test -n "$CC"; then
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3972 $as_echo "$CC" >&6; }
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3975 $as_echo "no" >&6; }
3980 if test -z "$CC"; then
3981 if test -n "$ac_tool_prefix"; then
3982 for ac_prog in cl.exe
3984 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3985 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3987 $as_echo_n "checking for $ac_word... " >&6; }
3988 if ${ac_cv_prog_CC+:} false; then :
3989 $as_echo_n "(cached) " >&6
3991 if test -n "$CC"; then
3992 ac_cv_prog_CC="$CC" # Let the user override the test.
3994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3998 test -z "$as_dir" && as_dir=.
3999 for ac_exec_ext in '' $ac_executable_extensions; do
4000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4001 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4012 if test -n "$CC"; then
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4014 $as_echo "$CC" >&6; }
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4017 $as_echo "no" >&6; }
4021 test -n "$CC" && break
4024 if test -z "$CC"; then
4026 for ac_prog in cl.exe
4028 # Extract the first word of "$ac_prog", so it can be a program name with args.
4029 set dummy $ac_prog; ac_word=$2
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4031 $as_echo_n "checking for $ac_word... " >&6; }
4032 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4033 $as_echo_n "(cached) " >&6
4035 if test -n "$ac_ct_CC"; then
4036 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4042 test -z "$as_dir" && as_dir=.
4043 for ac_exec_ext in '' $ac_executable_extensions; do
4044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4045 ac_cv_prog_ac_ct_CC="$ac_prog"
4046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4055 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4056 if test -n "$ac_ct_CC"; then
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4058 $as_echo "$ac_ct_CC" >&6; }
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4061 $as_echo "no" >&6; }
4065 test -n "$ac_ct_CC" && break
4068 if test "x$ac_ct_CC" = x; then
4071 case $cross_compiling:$ac_tool_warned in
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4075 ac_tool_warned=yes ;;
4084 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4085 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4086 as_fn_error $? "no acceptable C compiler found in \$PATH
4087 See \`config.log' for more details" "$LINENO" 5; }
4089 # Provide some information about the compiler.
4090 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4093 for ac_option in --version -v -V -qversion; do
4094 { { ac_try="$ac_compiler $ac_option >&5"
4096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4097 *) ac_try_echo=$ac_try;;
4099 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4100 $as_echo "$ac_try_echo"; } >&5
4101 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4103 if test -s conftest.err; then
4105 ... rest of stderr output deleted ...
4106 10q' conftest.err >conftest.er1
4107 cat conftest.er1 >&5
4109 rm -f conftest.er1 conftest.err
4110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4111 test $ac_status = 0; }
4114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4115 /* end confdefs.h. */
4125 ac_clean_files_save=$ac_clean_files
4126 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4127 # Try to create an executable without -o first, disregard a.out.
4128 # It will help us diagnose broken compilers, and finding out an intuition
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4131 $as_echo_n "checking whether the C compiler works... " >&6; }
4132 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4134 # The possible output files:
4135 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4138 for ac_file in $ac_files
4141 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4142 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4147 if { { ac_try="$ac_link_default"
4149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4150 *) ac_try_echo=$ac_try;;
4152 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4153 $as_echo "$ac_try_echo"; } >&5
4154 (eval "$ac_link_default") 2>&5
4156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4157 test $ac_status = 0; }; then :
4158 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4159 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4160 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4161 # so that the user can short-circuit this test for compilers unknown to
4163 for ac_file in $ac_files ''
4165 test -f "$ac_file" || continue
4167 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4170 # We found the default executable, but exeext='' is most
4174 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4176 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4178 # We set ac_cv_exeext here because the later test for it is not
4179 # safe: cross compilers may not add the suffix if given an `-o'
4180 # argument, so we may need to know it at that point already.
4181 # Even if this section looks crufty: it has the advantage of
4188 test "$ac_cv_exeext" = no && ac_cv_exeext=
4193 if test -z "$ac_file"; then :
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4195 $as_echo "no" >&6; }
4196 $as_echo "$as_me: failed program was:" >&5
4197 sed 's/^/| /' conftest.$ac_ext >&5
4199 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4200 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4201 as_fn_error 77 "C compiler cannot create executables
4202 See \`config.log' for more details" "$LINENO" 5; }
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4205 $as_echo "yes" >&6; }
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4208 $as_echo_n "checking for C compiler default output file name... " >&6; }
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4210 $as_echo "$ac_file" >&6; }
4211 ac_exeext=$ac_cv_exeext
4213 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4214 ac_clean_files=$ac_clean_files_save
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4216 $as_echo_n "checking for suffix of executables... " >&6; }
4217 if { { ac_try="$ac_link"
4219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220 *) ac_try_echo=$ac_try;;
4222 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4223 $as_echo "$ac_try_echo"; } >&5
4224 (eval "$ac_link") 2>&5
4226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4227 test $ac_status = 0; }; then :
4228 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4229 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4230 # work properly (i.e., refer to `conftest.exe'), while it won't with
4232 for ac_file in conftest.exe conftest conftest.*; do
4233 test -f "$ac_file" || continue
4235 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4236 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4242 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4244 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4245 See \`config.log' for more details" "$LINENO" 5; }
4247 rm -f conftest conftest$ac_cv_exeext
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4249 $as_echo "$ac_cv_exeext" >&6; }
4251 rm -f conftest.$ac_ext
4252 EXEEXT=$ac_cv_exeext
4254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4255 /* end confdefs.h. */
4260 FILE *f = fopen ("conftest.out", "w");
4261 return ferror (f) || fclose (f) != 0;
4267 ac_clean_files="$ac_clean_files conftest.out"
4268 # Check that the compiler produces executables we can run. If not, either
4269 # the compiler is broken, or we cross compile.
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4271 $as_echo_n "checking whether we are cross compiling... " >&6; }
4272 if test "$cross_compiling" != yes; then
4273 { { ac_try="$ac_link"
4275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276 *) ac_try_echo=$ac_try;;
4278 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4279 $as_echo "$ac_try_echo"; } >&5
4280 (eval "$ac_link") 2>&5
4282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4283 test $ac_status = 0; }
4284 if { ac_try='./conftest$ac_cv_exeext'
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
4297 if test "$cross_compiling" = maybe; then
4300 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4301 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4302 as_fn_error $? "cannot run C compiled programs.
4303 If you meant to cross compile, use \`--host'.
4304 See \`config.log' for more details" "$LINENO" 5; }
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4309 $as_echo "$cross_compiling" >&6; }
4311 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4312 ac_clean_files=$ac_clean_files_save
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4314 $as_echo_n "checking for suffix of object files... " >&6; }
4315 if ${ac_cv_objext+:} false; then :
4316 $as_echo_n "(cached) " >&6
4318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4319 /* end confdefs.h. */
4329 rm -f conftest.o conftest.obj
4330 if { { ac_try="$ac_compile"
4332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4333 *) ac_try_echo=$ac_try;;
4335 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4336 $as_echo "$ac_try_echo"; } >&5
4337 (eval "$ac_compile") 2>&5
4339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4340 test $ac_status = 0; }; then :
4341 for ac_file in conftest.o conftest.obj conftest.*; do
4342 test -f "$ac_file" || continue;
4344 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4345 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4350 $as_echo "$as_me: failed program was:" >&5
4351 sed 's/^/| /' conftest.$ac_ext >&5
4353 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4355 as_fn_error $? "cannot compute suffix of object files: cannot compile
4356 See \`config.log' for more details" "$LINENO" 5; }
4358 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4361 $as_echo "$ac_cv_objext" >&6; }
4362 OBJEXT=$ac_cv_objext
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4365 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4366 if ${ac_cv_c_compiler_gnu+:} false; then :
4367 $as_echo_n "(cached) " >&6
4369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4370 /* end confdefs.h. */
4383 if ac_fn_c_try_compile "$LINENO"; then :
4388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4389 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4393 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4394 if test $ac_compiler_gnu = yes; then
4399 ac_test_CFLAGS=${CFLAGS+set}
4400 ac_save_CFLAGS=$CFLAGS
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4402 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4403 if ${ac_cv_prog_cc_g+:} false; then :
4404 $as_echo_n "(cached) " >&6
4406 ac_save_c_werror_flag=$ac_c_werror_flag
4407 ac_c_werror_flag=yes
4410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4411 /* end confdefs.h. */
4421 if ac_fn_c_try_compile "$LINENO"; then :
4425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4426 /* end confdefs.h. */
4436 if ac_fn_c_try_compile "$LINENO"; then :
4439 ac_c_werror_flag=$ac_save_c_werror_flag
4441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4442 /* end confdefs.h. */
4452 if ac_fn_c_try_compile "$LINENO"; then :
4455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4460 ac_c_werror_flag=$ac_save_c_werror_flag
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4463 $as_echo "$ac_cv_prog_cc_g" >&6; }
4464 if test "$ac_test_CFLAGS" = set; then
4465 CFLAGS=$ac_save_CFLAGS
4466 elif test $ac_cv_prog_cc_g = yes; then
4467 if test "$GCC" = yes; then
4473 if test "$GCC" = yes; then
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4480 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4481 if ${ac_cv_prog_cc_c89+:} false; then :
4482 $as_echo_n "(cached) " >&6
4484 ac_cv_prog_cc_c89=no
4486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4487 /* end confdefs.h. */
4490 #include <sys/types.h>
4491 #include <sys/stat.h>
4492 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4493 struct buf { int x; };
4494 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4495 static char *e (p, i)
4501 static char *f (char * (*g) (char **, int), char **p, ...)
4506 s = g (p, va_arg (v,int));
4511 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4512 function prototypes and stuff, but not '\xHH' hex character constants.
4513 These don't provoke an error unfortunately, instead are silently treated
4514 as 'x'. The following induces an error, until -std is added to get
4515 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4516 array size at least. It's necessary to write '\x00'==0 to get something
4517 that's true only with -std. */
4518 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4520 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4521 inside strings and character constants. */
4523 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4525 int test (int i, double x);
4526 struct s1 {int (*f) (int a);};
4527 struct s2 {int (*f) (double a);};
4528 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4534 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4539 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4540 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4542 CC="$ac_save_CC $ac_arg"
4543 if ac_fn_c_try_compile "$LINENO"; then :
4544 ac_cv_prog_cc_c89=$ac_arg
4546 rm -f core conftest.err conftest.$ac_objext
4547 test "x$ac_cv_prog_cc_c89" != "xno" && break
4549 rm -f conftest.$ac_ext
4554 case "x$ac_cv_prog_cc_c89" in
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4557 $as_echo "none needed" >&6; } ;;
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4560 $as_echo "unsupported" >&6; } ;;
4562 CC="$CC $ac_cv_prog_cc_c89"
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4564 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4566 if test "x$ac_cv_prog_cc_c89" != xno; then :
4571 ac_cpp='$CPP $CPPFLAGS'
4572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4576 depcc="$CC" am_compiler_list=
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4579 $as_echo_n "checking dependency style of $depcc... " >&6; }
4580 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4581 $as_echo_n "(cached) " >&6
4583 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4584 # We make a subdir and do the tests there. Otherwise we can end up
4585 # making bogus files that we don't know about and never remove. For
4586 # instance it was reported that on HP-UX the gcc test will end up
4587 # making a dummy file named `D' -- because `-MD' means `put the output
4591 # Copy depcomp to subdir because otherwise we won't find it if we're
4592 # using a relative directory.
4593 cp "$am_depcomp" conftest.dir
4595 # We will build objects and dependencies in a subdirectory because
4596 # it helps to detect inapplicable dependency modes. For instance
4597 # both Tru64's cc and ICC support -MD to output dependencies as a
4598 # side effect of compilation, but ICC will put the dependencies in
4599 # the current directory while Tru64 will put them in the object
4603 am_cv_CC_dependencies_compiler_type=none
4604 if test "$am_compiler_list" = ""; then
4605 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4608 case " $depcc " in #(
4609 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4612 for depmode in $am_compiler_list; do
4613 # Setup a source with many dependencies, because some compilers
4614 # like to wrap large dependency lists on column 80 (with \), and
4615 # we should not choose a depcomp mode which is confused by this.
4617 # We need to recreate these files for each test, as the compiler may
4618 # overwrite some of them when testing with obscure command lines.
4619 # This happens at least with the AIX C compiler.
4621 for i in 1 2 3 4 5 6; do
4622 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4623 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4624 # Solaris 8's {/usr,}/bin/sh.
4625 touch sub/conftst$i.h
4627 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4629 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4630 # mode. It turns out that the SunPro C++ compiler does not properly
4631 # handle `-M -o', and we need to detect this. Also, some Intel
4632 # versions had trouble with output in subdirs
4633 am__obj=sub/conftest.${OBJEXT-o}
4634 am__minus_obj="-o $am__obj"
4637 # This depmode causes a compiler race in universal mode.
4638 test "$am__universal" = false || continue
4641 # after this tag, mechanisms are not by side-effect, so they'll
4642 # only be used when explicitly requested
4643 if test "x$enable_dependency_tracking" = xyes; then
4649 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4650 # This compiler won't grok `-c -o', but also, the minuso test has
4651 # not run yet. These depmodes are late enough in the game, and
4652 # so weak that their functioning should not be impacted.
4653 am__obj=conftest.${OBJEXT-o}
4658 if depmode=$depmode \
4659 source=sub/conftest.c object=$am__obj \
4660 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4661 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4662 >/dev/null 2>conftest.err &&
4663 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4664 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4665 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4666 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4667 # icc doesn't choke on unknown options, it will just issue warnings
4668 # or remarks (even with -Werror). So we grep stderr for any message
4669 # that says an option was ignored or not supported.
4670 # When given -MP, icc 7.0 and 7.1 complain thusly:
4671 # icc: Command line warning: ignoring option '-M'; no argument required
4672 # The diagnosis changed in icc 8.0:
4673 # icc: Command line remark: option '-MP' not supported
4674 if (grep 'ignoring option' conftest.err ||
4675 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4676 am_cv_CC_dependencies_compiler_type=$depmode
4685 am_cv_CC_dependencies_compiler_type=none
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4690 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4691 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4694 test "x$enable_dependency_tracking" != xno \
4695 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4697 am__fastdepCC_FALSE='#'
4699 am__fastdepCC_TRUE='#'
4700 am__fastdepCC_FALSE=
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4706 $as_echo_n "checking for library containing strerror... " >&6; }
4707 if ${ac_cv_search_strerror+:} false; then :
4708 $as_echo_n "(cached) " >&6
4710 ac_func_search_save_LIBS=$LIBS
4711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4712 /* end confdefs.h. */
4714 /* Override any GCC internal prototype to avoid an error.
4715 Use char because int might match the return type of a GCC
4716 builtin and then its argument prototype would still apply. */
4729 for ac_lib in '' cposix; do
4730 if test -z "$ac_lib"; then
4731 ac_res="none required"
4734 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4736 if ac_fn_c_try_link "$LINENO"; then :
4737 ac_cv_search_strerror=$ac_res
4739 rm -f core conftest.err conftest.$ac_objext \
4741 if ${ac_cv_search_strerror+:} false; then :
4745 if ${ac_cv_search_strerror+:} false; then :
4748 ac_cv_search_strerror=no
4751 LIBS=$ac_func_search_save_LIBS
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4754 $as_echo "$ac_cv_search_strerror" >&6; }
4755 ac_res=$ac_cv_search_strerror
4756 if test "$ac_res" != no; then :
4757 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4762 ac_cpp='$CPP $CPPFLAGS'
4763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4766 if test -n "$ac_tool_prefix"; then
4767 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4768 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4770 $as_echo_n "checking for $ac_word... " >&6; }
4771 if ${ac_cv_prog_CC+:} false; then :
4772 $as_echo_n "(cached) " >&6
4774 if test -n "$CC"; then
4775 ac_cv_prog_CC="$CC" # Let the user override the test.
4777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781 test -z "$as_dir" && as_dir=.
4782 for ac_exec_ext in '' $ac_executable_extensions; do
4783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4784 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4795 if test -n "$CC"; then
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4797 $as_echo "$CC" >&6; }
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4800 $as_echo "no" >&6; }
4805 if test -z "$ac_cv_prog_CC"; then
4807 # Extract the first word of "gcc", so it can be a program name with args.
4808 set dummy gcc; ac_word=$2
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4810 $as_echo_n "checking for $ac_word... " >&6; }
4811 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4812 $as_echo_n "(cached) " >&6
4814 if test -n "$ac_ct_CC"; then
4815 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821 test -z "$as_dir" && as_dir=.
4822 for ac_exec_ext in '' $ac_executable_extensions; do
4823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4824 ac_cv_prog_ac_ct_CC="gcc"
4825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4834 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4835 if test -n "$ac_ct_CC"; then
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4837 $as_echo "$ac_ct_CC" >&6; }
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4840 $as_echo "no" >&6; }
4843 if test "x$ac_ct_CC" = x; then
4846 case $cross_compiling:$ac_tool_warned in
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4849 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4850 ac_tool_warned=yes ;;
4858 if test -z "$CC"; then
4859 if test -n "$ac_tool_prefix"; then
4860 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4861 set dummy ${ac_tool_prefix}cc; ac_word=$2
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4863 $as_echo_n "checking for $ac_word... " >&6; }
4864 if ${ac_cv_prog_CC+:} false; then :
4865 $as_echo_n "(cached) " >&6
4867 if test -n "$CC"; then
4868 ac_cv_prog_CC="$CC" # Let the user override the test.
4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874 test -z "$as_dir" && as_dir=.
4875 for ac_exec_ext in '' $ac_executable_extensions; do
4876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4877 ac_cv_prog_CC="${ac_tool_prefix}cc"
4878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4888 if test -n "$CC"; then
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4890 $as_echo "$CC" >&6; }
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4893 $as_echo "no" >&6; }
4899 if test -z "$CC"; then
4900 # Extract the first word of "cc", so it can be a program name with args.
4901 set dummy cc; ac_word=$2
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4903 $as_echo_n "checking for $ac_word... " >&6; }
4904 if ${ac_cv_prog_CC+:} false; then :
4905 $as_echo_n "(cached) " >&6
4907 if test -n "$CC"; then
4908 ac_cv_prog_CC="$CC" # Let the user override the test.
4911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4915 test -z "$as_dir" && as_dir=.
4916 for ac_exec_ext in '' $ac_executable_extensions; do
4917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4918 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4919 ac_prog_rejected=yes
4923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4930 if test $ac_prog_rejected = yes; then
4931 # We found a bogon in the path, so make sure we never use it.
4932 set dummy $ac_cv_prog_CC
4934 if test $# != 0; then
4935 # We chose a different compiler from the bogus one.
4936 # However, it has the same basename, so the bogon will be chosen
4937 # first if we set CC to just the basename; use the full file name.
4939 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4945 if test -n "$CC"; then
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4947 $as_echo "$CC" >&6; }
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4950 $as_echo "no" >&6; }
4955 if test -z "$CC"; then
4956 if test -n "$ac_tool_prefix"; then
4957 for ac_prog in cl.exe
4959 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4960 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4962 $as_echo_n "checking for $ac_word... " >&6; }
4963 if ${ac_cv_prog_CC+:} false; then :
4964 $as_echo_n "(cached) " >&6
4966 if test -n "$CC"; then
4967 ac_cv_prog_CC="$CC" # Let the user override the test.
4969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4973 test -z "$as_dir" && as_dir=.
4974 for ac_exec_ext in '' $ac_executable_extensions; do
4975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4976 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4987 if test -n "$CC"; then
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4989 $as_echo "$CC" >&6; }
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4992 $as_echo "no" >&6; }
4996 test -n "$CC" && break
4999 if test -z "$CC"; then
5001 for ac_prog in cl.exe
5003 # Extract the first word of "$ac_prog", so it can be a program name with args.
5004 set dummy $ac_prog; ac_word=$2
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5006 $as_echo_n "checking for $ac_word... " >&6; }
5007 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5008 $as_echo_n "(cached) " >&6
5010 if test -n "$ac_ct_CC"; then
5011 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5017 test -z "$as_dir" && as_dir=.
5018 for ac_exec_ext in '' $ac_executable_extensions; do
5019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5020 ac_cv_prog_ac_ct_CC="$ac_prog"
5021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5030 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5031 if test -n "$ac_ct_CC"; then
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5033 $as_echo "$ac_ct_CC" >&6; }
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5036 $as_echo "no" >&6; }
5040 test -n "$ac_ct_CC" && break
5043 if test "x$ac_ct_CC" = x; then
5046 case $cross_compiling:$ac_tool_warned in
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5049 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5050 ac_tool_warned=yes ;;
5059 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5060 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5061 as_fn_error $? "no acceptable C compiler found in \$PATH
5062 See \`config.log' for more details" "$LINENO" 5; }
5064 # Provide some information about the compiler.
5065 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5068 for ac_option in --version -v -V -qversion; do
5069 { { ac_try="$ac_compiler $ac_option >&5"
5071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5072 *) ac_try_echo=$ac_try;;
5074 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5075 $as_echo "$ac_try_echo"; } >&5
5076 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5078 if test -s conftest.err; then
5080 ... rest of stderr output deleted ...
5081 10q' conftest.err >conftest.er1
5082 cat conftest.er1 >&5
5084 rm -f conftest.er1 conftest.err
5085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5086 test $ac_status = 0; }
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5090 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5091 if ${ac_cv_c_compiler_gnu+:} false; then :
5092 $as_echo_n "(cached) " >&6
5094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5095 /* end confdefs.h. */
5108 if ac_fn_c_try_compile "$LINENO"; then :
5113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5114 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5118 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5119 if test $ac_compiler_gnu = yes; then
5124 ac_test_CFLAGS=${CFLAGS+set}
5125 ac_save_CFLAGS=$CFLAGS
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5127 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5128 if ${ac_cv_prog_cc_g+:} false; then :
5129 $as_echo_n "(cached) " >&6
5131 ac_save_c_werror_flag=$ac_c_werror_flag
5132 ac_c_werror_flag=yes
5135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5136 /* end confdefs.h. */
5146 if ac_fn_c_try_compile "$LINENO"; then :
5150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5151 /* end confdefs.h. */
5161 if ac_fn_c_try_compile "$LINENO"; then :
5164 ac_c_werror_flag=$ac_save_c_werror_flag
5166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5167 /* end confdefs.h. */
5177 if ac_fn_c_try_compile "$LINENO"; then :
5180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5185 ac_c_werror_flag=$ac_save_c_werror_flag
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5188 $as_echo "$ac_cv_prog_cc_g" >&6; }
5189 if test "$ac_test_CFLAGS" = set; then
5190 CFLAGS=$ac_save_CFLAGS
5191 elif test $ac_cv_prog_cc_g = yes; then
5192 if test "$GCC" = yes; then
5198 if test "$GCC" = yes; then
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5205 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5206 if ${ac_cv_prog_cc_c89+:} false; then :
5207 $as_echo_n "(cached) " >&6
5209 ac_cv_prog_cc_c89=no
5211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5212 /* end confdefs.h. */
5215 #include <sys/types.h>
5216 #include <sys/stat.h>
5217 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5218 struct buf { int x; };
5219 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5220 static char *e (p, i)
5226 static char *f (char * (*g) (char **, int), char **p, ...)
5231 s = g (p, va_arg (v,int));
5236 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5237 function prototypes and stuff, but not '\xHH' hex character constants.
5238 These don't provoke an error unfortunately, instead are silently treated
5239 as 'x'. The following induces an error, until -std is added to get
5240 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5241 array size at least. It's necessary to write '\x00'==0 to get something
5242 that's true only with -std. */
5243 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5245 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5246 inside strings and character constants. */
5248 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5250 int test (int i, double x);
5251 struct s1 {int (*f) (int a);};
5252 struct s2 {int (*f) (double a);};
5253 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5259 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5264 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5265 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5267 CC="$ac_save_CC $ac_arg"
5268 if ac_fn_c_try_compile "$LINENO"; then :
5269 ac_cv_prog_cc_c89=$ac_arg
5271 rm -f core conftest.err conftest.$ac_objext
5272 test "x$ac_cv_prog_cc_c89" != "xno" && break
5274 rm -f conftest.$ac_ext
5279 case "x$ac_cv_prog_cc_c89" in
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5282 $as_echo "none needed" >&6; } ;;
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5285 $as_echo "unsupported" >&6; } ;;
5287 CC="$CC $ac_cv_prog_cc_c89"
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5289 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5291 if test "x$ac_cv_prog_cc_c89" != xno; then :
5296 ac_cpp='$CPP $CPPFLAGS'
5297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5301 depcc="$CC" am_compiler_list=
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5304 $as_echo_n "checking dependency style of $depcc... " >&6; }
5305 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5306 $as_echo_n "(cached) " >&6
5308 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5309 # We make a subdir and do the tests there. Otherwise we can end up
5310 # making bogus files that we don't know about and never remove. For
5311 # instance it was reported that on HP-UX the gcc test will end up
5312 # making a dummy file named `D' -- because `-MD' means `put the output
5316 # Copy depcomp to subdir because otherwise we won't find it if we're
5317 # using a relative directory.
5318 cp "$am_depcomp" conftest.dir
5320 # We will build objects and dependencies in a subdirectory because
5321 # it helps to detect inapplicable dependency modes. For instance
5322 # both Tru64's cc and ICC support -MD to output dependencies as a
5323 # side effect of compilation, but ICC will put the dependencies in
5324 # the current directory while Tru64 will put them in the object
5328 am_cv_CC_dependencies_compiler_type=none
5329 if test "$am_compiler_list" = ""; then
5330 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5333 case " $depcc " in #(
5334 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5337 for depmode in $am_compiler_list; do
5338 # Setup a source with many dependencies, because some compilers
5339 # like to wrap large dependency lists on column 80 (with \), and
5340 # we should not choose a depcomp mode which is confused by this.
5342 # We need to recreate these files for each test, as the compiler may
5343 # overwrite some of them when testing with obscure command lines.
5344 # This happens at least with the AIX C compiler.
5346 for i in 1 2 3 4 5 6; do
5347 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5348 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5349 # Solaris 8's {/usr,}/bin/sh.
5350 touch sub/conftst$i.h
5352 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5354 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5355 # mode. It turns out that the SunPro C++ compiler does not properly
5356 # handle `-M -o', and we need to detect this. Also, some Intel
5357 # versions had trouble with output in subdirs
5358 am__obj=sub/conftest.${OBJEXT-o}
5359 am__minus_obj="-o $am__obj"
5362 # This depmode causes a compiler race in universal mode.
5363 test "$am__universal" = false || continue
5366 # after this tag, mechanisms are not by side-effect, so they'll
5367 # only be used when explicitly requested
5368 if test "x$enable_dependency_tracking" = xyes; then
5374 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5375 # This compiler won't grok `-c -o', but also, the minuso test has
5376 # not run yet. These depmodes are late enough in the game, and
5377 # so weak that their functioning should not be impacted.
5378 am__obj=conftest.${OBJEXT-o}
5383 if depmode=$depmode \
5384 source=sub/conftest.c object=$am__obj \
5385 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5386 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5387 >/dev/null 2>conftest.err &&
5388 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5389 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5390 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5391 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5392 # icc doesn't choke on unknown options, it will just issue warnings
5393 # or remarks (even with -Werror). So we grep stderr for any message
5394 # that says an option was ignored or not supported.
5395 # When given -MP, icc 7.0 and 7.1 complain thusly:
5396 # icc: Command line warning: ignoring option '-M'; no argument required
5397 # The diagnosis changed in icc 8.0:
5398 # icc: Command line remark: option '-MP' not supported
5399 if (grep 'ignoring option' conftest.err ||
5400 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5401 am_cv_CC_dependencies_compiler_type=$depmode
5410 am_cv_CC_dependencies_compiler_type=none
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5415 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5416 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5419 test "x$enable_dependency_tracking" != xno \
5420 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5422 am__fastdepCC_FALSE='#'
5424 am__fastdepCC_TRUE='#'
5425 am__fastdepCC_FALSE=
5430 ac_cpp='$CPP $CPPFLAGS'
5431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5434 if test -n "$ac_tool_prefix"; then
5435 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5436 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5438 $as_echo_n "checking for $ac_word... " >&6; }
5439 if ${ac_cv_prog_CC+:} false; then :
5440 $as_echo_n "(cached) " >&6
5442 if test -n "$CC"; then
5443 ac_cv_prog_CC="$CC" # Let the user override the test.
5445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5449 test -z "$as_dir" && as_dir=.
5450 for ac_exec_ext in '' $ac_executable_extensions; do
5451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5452 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5463 if test -n "$CC"; then
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5465 $as_echo "$CC" >&6; }
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5468 $as_echo "no" >&6; }
5473 if test -z "$ac_cv_prog_CC"; then
5475 # Extract the first word of "gcc", so it can be a program name with args.
5476 set dummy gcc; ac_word=$2
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5478 $as_echo_n "checking for $ac_word... " >&6; }
5479 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5480 $as_echo_n "(cached) " >&6
5482 if test -n "$ac_ct_CC"; then
5483 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5489 test -z "$as_dir" && as_dir=.
5490 for ac_exec_ext in '' $ac_executable_extensions; do
5491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5492 ac_cv_prog_ac_ct_CC="gcc"
5493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5502 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5503 if test -n "$ac_ct_CC"; then
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5505 $as_echo "$ac_ct_CC" >&6; }
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5508 $as_echo "no" >&6; }
5511 if test "x$ac_ct_CC" = x; then
5514 case $cross_compiling:$ac_tool_warned in
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5517 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5518 ac_tool_warned=yes ;;
5526 if test -z "$CC"; then
5527 if test -n "$ac_tool_prefix"; then
5528 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5529 set dummy ${ac_tool_prefix}cc; ac_word=$2
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5531 $as_echo_n "checking for $ac_word... " >&6; }
5532 if ${ac_cv_prog_CC+:} false; then :
5533 $as_echo_n "(cached) " >&6
5535 if test -n "$CC"; then
5536 ac_cv_prog_CC="$CC" # Let the user override the test.
5538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5542 test -z "$as_dir" && as_dir=.
5543 for ac_exec_ext in '' $ac_executable_extensions; do
5544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5545 ac_cv_prog_CC="${ac_tool_prefix}cc"
5546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5556 if test -n "$CC"; then
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5558 $as_echo "$CC" >&6; }
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5561 $as_echo "no" >&6; }
5567 if test -z "$CC"; then
5568 # Extract the first word of "cc", so it can be a program name with args.
5569 set dummy cc; ac_word=$2
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5571 $as_echo_n "checking for $ac_word... " >&6; }
5572 if ${ac_cv_prog_CC+:} false; then :
5573 $as_echo_n "(cached) " >&6
5575 if test -n "$CC"; then
5576 ac_cv_prog_CC="$CC" # Let the user override the test.
5579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5583 test -z "$as_dir" && as_dir=.
5584 for ac_exec_ext in '' $ac_executable_extensions; do
5585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5586 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5587 ac_prog_rejected=yes
5591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5598 if test $ac_prog_rejected = yes; then
5599 # We found a bogon in the path, so make sure we never use it.
5600 set dummy $ac_cv_prog_CC
5602 if test $# != 0; then
5603 # We chose a different compiler from the bogus one.
5604 # However, it has the same basename, so the bogon will be chosen
5605 # first if we set CC to just the basename; use the full file name.
5607 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5613 if test -n "$CC"; then
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5615 $as_echo "$CC" >&6; }
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5618 $as_echo "no" >&6; }
5623 if test -z "$CC"; then
5624 if test -n "$ac_tool_prefix"; then
5625 for ac_prog in cl.exe
5627 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5628 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5630 $as_echo_n "checking for $ac_word... " >&6; }
5631 if ${ac_cv_prog_CC+:} false; then :
5632 $as_echo_n "(cached) " >&6
5634 if test -n "$CC"; then
5635 ac_cv_prog_CC="$CC" # Let the user override the test.
5637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5641 test -z "$as_dir" && as_dir=.
5642 for ac_exec_ext in '' $ac_executable_extensions; do
5643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5644 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5655 if test -n "$CC"; then
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5657 $as_echo "$CC" >&6; }
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5660 $as_echo "no" >&6; }
5664 test -n "$CC" && break
5667 if test -z "$CC"; then
5669 for ac_prog in cl.exe
5671 # Extract the first word of "$ac_prog", so it can be a program name with args.
5672 set dummy $ac_prog; ac_word=$2
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5674 $as_echo_n "checking for $ac_word... " >&6; }
5675 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5676 $as_echo_n "(cached) " >&6
5678 if test -n "$ac_ct_CC"; then
5679 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5685 test -z "$as_dir" && as_dir=.
5686 for ac_exec_ext in '' $ac_executable_extensions; do
5687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5688 ac_cv_prog_ac_ct_CC="$ac_prog"
5689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5698 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5699 if test -n "$ac_ct_CC"; then
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5701 $as_echo "$ac_ct_CC" >&6; }
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5704 $as_echo "no" >&6; }
5708 test -n "$ac_ct_CC" && break
5711 if test "x$ac_ct_CC" = x; then
5714 case $cross_compiling:$ac_tool_warned in
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5717 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5718 ac_tool_warned=yes ;;
5727 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5728 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5729 as_fn_error $? "no acceptable C compiler found in \$PATH
5730 See \`config.log' for more details" "$LINENO" 5; }
5732 # Provide some information about the compiler.
5733 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5736 for ac_option in --version -v -V -qversion; do
5737 { { ac_try="$ac_compiler $ac_option >&5"
5739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5740 *) ac_try_echo=$ac_try;;
5742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5743 $as_echo "$ac_try_echo"; } >&5
5744 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5746 if test -s conftest.err; then
5748 ... rest of stderr output deleted ...
5749 10q' conftest.err >conftest.er1
5750 cat conftest.er1 >&5
5752 rm -f conftest.er1 conftest.err
5753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5754 test $ac_status = 0; }
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5758 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5759 if ${ac_cv_c_compiler_gnu+:} false; then :
5760 $as_echo_n "(cached) " >&6
5762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5763 /* end confdefs.h. */
5776 if ac_fn_c_try_compile "$LINENO"; then :
5781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5782 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5786 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5787 if test $ac_compiler_gnu = yes; then
5792 ac_test_CFLAGS=${CFLAGS+set}
5793 ac_save_CFLAGS=$CFLAGS
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5795 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5796 if ${ac_cv_prog_cc_g+:} false; then :
5797 $as_echo_n "(cached) " >&6
5799 ac_save_c_werror_flag=$ac_c_werror_flag
5800 ac_c_werror_flag=yes
5803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5804 /* end confdefs.h. */
5814 if ac_fn_c_try_compile "$LINENO"; then :
5818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5819 /* end confdefs.h. */
5829 if ac_fn_c_try_compile "$LINENO"; then :
5832 ac_c_werror_flag=$ac_save_c_werror_flag
5834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5835 /* end confdefs.h. */
5845 if ac_fn_c_try_compile "$LINENO"; then :
5848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5853 ac_c_werror_flag=$ac_save_c_werror_flag
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5856 $as_echo "$ac_cv_prog_cc_g" >&6; }
5857 if test "$ac_test_CFLAGS" = set; then
5858 CFLAGS=$ac_save_CFLAGS
5859 elif test $ac_cv_prog_cc_g = yes; then
5860 if test "$GCC" = yes; then
5866 if test "$GCC" = yes; then
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5873 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5874 if ${ac_cv_prog_cc_c89+:} false; then :
5875 $as_echo_n "(cached) " >&6
5877 ac_cv_prog_cc_c89=no
5879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5880 /* end confdefs.h. */
5883 #include <sys/types.h>
5884 #include <sys/stat.h>
5885 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5886 struct buf { int x; };
5887 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5888 static char *e (p, i)
5894 static char *f (char * (*g) (char **, int), char **p, ...)
5899 s = g (p, va_arg (v,int));
5904 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5905 function prototypes and stuff, but not '\xHH' hex character constants.
5906 These don't provoke an error unfortunately, instead are silently treated
5907 as 'x'. The following induces an error, until -std is added to get
5908 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5909 array size at least. It's necessary to write '\x00'==0 to get something
5910 that's true only with -std. */
5911 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5913 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5914 inside strings and character constants. */
5916 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5918 int test (int i, double x);
5919 struct s1 {int (*f) (int a);};
5920 struct s2 {int (*f) (double a);};
5921 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5927 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5932 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5933 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5935 CC="$ac_save_CC $ac_arg"
5936 if ac_fn_c_try_compile "$LINENO"; then :
5937 ac_cv_prog_cc_c89=$ac_arg
5939 rm -f core conftest.err conftest.$ac_objext
5940 test "x$ac_cv_prog_cc_c89" != "xno" && break
5942 rm -f conftest.$ac_ext
5947 case "x$ac_cv_prog_cc_c89" in
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5950 $as_echo "none needed" >&6; } ;;
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5953 $as_echo "unsupported" >&6; } ;;
5955 CC="$CC $ac_cv_prog_cc_c89"
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5957 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5959 if test "x$ac_cv_prog_cc_c89" != xno; then :
5964 ac_cpp='$CPP $CPPFLAGS'
5965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5969 depcc="$CC" am_compiler_list=
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5972 $as_echo_n "checking dependency style of $depcc... " >&6; }
5973 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5974 $as_echo_n "(cached) " >&6
5976 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5977 # We make a subdir and do the tests there. Otherwise we can end up
5978 # making bogus files that we don't know about and never remove. For
5979 # instance it was reported that on HP-UX the gcc test will end up
5980 # making a dummy file named `D' -- because `-MD' means `put the output
5984 # Copy depcomp to subdir because otherwise we won't find it if we're
5985 # using a relative directory.
5986 cp "$am_depcomp" conftest.dir
5988 # We will build objects and dependencies in a subdirectory because
5989 # it helps to detect inapplicable dependency modes. For instance
5990 # both Tru64's cc and ICC support -MD to output dependencies as a
5991 # side effect of compilation, but ICC will put the dependencies in
5992 # the current directory while Tru64 will put them in the object
5996 am_cv_CC_dependencies_compiler_type=none
5997 if test "$am_compiler_list" = ""; then
5998 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6001 case " $depcc " in #(
6002 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6005 for depmode in $am_compiler_list; do
6006 # Setup a source with many dependencies, because some compilers
6007 # like to wrap large dependency lists on column 80 (with \), and
6008 # we should not choose a depcomp mode which is confused by this.
6010 # We need to recreate these files for each test, as the compiler may
6011 # overwrite some of them when testing with obscure command lines.
6012 # This happens at least with the AIX C compiler.
6014 for i in 1 2 3 4 5 6; do
6015 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6016 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6017 # Solaris 8's {/usr,}/bin/sh.
6018 touch sub/conftst$i.h
6020 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6022 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6023 # mode. It turns out that the SunPro C++ compiler does not properly
6024 # handle `-M -o', and we need to detect this. Also, some Intel
6025 # versions had trouble with output in subdirs
6026 am__obj=sub/conftest.${OBJEXT-o}
6027 am__minus_obj="-o $am__obj"
6030 # This depmode causes a compiler race in universal mode.
6031 test "$am__universal" = false || continue
6034 # after this tag, mechanisms are not by side-effect, so they'll
6035 # only be used when explicitly requested
6036 if test "x$enable_dependency_tracking" = xyes; then
6042 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6043 # This compiler won't grok `-c -o', but also, the minuso test has
6044 # not run yet. These depmodes are late enough in the game, and
6045 # so weak that their functioning should not be impacted.
6046 am__obj=conftest.${OBJEXT-o}
6051 if depmode=$depmode \
6052 source=sub/conftest.c object=$am__obj \
6053 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6054 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6055 >/dev/null 2>conftest.err &&
6056 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6057 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6058 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6059 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6060 # icc doesn't choke on unknown options, it will just issue warnings
6061 # or remarks (even with -Werror). So we grep stderr for any message
6062 # that says an option was ignored or not supported.
6063 # When given -MP, icc 7.0 and 7.1 complain thusly:
6064 # icc: Command line warning: ignoring option '-M'; no argument required
6065 # The diagnosis changed in icc 8.0:
6066 # icc: Command line remark: option '-MP' not supported
6067 if (grep 'ignoring option' conftest.err ||
6068 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6069 am_cv_CC_dependencies_compiler_type=$depmode
6078 am_cv_CC_dependencies_compiler_type=none
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6083 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6084 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6087 test "x$enable_dependency_tracking" != xno \
6088 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6090 am__fastdepCC_FALSE='#'
6092 am__fastdepCC_TRUE='#'
6093 am__fastdepCC_FALSE=
6098 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6101 $as_echo_n "checking for inline... " >&6; }
6102 if ${ac_cv_c_inline+:} false; then :
6103 $as_echo_n "(cached) " >&6
6106 for ac_kw in inline __inline__ __inline; do
6107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6108 /* end confdefs.h. */
6111 static $ac_kw foo_t static_foo () {return 0; }
6112 $ac_kw foo_t foo () {return 0; }
6116 if ac_fn_c_try_compile "$LINENO"; then :
6117 ac_cv_c_inline=$ac_kw
6119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6120 test "$ac_cv_c_inline" != no && break
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6125 $as_echo "$ac_cv_c_inline" >&6; }
6127 case $ac_cv_c_inline in
6130 case $ac_cv_c_inline in
6132 *) ac_val=$ac_cv_c_inline;;
6134 cat >>confdefs.h <<_ACEOF
6136 #define inline $ac_val
6143 ac_cpp='$CPP $CPPFLAGS'
6144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6148 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6149 # On Suns, sometimes $CPP names a directory.
6150 if test -n "$CPP" && test -d "$CPP"; then
6153 if test -z "$CPP"; then
6154 if ${ac_cv_prog_CPP+:} false; then :
6155 $as_echo_n "(cached) " >&6
6157 # Double quotes because CPP needs to be expanded
6158 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6161 for ac_c_preproc_warn_flag in '' yes
6163 # Use a header file that comes with gcc, so configuring glibc
6164 # with a fresh cross-compiler works.
6165 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6166 # <limits.h> exists even on freestanding compilers.
6167 # On the NeXT, cc -E runs the code through the compiler's parser,
6168 # not just through cpp. "Syntax error" is here to catch this case.
6169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6170 /* end confdefs.h. */
6172 # include <limits.h>
6174 # include <assert.h>
6178 if ac_fn_c_try_cpp "$LINENO"; then :
6181 # Broken: fails on valid input.
6184 rm -f conftest.err conftest.i conftest.$ac_ext
6186 # OK, works on sane cases. Now check whether nonexistent headers
6187 # can be detected and how.
6188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6189 /* end confdefs.h. */
6190 #include <ac_nonexistent.h>
6192 if ac_fn_c_try_cpp "$LINENO"; then :
6193 # Broken: success on invalid input.
6196 # Passes both tests.
6200 rm -f conftest.err conftest.i conftest.$ac_ext
6203 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6204 rm -f conftest.i conftest.err conftest.$ac_ext
6205 if $ac_preproc_ok; then :
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6218 $as_echo "$CPP" >&6; }
6220 for ac_c_preproc_warn_flag in '' yes
6222 # Use a header file that comes with gcc, so configuring glibc
6223 # with a fresh cross-compiler works.
6224 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6225 # <limits.h> exists even on freestanding compilers.
6226 # On the NeXT, cc -E runs the code through the compiler's parser,
6227 # not just through cpp. "Syntax error" is here to catch this case.
6228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6229 /* end confdefs.h. */
6231 # include <limits.h>
6233 # include <assert.h>
6237 if ac_fn_c_try_cpp "$LINENO"; then :
6240 # Broken: fails on valid input.
6243 rm -f conftest.err conftest.i conftest.$ac_ext
6245 # OK, works on sane cases. Now check whether nonexistent headers
6246 # can be detected and how.
6247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6248 /* end confdefs.h. */
6249 #include <ac_nonexistent.h>
6251 if ac_fn_c_try_cpp "$LINENO"; then :
6252 # Broken: success on invalid input.
6255 # Passes both tests.
6259 rm -f conftest.err conftest.i conftest.$ac_ext
6262 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6263 rm -f conftest.i conftest.err conftest.$ac_ext
6264 if $ac_preproc_ok; then :
6267 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6268 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6269 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6270 See \`config.log' for more details" "$LINENO" 5; }
6274 ac_cpp='$CPP $CPPFLAGS'
6275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6281 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6282 if ${ac_cv_path_GREP+:} false; then :
6283 $as_echo_n "(cached) " >&6
6285 if test -z "$GREP"; then
6286 ac_path_GREP_found=false
6287 # Loop through the user's path and test for each of PROGNAME-LIST
6288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6289 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6292 test -z "$as_dir" && as_dir=.
6293 for ac_prog in grep ggrep; do
6294 for ac_exec_ext in '' $ac_executable_extensions; do
6295 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6296 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6297 # Check for GNU ac_path_GREP and select it if it is found.
6298 # Check for GNU $ac_path_GREP
6299 case `"$ac_path_GREP" --version 2>&1` in
6301 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6304 $as_echo_n 0123456789 >"conftest.in"
6307 cat "conftest.in" "conftest.in" >"conftest.tmp"
6308 mv "conftest.tmp" "conftest.in"
6309 cp "conftest.in" "conftest.nl"
6310 $as_echo 'GREP' >> "conftest.nl"
6311 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6312 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6313 as_fn_arith $ac_count + 1 && ac_count=$as_val
6314 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6315 # Best one so far, save it but keep looking for a better one
6316 ac_cv_path_GREP="$ac_path_GREP"
6317 ac_path_GREP_max=$ac_count
6319 # 10*(2^10) chars as input seems more than enough
6320 test $ac_count -gt 10 && break
6322 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6325 $ac_path_GREP_found && break 3
6330 if test -z "$ac_cv_path_GREP"; then
6331 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6334 ac_cv_path_GREP=$GREP
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6339 $as_echo "$ac_cv_path_GREP" >&6; }
6340 GREP="$ac_cv_path_GREP"
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6344 $as_echo_n "checking for egrep... " >&6; }
6345 if ${ac_cv_path_EGREP+:} false; then :
6346 $as_echo_n "(cached) " >&6
6348 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6349 then ac_cv_path_EGREP="$GREP -E"
6351 if test -z "$EGREP"; then
6352 ac_path_EGREP_found=false
6353 # Loop through the user's path and test for each of PROGNAME-LIST
6354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6358 test -z "$as_dir" && as_dir=.
6359 for ac_prog in egrep; do
6360 for ac_exec_ext in '' $ac_executable_extensions; do
6361 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6362 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6363 # Check for GNU ac_path_EGREP and select it if it is found.
6364 # Check for GNU $ac_path_EGREP
6365 case `"$ac_path_EGREP" --version 2>&1` in
6367 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6370 $as_echo_n 0123456789 >"conftest.in"
6373 cat "conftest.in" "conftest.in" >"conftest.tmp"
6374 mv "conftest.tmp" "conftest.in"
6375 cp "conftest.in" "conftest.nl"
6376 $as_echo 'EGREP' >> "conftest.nl"
6377 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6378 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6379 as_fn_arith $ac_count + 1 && ac_count=$as_val
6380 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6381 # Best one so far, save it but keep looking for a better one
6382 ac_cv_path_EGREP="$ac_path_EGREP"
6383 ac_path_EGREP_max=$ac_count
6385 # 10*(2^10) chars as input seems more than enough
6386 test $ac_count -gt 10 && break
6388 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6391 $ac_path_EGREP_found && break 3
6396 if test -z "$ac_cv_path_EGREP"; then
6397 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6400 ac_cv_path_EGREP=$EGREP
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6406 $as_echo "$ac_cv_path_EGREP" >&6; }
6407 EGREP="$ac_cv_path_EGREP"
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6411 $as_echo_n "checking for ANSI C header files... " >&6; }
6412 if ${ac_cv_header_stdc+:} false; then :
6413 $as_echo_n "(cached) " >&6
6415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6416 /* end confdefs.h. */
6430 if ac_fn_c_try_compile "$LINENO"; then :
6431 ac_cv_header_stdc=yes
6433 ac_cv_header_stdc=no
6435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6437 if test $ac_cv_header_stdc = yes; then
6438 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6440 /* end confdefs.h. */
6444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6445 $EGREP "memchr" >/dev/null 2>&1; then :
6448 ac_cv_header_stdc=no
6454 if test $ac_cv_header_stdc = yes; then
6455 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6457 /* end confdefs.h. */
6461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6462 $EGREP "free" >/dev/null 2>&1; then :
6465 ac_cv_header_stdc=no
6471 if test $ac_cv_header_stdc = yes; then
6472 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6473 if test "$cross_compiling" = yes; then :
6476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6477 /* end confdefs.h. */
6480 #if ((' ' & 0x0FF) == 0x020)
6481 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6482 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6484 # define ISLOWER(c) \
6485 (('a' <= (c) && (c) <= 'i') \
6486 || ('j' <= (c) && (c) <= 'r') \
6487 || ('s' <= (c) && (c) <= 'z'))
6488 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6491 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6496 for (i = 0; i < 256; i++)
6497 if (XOR (islower (i), ISLOWER (i))
6498 || toupper (i) != TOUPPER (i))
6503 if ac_fn_c_try_run "$LINENO"; then :
6506 ac_cv_header_stdc=no
6508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6509 conftest.$ac_objext conftest.beam conftest.$ac_ext
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6515 $as_echo "$ac_cv_header_stdc" >&6; }
6516 if test $ac_cv_header_stdc = yes; then
6518 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6524 $as_echo_n "checking whether ln -s works... " >&6; }
6526 if test "$LN_S" = "ln -s"; then
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6528 $as_echo "yes" >&6; }
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6531 $as_echo "no, using $LN_S" >&6; }
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6535 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6537 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6538 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6539 $as_echo_n "(cached) " >&6
6541 cat >conftest.make <<\_ACEOF
6544 @echo '@@@%%%=$(MAKE)=@@@%%%'
6546 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6547 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6549 eval ac_cv_prog_make_${ac_make}_set=yes;;
6551 eval ac_cv_prog_make_${ac_make}_set=no;;
6555 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6557 $as_echo "yes" >&6; }
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6561 $as_echo "no" >&6; }
6562 SET_MAKE="MAKE=${MAKE-make}"
6565 # Extract the first word of "rm", so it can be a program name with args.
6566 set dummy rm; ac_word=$2
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6568 $as_echo_n "checking for $ac_word... " >&6; }
6569 if ${ac_cv_path_RM+:} false; then :
6570 $as_echo_n "(cached) " >&6
6574 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6581 test -z "$as_dir" && as_dir=.
6582 for ac_exec_ext in '' $ac_executable_extensions; do
6583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6584 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6592 test -z "$ac_cv_path_RM" && ac_cv_path_RM="/bin/rm"
6597 if test -n "$RM"; then
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
6599 $as_echo "$RM" >&6; }
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6602 $as_echo "no" >&6; }
6606 # Extract the first word of "mv", so it can be a program name with args.
6607 set dummy mv; ac_word=$2
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6609 $as_echo_n "checking for $ac_word... " >&6; }
6610 if ${ac_cv_path_MV+:} false; then :
6611 $as_echo_n "(cached) " >&6
6615 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6622 test -z "$as_dir" && as_dir=.
6623 for ac_exec_ext in '' $ac_executable_extensions; do
6624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6625 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6633 test -z "$ac_cv_path_MV" && ac_cv_path_MV="/bin/mv"
6638 if test -n "$MV"; then
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
6640 $as_echo "$MV" >&6; }
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6643 $as_echo "no" >&6; }
6647 # Extract the first word of "tar", so it can be a program name with args.
6648 set dummy tar; ac_word=$2
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6650 $as_echo_n "checking for $ac_word... " >&6; }
6651 if ${ac_cv_path_TAR+:} false; then :
6652 $as_echo_n "(cached) " >&6
6656 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6663 test -z "$as_dir" && as_dir=.
6664 for ac_exec_ext in '' $ac_executable_extensions; do
6665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6666 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6674 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="/bin/tar"
6679 if test -n "$TAR"; then
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
6681 $as_echo "$TAR" >&6; }
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6684 $as_echo "no" >&6; }
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6693 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6698 macro_version='2.4.2'
6699 macro_revision='1.3337'
6713 ltmain="$ac_aux_dir/ltmain.sh"
6715 # Backslashify metacharacters that are still active within
6716 # double-quoted strings.
6717 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6719 # Same as above, but do not quote variable references.
6720 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6722 # Sed substitution to delay expansion of an escaped shell variable in a
6723 # double_quote_subst'ed string.
6724 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6726 # Sed substitution to delay expansion of an escaped single quote.
6727 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6729 # Sed substitution to avoid accidental globbing in evaled expressions
6730 no_glob_subst='s/\*/\\\*/g'
6732 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6733 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6734 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6737 $as_echo_n "checking how to print strings... " >&6; }
6738 # Test print first, because it will be a builtin if present.
6739 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6740 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6742 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6745 # Use this function as a fallback that always works.
6746 func_fallback_echo ()
6748 eval 'cat <<_LTECHO_EOF
6752 ECHO='func_fallback_echo'
6755 # func_echo_all arg...
6756 # Invoke $ECHO with all args, space-separated.
6763 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6764 $as_echo "printf" >&6; } ;;
6765 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6766 $as_echo "print -r" >&6; } ;;
6767 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6768 $as_echo "cat" >&6; } ;;
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6785 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6786 if ${ac_cv_path_SED+:} false; then :
6787 $as_echo_n "(cached) " >&6
6789 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6790 for ac_i in 1 2 3 4 5 6 7; do
6791 ac_script="$ac_script$as_nl$ac_script"
6793 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6794 { ac_script=; unset ac_script;}
6795 if test -z "$SED"; then
6796 ac_path_SED_found=false
6797 # Loop through the user's path and test for each of PROGNAME-LIST
6798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6802 test -z "$as_dir" && as_dir=.
6803 for ac_prog in sed gsed; do
6804 for ac_exec_ext in '' $ac_executable_extensions; do
6805 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6806 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6807 # Check for GNU ac_path_SED and select it if it is found.
6808 # Check for GNU $ac_path_SED
6809 case `"$ac_path_SED" --version 2>&1` in
6811 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6814 $as_echo_n 0123456789 >"conftest.in"
6817 cat "conftest.in" "conftest.in" >"conftest.tmp"
6818 mv "conftest.tmp" "conftest.in"
6819 cp "conftest.in" "conftest.nl"
6820 $as_echo '' >> "conftest.nl"
6821 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6822 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6823 as_fn_arith $ac_count + 1 && ac_count=$as_val
6824 if test $ac_count -gt ${ac_path_SED_max-0}; then
6825 # Best one so far, save it but keep looking for a better one
6826 ac_cv_path_SED="$ac_path_SED"
6827 ac_path_SED_max=$ac_count
6829 # 10*(2^10) chars as input seems more than enough
6830 test $ac_count -gt 10 && break
6832 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6835 $ac_path_SED_found && break 3
6840 if test -z "$ac_cv_path_SED"; then
6841 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6849 $as_echo "$ac_cv_path_SED" >&6; }
6850 SED="$ac_cv_path_SED"
6853 test -z "$SED" && SED=sed
6854 Xsed="$SED -e 1s/^X//"
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6867 $as_echo_n "checking for fgrep... " >&6; }
6868 if ${ac_cv_path_FGREP+:} false; then :
6869 $as_echo_n "(cached) " >&6
6871 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6872 then ac_cv_path_FGREP="$GREP -F"
6874 if test -z "$FGREP"; then
6875 ac_path_FGREP_found=false
6876 # Loop through the user's path and test for each of PROGNAME-LIST
6877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6878 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6881 test -z "$as_dir" && as_dir=.
6882 for ac_prog in fgrep; do
6883 for ac_exec_ext in '' $ac_executable_extensions; do
6884 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6885 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6886 # Check for GNU ac_path_FGREP and select it if it is found.
6887 # Check for GNU $ac_path_FGREP
6888 case `"$ac_path_FGREP" --version 2>&1` in
6890 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6893 $as_echo_n 0123456789 >"conftest.in"
6896 cat "conftest.in" "conftest.in" >"conftest.tmp"
6897 mv "conftest.tmp" "conftest.in"
6898 cp "conftest.in" "conftest.nl"
6899 $as_echo 'FGREP' >> "conftest.nl"
6900 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6901 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6902 as_fn_arith $ac_count + 1 && ac_count=$as_val
6903 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6904 # Best one so far, save it but keep looking for a better one
6905 ac_cv_path_FGREP="$ac_path_FGREP"
6906 ac_path_FGREP_max=$ac_count
6908 # 10*(2^10) chars as input seems more than enough
6909 test $ac_count -gt 10 && break
6911 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6914 $ac_path_FGREP_found && break 3
6919 if test -z "$ac_cv_path_FGREP"; then
6920 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6923 ac_cv_path_FGREP=$FGREP
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6929 $as_echo "$ac_cv_path_FGREP" >&6; }
6930 FGREP="$ac_cv_path_FGREP"
6933 test -z "$GREP" && GREP=grep
6953 # Check whether --with-gnu-ld was given.
6954 if test "${with_gnu_ld+set}" = set; then :
6955 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6961 if test "$GCC" = yes; then
6962 # Check if gcc -print-prog-name=ld gives a path.
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6964 $as_echo_n "checking for ld used by $CC... " >&6; }
6967 # gcc leaves a trailing carriage return which upsets mingw
6968 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6970 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6973 # Accept absolute paths.
6975 re_direlt='/[^/][^/]*/\.\./'
6976 # Canonicalize the pathname of ld
6977 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6978 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6979 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6981 test -z "$LD" && LD="$ac_prog"
6984 # If it fails, then pretend we aren't using GCC.
6988 # If it is relative, then search for the first ld in PATH.
6992 elif test "$with_gnu_ld" = yes; then
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6994 $as_echo_n "checking for GNU ld... " >&6; }
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6997 $as_echo_n "checking for non-GNU ld... " >&6; }
6999 if ${lt_cv_path_LD+:} false; then :
7000 $as_echo_n "(cached) " >&6
7002 if test -z "$LD"; then
7003 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7004 for ac_dir in $PATH; do
7006 test -z "$ac_dir" && ac_dir=.
7007 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7008 lt_cv_path_LD="$ac_dir/$ac_prog"
7009 # Check to see if the program is GNU ld. I'd rather use --version,
7010 # but apparently some variants of GNU ld only accept -v.
7011 # Break only if it was the GNU/non-GNU ld that we prefer.
7012 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7013 *GNU* | *'with BFD'*)
7014 test "$with_gnu_ld" != no && break
7017 test "$with_gnu_ld" != yes && break
7024 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7029 if test -n "$LD"; then
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7031 $as_echo "$LD" >&6; }
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7034 $as_echo "no" >&6; }
7036 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7038 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7039 if ${lt_cv_prog_gnu_ld+:} false; then :
7040 $as_echo_n "(cached) " >&6
7042 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7043 case `$LD -v 2>&1 </dev/null` in
7044 *GNU* | *'with BFD'*)
7045 lt_cv_prog_gnu_ld=yes
7048 lt_cv_prog_gnu_ld=no
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7053 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7054 with_gnu_ld=$lt_cv_prog_gnu_ld
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7065 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7066 if ${lt_cv_path_NM+:} false; then :
7067 $as_echo_n "(cached) " >&6
7069 if test -n "$NM"; then
7070 # Let the user override the test.
7073 lt_nm_to_check="${ac_tool_prefix}nm"
7074 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7075 lt_nm_to_check="$lt_nm_to_check nm"
7077 for lt_tmp_nm in $lt_nm_to_check; do
7078 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7079 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7081 test -z "$ac_dir" && ac_dir=.
7082 tmp_nm="$ac_dir/$lt_tmp_nm"
7083 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7084 # Check to see if the nm accepts a BSD-compat flag.
7085 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7086 # nm: unknown option "B" ignored
7087 # Tru64's nm complains that /dev/null is an invalid object file
7088 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7089 */dev/null* | *'Invalid file or object type'*)
7090 lt_cv_path_NM="$tmp_nm -B"
7094 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7096 lt_cv_path_NM="$tmp_nm -p"
7100 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7101 continue # so that we can try to find one that supports BSD flags
7110 : ${lt_cv_path_NM=no}
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7114 $as_echo "$lt_cv_path_NM" >&6; }
7115 if test "$lt_cv_path_NM" != "no"; then
7118 # Didn't find any BSD compatible name lister, look for dumpbin.
7119 if test -n "$DUMPBIN"; then :
7120 # Let the user override the test.
7122 if test -n "$ac_tool_prefix"; then
7123 for ac_prog in dumpbin "link -dump"
7125 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7126 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7128 $as_echo_n "checking for $ac_word... " >&6; }
7129 if ${ac_cv_prog_DUMPBIN+:} false; then :
7130 $as_echo_n "(cached) " >&6
7132 if test -n "$DUMPBIN"; then
7133 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139 test -z "$as_dir" && as_dir=.
7140 for ac_exec_ext in '' $ac_executable_extensions; do
7141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7142 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7152 DUMPBIN=$ac_cv_prog_DUMPBIN
7153 if test -n "$DUMPBIN"; then
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7155 $as_echo "$DUMPBIN" >&6; }
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7158 $as_echo "no" >&6; }
7162 test -n "$DUMPBIN" && break
7165 if test -z "$DUMPBIN"; then
7166 ac_ct_DUMPBIN=$DUMPBIN
7167 for ac_prog in dumpbin "link -dump"
7169 # Extract the first word of "$ac_prog", so it can be a program name with args.
7170 set dummy $ac_prog; ac_word=$2
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7172 $as_echo_n "checking for $ac_word... " >&6; }
7173 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7174 $as_echo_n "(cached) " >&6
7176 if test -n "$ac_ct_DUMPBIN"; then
7177 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7183 test -z "$as_dir" && as_dir=.
7184 for ac_exec_ext in '' $ac_executable_extensions; do
7185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7186 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7196 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7197 if test -n "$ac_ct_DUMPBIN"; then
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7199 $as_echo "$ac_ct_DUMPBIN" >&6; }
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7202 $as_echo "no" >&6; }
7206 test -n "$ac_ct_DUMPBIN" && break
7209 if test "x$ac_ct_DUMPBIN" = x; then
7212 case $cross_compiling:$ac_tool_warned in
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7215 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7216 ac_tool_warned=yes ;;
7218 DUMPBIN=$ac_ct_DUMPBIN
7222 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7224 DUMPBIN="$DUMPBIN -symbols"
7232 if test "$DUMPBIN" != ":"; then
7236 test -z "$NM" && NM=nm
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7244 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7245 if ${lt_cv_nm_interface+:} false; then :
7246 $as_echo_n "(cached) " >&6
7248 lt_cv_nm_interface="BSD nm"
7249 echo "int some_variable = 0;" > conftest.$ac_ext
7250 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7251 (eval "$ac_compile" 2>conftest.err)
7252 cat conftest.err >&5
7253 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7254 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7255 cat conftest.err >&5
7256 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7257 cat conftest.out >&5
7258 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7259 lt_cv_nm_interface="MS dumpbin"
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7264 $as_echo "$lt_cv_nm_interface" >&6; }
7266 # find the maximum length of command line arguments
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7268 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7269 if ${lt_cv_sys_max_cmd_len+:} false; then :
7270 $as_echo_n "(cached) " >&6
7277 # On DJGPP, this test can blow up pretty badly due to problems in libc
7278 # (any single argument exceeding 2000 bytes causes a buffer overrun
7279 # during glob expansion). Even if it were fixed, the result of this
7280 # check would be larger than it should be.
7281 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7285 # Under GNU Hurd, this test is not required because there is
7286 # no limit to the length of command line arguments.
7287 # Libtool will interpret -1 as no limit whatsoever
7288 lt_cv_sys_max_cmd_len=-1;
7291 cygwin* | mingw* | cegcc*)
7292 # On Win9x/ME, this test blows up -- it succeeds, but takes
7293 # about 5 minutes as the teststring grows exponentially.
7294 # Worse, since 9x/ME are not pre-emptively multitasking,
7295 # you end up with a "frozen" computer, even though with patience
7296 # the test eventually succeeds (with a max line length of 256k).
7297 # Instead, let's just punt: use the minimum linelength reported by
7298 # all of the supported platforms: 8192 (on NT/2K/XP).
7299 lt_cv_sys_max_cmd_len=8192;
7303 # On MiNT this can take a long time and run out of memory.
7304 lt_cv_sys_max_cmd_len=8192;
7308 # On AmigaOS with pdksh, this test takes hours, literally.
7309 # So we just punt and use a minimum line length of 8192.
7310 lt_cv_sys_max_cmd_len=8192;
7313 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7314 # This has been around since 386BSD, at least. Likely further.
7315 if test -x /sbin/sysctl; then
7316 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7317 elif test -x /usr/sbin/sysctl; then
7318 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7320 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7322 # And add a safety zone
7323 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7324 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7328 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7329 lt_cv_sys_max_cmd_len=196608
7333 # The test takes a long time on OS/2.
7334 lt_cv_sys_max_cmd_len=8192
7338 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7339 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7340 # nice to cause kernel panics so lets avoid the loop below.
7341 # First set a reasonable default.
7342 lt_cv_sys_max_cmd_len=16384
7344 if test -x /sbin/sysconfig; then
7345 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7346 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7351 lt_cv_sys_max_cmd_len=102400
7353 sysv5* | sco5v6* | sysv4.2uw2*)
7354 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7355 if test -n "$kargmax"; then
7356 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7358 lt_cv_sys_max_cmd_len=32768
7362 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7363 if test -n "$lt_cv_sys_max_cmd_len"; then
7364 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7365 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7367 # Make teststring a little bigger before we do anything with it.
7368 # a 1K string should be a reasonable start.
7369 for i in 1 2 3 4 5 6 7 8 ; do
7370 teststring=$teststring$teststring
7372 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7373 # If test is not a shell built-in, we'll probably end up computing a
7374 # maximum length that is only half of the actual maximum length, but
7376 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
7377 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7378 test $i != 17 # 1/2 MB should be enough
7381 teststring=$teststring$teststring
7383 # Only check the string length outside the loop.
7384 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7386 # Add a significant safety factor because C++ compilers can tack on
7387 # massive amounts of additional arguments before passing them to the
7388 # linker. It appears as though 1/2 is a usable value.
7389 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7396 if test -n $lt_cv_sys_max_cmd_len ; then
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7398 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7401 $as_echo "none" >&6; }
7403 max_cmd_len=$lt_cv_sys_max_cmd_len
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7415 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7416 # Try some XSI features
7419 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7421 && eval 'test $(( 1 + 1 )) -eq 2 \
7422 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7425 $as_echo "$xsi_shell" >&6; }
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7429 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7431 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7433 && lt_shell_append=yes
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7435 $as_echo "$lt_shell_append" >&6; }
7438 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7448 # test EBCDIC or ASCII
7449 case `echo X|tr X '\101'` in
7450 A) # ASCII based system
7451 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7452 lt_SP2NL='tr \040 \012'
7453 lt_NL2SP='tr \015\012 \040\040'
7455 *) # EBCDIC based system
7456 lt_SP2NL='tr \100 \n'
7457 lt_NL2SP='tr \r\n \100\100'
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7470 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7471 if ${lt_cv_to_host_file_cmd+:} false; then :
7472 $as_echo_n "(cached) " >&6
7477 *-*-mingw* ) # actually msys
7478 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7481 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7483 * ) # otherwise, assume *nix
7484 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7490 *-*-mingw* ) # actually msys
7491 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7494 lt_cv_to_host_file_cmd=func_convert_file_noop
7496 * ) # otherwise, assume *nix
7497 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7501 * ) # unhandled hosts (and "normal" native builds)
7502 lt_cv_to_host_file_cmd=func_convert_file_noop
7508 to_host_file_cmd=$lt_cv_to_host_file_cmd
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7510 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7517 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7518 if ${lt_cv_to_tool_file_cmd+:} false; then :
7519 $as_echo_n "(cached) " >&6
7521 #assume ordinary cross tools, or native build.
7522 lt_cv_to_tool_file_cmd=func_convert_file_noop
7526 *-*-mingw* ) # actually msys
7527 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7535 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7537 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7544 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7545 if ${lt_cv_ld_reload_flag+:} false; then :
7546 $as_echo_n "(cached) " >&6
7548 lt_cv_ld_reload_flag='-r'
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7551 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7552 reload_flag=$lt_cv_ld_reload_flag
7553 case $reload_flag in
7555 *) reload_flag=" $reload_flag" ;;
7557 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7559 cygwin* | mingw* | pw32* | cegcc*)
7560 if test "$GCC" != yes; then
7565 if test "$GCC" = yes; then
7566 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7568 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7581 if test -n "$ac_tool_prefix"; then
7582 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7583 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7585 $as_echo_n "checking for $ac_word... " >&6; }
7586 if ${ac_cv_prog_OBJDUMP+:} false; then :
7587 $as_echo_n "(cached) " >&6
7589 if test -n "$OBJDUMP"; then
7590 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7596 test -z "$as_dir" && as_dir=.
7597 for ac_exec_ext in '' $ac_executable_extensions; do
7598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7599 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7609 OBJDUMP=$ac_cv_prog_OBJDUMP
7610 if test -n "$OBJDUMP"; then
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7612 $as_echo "$OBJDUMP" >&6; }
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7615 $as_echo "no" >&6; }
7620 if test -z "$ac_cv_prog_OBJDUMP"; then
7621 ac_ct_OBJDUMP=$OBJDUMP
7622 # Extract the first word of "objdump", so it can be a program name with args.
7623 set dummy objdump; ac_word=$2
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7625 $as_echo_n "checking for $ac_word... " >&6; }
7626 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7627 $as_echo_n "(cached) " >&6
7629 if test -n "$ac_ct_OBJDUMP"; then
7630 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7636 test -z "$as_dir" && as_dir=.
7637 for ac_exec_ext in '' $ac_executable_extensions; do
7638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7639 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7649 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7650 if test -n "$ac_ct_OBJDUMP"; then
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7652 $as_echo "$ac_ct_OBJDUMP" >&6; }
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7655 $as_echo "no" >&6; }
7658 if test "x$ac_ct_OBJDUMP" = x; then
7661 case $cross_compiling:$ac_tool_warned in
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7664 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7665 ac_tool_warned=yes ;;
7667 OBJDUMP=$ac_ct_OBJDUMP
7670 OBJDUMP="$ac_cv_prog_OBJDUMP"
7673 test -z "$OBJDUMP" && OBJDUMP=objdump
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7684 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7685 if ${lt_cv_deplibs_check_method+:} false; then :
7686 $as_echo_n "(cached) " >&6
7688 lt_cv_file_magic_cmd='$MAGIC_CMD'
7689 lt_cv_file_magic_test_file=
7690 lt_cv_deplibs_check_method='unknown'
7691 # Need to set the preceding variable on all platforms that support
7692 # interlibrary dependencies.
7693 # 'none' -- dependencies not supported.
7694 # `unknown' -- same as none, but documents that we really don't know.
7695 # 'pass_all' -- all dependencies passed with no checks.
7696 # 'test_compile' -- check by making test program.
7697 # 'file_magic [[regex]]' -- check by looking for files in library path
7698 # which responds to the $file_magic_cmd with a given extended regex.
7699 # If you have `file' or equivalent on your system and you're not sure
7700 # whether `pass_all' will *always* work, you probably want this one.
7704 lt_cv_deplibs_check_method=pass_all
7708 lt_cv_deplibs_check_method=pass_all
7712 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7713 lt_cv_file_magic_cmd='/usr/bin/file -L'
7714 lt_cv_file_magic_test_file=/shlib/libc.so
7718 # func_win32_libid is a shell function defined in ltmain.sh
7719 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7720 lt_cv_file_magic_cmd='func_win32_libid'
7724 # Base MSYS/MinGW do not provide the 'file' command needed by
7725 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7726 # unless we find 'file', for example because we are cross-compiling.
7727 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7728 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7729 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7730 lt_cv_file_magic_cmd='func_win32_libid'
7732 # Keep this pattern in sync with the one in func_win32_libid.
7733 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7734 lt_cv_file_magic_cmd='$OBJDUMP -f'
7739 # use the weaker test based on 'objdump'. See mingw*.
7740 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7741 lt_cv_file_magic_cmd='$OBJDUMP -f'
7744 darwin* | rhapsody*)
7745 lt_cv_deplibs_check_method=pass_all
7748 freebsd* | dragonfly*)
7749 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7752 # Not sure whether the presence of OpenBSD here was a mistake.
7753 # Let's accept both of them until this is cleared up.
7754 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7755 lt_cv_file_magic_cmd=/usr/bin/file
7756 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7760 lt_cv_deplibs_check_method=pass_all
7765 lt_cv_deplibs_check_method=pass_all
7769 lt_cv_deplibs_check_method=pass_all
7772 hpux10.20* | hpux11*)
7773 lt_cv_file_magic_cmd=/usr/bin/file
7776 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7777 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7780 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]'
7781 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7784 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7785 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7791 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7792 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7795 irix5* | irix6* | nonstopux*)
7797 *-32|*"-32 ") libmagic=32-bit;;
7798 *-n32|*"-n32 ") libmagic=N32;;
7799 *-64|*"-64 ") libmagic=64-bit;;
7800 *) libmagic=never-match;;
7802 lt_cv_deplibs_check_method=pass_all
7805 # This must be glibc/ELF.
7806 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7807 lt_cv_deplibs_check_method=pass_all
7810 netbsd* | netbsdelf*-gnu)
7811 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7812 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7814 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7819 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7820 lt_cv_file_magic_cmd=/usr/bin/file
7821 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7825 lt_cv_deplibs_check_method=pass_all
7829 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7830 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7832 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7836 osf3* | osf4* | osf5*)
7837 lt_cv_deplibs_check_method=pass_all
7841 lt_cv_deplibs_check_method=pass_all
7845 lt_cv_deplibs_check_method=pass_all
7848 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7849 lt_cv_deplibs_check_method=pass_all
7853 case $host_vendor in
7855 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]'
7856 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7859 lt_cv_deplibs_check_method=pass_all
7862 lt_cv_file_magic_cmd='/bin/file'
7863 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7866 lt_cv_file_magic_cmd='/bin/file'
7867 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7868 lt_cv_file_magic_test_file=/lib/libc.so
7871 lt_cv_deplibs_check_method=pass_all
7874 lt_cv_deplibs_check_method=pass_all
7880 lt_cv_deplibs_check_method=pass_all
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7886 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7890 if test "$build" = "$host"; then
7893 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7896 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7902 file_magic_cmd=$lt_cv_file_magic_cmd
7903 deplibs_check_method=$lt_cv_deplibs_check_method
7904 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7927 if test -n "$ac_tool_prefix"; then
7928 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7929 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7931 $as_echo_n "checking for $ac_word... " >&6; }
7932 if ${ac_cv_prog_DLLTOOL+:} false; then :
7933 $as_echo_n "(cached) " >&6
7935 if test -n "$DLLTOOL"; then
7936 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7942 test -z "$as_dir" && as_dir=.
7943 for ac_exec_ext in '' $ac_executable_extensions; do
7944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7945 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7955 DLLTOOL=$ac_cv_prog_DLLTOOL
7956 if test -n "$DLLTOOL"; then
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7958 $as_echo "$DLLTOOL" >&6; }
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7961 $as_echo "no" >&6; }
7966 if test -z "$ac_cv_prog_DLLTOOL"; then
7967 ac_ct_DLLTOOL=$DLLTOOL
7968 # Extract the first word of "dlltool", so it can be a program name with args.
7969 set dummy dlltool; ac_word=$2
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7971 $as_echo_n "checking for $ac_word... " >&6; }
7972 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7973 $as_echo_n "(cached) " >&6
7975 if test -n "$ac_ct_DLLTOOL"; then
7976 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7982 test -z "$as_dir" && as_dir=.
7983 for ac_exec_ext in '' $ac_executable_extensions; do
7984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7985 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7995 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7996 if test -n "$ac_ct_DLLTOOL"; then
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7998 $as_echo "$ac_ct_DLLTOOL" >&6; }
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8001 $as_echo "no" >&6; }
8004 if test "x$ac_ct_DLLTOOL" = x; then
8007 case $cross_compiling:$ac_tool_warned in
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8010 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8011 ac_tool_warned=yes ;;
8013 DLLTOOL=$ac_ct_DLLTOOL
8016 DLLTOOL="$ac_cv_prog_DLLTOOL"
8019 test -z "$DLLTOOL" && DLLTOOL=dlltool
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8031 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8032 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8033 $as_echo_n "(cached) " >&6
8035 lt_cv_sharedlib_from_linklib_cmd='unknown'
8038 cygwin* | mingw* | pw32* | cegcc*)
8039 # two different shell functions defined in ltmain.sh
8040 # decide which to use based on capabilities of $DLLTOOL
8041 case `$DLLTOOL --help 2>&1` in
8042 *--identify-strict*)
8043 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8046 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8051 # fallback: assume linklib IS sharedlib
8052 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8058 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8059 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8060 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8068 if test -n "$ac_tool_prefix"; then
8071 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8072 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8074 $as_echo_n "checking for $ac_word... " >&6; }
8075 if ${ac_cv_prog_AR+:} false; then :
8076 $as_echo_n "(cached) " >&6
8078 if test -n "$AR"; then
8079 ac_cv_prog_AR="$AR" # Let the user override the test.
8081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8085 test -z "$as_dir" && as_dir=.
8086 for ac_exec_ext in '' $ac_executable_extensions; do
8087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8088 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8099 if test -n "$AR"; then
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8101 $as_echo "$AR" >&6; }
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8104 $as_echo "no" >&6; }
8108 test -n "$AR" && break
8111 if test -z "$AR"; then
8115 # Extract the first word of "$ac_prog", so it can be a program name with args.
8116 set dummy $ac_prog; ac_word=$2
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8118 $as_echo_n "checking for $ac_word... " >&6; }
8119 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8120 $as_echo_n "(cached) " >&6
8122 if test -n "$ac_ct_AR"; then
8123 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8129 test -z "$as_dir" && as_dir=.
8130 for ac_exec_ext in '' $ac_executable_extensions; do
8131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8132 ac_cv_prog_ac_ct_AR="$ac_prog"
8133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8142 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8143 if test -n "$ac_ct_AR"; then
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8145 $as_echo "$ac_ct_AR" >&6; }
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8148 $as_echo "no" >&6; }
8152 test -n "$ac_ct_AR" && break
8155 if test "x$ac_ct_AR" = x; then
8158 case $cross_compiling:$ac_tool_warned in
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8162 ac_tool_warned=yes ;;
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8182 $as_echo_n "checking for archiver @FILE support... " >&6; }
8183 if ${lt_cv_ar_at_file+:} false; then :
8184 $as_echo_n "(cached) " >&6
8187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8188 /* end confdefs.h. */
8198 if ac_fn_c_try_compile "$LINENO"; then :
8199 echo conftest.$ac_objext > conftest.lst
8200 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8201 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8202 (eval $lt_ar_try) 2>&5
8204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8205 test $ac_status = 0; }
8206 if test "$ac_status" -eq 0; then
8207 # Ensure the archiver fails upon bogus file names.
8208 rm -f conftest.$ac_objext libconftest.a
8209 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8210 (eval $lt_ar_try) 2>&5
8212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8213 test $ac_status = 0; }
8214 if test "$ac_status" -ne 0; then
8218 rm -f conftest.* libconftest.a
8221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8225 $as_echo "$lt_cv_ar_at_file" >&6; }
8227 if test "x$lt_cv_ar_at_file" = xno; then
8230 archiver_list_spec=$lt_cv_ar_at_file
8239 if test -n "$ac_tool_prefix"; then
8240 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8241 set dummy ${ac_tool_prefix}strip; ac_word=$2
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8243 $as_echo_n "checking for $ac_word... " >&6; }
8244 if ${ac_cv_prog_STRIP+:} false; then :
8245 $as_echo_n "(cached) " >&6
8247 if test -n "$STRIP"; then
8248 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8254 test -z "$as_dir" && as_dir=.
8255 for ac_exec_ext in '' $ac_executable_extensions; do
8256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8257 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8267 STRIP=$ac_cv_prog_STRIP
8268 if test -n "$STRIP"; then
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8270 $as_echo "$STRIP" >&6; }
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8273 $as_echo "no" >&6; }
8278 if test -z "$ac_cv_prog_STRIP"; then
8280 # Extract the first word of "strip", so it can be a program name with args.
8281 set dummy strip; ac_word=$2
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8283 $as_echo_n "checking for $ac_word... " >&6; }
8284 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8285 $as_echo_n "(cached) " >&6
8287 if test -n "$ac_ct_STRIP"; then
8288 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8294 test -z "$as_dir" && as_dir=.
8295 for ac_exec_ext in '' $ac_executable_extensions; do
8296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8297 ac_cv_prog_ac_ct_STRIP="strip"
8298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8307 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8308 if test -n "$ac_ct_STRIP"; then
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8310 $as_echo "$ac_ct_STRIP" >&6; }
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8313 $as_echo "no" >&6; }
8316 if test "x$ac_ct_STRIP" = x; then
8319 case $cross_compiling:$ac_tool_warned in
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8322 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8323 ac_tool_warned=yes ;;
8328 STRIP="$ac_cv_prog_STRIP"
8331 test -z "$STRIP" && STRIP=:
8338 if test -n "$ac_tool_prefix"; then
8339 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8340 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8342 $as_echo_n "checking for $ac_word... " >&6; }
8343 if ${ac_cv_prog_RANLIB+:} false; then :
8344 $as_echo_n "(cached) " >&6
8346 if test -n "$RANLIB"; then
8347 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8353 test -z "$as_dir" && as_dir=.
8354 for ac_exec_ext in '' $ac_executable_extensions; do
8355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8356 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8366 RANLIB=$ac_cv_prog_RANLIB
8367 if test -n "$RANLIB"; then
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8369 $as_echo "$RANLIB" >&6; }
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8372 $as_echo "no" >&6; }
8377 if test -z "$ac_cv_prog_RANLIB"; then
8378 ac_ct_RANLIB=$RANLIB
8379 # Extract the first word of "ranlib", so it can be a program name with args.
8380 set dummy ranlib; ac_word=$2
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8382 $as_echo_n "checking for $ac_word... " >&6; }
8383 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8384 $as_echo_n "(cached) " >&6
8386 if test -n "$ac_ct_RANLIB"; then
8387 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8393 test -z "$as_dir" && as_dir=.
8394 for ac_exec_ext in '' $ac_executable_extensions; do
8395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8396 ac_cv_prog_ac_ct_RANLIB="ranlib"
8397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8406 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8407 if test -n "$ac_ct_RANLIB"; then
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8409 $as_echo "$ac_ct_RANLIB" >&6; }
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8412 $as_echo "no" >&6; }
8415 if test "x$ac_ct_RANLIB" = x; then
8418 case $cross_compiling:$ac_tool_warned in
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8421 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8422 ac_tool_warned=yes ;;
8424 RANLIB=$ac_ct_RANLIB
8427 RANLIB="$ac_cv_prog_RANLIB"
8430 test -z "$RANLIB" && RANLIB=:
8437 # Determine commands to create old-style static archives.
8438 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8439 old_postinstall_cmds='chmod 644 $oldlib'
8440 old_postuninstall_cmds=
8442 if test -n "$RANLIB"; then
8445 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8448 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8451 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8456 lock_old_archive_extraction=yes ;;
8458 lock_old_archive_extraction=no ;;
8499 # If no C compiler was specified, use CC.
8502 # If no C compiler flags were specified, use CFLAGS.
8503 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8505 # Allow CC to be a program name with arguments.
8509 # Check for command to grab the raw symbol name followed by C symbol from nm.
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8511 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8512 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8513 $as_echo_n "(cached) " >&6
8516 # These are sane defaults that work on at least a few old systems.
8517 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8519 # Character class describing NM global symbol codes.
8520 symcode='[BCDEGRST]'
8522 # Regexp to match symbols that can be accessed directly from C.
8523 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8525 # Define system-specific variables.
8530 cygwin* | mingw* | pw32* | cegcc*)
8531 symcode='[ABCDGISTW]'
8534 if test "$host_cpu" = ia64; then
8535 symcode='[ABCDEGRST]'
8539 symcode='[BCDEGRST]'
8542 symcode='[BCDEGQRST]'
8553 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8561 # If we're using GNU nm, then use its standard symbol codes.
8562 case `$NM -V 2>&1` in
8563 *GNU* | *'with BFD'*)
8564 symcode='[ABCDGIRSTW]' ;;
8567 # Transform an extracted symbol line into a proper C declaration.
8568 # Some systems (esp. on ia64) link data and code symbols differently,
8569 # so use this general approach.
8570 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8572 # Transform an extracted symbol line into symbol name and symbol address
8573 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8574 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'"
8576 # Handle CRLF in mingw tool chain
8580 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8584 # Try without a prefix underscore, then with it.
8585 for ac_symprfx in "" "_"; do
8587 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8588 symxfrm="\\1 $ac_symprfx\\2 \\2"
8590 # Write the raw and C identifiers.
8591 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8592 # Fake it for dumpbin and say T for any non-static function
8593 # and D for any global variable.
8594 # Also find C++ and __fastcall symbols from MSVC++,
8595 # which start with @ or ?.
8596 lt_cv_sys_global_symbol_pipe="$AWK '"\
8597 " {last_section=section; section=\$ 3};"\
8598 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8599 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8600 " \$ 0!~/External *\|/{next};"\
8601 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8602 " {if(hide[section]) next};"\
8603 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8604 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8605 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8606 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8607 " ' prfx=^$ac_symprfx"
8609 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8611 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8613 # Check to see that the pipe works correctly.
8617 cat > conftest.$ac_ext <<_LT_EOF
8622 void nm_test_func(void);
8623 void nm_test_func(void){}
8627 int main(){nm_test_var='a';nm_test_func();return(0);}
8630 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8631 (eval $ac_compile) 2>&5
8633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8634 test $ac_status = 0; }; then
8635 # Now try to grab the symbols.
8637 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8638 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8641 test $ac_status = 0; } && test -s "$nlist"; then
8642 # Try sorting and uniquifying the output.
8643 if sort "$nlist" | uniq > "$nlist"T; then
8644 mv -f "$nlist"T "$nlist"
8649 # Make sure that we snagged all the symbols we need.
8650 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8651 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8652 cat <<_LT_EOF > conftest.$ac_ext
8653 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8654 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8655 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8656 relocations are performed -- see ld's documentation on pseudo-relocs. */
8657 # define LT_DLSYM_CONST
8658 #elif defined(__osf__)
8659 /* This system does not cope well with relocations in const data. */
8660 # define LT_DLSYM_CONST
8662 # define LT_DLSYM_CONST const
8670 # Now generate the symbol file.
8671 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8673 cat <<_LT_EOF >> conftest.$ac_ext
8675 /* The mapping between symbol names and symbols. */
8676 LT_DLSYM_CONST struct {
8680 lt__PROGRAM__LTX_preloaded_symbols[] =
8682 { "@PROGRAM@", (void *) 0 },
8684 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8685 cat <<\_LT_EOF >> conftest.$ac_ext
8689 /* This works around a problem in FreeBSD linker */
8690 #ifdef FREEBSD_WORKAROUND
8691 static const void *lt_preloaded_setup() {
8692 return lt__PROGRAM__LTX_preloaded_symbols;
8700 # Now try linking the two files.
8701 mv conftest.$ac_objext conftstm.$ac_objext
8702 lt_globsym_save_LIBS=$LIBS
8703 lt_globsym_save_CFLAGS=$CFLAGS
8704 LIBS="conftstm.$ac_objext"
8705 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8706 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8707 (eval $ac_link) 2>&5
8709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8710 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8713 LIBS=$lt_globsym_save_LIBS
8714 CFLAGS=$lt_globsym_save_CFLAGS
8716 echo "cannot find nm_test_func in $nlist" >&5
8719 echo "cannot find nm_test_var in $nlist" >&5
8722 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8725 echo "$progname: failed program was:" >&5
8726 cat conftest.$ac_ext >&5
8728 rm -rf conftest* conftst*
8730 # Do not use the global_symbol_pipe unless it works.
8731 if test "$pipe_works" = yes; then
8734 lt_cv_sys_global_symbol_pipe=
8740 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8741 lt_cv_sys_global_symbol_to_cdecl=
8743 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8745 $as_echo "failed" >&6; }
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8748 $as_echo "ok" >&6; }
8751 # Response file support.
8752 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8753 nm_file_list_spec='@'
8754 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8755 nm_file_list_spec='@'
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8785 $as_echo_n "checking for sysroot... " >&6; }
8787 # Check whether --with-sysroot was given.
8788 if test "${with_sysroot+set}" = set; then :
8789 withval=$with_sysroot;
8796 case ${with_sysroot} in #(
8798 if test "$GCC" = yes; then
8799 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8803 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8809 $as_echo "${with_sysroot}" >&6; }
8810 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8815 $as_echo "${lt_sysroot:-no}" >&6; }
8821 # Check whether --enable-libtool-lock was given.
8822 if test "${enable_libtool_lock+set}" = set; then :
8823 enableval=$enable_libtool_lock;
8826 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8828 # Some flags need to be propagated to the compiler or linker for good
8832 # Find out which ABI we are using.
8833 echo 'int i;' > conftest.$ac_ext
8834 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8835 (eval $ac_compile) 2>&5
8837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8838 test $ac_status = 0; }; then
8839 case `/usr/bin/file conftest.$ac_objext` in
8851 # Find out which ABI we are using.
8852 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8853 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8854 (eval $ac_compile) 2>&5
8856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8857 test $ac_status = 0; }; then
8858 if test "$lt_cv_prog_gnu_ld" = yes; then
8859 case `/usr/bin/file conftest.$ac_objext` in
8861 LD="${LD-ld} -melf32bsmip"
8864 LD="${LD-ld} -melf32bmipn32"
8867 LD="${LD-ld} -melf64bmip"
8871 case `/usr/bin/file conftest.$ac_objext` in
8887 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8888 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8889 # Find out which ABI we are using.
8890 echo 'int i;' > conftest.$ac_ext
8891 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8892 (eval $ac_compile) 2>&5
8894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8895 test $ac_status = 0; }; then
8896 case `/usr/bin/file conftest.o` in
8899 x86_64-*kfreebsd*-gnu)
8900 LD="${LD-ld} -m elf_i386_fbsd"
8903 LD="${LD-ld} -m elf_i386"
8905 ppc64-*linux*|powerpc64-*linux*)
8906 LD="${LD-ld} -m elf32ppclinux"
8909 LD="${LD-ld} -m elf_s390"
8912 LD="${LD-ld} -m elf32_sparc"
8918 x86_64-*kfreebsd*-gnu)
8919 LD="${LD-ld} -m elf_x86_64_fbsd"
8922 LD="${LD-ld} -m elf_x86_64"
8924 ppc*-*linux*|powerpc*-*linux*)
8925 LD="${LD-ld} -m elf64ppc"
8927 s390*-*linux*|s390*-*tpf*)
8928 LD="${LD-ld} -m elf64_s390"
8931 LD="${LD-ld} -m elf64_sparc"
8941 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8942 SAVE_CFLAGS="$CFLAGS"
8943 CFLAGS="$CFLAGS -belf"
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8945 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8946 if ${lt_cv_cc_needs_belf+:} false; then :
8947 $as_echo_n "(cached) " >&6
8950 ac_cpp='$CPP $CPPFLAGS'
8951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8956 /* end confdefs.h. */
8966 if ac_fn_c_try_link "$LINENO"; then :
8967 lt_cv_cc_needs_belf=yes
8969 lt_cv_cc_needs_belf=no
8971 rm -f core conftest.err conftest.$ac_objext \
8972 conftest$ac_exeext conftest.$ac_ext
8974 ac_cpp='$CPP $CPPFLAGS'
8975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8981 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8982 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8983 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8984 CFLAGS="$SAVE_CFLAGS"
8988 # Find out which ABI we are using.
8989 echo 'int i;' > conftest.$ac_ext
8990 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8991 (eval $ac_compile) 2>&5
8993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8994 test $ac_status = 0; }; then
8995 case `/usr/bin/file conftest.o` in
8997 case $lt_cv_prog_gnu_ld in
9001 LD="${LD-ld} -m elf_x86_64"
9004 LD="${LD-ld} -m elf64_sparc"
9007 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9008 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9013 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9025 need_locks="$enable_libtool_lock"
9027 if test -n "$ac_tool_prefix"; then
9028 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9029 set dummy ${ac_tool_prefix}mt; ac_word=$2
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9031 $as_echo_n "checking for $ac_word... " >&6; }
9032 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9033 $as_echo_n "(cached) " >&6
9035 if test -n "$MANIFEST_TOOL"; then
9036 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9042 test -z "$as_dir" && as_dir=.
9043 for ac_exec_ext in '' $ac_executable_extensions; do
9044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9045 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9055 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9056 if test -n "$MANIFEST_TOOL"; then
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9058 $as_echo "$MANIFEST_TOOL" >&6; }
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9061 $as_echo "no" >&6; }
9066 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9067 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9068 # Extract the first word of "mt", so it can be a program name with args.
9069 set dummy mt; ac_word=$2
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9071 $as_echo_n "checking for $ac_word... " >&6; }
9072 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9073 $as_echo_n "(cached) " >&6
9075 if test -n "$ac_ct_MANIFEST_TOOL"; then
9076 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9082 test -z "$as_dir" && as_dir=.
9083 for ac_exec_ext in '' $ac_executable_extensions; do
9084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9085 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9095 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9096 if test -n "$ac_ct_MANIFEST_TOOL"; then
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9098 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9101 $as_echo "no" >&6; }
9104 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9107 case $cross_compiling:$ac_tool_warned in
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9110 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9111 ac_tool_warned=yes ;;
9113 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9116 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9119 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9121 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9122 if ${lt_cv_path_mainfest_tool+:} false; then :
9123 $as_echo_n "(cached) " >&6
9125 lt_cv_path_mainfest_tool=no
9126 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9127 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9128 cat conftest.err >&5
9129 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9130 lt_cv_path_mainfest_tool=yes
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9135 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9136 if test "x$lt_cv_path_mainfest_tool" != xyes; then
9146 rhapsody* | darwin*)
9147 if test -n "$ac_tool_prefix"; then
9148 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9149 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9151 $as_echo_n "checking for $ac_word... " >&6; }
9152 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9153 $as_echo_n "(cached) " >&6
9155 if test -n "$DSYMUTIL"; then
9156 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9162 test -z "$as_dir" && as_dir=.
9163 for ac_exec_ext in '' $ac_executable_extensions; do
9164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9165 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9175 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9176 if test -n "$DSYMUTIL"; then
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9178 $as_echo "$DSYMUTIL" >&6; }
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9181 $as_echo "no" >&6; }
9186 if test -z "$ac_cv_prog_DSYMUTIL"; then
9187 ac_ct_DSYMUTIL=$DSYMUTIL
9188 # Extract the first word of "dsymutil", so it can be a program name with args.
9189 set dummy dsymutil; ac_word=$2
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9191 $as_echo_n "checking for $ac_word... " >&6; }
9192 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9193 $as_echo_n "(cached) " >&6
9195 if test -n "$ac_ct_DSYMUTIL"; then
9196 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9202 test -z "$as_dir" && as_dir=.
9203 for ac_exec_ext in '' $ac_executable_extensions; do
9204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9205 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9215 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9216 if test -n "$ac_ct_DSYMUTIL"; then
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9218 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9221 $as_echo "no" >&6; }
9224 if test "x$ac_ct_DSYMUTIL" = x; then
9227 case $cross_compiling:$ac_tool_warned in
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9231 ac_tool_warned=yes ;;
9233 DSYMUTIL=$ac_ct_DSYMUTIL
9236 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9239 if test -n "$ac_tool_prefix"; then
9240 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9241 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9243 $as_echo_n "checking for $ac_word... " >&6; }
9244 if ${ac_cv_prog_NMEDIT+:} false; then :
9245 $as_echo_n "(cached) " >&6
9247 if test -n "$NMEDIT"; then
9248 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9254 test -z "$as_dir" && as_dir=.
9255 for ac_exec_ext in '' $ac_executable_extensions; do
9256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9257 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9267 NMEDIT=$ac_cv_prog_NMEDIT
9268 if test -n "$NMEDIT"; then
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9270 $as_echo "$NMEDIT" >&6; }
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9273 $as_echo "no" >&6; }
9278 if test -z "$ac_cv_prog_NMEDIT"; then
9279 ac_ct_NMEDIT=$NMEDIT
9280 # Extract the first word of "nmedit", so it can be a program name with args.
9281 set dummy nmedit; ac_word=$2
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9283 $as_echo_n "checking for $ac_word... " >&6; }
9284 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9285 $as_echo_n "(cached) " >&6
9287 if test -n "$ac_ct_NMEDIT"; then
9288 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9294 test -z "$as_dir" && as_dir=.
9295 for ac_exec_ext in '' $ac_executable_extensions; do
9296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9297 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9307 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9308 if test -n "$ac_ct_NMEDIT"; then
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9310 $as_echo "$ac_ct_NMEDIT" >&6; }
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9313 $as_echo "no" >&6; }
9316 if test "x$ac_ct_NMEDIT" = x; then
9319 case $cross_compiling:$ac_tool_warned in
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9322 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9323 ac_tool_warned=yes ;;
9325 NMEDIT=$ac_ct_NMEDIT
9328 NMEDIT="$ac_cv_prog_NMEDIT"
9331 if test -n "$ac_tool_prefix"; then
9332 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9333 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9335 $as_echo_n "checking for $ac_word... " >&6; }
9336 if ${ac_cv_prog_LIPO+:} false; then :
9337 $as_echo_n "(cached) " >&6
9339 if test -n "$LIPO"; then
9340 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9346 test -z "$as_dir" && as_dir=.
9347 for ac_exec_ext in '' $ac_executable_extensions; do
9348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9349 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9359 LIPO=$ac_cv_prog_LIPO
9360 if test -n "$LIPO"; then
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9362 $as_echo "$LIPO" >&6; }
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9365 $as_echo "no" >&6; }
9370 if test -z "$ac_cv_prog_LIPO"; then
9372 # Extract the first word of "lipo", so it can be a program name with args.
9373 set dummy lipo; ac_word=$2
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9375 $as_echo_n "checking for $ac_word... " >&6; }
9376 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9377 $as_echo_n "(cached) " >&6
9379 if test -n "$ac_ct_LIPO"; then
9380 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9386 test -z "$as_dir" && as_dir=.
9387 for ac_exec_ext in '' $ac_executable_extensions; do
9388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9389 ac_cv_prog_ac_ct_LIPO="lipo"
9390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9399 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9400 if test -n "$ac_ct_LIPO"; then
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9402 $as_echo "$ac_ct_LIPO" >&6; }
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9405 $as_echo "no" >&6; }
9408 if test "x$ac_ct_LIPO" = x; then
9411 case $cross_compiling:$ac_tool_warned in
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9415 ac_tool_warned=yes ;;
9420 LIPO="$ac_cv_prog_LIPO"
9423 if test -n "$ac_tool_prefix"; then
9424 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9425 set dummy ${ac_tool_prefix}otool; ac_word=$2
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9427 $as_echo_n "checking for $ac_word... " >&6; }
9428 if ${ac_cv_prog_OTOOL+:} false; then :
9429 $as_echo_n "(cached) " >&6
9431 if test -n "$OTOOL"; then
9432 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9438 test -z "$as_dir" && as_dir=.
9439 for ac_exec_ext in '' $ac_executable_extensions; do
9440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9441 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9451 OTOOL=$ac_cv_prog_OTOOL
9452 if test -n "$OTOOL"; then
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9454 $as_echo "$OTOOL" >&6; }
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9457 $as_echo "no" >&6; }
9462 if test -z "$ac_cv_prog_OTOOL"; then
9464 # Extract the first word of "otool", so it can be a program name with args.
9465 set dummy otool; ac_word=$2
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9467 $as_echo_n "checking for $ac_word... " >&6; }
9468 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9469 $as_echo_n "(cached) " >&6
9471 if test -n "$ac_ct_OTOOL"; then
9472 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9478 test -z "$as_dir" && as_dir=.
9479 for ac_exec_ext in '' $ac_executable_extensions; do
9480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9481 ac_cv_prog_ac_ct_OTOOL="otool"
9482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9491 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9492 if test -n "$ac_ct_OTOOL"; then
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9494 $as_echo "$ac_ct_OTOOL" >&6; }
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9497 $as_echo "no" >&6; }
9500 if test "x$ac_ct_OTOOL" = x; then
9503 case $cross_compiling:$ac_tool_warned in
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9507 ac_tool_warned=yes ;;
9512 OTOOL="$ac_cv_prog_OTOOL"
9515 if test -n "$ac_tool_prefix"; then
9516 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9517 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9519 $as_echo_n "checking for $ac_word... " >&6; }
9520 if ${ac_cv_prog_OTOOL64+:} false; then :
9521 $as_echo_n "(cached) " >&6
9523 if test -n "$OTOOL64"; then
9524 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9530 test -z "$as_dir" && as_dir=.
9531 for ac_exec_ext in '' $ac_executable_extensions; do
9532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9533 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9543 OTOOL64=$ac_cv_prog_OTOOL64
9544 if test -n "$OTOOL64"; then
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9546 $as_echo "$OTOOL64" >&6; }
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9549 $as_echo "no" >&6; }
9554 if test -z "$ac_cv_prog_OTOOL64"; then
9555 ac_ct_OTOOL64=$OTOOL64
9556 # Extract the first word of "otool64", so it can be a program name with args.
9557 set dummy otool64; ac_word=$2
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9559 $as_echo_n "checking for $ac_word... " >&6; }
9560 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9561 $as_echo_n "(cached) " >&6
9563 if test -n "$ac_ct_OTOOL64"; then
9564 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9570 test -z "$as_dir" && as_dir=.
9571 for ac_exec_ext in '' $ac_executable_extensions; do
9572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9573 ac_cv_prog_ac_ct_OTOOL64="otool64"
9574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9583 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9584 if test -n "$ac_ct_OTOOL64"; then
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9586 $as_echo "$ac_ct_OTOOL64" >&6; }
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9589 $as_echo "no" >&6; }
9592 if test "x$ac_ct_OTOOL64" = x; then
9595 case $cross_compiling:$ac_tool_warned in
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9598 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9599 ac_tool_warned=yes ;;
9601 OTOOL64=$ac_ct_OTOOL64
9604 OTOOL64="$ac_cv_prog_OTOOL64"
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9634 $as_echo_n "checking for -single_module linker flag... " >&6; }
9635 if ${lt_cv_apple_cc_single_mod+:} false; then :
9636 $as_echo_n "(cached) " >&6
9638 lt_cv_apple_cc_single_mod=no
9639 if test -z "${LT_MULTI_MODULE}"; then
9640 # By default we will add the -single_module flag. You can override
9641 # by either setting the environment variable LT_MULTI_MODULE
9642 # non-empty at configure time, or by adding -multi_module to the
9644 rm -rf libconftest.dylib*
9645 echo "int foo(void){return 1;}" > conftest.c
9646 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9647 -dynamiclib -Wl,-single_module conftest.c" >&5
9648 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9649 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9651 # If there is a non-empty error log, and "single_module"
9652 # appears in it, assume the flag caused a linker warning
9653 if test -s conftest.err && $GREP single_module conftest.err; then
9654 cat conftest.err >&5
9655 # Otherwise, if the output was created with a 0 exit code from
9656 # the compiler, it worked.
9657 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9658 lt_cv_apple_cc_single_mod=yes
9660 cat conftest.err >&5
9662 rm -rf libconftest.dylib*
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9667 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9670 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9671 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9672 $as_echo_n "(cached) " >&6
9674 lt_cv_ld_exported_symbols_list=no
9675 save_LDFLAGS=$LDFLAGS
9676 echo "_main" > conftest.sym
9677 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9679 /* end confdefs.h. */
9689 if ac_fn_c_try_link "$LINENO"; then :
9690 lt_cv_ld_exported_symbols_list=yes
9692 lt_cv_ld_exported_symbols_list=no
9694 rm -f core conftest.err conftest.$ac_objext \
9695 conftest$ac_exeext conftest.$ac_ext
9696 LDFLAGS="$save_LDFLAGS"
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9700 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9703 $as_echo_n "checking for -force_load linker flag... " >&6; }
9704 if ${lt_cv_ld_force_load+:} false; then :
9705 $as_echo_n "(cached) " >&6
9707 lt_cv_ld_force_load=no
9708 cat > conftest.c << _LT_EOF
9709 int forced_loaded() { return 2;}
9711 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9712 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9713 echo "$AR cru libconftest.a conftest.o" >&5
9714 $AR cru libconftest.a conftest.o 2>&5
9715 echo "$RANLIB libconftest.a" >&5
9716 $RANLIB libconftest.a 2>&5
9717 cat > conftest.c << _LT_EOF
9718 int main() { return 0;}
9720 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9721 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9723 if test -s conftest.err && $GREP force_load conftest.err; then
9724 cat conftest.err >&5
9725 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9726 lt_cv_ld_force_load=yes
9728 cat conftest.err >&5
9730 rm -f conftest.err libconftest.a conftest conftest.c
9731 rm -rf conftest.dSYM
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9735 $as_echo "$lt_cv_ld_force_load" >&6; }
9737 rhapsody* | darwin1.[012])
9738 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9740 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9741 darwin*) # darwin 5.x on
9742 # if running on 10.5 or later, the deployment target defaults
9743 # to the OS version, if on x86, and 10.4, the deployment
9744 # target defaults to 10.4. Don't you love it?
9745 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9746 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9747 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9749 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9751 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9755 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9756 _lt_dar_single_mod='$single_module'
9758 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9759 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9761 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9763 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9764 _lt_dsymutil='~$DSYMUTIL $lib || :'
9771 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9772 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9773 inttypes.h stdint.h unistd.h
9775 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9776 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9778 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9779 cat >>confdefs.h <<_ACEOF
9780 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9788 for ac_header in dlfcn.h
9790 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9792 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9793 cat >>confdefs.h <<_ACEOF
9794 #define HAVE_DLFCN_H 1
9815 # Check whether --enable-shared was given.
9816 if test "${enable_shared+set}" = set; then :
9817 enableval=$enable_shared; p=${PACKAGE-default}
9819 yes) enable_shared=yes ;;
9820 no) enable_shared=no ;;
9823 # Look at the argument we got. We use all the common list separators.
9824 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9825 for pkg in $enableval; do
9827 if test "X$pkg" = "X$p"; then
9846 # Check whether --enable-static was given.
9847 if test "${enable_static+set}" = set; then :
9848 enableval=$enable_static; p=${PACKAGE-default}
9850 yes) enable_static=yes ;;
9851 no) enable_static=no ;;
9854 # Look at the argument we got. We use all the common list separators.
9855 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9856 for pkg in $enableval; do
9858 if test "X$pkg" = "X$p"; then
9878 # Check whether --with-pic was given.
9879 if test "${with_pic+set}" = set; then :
9880 withval=$with_pic; lt_p=${PACKAGE-default}
9882 yes|no) pic_mode=$withval ;;
9885 # Look at the argument we got. We use all the common list separators.
9886 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9887 for lt_pkg in $withval; do
9889 if test "X$lt_pkg" = "X$lt_p"; then
9901 test -z "$pic_mode" && pic_mode=default
9909 # Check whether --enable-fast-install was given.
9910 if test "${enable_fast_install+set}" = set; then :
9911 enableval=$enable_fast_install; p=${PACKAGE-default}
9913 yes) enable_fast_install=yes ;;
9914 no) enable_fast_install=no ;;
9916 enable_fast_install=no
9917 # Look at the argument we got. We use all the common list separators.
9918 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9919 for pkg in $enableval; do
9921 if test "X$pkg" = "X$p"; then
9922 enable_fast_install=yes
9929 enable_fast_install=yes
9942 # This can be used to rebuild libtool when needed
9943 LIBTOOL_DEPS="$ltmain"
9945 # Always use our own libtool.
9946 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9977 test -z "$LN_S" && LN_S="ln -s"
9992 if test -n "${ZSH_VERSION+set}" ; then
9993 setopt NO_GLOB_SUBST
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9997 $as_echo_n "checking for objdir... " >&6; }
9998 if ${lt_cv_objdir+:} false; then :
9999 $as_echo_n "(cached) " >&6
10001 rm -f .libs 2>/dev/null
10002 mkdir .libs 2>/dev/null
10003 if test -d .libs; then
10006 # MS-DOS does not allow filenames that begin with a dot.
10009 rmdir .libs 2>/dev/null
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10012 $as_echo "$lt_cv_objdir" >&6; }
10013 objdir=$lt_cv_objdir
10019 cat >>confdefs.h <<_ACEOF
10020 #define LT_OBJDIR "$lt_cv_objdir/"
10028 # AIX sometimes has problems with the GCC collect2 program. For some
10029 # reason, if we set the COLLECT_NAMES environment variable, the problems
10030 # vanish in a puff of smoke.
10031 if test "X${COLLECT_NAMES+set}" != Xset; then
10033 export COLLECT_NAMES
10038 # Global variables:
10040 can_build_shared=yes
10042 # All known linkers require a `.a' archive for static linking (except MSVC,
10043 # which needs '.lib').
10046 with_gnu_ld="$lt_cv_prog_gnu_ld"
10049 old_CFLAGS="$CFLAGS"
10051 # Set sane defaults for various variables
10052 test -z "$CC" && CC=cc
10053 test -z "$LTCC" && LTCC=$CC
10054 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10055 test -z "$LD" && LD=ld
10056 test -z "$ac_objext" && ac_objext=o
10058 for cc_temp in $compiler""; do
10060 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10061 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10066 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10069 # Only perform the check for file, if the check method requires it
10070 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10071 case $deplibs_check_method in
10073 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10075 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10076 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10077 $as_echo_n "(cached) " >&6
10081 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10084 lt_save_MAGIC_CMD="$MAGIC_CMD"
10085 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10086 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10087 for ac_dir in $ac_dummy; do
10089 test -z "$ac_dir" && ac_dir=.
10090 if test -f $ac_dir/${ac_tool_prefix}file; then
10091 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10092 if test -n "$file_magic_test_file"; then
10093 case $deplibs_check_method in
10095 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10096 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10097 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10098 $EGREP "$file_magic_regex" > /dev/null; then
10103 *** Warning: the command libtool uses to detect shared libraries,
10104 *** $file_magic_cmd, produces output that libtool cannot recognize.
10105 *** The result is that libtool may fail to recognize shared libraries
10106 *** as such. This will affect the creation of libtool libraries that
10107 *** depend on shared libraries, but programs linked with such libtool
10108 *** libraries will work regardless of this problem. Nevertheless, you
10109 *** may want to report the problem to your system manager and/or to
10110 *** bug-libtool@gnu.org
10120 MAGIC_CMD="$lt_save_MAGIC_CMD"
10125 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10126 if test -n "$MAGIC_CMD"; then
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10128 $as_echo "$MAGIC_CMD" >&6; }
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10131 $as_echo "no" >&6; }
10138 if test -z "$lt_cv_path_MAGIC_CMD"; then
10139 if test -n "$ac_tool_prefix"; then
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10141 $as_echo_n "checking for file... " >&6; }
10142 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10143 $as_echo_n "(cached) " >&6
10147 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10150 lt_save_MAGIC_CMD="$MAGIC_CMD"
10151 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10152 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10153 for ac_dir in $ac_dummy; do
10155 test -z "$ac_dir" && ac_dir=.
10156 if test -f $ac_dir/file; then
10157 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10158 if test -n "$file_magic_test_file"; then
10159 case $deplibs_check_method in
10161 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10162 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10163 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10164 $EGREP "$file_magic_regex" > /dev/null; then
10169 *** Warning: the command libtool uses to detect shared libraries,
10170 *** $file_magic_cmd, produces output that libtool cannot recognize.
10171 *** The result is that libtool may fail to recognize shared libraries
10172 *** as such. This will affect the creation of libtool libraries that
10173 *** depend on shared libraries, but programs linked with such libtool
10174 *** libraries will work regardless of this problem. Nevertheless, you
10175 *** may want to report the problem to your system manager and/or to
10176 *** bug-libtool@gnu.org
10186 MAGIC_CMD="$lt_save_MAGIC_CMD"
10191 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10192 if test -n "$MAGIC_CMD"; then
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10194 $as_echo "$MAGIC_CMD" >&6; }
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10197 $as_echo "no" >&6; }
10210 # Use C for the default configuration in the libtool script
10214 ac_cpp='$CPP $CPPFLAGS'
10215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10220 # Source file extension for C test sources.
10223 # Object file extension for compiled C test sources.
10227 # Code to be used in simple compile tests
10228 lt_simple_compile_test_code="int some_variable = 0;"
10230 # Code to be used in simple link tests
10231 lt_simple_link_test_code='int main(){return(0);}'
10239 # If no C compiler was specified, use CC.
10242 # If no C compiler flags were specified, use CFLAGS.
10243 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10245 # Allow CC to be a program name with arguments.
10248 # Save the default compiler, since it gets overwritten when the other
10249 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10250 compiler_DEFAULT=$CC
10252 # save warnings/boilerplate of simple test code
10253 ac_outfile=conftest.$ac_objext
10254 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10255 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10256 _lt_compiler_boilerplate=`cat conftest.err`
10259 ac_outfile=conftest.$ac_objext
10260 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10261 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10262 _lt_linker_boilerplate=`cat conftest.err`
10266 if test -n "$compiler"; then
10268 lt_prog_compiler_no_builtin_flag=
10270 if test "$GCC" = yes; then
10271 case $cc_basename in
10273 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10275 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10279 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10280 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10281 $as_echo_n "(cached) " >&6
10283 lt_cv_prog_compiler_rtti_exceptions=no
10284 ac_outfile=conftest.$ac_objext
10285 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10286 lt_compiler_flag="-fno-rtti -fno-exceptions"
10287 # Insert the option either (1) after the last *FLAGS variable, or
10288 # (2) before a word containing "conftest.", or (3) at the end.
10289 # Note that $ac_compile itself does not contain backslashes and begins
10290 # with a dollar sign (not a hyphen), so the echo should work correctly.
10291 # The option is referenced via a variable to avoid confusing sed.
10292 lt_compile=`echo "$ac_compile" | $SED \
10293 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10294 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10295 -e 's:$: $lt_compiler_flag:'`
10296 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10297 (eval "$lt_compile" 2>conftest.err)
10299 cat conftest.err >&5
10300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301 if (exit $ac_status) && test -s "$ac_outfile"; then
10302 # The compiler can only warn and ignore the option if not recognized
10303 # So say no if there are warnings other than the usual output.
10304 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10305 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10306 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10307 lt_cv_prog_compiler_rtti_exceptions=yes
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10314 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10316 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10317 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10329 lt_prog_compiler_wl=
10330 lt_prog_compiler_pic=
10331 lt_prog_compiler_static=
10334 if test "$GCC" = yes; then
10335 lt_prog_compiler_wl='-Wl,'
10336 lt_prog_compiler_static='-static'
10340 # All AIX code is PIC.
10341 if test "$host_cpu" = ia64; then
10342 # AIX 5 now supports IA64 processor
10343 lt_prog_compiler_static='-Bstatic'
10350 # see comment about AmigaOS4 .so support
10351 lt_prog_compiler_pic='-fPIC'
10354 # FIXME: we need at least 68020 code to build shared libraries, but
10355 # adding the `-m68020' flag to GCC prevents building anything better,
10357 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10362 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10363 # PIC is the default for these OSes.
10366 mingw* | cygwin* | pw32* | os2* | cegcc*)
10367 # This hack is so that the source file can tell whether it is being
10368 # built for inclusion in a dll (and should export symbols for example).
10369 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10370 # (--disable-auto-import) libraries
10371 lt_prog_compiler_pic='-DDLL_EXPORT'
10374 darwin* | rhapsody*)
10375 # PIC is the default on this platform
10376 # Common symbols not allowed in MH_DYLIB files
10377 lt_prog_compiler_pic='-fno-common'
10381 # PIC is the default for Haiku.
10382 # The "-static" flag exists, but is broken.
10383 lt_prog_compiler_static=
10387 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10388 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10389 # sets the default TLS model and affects inlining.
10395 lt_prog_compiler_pic='-fPIC'
10401 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10402 # Instead, we relocate shared libraries at runtime.
10406 # Just because we use GCC doesn't mean we suddenly get shared libraries
10407 # on systems that don't support them.
10408 lt_prog_compiler_can_build_shared=no
10413 # QNX uses GNU C++, but need to define -shared option too, otherwise
10414 # it will coredump.
10415 lt_prog_compiler_pic='-fPIC -shared'
10419 if test -d /usr/nec; then
10420 lt_prog_compiler_pic=-Kconform_pic
10425 lt_prog_compiler_pic='-fPIC'
10429 case $cc_basename in
10430 nvcc*) # Cuda Compiler Driver 2.2
10431 lt_prog_compiler_wl='-Xlinker '
10432 if test -n "$lt_prog_compiler_pic"; then
10433 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10438 # PORTME Check for flag to pass linker flags through the system compiler.
10441 lt_prog_compiler_wl='-Wl,'
10442 if test "$host_cpu" = ia64; then
10443 # AIX 5 now supports IA64 processor
10444 lt_prog_compiler_static='-Bstatic'
10446 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10450 mingw* | cygwin* | pw32* | os2* | cegcc*)
10451 # This hack is so that the source file can tell whether it is being
10452 # built for inclusion in a dll (and should export symbols for example).
10453 lt_prog_compiler_pic='-DDLL_EXPORT'
10456 hpux9* | hpux10* | hpux11*)
10457 lt_prog_compiler_wl='-Wl,'
10458 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10459 # not for PA HP-UX.
10465 lt_prog_compiler_pic='+Z'
10468 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10469 lt_prog_compiler_static='${wl}-a ${wl}archive'
10472 irix5* | irix6* | nonstopux*)
10473 lt_prog_compiler_wl='-Wl,'
10474 # PIC (with -KPIC) is the default.
10475 lt_prog_compiler_static='-non_shared'
10478 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10479 case $cc_basename in
10480 # old Intel for x86_64 which still supported -KPIC.
10482 lt_prog_compiler_wl='-Wl,'
10483 lt_prog_compiler_pic='-KPIC'
10484 lt_prog_compiler_static='-static'
10486 # icc used to be incompatible with GCC.
10487 # ICC 10 doesn't accept -KPIC any more.
10489 lt_prog_compiler_wl='-Wl,'
10490 lt_prog_compiler_pic='-fPIC'
10491 lt_prog_compiler_static='-static'
10493 # Lahey Fortran 8.1.
10495 lt_prog_compiler_wl='-Wl,'
10496 lt_prog_compiler_pic='--shared'
10497 lt_prog_compiler_static='--static'
10500 # NAG Fortran compiler
10501 lt_prog_compiler_wl='-Wl,-Wl,,'
10502 lt_prog_compiler_pic='-PIC'
10503 lt_prog_compiler_static='-Bstatic'
10505 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10506 # Portland Group compilers (*not* the Pentium gcc compiler,
10507 # which looks to be a dead project)
10508 lt_prog_compiler_wl='-Wl,'
10509 lt_prog_compiler_pic='-fpic'
10510 lt_prog_compiler_static='-Bstatic'
10513 lt_prog_compiler_wl='-Wl,'
10514 # All Alpha code is PIC.
10515 lt_prog_compiler_static='-non_shared'
10517 xl* | bgxl* | bgf* | mpixl*)
10518 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10519 lt_prog_compiler_wl='-Wl,'
10520 lt_prog_compiler_pic='-qpic'
10521 lt_prog_compiler_static='-qstaticlink'
10524 case `$CC -V 2>&1 | sed 5q` in
10525 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10526 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10527 lt_prog_compiler_pic='-KPIC'
10528 lt_prog_compiler_static='-Bstatic'
10529 lt_prog_compiler_wl=''
10531 *Sun\ F* | *Sun*Fortran*)
10532 lt_prog_compiler_pic='-KPIC'
10533 lt_prog_compiler_static='-Bstatic'
10534 lt_prog_compiler_wl='-Qoption ld '
10538 lt_prog_compiler_pic='-KPIC'
10539 lt_prog_compiler_static='-Bstatic'
10540 lt_prog_compiler_wl='-Wl,'
10542 *Intel*\ [CF]*Compiler*)
10543 lt_prog_compiler_wl='-Wl,'
10544 lt_prog_compiler_pic='-fPIC'
10545 lt_prog_compiler_static='-static'
10548 lt_prog_compiler_wl='-Wl,'
10549 lt_prog_compiler_pic='-fpic'
10550 lt_prog_compiler_static='-Bstatic'
10558 lt_prog_compiler_pic='-KPIC'
10559 lt_prog_compiler_static='-Bstatic'
10563 # QNX uses GNU C++, but need to define -shared option too, otherwise
10564 # it will coredump.
10565 lt_prog_compiler_pic='-fPIC -shared'
10568 osf3* | osf4* | osf5*)
10569 lt_prog_compiler_wl='-Wl,'
10570 # All OSF/1 code is PIC.
10571 lt_prog_compiler_static='-non_shared'
10575 lt_prog_compiler_static='-non_shared'
10579 lt_prog_compiler_pic='-KPIC'
10580 lt_prog_compiler_static='-Bstatic'
10581 case $cc_basename in
10582 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10583 lt_prog_compiler_wl='-Qoption ld ';;
10585 lt_prog_compiler_wl='-Wl,';;
10590 lt_prog_compiler_wl='-Qoption ld '
10591 lt_prog_compiler_pic='-PIC'
10592 lt_prog_compiler_static='-Bstatic'
10595 sysv4 | sysv4.2uw2* | sysv4.3*)
10596 lt_prog_compiler_wl='-Wl,'
10597 lt_prog_compiler_pic='-KPIC'
10598 lt_prog_compiler_static='-Bstatic'
10602 if test -d /usr/nec ;then
10603 lt_prog_compiler_pic='-Kconform_pic'
10604 lt_prog_compiler_static='-Bstatic'
10608 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10609 lt_prog_compiler_wl='-Wl,'
10610 lt_prog_compiler_pic='-KPIC'
10611 lt_prog_compiler_static='-Bstatic'
10615 lt_prog_compiler_wl='-Wl,'
10616 lt_prog_compiler_can_build_shared=no
10620 lt_prog_compiler_pic='-pic'
10621 lt_prog_compiler_static='-Bstatic'
10625 lt_prog_compiler_can_build_shared=no
10631 # For platforms which do not support PIC, -DPIC is meaningless:
10633 lt_prog_compiler_pic=
10636 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10641 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10642 if ${lt_cv_prog_compiler_pic+:} false; then :
10643 $as_echo_n "(cached) " >&6
10645 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10648 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10649 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10652 # Check to make sure the PIC flag actually works.
10654 if test -n "$lt_prog_compiler_pic"; then
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10656 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10657 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10658 $as_echo_n "(cached) " >&6
10660 lt_cv_prog_compiler_pic_works=no
10661 ac_outfile=conftest.$ac_objext
10662 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10663 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10664 # Insert the option either (1) after the last *FLAGS variable, or
10665 # (2) before a word containing "conftest.", or (3) at the end.
10666 # Note that $ac_compile itself does not contain backslashes and begins
10667 # with a dollar sign (not a hyphen), so the echo should work correctly.
10668 # The option is referenced via a variable to avoid confusing sed.
10669 lt_compile=`echo "$ac_compile" | $SED \
10670 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10671 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10672 -e 's:$: $lt_compiler_flag:'`
10673 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10674 (eval "$lt_compile" 2>conftest.err)
10676 cat conftest.err >&5
10677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678 if (exit $ac_status) && test -s "$ac_outfile"; then
10679 # The compiler can only warn and ignore the option if not recognized
10680 # So say no if there are warnings other than the usual output.
10681 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10682 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10683 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10684 lt_cv_prog_compiler_pic_works=yes
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10691 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10693 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10694 case $lt_prog_compiler_pic in
10696 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10699 lt_prog_compiler_pic=
10700 lt_prog_compiler_can_build_shared=no
10716 # Check to make sure the static flag actually works.
10718 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10720 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10721 if ${lt_cv_prog_compiler_static_works+:} false; then :
10722 $as_echo_n "(cached) " >&6
10724 lt_cv_prog_compiler_static_works=no
10725 save_LDFLAGS="$LDFLAGS"
10726 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10727 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10728 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10729 # The linker can only warn and ignore the option if not recognized
10730 # So say no if there are warnings
10731 if test -s conftest.err; then
10732 # Append any errors to the config.log.
10733 cat conftest.err 1>&5
10734 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10735 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10736 if diff conftest.exp conftest.er2 >/dev/null; then
10737 lt_cv_prog_compiler_static_works=yes
10740 lt_cv_prog_compiler_static_works=yes
10744 LDFLAGS="$save_LDFLAGS"
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10748 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10750 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10753 lt_prog_compiler_static=
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10763 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10764 if ${lt_cv_prog_compiler_c_o+:} false; then :
10765 $as_echo_n "(cached) " >&6
10767 lt_cv_prog_compiler_c_o=no
10768 $RM -r conftest 2>/dev/null
10772 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10774 lt_compiler_flag="-o out/conftest2.$ac_objext"
10775 # Insert the option either (1) after the last *FLAGS variable, or
10776 # (2) before a word containing "conftest.", or (3) at the end.
10777 # Note that $ac_compile itself does not contain backslashes and begins
10778 # with a dollar sign (not a hyphen), so the echo should work correctly.
10779 lt_compile=`echo "$ac_compile" | $SED \
10780 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10781 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10782 -e 's:$: $lt_compiler_flag:'`
10783 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10784 (eval "$lt_compile" 2>out/conftest.err)
10786 cat out/conftest.err >&5
10787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10790 # The compiler can only warn and ignore the option if not recognized
10791 # So say no if there are warnings
10792 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10793 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10794 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10795 lt_cv_prog_compiler_c_o=yes
10800 # SGI C++ compiler will create directory out/ii_files/ for
10801 # template instantiation
10802 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10803 $RM out/* && rmdir out
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10810 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10818 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10819 if ${lt_cv_prog_compiler_c_o+:} false; then :
10820 $as_echo_n "(cached) " >&6
10822 lt_cv_prog_compiler_c_o=no
10823 $RM -r conftest 2>/dev/null
10827 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10829 lt_compiler_flag="-o out/conftest2.$ac_objext"
10830 # Insert the option either (1) after the last *FLAGS variable, or
10831 # (2) before a word containing "conftest.", or (3) at the end.
10832 # Note that $ac_compile itself does not contain backslashes and begins
10833 # with a dollar sign (not a hyphen), so the echo should work correctly.
10834 lt_compile=`echo "$ac_compile" | $SED \
10835 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10836 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10837 -e 's:$: $lt_compiler_flag:'`
10838 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10839 (eval "$lt_compile" 2>out/conftest.err)
10841 cat out/conftest.err >&5
10842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10845 # The compiler can only warn and ignore the option if not recognized
10846 # So say no if there are warnings
10847 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10848 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10849 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10850 lt_cv_prog_compiler_c_o=yes
10855 # SGI C++ compiler will create directory out/ii_files/ for
10856 # template instantiation
10857 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10858 $RM out/* && rmdir out
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10865 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10870 hard_links="nottested"
10871 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10872 # do not overwrite the value of need_locks provided by the user
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10874 $as_echo_n "checking if we can lock with hard links... " >&6; }
10877 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10879 ln conftest.a conftest.b 2>&5 || hard_links=no
10880 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10882 $as_echo "$hard_links" >&6; }
10883 if test "$hard_links" = no; then
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10885 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10898 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10901 allow_undefined_flag=
10902 always_export_symbols=no
10904 archive_expsym_cmds=
10905 compiler_needs_object=no
10906 enable_shared_with_static_runtimes=no
10907 export_dynamic_flag_spec=
10908 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10909 hardcode_automatic=no
10911 hardcode_direct_absolute=no
10912 hardcode_libdir_flag_spec=
10913 hardcode_libdir_separator=
10914 hardcode_minus_L=no
10915 hardcode_shlibpath_var=unsupported
10917 link_all_deplibs=unknown
10919 module_expsym_cmds=
10920 old_archive_from_new_cmds=
10921 old_archive_from_expsyms_cmds=
10922 thread_safe_flag_spec=
10923 whole_archive_flag_spec=
10924 # include_expsyms should be a list of space-separated symbols to be *always*
10925 # included in the symbol list
10927 # exclude_expsyms can be an extended regexp of symbols to exclude
10928 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10929 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10930 # as well as any symbol that contains `d'.
10931 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10932 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10933 # platforms (ab)use it in PIC code, but their linkers get confused if
10934 # the symbol is explicitly referenced. Since portable code cannot
10935 # rely on this symbol name, it's probably fine to never include it in
10936 # preloaded symbol tables.
10937 # Exclude shared library initialization/finalization symbols.
10938 extract_expsyms_cmds=
10941 cygwin* | mingw* | pw32* | cegcc*)
10942 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10943 # When not using gcc, we currently assume that we are using
10944 # Microsoft Visual C++.
10945 if test "$GCC" != yes; then
10950 # we just hope/assume this is gcc and not c89 (= MSVC++)
10956 linux* | k*bsd*-gnu | gnu*)
10957 link_all_deplibs=no
10963 # On some targets, GNU ld is compatible enough with the native linker
10964 # that we're better off using the native interface for both.
10965 lt_use_gnu_ld_interface=no
10966 if test "$with_gnu_ld" = yes; then
10969 # The AIX port of GNU ld has always aspired to compatibility
10970 # with the native linker. However, as the warning in the GNU ld
10971 # block says, versions before 2.19.5* couldn't really create working
10972 # shared libraries, regardless of the interface used.
10973 case `$LD -v 2>&1` in
10974 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10975 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10976 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10978 lt_use_gnu_ld_interface=yes
10983 lt_use_gnu_ld_interface=yes
10988 if test "$lt_use_gnu_ld_interface" = yes; then
10989 # If archive_cmds runs LD, not CC, wlarc should be empty
10992 # Set some defaults for GNU ld with shared library support. These
10993 # are reset later if shared libraries are not supported. Putting them
10994 # here allows them to be overridden if necessary.
10995 runpath_var=LD_RUN_PATH
10996 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10997 export_dynamic_flag_spec='${wl}--export-dynamic'
10998 # ancient GNU ld didn't support --whole-archive et. al.
10999 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11000 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11002 whole_archive_flag_spec=
11004 supports_anon_versioning=no
11005 case `$LD -v 2>&1` in
11006 *GNU\ gold*) supports_anon_versioning=yes ;;
11007 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11008 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11009 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11010 *\ 2.11.*) ;; # other 2.11 versions
11011 *) supports_anon_versioning=yes ;;
11014 # See if GNU ld supports shared libraries.
11017 # On AIX/PPC, the GNU linker is very broken
11018 if test "$host_cpu" != ia64; then
11022 *** Warning: the GNU linker, at least up to release 2.19, is reported
11023 *** to be unable to reliably create shared libraries on AIX.
11024 *** Therefore, libtool is disabling shared libraries support. If you
11025 *** really care for shared libraries, you may want to install binutils
11026 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11027 *** You will then need to restart the configuration process.
11036 # see comment about AmigaOS4 .so support
11037 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11038 archive_expsym_cmds=''
11041 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)'
11042 hardcode_libdir_flag_spec='-L$libdir'
11043 hardcode_minus_L=yes
11049 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11050 allow_undefined_flag=unsupported
11051 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11052 # support --undefined. This deserves some investigation. FIXME
11053 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11059 cygwin* | mingw* | pw32* | cegcc*)
11060 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11061 # as there is no search path for DLLs.
11062 hardcode_libdir_flag_spec='-L$libdir'
11063 export_dynamic_flag_spec='${wl}--export-all-symbols'
11064 allow_undefined_flag=unsupported
11065 always_export_symbols=no
11066 enable_shared_with_static_runtimes=yes
11067 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'
11068 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11070 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11071 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11072 # If the export-symbols file already is a .def file (1st line
11073 # is EXPORTS), use it as is; otherwise, prepend...
11074 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11075 cp $export_symbols $output_objdir/$soname.def;
11077 echo EXPORTS > $output_objdir/$soname.def;
11078 cat $export_symbols >> $output_objdir/$soname.def;
11080 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11087 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11088 link_all_deplibs=yes
11093 hardcode_shlibpath_var=no
11094 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11095 export_dynamic_flag_spec='${wl}-E'
11096 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11097 # Instead, shared libraries are loaded at an image base (0x10000000 by
11098 # default) and relocated if they conflict, which is a slow very memory
11099 # consuming and fragmenting process. To avoid this, we pick a random,
11100 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11101 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11102 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11103 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'
11106 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11108 if test "$host_os" = linux-dietlibc; then
11109 case $cc_basename in
11110 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11113 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11114 && test "$tmp_diet" = no
11116 tmp_addflag=' $pic_flag'
11117 tmp_sharedflag='-shared'
11118 case $cc_basename,$host_cpu in
11119 pgcc*) # Portland Group C compiler
11120 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'
11121 tmp_addflag=' $pic_flag'
11123 pgf77* | pgf90* | pgf95* | pgfortran*)
11124 # Portland Group f77 and f90 compilers
11125 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'
11126 tmp_addflag=' $pic_flag -Mnomain' ;;
11127 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11128 tmp_addflag=' -i_dynamic' ;;
11129 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11130 tmp_addflag=' -i_dynamic -nofor_main' ;;
11131 ifc* | ifort*) # Intel Fortran compiler
11132 tmp_addflag=' -nofor_main' ;;
11133 lf95*) # Lahey Fortran 8.1
11134 whole_archive_flag_spec=
11135 tmp_sharedflag='--shared' ;;
11136 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11137 tmp_sharedflag='-qmkshrobj'
11139 nvcc*) # Cuda Compiler Driver 2.2
11140 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'
11141 compiler_needs_object=yes
11144 case `$CC -V 2>&1 | sed 5q` in
11145 *Sun\ C*) # Sun C 5.9
11146 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'
11147 compiler_needs_object=yes
11148 tmp_sharedflag='-G' ;;
11149 *Sun\ F*) # Sun Fortran 8.3
11150 tmp_sharedflag='-G' ;;
11152 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11154 if test "x$supports_anon_versioning" = xyes; then
11155 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11156 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11157 echo "local: *; };" >> $output_objdir/$libname.ver~
11158 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11161 case $cc_basename in
11162 xlf* | bgf* | bgxlf* | mpixlf*)
11163 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11164 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11165 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11166 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11167 if test "x$supports_anon_versioning" = xyes; then
11168 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11169 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11170 echo "local: *; };" >> $output_objdir/$libname.ver~
11171 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11180 netbsd* | netbsdelf*-gnu)
11181 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11182 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11185 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11186 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11191 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11195 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11196 *** create shared libraries on Solaris systems. Therefore, libtool
11197 *** is disabling shared libraries support. We urge you to upgrade GNU
11198 *** binutils to release 2.9.1 or newer. Another option is to modify
11199 *** your PATH or compiler configuration so that the native linker is
11200 *** used, and then restart.
11203 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11204 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11205 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11211 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11212 case `$LD -v 2>&1` in
11213 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11217 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11218 *** reliably create shared libraries on SCO systems. Therefore, libtool
11219 *** is disabling shared libraries support. We urge you to upgrade GNU
11220 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11221 *** your PATH or compiler configuration so that the native linker is
11222 *** used, and then restart.
11227 # For security reasons, it is highly recommended that you always
11228 # use absolute paths for naming shared libraries, and exclude the
11229 # DT_RUNPATH tag from executables and libraries. But doing so
11230 # requires that you compile everything twice, which is a pain.
11231 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11232 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11233 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11234 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11243 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11245 hardcode_direct=yes
11246 hardcode_shlibpath_var=no
11250 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11251 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11252 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11259 if test "$ld_shlibs" = no; then
11261 hardcode_libdir_flag_spec=
11262 export_dynamic_flag_spec=
11263 whole_archive_flag_spec=
11266 # PORTME fill in a description of your system's linker (not GNU ld)
11269 allow_undefined_flag=unsupported
11270 always_export_symbols=yes
11271 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'
11272 # Note: this linker hardcodes the directories in LIBPATH if there
11273 # are no directories specified by -L.
11274 hardcode_minus_L=yes
11275 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11276 # Neither direct hardcoding nor static linking is supported with a
11278 hardcode_direct=unsupported
11283 if test "$host_cpu" = ia64; then
11284 # On IA64, the linker does run time linking by default, so we don't
11285 # have to do anything special.
11286 aix_use_runtimelinking=no
11287 exp_sym_flag='-Bexport'
11290 # If we're using GNU nm, then we don't want the "-C" option.
11291 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11292 # Also, AIX nm treats weak defined symbols like other global
11293 # defined symbols, whereas GNU nm marks them as "W".
11294 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11295 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'
11297 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'
11299 aix_use_runtimelinking=no
11301 # Test if we are trying to use run time linking or normal
11302 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11303 # need to do runtime linking.
11304 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11305 for ld_flag in $LDFLAGS; do
11306 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11307 aix_use_runtimelinking=yes
11314 exp_sym_flag='-bexport'
11315 no_entry_flag='-bnoentry'
11318 # When large executables or shared objects are built, AIX ld can
11319 # have problems creating the table of contents. If linking a library
11320 # or program results in "error TOC overflow" add -mminimal-toc to
11321 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11322 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11325 hardcode_direct=yes
11326 hardcode_direct_absolute=yes
11327 hardcode_libdir_separator=':'
11328 link_all_deplibs=yes
11329 file_list_spec='${wl}-f,'
11331 if test "$GCC" = yes; then
11332 case $host_os in aix4.[012]|aix4.[012].*)
11333 # We only want to do this on AIX 4.2 and lower, the check
11334 # below for broken collect2 doesn't work under 4.3+
11335 collect2name=`${CC} -print-prog-name=collect2`
11336 if test -f "$collect2name" &&
11337 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11339 # We have reworked collect2
11342 # We have old collect2
11343 hardcode_direct=unsupported
11344 # It fails to find uninstalled libraries when the uninstalled
11345 # path is not listed in the libpath. Setting hardcode_minus_L
11346 # to unsupported forces relinking
11347 hardcode_minus_L=yes
11348 hardcode_libdir_flag_spec='-L$libdir'
11349 hardcode_libdir_separator=
11353 shared_flag='-shared'
11354 if test "$aix_use_runtimelinking" = yes; then
11355 shared_flag="$shared_flag "'${wl}-G'
11357 link_all_deplibs=no
11360 if test "$host_cpu" = ia64; then
11361 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11362 # chokes on -Wl,-G. The following line is correct:
11365 if test "$aix_use_runtimelinking" = yes; then
11366 shared_flag='${wl}-G'
11368 shared_flag='${wl}-bM:SRE'
11373 export_dynamic_flag_spec='${wl}-bexpall'
11374 # It seems that -bexpall does not export symbols beginning with
11375 # underscore (_), so it is better to generate a list of symbols to export.
11376 always_export_symbols=yes
11377 if test "$aix_use_runtimelinking" = yes; then
11378 # Warning - without using the other runtime loading flags (-brtl),
11379 # -berok will link without error, but may produce a broken library.
11380 allow_undefined_flag='-berok'
11381 # Determine the default libpath from the value encoded in an
11382 # empty executable.
11383 if test "${lt_cv_aix_libpath+set}" = set; then
11384 aix_libpath=$lt_cv_aix_libpath
11386 if ${lt_cv_aix_libpath_+:} false; then :
11387 $as_echo_n "(cached) " >&6
11389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11390 /* end confdefs.h. */
11400 if ac_fn_c_try_link "$LINENO"; then :
11402 lt_aix_libpath_sed='
11403 /Import File Strings/,/^$/ {
11405 s/^0 *\([^ ]*\) *$/\1/
11409 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11410 # Check for a 64-bit object if we didn't find anything.
11411 if test -z "$lt_cv_aix_libpath_"; then
11412 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11415 rm -f core conftest.err conftest.$ac_objext \
11416 conftest$ac_exeext conftest.$ac_ext
11417 if test -z "$lt_cv_aix_libpath_"; then
11418 lt_cv_aix_libpath_="/usr/lib:/lib"
11423 aix_libpath=$lt_cv_aix_libpath_
11426 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11427 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"
11429 if test "$host_cpu" = ia64; then
11430 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11431 allow_undefined_flag="-z nodefs"
11432 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"
11434 # Determine the default libpath from the value encoded in an
11435 # empty executable.
11436 if test "${lt_cv_aix_libpath+set}" = set; then
11437 aix_libpath=$lt_cv_aix_libpath
11439 if ${lt_cv_aix_libpath_+:} false; then :
11440 $as_echo_n "(cached) " >&6
11442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11443 /* end confdefs.h. */
11453 if ac_fn_c_try_link "$LINENO"; then :
11455 lt_aix_libpath_sed='
11456 /Import File Strings/,/^$/ {
11458 s/^0 *\([^ ]*\) *$/\1/
11462 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11463 # Check for a 64-bit object if we didn't find anything.
11464 if test -z "$lt_cv_aix_libpath_"; then
11465 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11468 rm -f core conftest.err conftest.$ac_objext \
11469 conftest$ac_exeext conftest.$ac_ext
11470 if test -z "$lt_cv_aix_libpath_"; then
11471 lt_cv_aix_libpath_="/usr/lib:/lib"
11476 aix_libpath=$lt_cv_aix_libpath_
11479 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11480 # Warning - without using the other run time loading flags,
11481 # -berok will link without error, but may produce a broken library.
11482 no_undefined_flag=' ${wl}-bernotok'
11483 allow_undefined_flag=' ${wl}-berok'
11484 if test "$with_gnu_ld" = yes; then
11485 # We only use this code for GNU lds that support --whole-archive.
11486 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11488 # Exported symbols can be pulled into shared objects from archives
11489 whole_archive_flag_spec='$convenience'
11491 archive_cmds_need_lc=yes
11492 # This is similar to how AIX traditionally builds its shared libraries.
11493 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'
11501 # see comment about AmigaOS4 .so support
11502 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11503 archive_expsym_cmds=''
11506 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)'
11507 hardcode_libdir_flag_spec='-L$libdir'
11508 hardcode_minus_L=yes
11514 export_dynamic_flag_spec=-rdynamic
11517 cygwin* | mingw* | pw32* | cegcc*)
11518 # When not using gcc, we currently assume that we are using
11519 # Microsoft Visual C++.
11520 # hardcode_libdir_flag_spec is actually meaningless, as there is
11521 # no search path for DLLs.
11522 case $cc_basename in
11525 hardcode_libdir_flag_spec=' '
11526 allow_undefined_flag=unsupported
11527 always_export_symbols=yes
11529 # Tell ltmain to make .lib files, not .a files.
11531 # Tell ltmain to make .dll files, not .so files.
11533 # FIXME: Setting linknames here is a bad hack.
11534 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11535 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11536 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11538 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11540 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11542 # The linker will not automatically build a static lib if we build a DLL.
11543 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11544 enable_shared_with_static_runtimes=yes
11545 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11546 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11548 old_postinstall_cmds='chmod 644 $oldlib'
11549 postlink_cmds='lt_outputfile="@OUTPUT@"~
11550 lt_tool_outputfile="@TOOL_OUTPUT@"~
11551 case $lt_outputfile in
11554 lt_outputfile="$lt_outputfile.exe"
11555 lt_tool_outputfile="$lt_tool_outputfile.exe"
11558 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11559 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11560 $RM "$lt_outputfile.manifest";
11564 # Assume MSVC wrapper
11565 hardcode_libdir_flag_spec=' '
11566 allow_undefined_flag=unsupported
11567 # Tell ltmain to make .lib files, not .a files.
11569 # Tell ltmain to make .dll files, not .so files.
11571 # FIXME: Setting linknames here is a bad hack.
11572 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11573 # The linker will automatically build a .lib file if we build a DLL.
11574 old_archive_from_new_cmds='true'
11575 # FIXME: Should let the user specify the lib program.
11576 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11577 enable_shared_with_static_runtimes=yes
11582 darwin* | rhapsody*)
11585 archive_cmds_need_lc=no
11587 hardcode_automatic=yes
11588 hardcode_shlibpath_var=unsupported
11589 if test "$lt_cv_ld_force_load" = "yes"; then
11590 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\"`'
11593 whole_archive_flag_spec=''
11595 link_all_deplibs=yes
11596 allow_undefined_flag="$_lt_dar_allow_undefined"
11597 case $cc_basename in
11598 ifort*) _lt_dar_can_shared=yes ;;
11599 *) _lt_dar_can_shared=$GCC ;;
11601 if test "$_lt_dar_can_shared" = "yes"; then
11602 output_verbose_link_cmd=func_echo_all
11603 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11604 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11605 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}"
11606 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}"
11615 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11616 hardcode_libdir_flag_spec='-L$libdir'
11617 hardcode_shlibpath_var=no
11620 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11621 # support. Future versions do this automatically, but an explicit c++rt0.o
11622 # does not break anything, and helps significantly (at the cost of a little
11625 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11626 hardcode_libdir_flag_spec='-R$libdir'
11627 hardcode_direct=yes
11628 hardcode_shlibpath_var=no
11631 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11633 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11634 hardcode_direct=yes
11635 hardcode_minus_L=yes
11636 hardcode_shlibpath_var=no
11639 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11640 freebsd* | dragonfly*)
11641 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11642 hardcode_libdir_flag_spec='-R$libdir'
11643 hardcode_direct=yes
11644 hardcode_shlibpath_var=no
11648 if test "$GCC" = yes; then
11649 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'
11651 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'
11653 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11654 hardcode_libdir_separator=:
11655 hardcode_direct=yes
11657 # hardcode_minus_L: Not really in the search PATH,
11658 # but as the default location of the library.
11659 hardcode_minus_L=yes
11660 export_dynamic_flag_spec='${wl}-E'
11664 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11665 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11667 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11669 if test "$with_gnu_ld" = no; then
11670 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11671 hardcode_libdir_separator=:
11672 hardcode_direct=yes
11673 hardcode_direct_absolute=yes
11674 export_dynamic_flag_spec='${wl}-E'
11675 # hardcode_minus_L: Not really in the search PATH,
11676 # but as the default location of the library.
11677 hardcode_minus_L=yes
11682 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11685 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11688 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11691 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11697 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11700 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11704 # Older versions of the 11.00 compiler do not understand -b yet
11705 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11707 $as_echo_n "checking if $CC understands -b... " >&6; }
11708 if ${lt_cv_prog_compiler__b+:} false; then :
11709 $as_echo_n "(cached) " >&6
11711 lt_cv_prog_compiler__b=no
11712 save_LDFLAGS="$LDFLAGS"
11713 LDFLAGS="$LDFLAGS -b"
11714 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11715 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11716 # The linker can only warn and ignore the option if not recognized
11717 # So say no if there are warnings
11718 if test -s conftest.err; then
11719 # Append any errors to the config.log.
11720 cat conftest.err 1>&5
11721 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11722 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11723 if diff conftest.exp conftest.er2 >/dev/null; then
11724 lt_cv_prog_compiler__b=yes
11727 lt_cv_prog_compiler__b=yes
11731 LDFLAGS="$save_LDFLAGS"
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11735 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11737 if test x"$lt_cv_prog_compiler__b" = xyes; then
11738 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11740 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11746 if test "$with_gnu_ld" = no; then
11747 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11748 hardcode_libdir_separator=:
11753 hardcode_shlibpath_var=no
11756 hardcode_direct=yes
11757 hardcode_direct_absolute=yes
11758 export_dynamic_flag_spec='${wl}-E'
11760 # hardcode_minus_L: Not really in the search PATH,
11761 # but as the default location of the library.
11762 hardcode_minus_L=yes
11768 irix5* | irix6* | nonstopux*)
11769 if test "$GCC" = yes; then
11770 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'
11771 # Try to use the -exported_symbol ld option, if it does not
11772 # work, assume that -exports_file does not work either and
11773 # implicitly export all symbols.
11774 # This should be the same for all languages, so no per-tag cache variable.
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11776 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11777 if ${lt_cv_irix_exported_symbol+:} false; then :
11778 $as_echo_n "(cached) " >&6
11780 save_LDFLAGS="$LDFLAGS"
11781 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11783 /* end confdefs.h. */
11784 int foo (void) { return 0; }
11786 if ac_fn_c_try_link "$LINENO"; then :
11787 lt_cv_irix_exported_symbol=yes
11789 lt_cv_irix_exported_symbol=no
11791 rm -f core conftest.err conftest.$ac_objext \
11792 conftest$ac_exeext conftest.$ac_ext
11793 LDFLAGS="$save_LDFLAGS"
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11796 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11797 if test "$lt_cv_irix_exported_symbol" = yes; then
11798 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'
11801 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'
11802 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'
11804 archive_cmds_need_lc='no'
11805 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11806 hardcode_libdir_separator=:
11808 link_all_deplibs=yes
11811 netbsd* | netbsdelf*-gnu)
11812 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11813 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11815 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11817 hardcode_libdir_flag_spec='-R$libdir'
11818 hardcode_direct=yes
11819 hardcode_shlibpath_var=no
11823 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11824 hardcode_direct=yes
11825 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11826 hardcode_libdir_separator=:
11827 hardcode_shlibpath_var=no
11834 if test -f /usr/libexec/ld.so; then
11835 hardcode_direct=yes
11836 hardcode_shlibpath_var=no
11837 hardcode_direct_absolute=yes
11838 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11839 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11840 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11841 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11842 export_dynamic_flag_spec='${wl}-E'
11845 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11846 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11847 hardcode_libdir_flag_spec='-R$libdir'
11850 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11851 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11861 hardcode_libdir_flag_spec='-L$libdir'
11862 hardcode_minus_L=yes
11863 allow_undefined_flag=unsupported
11864 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'
11865 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11869 if test "$GCC" = yes; then
11870 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11871 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'
11873 allow_undefined_flag=' -expect_unresolved \*'
11874 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'
11876 archive_cmds_need_lc='no'
11877 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11878 hardcode_libdir_separator=:
11881 osf4* | osf5*) # as osf3* with the addition of -msym flag
11882 if test "$GCC" = yes; then
11883 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11884 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'
11885 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11887 allow_undefined_flag=' -expect_unresolved \*'
11888 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'
11889 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~
11890 $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'
11892 # Both c and cxx compiler support -rpath directly
11893 hardcode_libdir_flag_spec='-rpath $libdir'
11895 archive_cmds_need_lc='no'
11896 hardcode_libdir_separator=:
11900 no_undefined_flag=' -z defs'
11901 if test "$GCC" = yes; then
11903 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11904 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11905 $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'
11907 case `$CC -V 2>&1` in
11910 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11911 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11912 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11916 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11917 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11918 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11922 hardcode_libdir_flag_spec='-R$libdir'
11923 hardcode_shlibpath_var=no
11925 solaris2.[0-5] | solaris2.[0-5].*) ;;
11927 # The compiler driver will combine and reorder linker options,
11928 # but understands `-z linker_flag'. GCC discards it without `$wl',
11929 # but is careful enough not to reorder.
11930 # Supported since Solaris 2.6 (maybe 2.5.1?)
11931 if test "$GCC" = yes; then
11932 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11934 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11938 link_all_deplibs=yes
11942 if test "x$host_vendor" = xsequent; then
11943 # Use $CC to link under sequent, because it throws in some extra .o
11944 # files that make .init and .fini sections work.
11945 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11947 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11949 hardcode_libdir_flag_spec='-L$libdir'
11950 hardcode_direct=yes
11951 hardcode_minus_L=yes
11952 hardcode_shlibpath_var=no
11956 case $host_vendor in
11958 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11959 hardcode_direct=yes # is this really true???
11962 ## LD is ld it makes a PLAMLIB
11963 ## CC just makes a GrossModule.
11964 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11965 reload_cmds='$CC -r -o $output$reload_objs'
11969 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11970 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11973 runpath_var='LD_RUN_PATH'
11974 hardcode_shlibpath_var=no
11978 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11979 hardcode_shlibpath_var=no
11980 export_dynamic_flag_spec='-Bexport'
11984 if test -d /usr/nec; then
11985 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11986 hardcode_shlibpath_var=no
11987 runpath_var=LD_RUN_PATH
11988 hardcode_runpath_var=yes
11993 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11994 no_undefined_flag='${wl}-z,text'
11995 archive_cmds_need_lc=no
11996 hardcode_shlibpath_var=no
11997 runpath_var='LD_RUN_PATH'
11999 if test "$GCC" = yes; then
12000 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12001 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12003 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12004 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12008 sysv5* | sco3.2v5* | sco5v6*)
12009 # Note: We can NOT use -z defs as we might desire, because we do not
12010 # link with -lc, and that would cause any symbols used from libc to
12011 # always be unresolved, which means just about no library would
12012 # ever link correctly. If we're not using GNU ld we use -z text
12013 # though, which does catch some bad symbols but isn't as heavy-handed
12015 no_undefined_flag='${wl}-z,text'
12016 allow_undefined_flag='${wl}-z,nodefs'
12017 archive_cmds_need_lc=no
12018 hardcode_shlibpath_var=no
12019 hardcode_libdir_flag_spec='${wl}-R,$libdir'
12020 hardcode_libdir_separator=':'
12021 link_all_deplibs=yes
12022 export_dynamic_flag_spec='${wl}-Bexport'
12023 runpath_var='LD_RUN_PATH'
12025 if test "$GCC" = yes; then
12026 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12027 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12029 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12030 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12035 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12036 hardcode_libdir_flag_spec='-L$libdir'
12037 hardcode_shlibpath_var=no
12045 if test x$host_vendor = xsni; then
12047 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12048 export_dynamic_flag_spec='${wl}-Blargedynsym'
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12055 $as_echo "$ld_shlibs" >&6; }
12056 test "$ld_shlibs" = no && can_build_shared=no
12058 with_gnu_ld=$with_gnu_ld
12075 # Do we need to explicitly link libc?
12077 case "x$archive_cmds_need_lc" in
12079 # Assume -lc should be added
12080 archive_cmds_need_lc=yes
12082 if test "$enable_shared" = yes && test "$GCC" = yes; then
12083 case $archive_cmds in
12085 # FIXME: we may have to deal with multi-command sequences.
12088 # Test whether the compiler implicitly links with -lc since on some
12089 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12090 # to ld, don't add -lc before -lgcc.
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12092 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12093 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12094 $as_echo_n "(cached) " >&6
12097 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12099 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12100 (eval $ac_compile) 2>&5
12102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12103 test $ac_status = 0; } 2>conftest.err; then
12106 libobjs=conftest.$ac_objext
12108 wl=$lt_prog_compiler_wl
12109 pic_flag=$lt_prog_compiler_pic
12115 lt_save_allow_undefined_flag=$allow_undefined_flag
12116 allow_undefined_flag=
12117 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12118 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12121 test $ac_status = 0; }
12123 lt_cv_archive_cmds_need_lc=no
12125 lt_cv_archive_cmds_need_lc=yes
12127 allow_undefined_flag=$lt_save_allow_undefined_flag
12129 cat conftest.err 1>&5
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12135 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12136 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12295 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12297 if test "$GCC" = yes; then
12299 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12300 *) lt_awk_arg="/^libraries:/" ;;
12303 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12304 *) lt_sed_strip_eq="s,=/,/,g" ;;
12306 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12307 case $lt_search_path_spec in
12309 # if the path contains ";" then we assume it to be the separator
12310 # otherwise default to the standard path separator (i.e. ":") - it is
12311 # assumed that no part of a normal pathname contains ";" but that should
12312 # okay in the real world where ";" in dirpaths is itself problematic.
12313 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12316 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12319 # Ok, now we have the path, separated by spaces, we can step through it
12320 # and add multilib dir if necessary.
12321 lt_tmp_lt_search_path_spec=
12322 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12323 for lt_sys_path in $lt_search_path_spec; do
12324 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12325 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12327 test -d "$lt_sys_path" && \
12328 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12331 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12332 BEGIN {RS=" "; FS="/|\n";} {
12335 for (lt_i = NF; lt_i > 0; lt_i--) {
12336 if ($lt_i != "" && $lt_i != ".") {
12337 if ($lt_i == "..") {
12340 if (lt_count == 0) {
12341 lt_foo="/" $lt_i lt_foo;
12348 if (lt_foo != "") { lt_freq[lt_foo]++; }
12349 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12351 # AWK program above erroneously prepends '/' to C:/dos/paths
12354 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12355 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12357 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12359 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12361 library_names_spec=
12362 libname_spec='lib$name'
12366 postuninstall_cmds=
12370 shlibpath_overrides_runpath=unknown
12372 dynamic_linker="$host_os ld.so"
12373 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12374 need_lib_prefix=unknown
12375 hardcode_into_libs=no
12377 # when you set need_version to no, make sure it does not cause -set_version
12378 # flags to be left without arguments
12379 need_version=unknown
12383 version_type=linux # correct to gnu/linux during the next big refactor
12384 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12385 shlibpath_var=LIBPATH
12387 # AIX 3 has no versioning support, so we append a major version to the name.
12388 soname_spec='${libname}${release}${shared_ext}$major'
12392 version_type=linux # correct to gnu/linux during the next big refactor
12395 hardcode_into_libs=yes
12396 if test "$host_cpu" = ia64; then
12397 # AIX 5 supports IA64
12398 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12399 shlibpath_var=LD_LIBRARY_PATH
12401 # With GCC up to 2.95.x, collect2 would create an import file
12402 # for dependence libraries. The import file would start with
12403 # the line `#! .'. This would cause the generated library to
12404 # depend on `.', always an invalid library. This was fixed in
12405 # development snapshots of GCC prior to 3.0.
12407 aix4 | aix4.[01] | aix4.[01].*)
12408 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12410 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12413 can_build_shared=no
12417 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12418 # soname into executable. Probably we can add versioning support to
12419 # collect2, so additional links can be useful in future.
12420 if test "$aix_use_runtimelinking" = yes; then
12421 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12422 # instead of lib<name>.a to let people know that these are not
12423 # typical AIX shared libraries.
12424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12426 # We preserve .a as extension for shared libraries through AIX4.2
12427 # and later when we are not doing run time linking.
12428 library_names_spec='${libname}${release}.a $libname.a'
12429 soname_spec='${libname}${release}${shared_ext}$major'
12431 shlibpath_var=LIBPATH
12438 # Since July 2007 AmigaOS4 officially supports .so libraries.
12439 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12443 library_names_spec='$libname.ixlibrary $libname.a'
12444 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12445 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'
12451 library_names_spec='${libname}${shared_ext}'
12452 dynamic_linker="$host_os ld.so"
12453 shlibpath_var=LIBRARY_PATH
12457 version_type=linux # correct to gnu/linux during the next big refactor
12459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12460 soname_spec='${libname}${release}${shared_ext}$major'
12461 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12462 shlibpath_var=LD_LIBRARY_PATH
12463 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12464 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12465 # the default ld.so.conf also contains /usr/contrib/lib and
12466 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12467 # libtool to hard-code these into programs
12470 cygwin* | mingw* | pw32* | cegcc*)
12471 version_type=windows
12476 case $GCC,$cc_basename in
12479 library_names_spec='$libname.dll.a'
12480 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12481 postinstall_cmds='base_file=`basename \${file}`~
12482 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12483 dldir=$destdir/`dirname \$dlpath`~
12484 test -d \$dldir || mkdir -p \$dldir~
12485 $install_prog $dir/$dlname \$dldir/$dlname~
12486 chmod a+x \$dldir/$dlname~
12487 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12488 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12490 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12491 dlpath=$dir/\$dldll~
12493 shlibpath_overrides_runpath=yes
12497 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12498 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12500 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12503 # MinGW DLLs use traditional 'lib' prefix
12504 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12507 # pw32 DLLs use 'pw' prefix rather than 'lib'
12508 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12511 dynamic_linker='Win32 ld.exe'
12516 libname_spec='$name'
12517 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12518 library_names_spec='${libname}.dll.lib'
12522 sys_lib_search_path_spec=
12525 for lt_path in $LIB
12528 # Let DOS variable expansion print the short 8.3 style file name.
12529 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12530 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12533 # Convert to MSYS style.
12534 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12537 # Convert to unix form, then to dos form, then back to unix form
12538 # but this time dos style (no spaces!) so that the unix form looks
12539 # like /cygdrive/c/PROGRA~1:/cygdr...
12540 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12541 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12542 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12545 sys_lib_search_path_spec="$LIB"
12546 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12547 # It is most probably a Windows format PATH.
12548 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12550 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12552 # FIXME: find the short name or the path components, as spaces are
12553 # common. (e.g. "Program Files" -> "PROGRA~1")
12557 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12558 postinstall_cmds='base_file=`basename \${file}`~
12559 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12560 dldir=$destdir/`dirname \$dlpath`~
12561 test -d \$dldir || mkdir -p \$dldir~
12562 $install_prog $dir/$dlname \$dldir/$dlname'
12563 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12564 dlpath=$dir/\$dldll~
12566 shlibpath_overrides_runpath=yes
12567 dynamic_linker='Win32 link.exe'
12571 # Assume MSVC wrapper
12572 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12573 dynamic_linker='Win32 ld.exe'
12576 # FIXME: first we should search . and the directory the executable is in
12580 darwin* | rhapsody*)
12581 dynamic_linker="$host_os dyld"
12582 version_type=darwin
12585 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12586 soname_spec='${libname}${release}${major}$shared_ext'
12587 shlibpath_overrides_runpath=yes
12588 shlibpath_var=DYLD_LIBRARY_PATH
12589 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12591 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12592 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12596 version_type=linux # correct to gnu/linux during the next big refactor
12599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12600 soname_spec='${libname}${release}${shared_ext}$major'
12601 shlibpath_var=LD_LIBRARY_PATH
12604 freebsd* | dragonfly*)
12605 # DragonFly does not have aout. When/if they implement a new
12606 # versioning mechanism, adjust this.
12607 if test -x /usr/bin/objformat; then
12608 objformat=`/usr/bin/objformat`
12611 freebsd[23].*) objformat=aout ;;
12612 *) objformat=elf ;;
12615 version_type=freebsd-$objformat
12616 case $version_type in
12618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12623 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12627 shlibpath_var=LD_LIBRARY_PATH
12630 shlibpath_overrides_runpath=yes
12632 freebsd3.[01]* | freebsdelf3.[01]*)
12633 shlibpath_overrides_runpath=yes
12634 hardcode_into_libs=yes
12636 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12637 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12638 shlibpath_overrides_runpath=no
12639 hardcode_into_libs=yes
12641 *) # from 4.6 on, and DragonFly
12642 shlibpath_overrides_runpath=yes
12643 hardcode_into_libs=yes
12649 version_type=linux # correct to gnu/linux during the next big refactor
12652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12653 soname_spec='${libname}${release}${shared_ext}$major'
12654 shlibpath_var=LD_LIBRARY_PATH
12655 shlibpath_overrides_runpath=no
12656 hardcode_into_libs=yes
12660 version_type=linux # correct to gnu/linux during the next big refactor
12663 dynamic_linker="$host_os runtime_loader"
12664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12665 soname_spec='${libname}${release}${shared_ext}$major'
12666 shlibpath_var=LIBRARY_PATH
12667 shlibpath_overrides_runpath=yes
12668 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12669 hardcode_into_libs=yes
12672 hpux9* | hpux10* | hpux11*)
12673 # Give a soname corresponding to the major version so that dld.sl refuses to
12674 # link against other versions.
12681 hardcode_into_libs=yes
12682 dynamic_linker="$host_os dld.so"
12683 shlibpath_var=LD_LIBRARY_PATH
12684 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12686 soname_spec='${libname}${release}${shared_ext}$major'
12687 if test "X$HPUX_IA64_MODE" = X32; then
12688 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12690 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12692 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12696 hardcode_into_libs=yes
12697 dynamic_linker="$host_os dld.sl"
12698 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12699 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12701 soname_spec='${libname}${release}${shared_ext}$major'
12702 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12703 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12707 dynamic_linker="$host_os dld.sl"
12708 shlibpath_var=SHLIB_PATH
12709 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12711 soname_spec='${libname}${release}${shared_ext}$major'
12714 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12715 postinstall_cmds='chmod 555 $lib'
12716 # or fails outright, so override atomically:
12717 install_override_mode=555
12721 version_type=linux # correct to gnu/linux during the next big refactor
12724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12725 soname_spec='${libname}${release}${shared_ext}$major'
12726 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12727 shlibpath_var=LD_LIBRARY_PATH
12728 shlibpath_overrides_runpath=no
12729 hardcode_into_libs=yes
12732 irix5* | irix6* | nonstopux*)
12734 nonstopux*) version_type=nonstopux ;;
12736 if test "$lt_cv_prog_gnu_ld" = yes; then
12737 version_type=linux # correct to gnu/linux during the next big refactor
12744 soname_spec='${libname}${release}${shared_ext}$major'
12745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12747 irix5* | nonstopux*)
12748 libsuff= shlibsuff=
12751 case $LD in # libtool.m4 will add one of these switches to LD
12752 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12753 libsuff= shlibsuff= libmagic=32-bit;;
12754 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12755 libsuff=32 shlibsuff=N32 libmagic=N32;;
12756 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12757 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12758 *) libsuff= shlibsuff= libmagic=never-match;;
12762 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12763 shlibpath_overrides_runpath=no
12764 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12765 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12766 hardcode_into_libs=yes
12769 # No shared lib support for Linux oldld, aout, or coff.
12770 linux*oldld* | linux*aout* | linux*coff*)
12774 # This must be glibc/ELF.
12775 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12776 version_type=linux # correct to gnu/linux during the next big refactor
12779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12780 soname_spec='${libname}${release}${shared_ext}$major'
12781 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12782 shlibpath_var=LD_LIBRARY_PATH
12783 shlibpath_overrides_runpath=no
12785 # Some binutils ld are patched to set DT_RUNPATH
12786 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12787 $as_echo_n "(cached) " >&6
12789 lt_cv_shlibpath_overrides_runpath=no
12790 save_LDFLAGS=$LDFLAGS
12791 save_libdir=$libdir
12792 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12793 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12795 /* end confdefs.h. */
12805 if ac_fn_c_try_link "$LINENO"; then :
12806 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12807 lt_cv_shlibpath_overrides_runpath=yes
12810 rm -f core conftest.err conftest.$ac_objext \
12811 conftest$ac_exeext conftest.$ac_ext
12812 LDFLAGS=$save_LDFLAGS
12813 libdir=$save_libdir
12817 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12819 # This implies no fast_install, which is unacceptable.
12820 # Some rework will be needed to allow for fast_install
12821 # before this can be enabled.
12822 hardcode_into_libs=yes
12824 # Append ld.so.conf contents to the search path
12825 if test -f /etc/ld.so.conf; then
12826 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' ' '`
12827 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12830 # We used to test for /lib/ld.so.1 and disable shared libraries on
12831 # powerpc, because MkLinux only supported shared libraries with the
12832 # GNU dynamic linker. Since this was broken with cross compilers,
12833 # most powerpc-linux boxes support dynamic linking these days and
12834 # people can always --disable-shared, the test was removed, and we
12835 # assume the GNU/Linux dynamic linker is in use.
12836 dynamic_linker='GNU/Linux ld.so'
12843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12844 soname_spec='${libname}${release}${shared_ext}$major'
12845 shlibpath_var=LD_LIBRARY_PATH
12846 shlibpath_overrides_runpath=no
12847 hardcode_into_libs=yes
12848 dynamic_linker='NetBSD ld.elf_so'
12855 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12857 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12858 dynamic_linker='NetBSD (a.out) ld.so'
12860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12861 soname_spec='${libname}${release}${shared_ext}$major'
12862 dynamic_linker='NetBSD ld.elf_so'
12864 shlibpath_var=LD_LIBRARY_PATH
12865 shlibpath_overrides_runpath=yes
12866 hardcode_into_libs=yes
12870 version_type=linux # correct to gnu/linux during the next big refactor
12871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12872 shlibpath_var=LD_LIBRARY_PATH
12873 shlibpath_overrides_runpath=yes
12880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12881 soname_spec='${libname}${release}${shared_ext}$major'
12882 shlibpath_var=LD_LIBRARY_PATH
12883 shlibpath_overrides_runpath=no
12884 hardcode_into_libs=yes
12885 dynamic_linker='ldqnx.so'
12890 sys_lib_dlsearch_path_spec="/usr/lib"
12892 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12894 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12895 *) need_version=no ;;
12897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12898 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12899 shlibpath_var=LD_LIBRARY_PATH
12900 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12902 openbsd2.[89] | openbsd2.[89].*)
12903 shlibpath_overrides_runpath=no
12906 shlibpath_overrides_runpath=yes
12910 shlibpath_overrides_runpath=yes
12915 libname_spec='$name'
12918 library_names_spec='$libname${shared_ext} $libname.a'
12919 dynamic_linker='OS/2 ld.exe'
12920 shlibpath_var=LIBPATH
12923 osf3* | osf4* | osf5*)
12927 soname_spec='${libname}${release}${shared_ext}$major'
12928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12929 shlibpath_var=LD_LIBRARY_PATH
12930 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12931 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12939 version_type=linux # correct to gnu/linux during the next big refactor
12942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12943 soname_spec='${libname}${release}${shared_ext}$major'
12944 shlibpath_var=LD_LIBRARY_PATH
12945 shlibpath_overrides_runpath=yes
12946 hardcode_into_libs=yes
12947 # ldd complains unless libraries are executable
12948 postinstall_cmds='chmod +x $lib'
12953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12954 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12955 shlibpath_var=LD_LIBRARY_PATH
12956 shlibpath_overrides_runpath=yes
12957 if test "$with_gnu_ld" = yes; then
12964 version_type=linux # correct to gnu/linux during the next big refactor
12965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12966 soname_spec='${libname}${release}${shared_ext}$major'
12967 shlibpath_var=LD_LIBRARY_PATH
12968 case $host_vendor in
12970 shlibpath_overrides_runpath=no
12972 runpath_var=LD_RUN_PATH
12980 shlibpath_overrides_runpath=no
12981 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12987 if test -d /usr/nec ;then
12988 version_type=linux # correct to gnu/linux during the next big refactor
12989 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12990 soname_spec='$libname${shared_ext}.$major'
12991 shlibpath_var=LD_LIBRARY_PATH
12995 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12996 version_type=freebsd-elf
12999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13000 soname_spec='${libname}${release}${shared_ext}$major'
13001 shlibpath_var=LD_LIBRARY_PATH
13002 shlibpath_overrides_runpath=yes
13003 hardcode_into_libs=yes
13004 if test "$with_gnu_ld" = yes; then
13005 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13007 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13010 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13014 sys_lib_dlsearch_path_spec='/usr/lib'
13018 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13019 version_type=linux # correct to gnu/linux during the next big refactor
13022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13023 shlibpath_var=LD_LIBRARY_PATH
13024 shlibpath_overrides_runpath=no
13025 hardcode_into_libs=yes
13029 version_type=linux # correct to gnu/linux during the next big refactor
13030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13031 soname_spec='${libname}${release}${shared_ext}$major'
13032 shlibpath_var=LD_LIBRARY_PATH
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13040 $as_echo "$dynamic_linker" >&6; }
13041 test "$dynamic_linker" = no && can_build_shared=no
13043 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13044 if test "$GCC" = yes; then
13045 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13048 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13049 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13051 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13052 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13147 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13149 if test -n "$hardcode_libdir_flag_spec" ||
13150 test -n "$runpath_var" ||
13151 test "X$hardcode_automatic" = "Xyes" ; then
13153 # We can hardcode non-existent directories.
13154 if test "$hardcode_direct" != no &&
13155 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13156 # have to relink, otherwise we might link with an installed library
13157 # when we should be linking with a yet-to-be-installed one
13158 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13159 test "$hardcode_minus_L" != no; then
13160 # Linking always hardcodes the temporary library directory.
13161 hardcode_action=relink
13163 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13164 hardcode_action=immediate
13167 # We cannot hardcode anything, or else we can only hardcode existing
13169 hardcode_action=unsupported
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13172 $as_echo "$hardcode_action" >&6; }
13174 if test "$hardcode_action" = relink ||
13175 test "$inherit_rpath" = yes; then
13176 # Fast installation is not supported
13177 enable_fast_install=no
13178 elif test "$shlibpath_overrides_runpath" = yes ||
13179 test "$enable_shared" = no; then
13180 # Fast installation is not necessary
13181 enable_fast_install=needless
13189 if test "x$enable_dlopen" != xyes; then
13190 enable_dlopen=unknown
13191 enable_dlopen_self=unknown
13192 enable_dlopen_self_static=unknown
13199 lt_cv_dlopen="load_add_on"
13201 lt_cv_dlopen_self=yes
13204 mingw* | pw32* | cegcc*)
13205 lt_cv_dlopen="LoadLibrary"
13210 lt_cv_dlopen="dlopen"
13215 # if libdl is installed we need to link against it
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13217 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13218 if ${ac_cv_lib_dl_dlopen+:} false; then :
13219 $as_echo_n "(cached) " >&6
13221 ac_check_lib_save_LIBS=$LIBS
13223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13224 /* end confdefs.h. */
13226 /* Override any GCC internal prototype to avoid an error.
13227 Use char because int might match the return type of a GCC
13228 builtin and then its argument prototype would still apply. */
13241 if ac_fn_c_try_link "$LINENO"; then :
13242 ac_cv_lib_dl_dlopen=yes
13244 ac_cv_lib_dl_dlopen=no
13246 rm -f core conftest.err conftest.$ac_objext \
13247 conftest$ac_exeext conftest.$ac_ext
13248 LIBS=$ac_check_lib_save_LIBS
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13251 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13252 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13253 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13256 lt_cv_dlopen="dyld"
13258 lt_cv_dlopen_self=yes
13265 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13266 if test "x$ac_cv_func_shl_load" = xyes; then :
13267 lt_cv_dlopen="shl_load"
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13270 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13271 if ${ac_cv_lib_dld_shl_load+:} false; then :
13272 $as_echo_n "(cached) " >&6
13274 ac_check_lib_save_LIBS=$LIBS
13276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13277 /* end confdefs.h. */
13279 /* Override any GCC internal prototype to avoid an error.
13280 Use char because int might match the return type of a GCC
13281 builtin and then its argument prototype would still apply. */
13289 return shl_load ();
13294 if ac_fn_c_try_link "$LINENO"; then :
13295 ac_cv_lib_dld_shl_load=yes
13297 ac_cv_lib_dld_shl_load=no
13299 rm -f core conftest.err conftest.$ac_objext \
13300 conftest$ac_exeext conftest.$ac_ext
13301 LIBS=$ac_check_lib_save_LIBS
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13304 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13305 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13306 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13308 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13309 if test "x$ac_cv_func_dlopen" = xyes; then :
13310 lt_cv_dlopen="dlopen"
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13313 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13314 if ${ac_cv_lib_dl_dlopen+:} false; then :
13315 $as_echo_n "(cached) " >&6
13317 ac_check_lib_save_LIBS=$LIBS
13319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13320 /* end confdefs.h. */
13322 /* Override any GCC internal prototype to avoid an error.
13323 Use char because int might match the return type of a GCC
13324 builtin and then its argument prototype would still apply. */
13337 if ac_fn_c_try_link "$LINENO"; then :
13338 ac_cv_lib_dl_dlopen=yes
13340 ac_cv_lib_dl_dlopen=no
13342 rm -f core conftest.err conftest.$ac_objext \
13343 conftest$ac_exeext conftest.$ac_ext
13344 LIBS=$ac_check_lib_save_LIBS
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13347 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13348 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13349 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13352 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13353 if ${ac_cv_lib_svld_dlopen+:} false; then :
13354 $as_echo_n "(cached) " >&6
13356 ac_check_lib_save_LIBS=$LIBS
13357 LIBS="-lsvld $LIBS"
13358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13359 /* end confdefs.h. */
13361 /* Override any GCC internal prototype to avoid an error.
13362 Use char because int might match the return type of a GCC
13363 builtin and then its argument prototype would still apply. */
13376 if ac_fn_c_try_link "$LINENO"; then :
13377 ac_cv_lib_svld_dlopen=yes
13379 ac_cv_lib_svld_dlopen=no
13381 rm -f core conftest.err conftest.$ac_objext \
13382 conftest$ac_exeext conftest.$ac_ext
13383 LIBS=$ac_check_lib_save_LIBS
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13386 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13387 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13388 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13391 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13392 if ${ac_cv_lib_dld_dld_link+:} false; then :
13393 $as_echo_n "(cached) " >&6
13395 ac_check_lib_save_LIBS=$LIBS
13397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13398 /* end confdefs.h. */
13400 /* Override any GCC internal prototype to avoid an error.
13401 Use char because int might match the return type of a GCC
13402 builtin and then its argument prototype would still apply. */
13410 return dld_link ();
13415 if ac_fn_c_try_link "$LINENO"; then :
13416 ac_cv_lib_dld_dld_link=yes
13418 ac_cv_lib_dld_dld_link=no
13420 rm -f core conftest.err conftest.$ac_objext \
13421 conftest$ac_exeext conftest.$ac_ext
13422 LIBS=$ac_check_lib_save_LIBS
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13425 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13426 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13427 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13448 if test "x$lt_cv_dlopen" != xno; then
13454 case $lt_cv_dlopen in
13456 save_CPPFLAGS="$CPPFLAGS"
13457 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13459 save_LDFLAGS="$LDFLAGS"
13460 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13463 LIBS="$lt_cv_dlopen_libs $LIBS"
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13466 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13467 if ${lt_cv_dlopen_self+:} false; then :
13468 $as_echo_n "(cached) " >&6
13470 if test "$cross_compiling" = yes; then :
13471 lt_cv_dlopen_self=cross
13473 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13474 lt_status=$lt_dlunknown
13475 cat > conftest.$ac_ext <<_LT_EOF
13476 #line $LINENO "configure"
13477 #include "confdefs.h"
13486 # define LT_DLGLOBAL RTLD_GLOBAL
13489 # define LT_DLGLOBAL DL_GLOBAL
13491 # define LT_DLGLOBAL 0
13495 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13496 find out it does not work in some platform. */
13497 #ifndef LT_DLLAZY_OR_NOW
13499 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13502 # define LT_DLLAZY_OR_NOW DL_LAZY
13505 # define LT_DLLAZY_OR_NOW RTLD_NOW
13508 # define LT_DLLAZY_OR_NOW DL_NOW
13510 # define LT_DLLAZY_OR_NOW 0
13517 /* When -fvisbility=hidden is used, assume the code has been annotated
13518 correspondingly for the symbols needed. */
13519 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13520 int fnord () __attribute__((visibility("default")));
13523 int fnord () { return 42; }
13526 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13527 int status = $lt_dlunknown;
13531 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13534 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13535 else puts (dlerror ());
13537 /* dlclose (self); */
13545 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13546 (eval $ac_link) 2>&5
13548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13549 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13550 (./conftest; exit; ) >&5 2>/dev/null
13552 case x$lt_status in
13553 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13554 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13555 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13558 # compilation failed
13559 lt_cv_dlopen_self=no
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13567 $as_echo "$lt_cv_dlopen_self" >&6; }
13569 if test "x$lt_cv_dlopen_self" = xyes; then
13570 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13572 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13573 if ${lt_cv_dlopen_self_static+:} false; then :
13574 $as_echo_n "(cached) " >&6
13576 if test "$cross_compiling" = yes; then :
13577 lt_cv_dlopen_self_static=cross
13579 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13580 lt_status=$lt_dlunknown
13581 cat > conftest.$ac_ext <<_LT_EOF
13582 #line $LINENO "configure"
13583 #include "confdefs.h"
13592 # define LT_DLGLOBAL RTLD_GLOBAL
13595 # define LT_DLGLOBAL DL_GLOBAL
13597 # define LT_DLGLOBAL 0
13601 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13602 find out it does not work in some platform. */
13603 #ifndef LT_DLLAZY_OR_NOW
13605 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13608 # define LT_DLLAZY_OR_NOW DL_LAZY
13611 # define LT_DLLAZY_OR_NOW RTLD_NOW
13614 # define LT_DLLAZY_OR_NOW DL_NOW
13616 # define LT_DLLAZY_OR_NOW 0
13623 /* When -fvisbility=hidden is used, assume the code has been annotated
13624 correspondingly for the symbols needed. */
13625 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13626 int fnord () __attribute__((visibility("default")));
13629 int fnord () { return 42; }
13632 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13633 int status = $lt_dlunknown;
13637 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13640 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13641 else puts (dlerror ());
13643 /* dlclose (self); */
13651 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13652 (eval $ac_link) 2>&5
13654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13655 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13656 (./conftest; exit; ) >&5 2>/dev/null
13658 case x$lt_status in
13659 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13660 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13661 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13664 # compilation failed
13665 lt_cv_dlopen_self_static=no
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13673 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13676 CPPFLAGS="$save_CPPFLAGS"
13677 LDFLAGS="$save_LDFLAGS"
13682 case $lt_cv_dlopen_self in
13683 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13684 *) enable_dlopen_self=unknown ;;
13687 case $lt_cv_dlopen_self_static in
13688 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13689 *) enable_dlopen_self_static=unknown ;;
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13712 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13713 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13714 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13715 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13717 $as_echo "yes" >&6; }
13719 # FIXME - insert some real tests, host_os isn't really good enough
13722 if test -n "$STRIP" ; then
13723 striplib="$STRIP -x"
13724 old_striplib="$STRIP -S"
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13726 $as_echo "yes" >&6; }
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13729 $as_echo "no" >&6; }
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13734 $as_echo "no" >&6; }
13750 # Report which library types will actually be built
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13752 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13754 $as_echo "$can_build_shared" >&6; }
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13757 $as_echo_n "checking whether to build shared libraries... " >&6; }
13758 test "$can_build_shared" = "no" && enable_shared=no
13760 # On AIX, shared libraries and static libraries use the same namespace, and
13761 # are all built from PIC.
13764 test "$enable_shared" = yes && enable_static=no
13765 if test -n "$RANLIB"; then
13766 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13767 postinstall_cmds='$RANLIB $lib'
13772 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13773 test "$enable_shared" = yes && enable_static=no
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13778 $as_echo "$enable_shared" >&6; }
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13781 $as_echo_n "checking whether to build static libraries... " >&6; }
13782 # Make sure either enable_shared or enable_static is yes.
13783 test "$enable_shared" = yes || enable_static=yes
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13785 $as_echo "$enable_static" >&6; }
13792 ac_cpp='$CPP $CPPFLAGS'
13793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13813 ac_config_commands="$ac_config_commands libtool"
13818 # Only expand once:
13821 : ${CONFIG_LT=./config.lt}
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5
13823 $as_echo "$as_me: creating $CONFIG_LT" >&6;}
13825 cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1
13827 # Generated by $as_me.
13828 # Run this file to recreate a libtool stub with the current configuration.
13829 SHELL=\${CONFIG_SHELL-$SHELL}
13832 cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail=1
13833 ## -------------------- ##
13834 ## M4sh Initialization. ##
13835 ## -------------------- ##
13837 # Be more Bourne compatible
13838 DUALCASE=1; export DUALCASE # for MKS sh
13839 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13842 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13843 # is contrary to our usage. Disable this feature.
13844 alias -g '${1+"$@"}'='"$@"'
13845 setopt NO_GLOB_SUBST
13847 case `(set -o) 2>/dev/null` in #(
13859 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13860 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13861 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13862 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13863 # Prefer a ksh shell builtin over an external printf program on Solaris,
13864 # but without wasting forks for bash or zsh.
13865 if test -z "$BASH_VERSION$ZSH_VERSION" \
13866 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13867 as_echo='print -r --'
13868 as_echo_n='print -rn --'
13869 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13870 as_echo='printf %s\n'
13871 as_echo_n='printf %s'
13873 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13874 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13875 as_echo_n='/usr/ucb/echo -n'
13877 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13878 as_echo_n_body='eval
13882 expr "X$arg" : "X\\(.*\\)$as_nl";
13883 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13885 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13887 export as_echo_n_body
13888 as_echo_n='sh -c $as_echo_n_body as_echo'
13890 export as_echo_body
13891 as_echo='sh -c $as_echo_body as_echo'
13894 # The user is always right.
13895 if test "${PATH_SEPARATOR+set}" != set; then
13897 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13898 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13905 # We need space, tab and new line, in precisely that order. Quoting is
13906 # there to prevent editors from complaining about space-tab.
13907 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13908 # splitting by setting IFS to empty value.)
13911 # Find who we are. Look in the path if we contain no directory separator.
13914 *[\\/]* ) as_myself=$0 ;;
13915 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13916 for as_dir in $PATH
13919 test -z "$as_dir" && as_dir=.
13920 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13926 # We did not find ourselves, most probably we were run as `sh COMMAND'
13927 # in which case we are not to be found in the path.
13928 if test "x$as_myself" = x; then
13931 if test ! -f "$as_myself"; then
13932 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13936 # Unset variables that we do not need and which cause bugs (e.g. in
13937 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13938 # suppresses any "Segmentation fault" message there. '((' could
13939 # trigger a bug in pdksh 5.2.14.
13940 for as_var in BASH_ENV ENV MAIL MAILPATH
13941 do eval test x\${$as_var+set} = xset \
13942 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13955 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13958 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13959 # ----------------------------------------
13960 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13961 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13962 # script with STATUS, using 1 if that was 0.
13965 as_status=$1; test $as_status -eq 0 && as_status=1
13967 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13968 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13970 $as_echo "$as_me: error: $2" >&2
13971 as_fn_exit $as_status
13975 # as_fn_set_status STATUS
13976 # -----------------------
13977 # Set $? to STATUS, without forking.
13978 as_fn_set_status ()
13981 } # as_fn_set_status
13983 # as_fn_exit STATUS
13984 # -----------------
13985 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13989 as_fn_set_status $1
13995 # Portably unset VAR.
13998 { eval $1=; unset $1;}
14000 as_unset=as_fn_unset
14001 # as_fn_append VAR VALUE
14002 # ----------------------
14003 # Append the text in VALUE to the end of the definition contained in VAR. Take
14004 # advantage of any shell optimizations that allow amortized linear growth over
14005 # repeated appends, instead of the typical quadratic growth present in naive
14007 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14008 eval 'as_fn_append ()
14019 # as_fn_arith ARG...
14020 # ------------------
14021 # Perform arithmetic evaluation on the ARGs, and store the result in the
14022 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14023 # must be portable across $(()) and expr.
14024 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14025 eval 'as_fn_arith ()
14032 as_val=`expr "$@" || test $? -eq 1`
14037 if expr a : '\(a\)' >/dev/null 2>&1 &&
14038 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14044 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14045 as_basename=basename
14050 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14056 as_me=`$as_basename -- "$0" ||
14057 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14058 X"$0" : 'X\(//\)$' \| \
14059 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14061 sed '/^.*\/\([^/][^/]*\)\/*$/{
14075 # Avoid depending upon Character Ranges.
14076 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14077 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14078 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14079 as_cr_digits='0123456789'
14080 as_cr_alnum=$as_cr_Letters$as_cr_digits
14082 ECHO_C= ECHO_N= ECHO_T=
14083 case `echo -n x` in #(((((
14085 case `echo 'xy\c'` in
14086 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14088 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14095 rm -f conf$$ conf$$.exe conf$$.file
14096 if test -d conf$$.dir; then
14097 rm -f conf$$.dir/conf$$.file
14100 mkdir conf$$.dir 2>/dev/null
14102 if (echo >conf$$.file) 2>/dev/null; then
14103 if ln -s conf$$.file conf$$ 2>/dev/null; then
14105 # ... but there are two gotchas:
14106 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14107 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14108 # In both cases, we have to default to `cp -p'.
14109 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14111 elif ln conf$$.file conf$$ 2>/dev/null; then
14119 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14120 rmdir conf$$.dir 2>/dev/null
14125 # Create "$as_dir" as a directory, including parents if necessary.
14130 -*) as_dir=./$as_dir;;
14132 test -d "$as_dir" || eval $as_mkdir_p || {
14136 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14137 *) as_qdir=$as_dir;;
14139 as_dirs="'$as_qdir' $as_dirs"
14140 as_dir=`$as_dirname -- "$as_dir" ||
14141 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14142 X"$as_dir" : 'X\(//\)[^/]' \| \
14143 X"$as_dir" : 'X\(//\)$' \| \
14144 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14145 $as_echo X"$as_dir" |
14146 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14150 /^X\(\/\/\)[^/].*/{
14163 test -d "$as_dir" && break
14165 test -z "$as_dirs" || eval "mkdir $as_dirs"
14166 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14170 if mkdir -p . 2>/dev/null; then
14171 as_mkdir_p='mkdir -p "$as_dir"'
14173 test -d ./-p && rmdir ./-p
14177 if test -x / >/dev/null 2>&1; then
14178 as_test_x='test -x'
14180 if ls -dL / >/dev/null 2>&1; then
14187 if test -d "$1"; then
14193 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14194 ???[sx]*):;;*)false;;esac;fi
14198 as_executable_p=$as_test_x
14200 # Sed expression to map a string onto a valid CPP name.
14201 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14203 # Sed expression to map a string onto a valid variable name.
14204 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14208 ## --------------------------------- ##
14209 ## Main body of "$CONFIG_LT" script. ##
14210 ## --------------------------------- ##
14212 test $as_write_fail = 0 && chmod +x "$CONFIG_LT"
14214 cat >>"$CONFIG_LT" <<\_LTEOF
14219 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14220 ## Running $as_me. ##
14225 \`$as_me' creates a local libtool stub from the current configuration,
14226 for use in further configure time tests before the real libtool is
14229 Usage: $0 [OPTIONS]
14231 -h, --help print this help, then exit
14232 -V, --version print version number, then exit
14233 -q, --quiet do not print progress messages
14234 -d, --debug don't remove temporary files
14236 Report bugs to <bug-libtool@gnu.org>."
14239 gmime config.lt 2.6.15
14240 configured by $0, generated by GNU Autoconf 2.68.
14242 Copyright (C) 2011 Free Software Foundation, Inc.
14243 This config.lt script is free software; the Free Software Foundation
14244 gives unlimited permision to copy, distribute and modify it."
14249 --version | --v* | -V )
14250 echo "$lt_cl_version"; exit 0 ;;
14251 --help | --h* | -h )
14252 echo "$lt_cl_help"; exit 0 ;;
14253 --debug | --d* | -d )
14255 --quiet | --q* | --silent | --s* | -q )
14258 -*) as_fn_error $? "unrecognized option: $1
14259 Try \`$0 --help' for more information." "$LINENO" 5 ;;
14261 *) as_fn_error $? "unrecognized argument: $1
14262 Try \`$0 --help' for more information." "$LINENO" 5 ;;
14267 if $lt_cl_silent; then
14272 cat >>"$CONFIG_LT" <<_LTEOF
14275 # The HP-UX ksh and POSIX shell print the target directory to stdout
14276 # if CDPATH is set.
14277 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14279 sed_quote_subst='$sed_quote_subst'
14280 double_quote_subst='$double_quote_subst'
14281 delay_variable_subst='$delay_variable_subst'
14282 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14283 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14284 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14285 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14286 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14287 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14288 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14289 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14290 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14291 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14292 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14293 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14294 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14295 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14296 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14297 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14298 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14299 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14300 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14301 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14302 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14303 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14304 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14305 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14306 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14307 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14308 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14309 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14310 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14311 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14312 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14313 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14314 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14315 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14316 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14317 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14318 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14319 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14320 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14321 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14322 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14323 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14324 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14325 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14326 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14327 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14328 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14329 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14330 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14331 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14332 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14333 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14334 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14335 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14336 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14337 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14338 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"`'
14339 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14340 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14341 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14342 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14343 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14344 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14345 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14346 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14347 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14348 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14349 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14350 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14351 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14352 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14353 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14354 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14355 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14356 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14357 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14358 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14359 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14360 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14361 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14362 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14363 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14364 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14365 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14366 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14367 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14368 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14369 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14370 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14371 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14372 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14373 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14374 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14375 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14376 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14377 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14378 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14379 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14380 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14381 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14382 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14383 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14384 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14385 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14386 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14387 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14388 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14389 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14390 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14391 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14392 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14393 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14394 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14395 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14396 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14397 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14398 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14399 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14400 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14401 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14402 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14403 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14404 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14405 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14406 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14407 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14408 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14409 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14410 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14411 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14414 LTCFLAGS='$LTCFLAGS'
14415 compiler='$compiler_DEFAULT'
14417 # A function that is used when there is no print builtin or printf.
14418 func_fallback_echo ()
14420 eval 'cat <<_LTECHO_EOF
14425 # Quote evaled strings.
14440 deplibs_check_method \
14445 sharedlib_from_linklib_cmd \
14448 archiver_list_spec \
14454 lt_cv_sys_global_symbol_pipe \
14455 lt_cv_sys_global_symbol_to_cdecl \
14456 lt_cv_sys_global_symbol_to_c_name_address \
14457 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14458 nm_file_list_spec \
14459 lt_prog_compiler_no_builtin_flag \
14460 lt_prog_compiler_pic \
14461 lt_prog_compiler_wl \
14462 lt_prog_compiler_static \
14463 lt_cv_prog_compiler_c_o \
14472 export_dynamic_flag_spec \
14473 whole_archive_flag_spec \
14474 compiler_needs_object \
14476 allow_undefined_flag \
14477 no_undefined_flag \
14478 hardcode_libdir_flag_spec \
14479 hardcode_libdir_separator \
14483 variables_saved_for_relink \
14485 library_names_spec \
14487 install_override_mode \
14491 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14492 *[\\\\\\\`\\"\\\$]*)
14493 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14496 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14501 # Double-quote double-evaled strings.
14502 for var in reload_cmds \
14503 old_postinstall_cmds \
14504 old_postuninstall_cmds \
14506 extract_expsyms_cmds \
14507 old_archive_from_new_cmds \
14508 old_archive_from_expsyms_cmds \
14510 archive_expsym_cmds \
14512 module_expsym_cmds \
14513 export_symbols_cmds \
14517 postuninstall_cmds \
14519 sys_lib_search_path_spec \
14520 sys_lib_dlsearch_path_spec; do
14521 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14522 *[\\\\\\\`\\"\\\$]*)
14523 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14526 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14531 ac_aux_dir='$ac_aux_dir'
14532 xsi_shell='$xsi_shell'
14533 lt_shell_append='$lt_shell_append'
14535 # See if we are running on zsh, and set the options which allow our
14536 # commands through without removal of \ escapes INIT.
14537 if test -n "\${ZSH_VERSION+set}" ; then
14538 setopt NO_GLOB_SUBST
14544 TIMESTAMP='$TIMESTAMP'
14552 cat >>"$CONFIG_LT" <<\_LTEOF
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
14554 $as_echo "$as_me: creating $ofile" >&6;}
14557 # See if we are running on zsh, and set the options which allow our
14558 # commands through without removal of \ escapes.
14559 if test -n "${ZSH_VERSION+set}" ; then
14560 setopt NO_GLOB_SUBST
14563 cfgfile="${ofile}T"
14564 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14567 cat <<_LT_EOF >> "$cfgfile"
14570 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14571 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14572 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14573 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14575 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14576 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14578 # Written by Gordon Matzigkeit, 1996
14580 # This file is part of GNU Libtool.
14582 # GNU Libtool is free software; you can redistribute it and/or
14583 # modify it under the terms of the GNU General Public License as
14584 # published by the Free Software Foundation; either version 2 of
14585 # the License, or (at your option) any later version.
14587 # As a special exception to the GNU General Public License,
14588 # if you distribute this file as part of a program or library that
14589 # is built using GNU Libtool, you may include this file under the
14590 # same distribution terms that you use for the rest of that program.
14592 # GNU Libtool is distributed in the hope that it will be useful,
14593 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14594 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14595 # GNU General Public License for more details.
14597 # You should have received a copy of the GNU General Public License
14598 # along with GNU Libtool; see the file COPYING. If not, a copy
14599 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14600 # obtained by writing to the Free Software Foundation, Inc.,
14601 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14604 # The names of the tagged configurations supported by this script.
14607 # ### BEGIN LIBTOOL CONFIG
14609 # Which release of libtool.m4 was used?
14610 macro_version=$macro_version
14611 macro_revision=$macro_revision
14613 # Whether or not to build shared libraries.
14614 build_libtool_libs=$enable_shared
14616 # Whether or not to build static libraries.
14617 build_old_libs=$enable_static
14619 # What type of objects to build.
14622 # Whether or not to optimize for fast installation.
14623 fast_install=$enable_fast_install
14625 # Shell to use when invoking shell scripts.
14628 # An echo program that protects backslashes.
14631 # The PATH separator for the build system.
14632 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14635 host_alias=$host_alias
14639 # The build system.
14640 build_alias=$build_alias
14644 # A sed program that does not truncate output.
14647 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14648 Xsed="\$SED -e 1s/^X//"
14650 # A grep program that handles long lines.
14656 # A literal string matcher.
14659 # A BSD- or MS-compatible name lister.
14662 # Whether we need soft or hard links.
14665 # What is the maximum length of a command?
14666 max_cmd_len=$max_cmd_len
14668 # Object file suffix (normally "o").
14671 # Executable file suffix (normally "").
14674 # whether the shell understands "unset".
14677 # turn spaces into newlines.
14680 # turn newlines into spaces.
14683 # convert \$build file names to \$host format.
14684 to_host_file_cmd=$lt_cv_to_host_file_cmd
14686 # convert \$build files to toolchain format.
14687 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14689 # An object symbol dumper.
14690 OBJDUMP=$lt_OBJDUMP
14692 # Method to check whether dependent libraries are shared objects.
14693 deplibs_check_method=$lt_deplibs_check_method
14695 # Command to use when deplibs_check_method = "file_magic".
14696 file_magic_cmd=$lt_file_magic_cmd
14698 # How to find potential files when deplibs_check_method = "file_magic".
14699 file_magic_glob=$lt_file_magic_glob
14701 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14702 want_nocaseglob=$lt_want_nocaseglob
14704 # DLL creation program.
14705 DLLTOOL=$lt_DLLTOOL
14707 # Command to associate shared and link libraries.
14708 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14713 # Flags to create an archive.
14714 AR_FLAGS=$lt_AR_FLAGS
14716 # How to feed a file listing to the archiver.
14717 archiver_list_spec=$lt_archiver_list_spec
14719 # A symbol stripping program.
14722 # Commands used to install an old-style archive.
14724 old_postinstall_cmds=$lt_old_postinstall_cmds
14725 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14727 # Whether to use a lock for old archive extraction.
14728 lock_old_archive_extraction=$lock_old_archive_extraction
14733 # LTCC compiler flags.
14734 LTCFLAGS=$lt_CFLAGS
14736 # Take the output of nm and produce a listing of raw symbols and C names.
14737 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14739 # Transform the output of nm in a proper C declaration.
14740 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14742 # Transform the output of nm in a C name address pair.
14743 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14745 # Transform the output of nm in a C name address pair when lib prefix is needed.
14746 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14748 # Specify filename containing input files for \$NM.
14749 nm_file_list_spec=$lt_nm_file_list_spec
14751 # The root where to search for dependent libraries,and in which our libraries should be installed.
14752 lt_sysroot=$lt_sysroot
14754 # The name of the directory that contains temporary libtool files.
14757 # Used to examine libraries when file_magic_cmd begins with "file".
14758 MAGIC_CMD=$MAGIC_CMD
14760 # Must we lock files when doing compilation?
14761 need_locks=$lt_need_locks
14764 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14766 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14767 DSYMUTIL=$lt_DSYMUTIL
14769 # Tool to change global to local symbols on Mac OS X.
14772 # Tool to manipulate fat objects and archives on Mac OS X.
14775 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14778 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14779 OTOOL64=$lt_OTOOL64
14781 # Old archive suffix (normally "a").
14784 # Shared library suffix (normally ".so").
14785 shrext_cmds=$lt_shrext_cmds
14787 # The commands to extract the exported symbol list from a shared archive.
14788 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14790 # Variables whose values should be saved in libtool wrapper scripts and
14791 # restored at link time.
14792 variables_saved_for_relink=$lt_variables_saved_for_relink
14794 # Do we need the "lib" prefix for modules?
14795 need_lib_prefix=$need_lib_prefix
14797 # Do we need a version for libraries?
14798 need_version=$need_version
14800 # Library versioning type.
14801 version_type=$version_type
14803 # Shared library runtime path variable.
14804 runpath_var=$runpath_var
14806 # Shared library path variable.
14807 shlibpath_var=$shlibpath_var
14809 # Is shlibpath searched before the hard-coded library search path?
14810 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14812 # Format of library name prefix.
14813 libname_spec=$lt_libname_spec
14815 # List of archive names. First name is the real one, the rest are links.
14816 # The last name is the one that the linker finds with -lNAME
14817 library_names_spec=$lt_library_names_spec
14819 # The coded name of the library, if different from the real name.
14820 soname_spec=$lt_soname_spec
14822 # Permission mode override for installation of shared libraries.
14823 install_override_mode=$lt_install_override_mode
14825 # Command to use after installation of a shared archive.
14826 postinstall_cmds=$lt_postinstall_cmds
14828 # Command to use after uninstallation of a shared archive.
14829 postuninstall_cmds=$lt_postuninstall_cmds
14831 # Commands used to finish a libtool library installation in a directory.
14832 finish_cmds=$lt_finish_cmds
14834 # As "finish_cmds", except a single script fragment to be evaled but
14836 finish_eval=$lt_finish_eval
14838 # Whether we should hardcode library paths into libraries.
14839 hardcode_into_libs=$hardcode_into_libs
14841 # Compile-time system search path for libraries.
14842 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14844 # Run-time system search path for libraries.
14845 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14847 # Whether dlopen is supported.
14848 dlopen_support=$enable_dlopen
14850 # Whether dlopen of programs is supported.
14851 dlopen_self=$enable_dlopen_self
14853 # Whether dlopen of statically linked programs is supported.
14854 dlopen_self_static=$enable_dlopen_self_static
14856 # Commands to strip libraries.
14857 old_striplib=$lt_old_striplib
14858 striplib=$lt_striplib
14861 # The linker used to build libraries.
14864 # How to create reloadable object files.
14865 reload_flag=$lt_reload_flag
14866 reload_cmds=$lt_reload_cmds
14868 # Commands used to build an old-style archive.
14869 old_archive_cmds=$lt_old_archive_cmds
14871 # A language specific compiler.
14874 # Is the compiler the GNU compiler?
14877 # Compiler flag to turn off builtin functions.
14878 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14880 # Additional compiler flags for building library objects.
14881 pic_flag=$lt_lt_prog_compiler_pic
14883 # How to pass a linker flag through the compiler.
14884 wl=$lt_lt_prog_compiler_wl
14886 # Compiler flag to prevent dynamic linking.
14887 link_static_flag=$lt_lt_prog_compiler_static
14889 # Does compiler simultaneously support -c and -o options?
14890 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14892 # Whether or not to add -lc for building shared libraries.
14893 build_libtool_need_lc=$archive_cmds_need_lc
14895 # Whether or not to disallow shared libs when runtime libs are static.
14896 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14898 # Compiler flag to allow reflexive dlopens.
14899 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14901 # Compiler flag to generate shared objects directly from archives.
14902 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14904 # Whether the compiler copes with passing no objects directly.
14905 compiler_needs_object=$lt_compiler_needs_object
14907 # Create an old-style archive from a shared archive.
14908 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14910 # Create a temporary old-style archive to link instead of a shared archive.
14911 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14913 # Commands used to build a shared archive.
14914 archive_cmds=$lt_archive_cmds
14915 archive_expsym_cmds=$lt_archive_expsym_cmds
14917 # Commands used to build a loadable module if different from building
14918 # a shared archive.
14919 module_cmds=$lt_module_cmds
14920 module_expsym_cmds=$lt_module_expsym_cmds
14922 # Whether we are building with GNU ld or not.
14923 with_gnu_ld=$lt_with_gnu_ld
14925 # Flag that allows shared libraries with undefined symbols to be built.
14926 allow_undefined_flag=$lt_allow_undefined_flag
14928 # Flag that enforces no undefined symbols.
14929 no_undefined_flag=$lt_no_undefined_flag
14931 # Flag to hardcode \$libdir into a binary during linking.
14932 # This must work even if \$libdir does not exist
14933 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14935 # Whether we need a single "-rpath" flag with a separated argument.
14936 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14938 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14939 # DIR into the resulting binary.
14940 hardcode_direct=$hardcode_direct
14942 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14943 # DIR into the resulting binary and the resulting library dependency is
14944 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14945 # library is relocated.
14946 hardcode_direct_absolute=$hardcode_direct_absolute
14948 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14949 # into the resulting binary.
14950 hardcode_minus_L=$hardcode_minus_L
14952 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14953 # into the resulting binary.
14954 hardcode_shlibpath_var=$hardcode_shlibpath_var
14956 # Set to "yes" if building a shared library automatically hardcodes DIR
14957 # into the library and all subsequent libraries and executables linked
14959 hardcode_automatic=$hardcode_automatic
14961 # Set to yes if linker adds runtime paths of dependent libraries
14962 # to runtime path list.
14963 inherit_rpath=$inherit_rpath
14965 # Whether libtool must link a program against all its dependency libraries.
14966 link_all_deplibs=$link_all_deplibs
14968 # Set to "yes" if exported symbols are required.
14969 always_export_symbols=$always_export_symbols
14971 # The commands to list exported symbols.
14972 export_symbols_cmds=$lt_export_symbols_cmds
14974 # Symbols that should not be listed in the preloaded symbols.
14975 exclude_expsyms=$lt_exclude_expsyms
14977 # Symbols that must always be exported.
14978 include_expsyms=$lt_include_expsyms
14980 # Commands necessary for linking programs (against libraries) with templates.
14981 prelink_cmds=$lt_prelink_cmds
14983 # Commands necessary for finishing linking programs.
14984 postlink_cmds=$lt_postlink_cmds
14986 # Specify filename containing input files.
14987 file_list_spec=$lt_file_list_spec
14989 # How to hardcode a shared library path into an executable.
14990 hardcode_action=$hardcode_action
14992 # ### END LIBTOOL CONFIG
14998 cat <<\_LT_EOF >> "$cfgfile"
14999 # AIX sometimes has problems with the GCC collect2 program. For some
15000 # reason, if we set the COLLECT_NAMES environment variable, the problems
15001 # vanish in a puff of smoke.
15002 if test "X${COLLECT_NAMES+set}" != Xset; then
15004 export COLLECT_NAMES
15011 ltmain="$ac_aux_dir/ltmain.sh"
15014 # We use sed instead of cat because bash on DJGPP gets confused if
15015 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15016 # text mode, it properly converts lines to CR/LF. This bash problem
15017 # is reportedly fixed, but why not run on old versions too?
15018 sed '$q' "$ltmain" >> "$cfgfile" \
15019 || (rm -f "$cfgfile"; exit 1)
15021 if test x"$xsi_shell" = xyes; then
15022 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15026 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15027 \ * ) func_dirname_result="${3}" ;;\
15029 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15030 && mv -f "$cfgfile.tmp" "$cfgfile" \
15031 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15032 test 0 -eq $? || _lt_function_replace_fail=:
15035 sed -e '/^func_basename ()$/,/^} # func_basename /c\
15038 \ func_basename_result="${1##*/}"\
15039 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15040 && mv -f "$cfgfile.tmp" "$cfgfile" \
15041 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15042 test 0 -eq $? || _lt_function_replace_fail=:
15045 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15046 func_dirname_and_basename ()\
15049 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15050 \ * ) func_dirname_result="${3}" ;;\
15052 \ func_basename_result="${1##*/}"\
15053 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15054 && mv -f "$cfgfile.tmp" "$cfgfile" \
15055 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15056 test 0 -eq $? || _lt_function_replace_fail=:
15059 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15062 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15063 \ # positional parameters, so assign one to ordinary parameter first.\
15064 \ func_stripname_result=${3}\
15065 \ func_stripname_result=${func_stripname_result#"${1}"}\
15066 \ func_stripname_result=${func_stripname_result%"${2}"}\
15067 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15068 && mv -f "$cfgfile.tmp" "$cfgfile" \
15069 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15070 test 0 -eq $? || _lt_function_replace_fail=:
15073 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15074 func_split_long_opt ()\
15076 \ func_split_long_opt_name=${1%%=*}\
15077 \ func_split_long_opt_arg=${1#*=}\
15078 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15079 && mv -f "$cfgfile.tmp" "$cfgfile" \
15080 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15081 test 0 -eq $? || _lt_function_replace_fail=:
15084 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15085 func_split_short_opt ()\
15087 \ func_split_short_opt_arg=${1#??}\
15088 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15089 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15090 && mv -f "$cfgfile.tmp" "$cfgfile" \
15091 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15092 test 0 -eq $? || _lt_function_replace_fail=:
15095 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15099 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15100 \ *) func_lo2o_result=${1} ;;\
15102 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15103 && mv -f "$cfgfile.tmp" "$cfgfile" \
15104 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15105 test 0 -eq $? || _lt_function_replace_fail=:
15108 sed -e '/^func_xform ()$/,/^} # func_xform /c\
15111 func_xform_result=${1%.*}.lo\
15112 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15113 && mv -f "$cfgfile.tmp" "$cfgfile" \
15114 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15115 test 0 -eq $? || _lt_function_replace_fail=:
15118 sed -e '/^func_arith ()$/,/^} # func_arith /c\
15121 func_arith_result=$(( $* ))\
15122 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15123 && mv -f "$cfgfile.tmp" "$cfgfile" \
15124 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15125 test 0 -eq $? || _lt_function_replace_fail=:
15128 sed -e '/^func_len ()$/,/^} # func_len /c\
15131 func_len_result=${#1}\
15132 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15133 && mv -f "$cfgfile.tmp" "$cfgfile" \
15134 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15135 test 0 -eq $? || _lt_function_replace_fail=:
15139 if test x"$lt_shell_append" = xyes; then
15140 sed -e '/^func_append ()$/,/^} # func_append /c\
15143 eval "${1}+=\\${2}"\
15144 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15145 && mv -f "$cfgfile.tmp" "$cfgfile" \
15146 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15147 test 0 -eq $? || _lt_function_replace_fail=:
15150 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15151 func_append_quoted ()\
15153 \ func_quote_for_eval "${2}"\
15154 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15155 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15156 && mv -f "$cfgfile.tmp" "$cfgfile" \
15157 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15158 test 0 -eq $? || _lt_function_replace_fail=:
15161 # Save a `func_append' function call where possible by direct use of '+='
15162 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15163 && mv -f "$cfgfile.tmp" "$cfgfile" \
15164 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15165 test 0 -eq $? || _lt_function_replace_fail=:
15167 # Save a `func_append' function call even when '+=' is not available
15168 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15169 && mv -f "$cfgfile.tmp" "$cfgfile" \
15170 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15171 test 0 -eq $? || _lt_function_replace_fail=:
15174 if test x"$_lt_function_replace_fail" = x":"; then
15175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15176 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15180 mv -f "$cfgfile" "$ofile" ||
15181 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15187 chmod +x "$CONFIG_LT"
15189 # configure is writing to config.log, but config.lt does its own redirection,
15190 # appending to config.log, which fails on DOS, as config.log is still kept
15191 # open by configure. Here we exec the FD to /dev/null, effectively closing
15192 # config.log, so it can be properly (re)opened and appended to by config.lt.
15194 test "$silent" = yes &&
15195 lt_config_lt_args="$lt_config_lt_args --quiet"
15197 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
15199 $lt_cl_success || as_fn_exit 1
15203 # dolt, a replacement for libtool
15204 # Josh Triplett <josh@freedesktop.org>
15205 # Extract the first word of "bash", so it can be a program name with args.
15206 set dummy bash; ac_word=$2
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15208 $as_echo_n "checking for $ac_word... " >&6; }
15209 if ${ac_cv_path_DOLT_BASH+:} false; then :
15210 $as_echo_n "(cached) " >&6
15214 ac_cv_path_DOLT_BASH="$DOLT_BASH" # Let the user override the test with a path.
15217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15218 for as_dir in $PATH
15221 test -z "$as_dir" && as_dir=.
15222 for ac_exec_ext in '' $ac_executable_extensions; do
15223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15224 ac_cv_path_DOLT_BASH="$as_dir/$ac_word$ac_exec_ext"
15225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15235 DOLT_BASH=$ac_cv_path_DOLT_BASH
15236 if test -n "$DOLT_BASH"; then
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOLT_BASH" >&5
15238 $as_echo "$DOLT_BASH" >&6; }
15240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15241 $as_echo "no" >&6; }
15245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dolt supports this host" >&5
15246 $as_echo_n "checking if dolt supports this host... " >&6; }
15248 if test x$DOLT_BASH = x; then
15251 if test x$GCC != xyes; then
15255 i?86-*-linux*|x86_64-*-linux*|powerpc-*-linux* \
15256 |amd64-*-freebsd*|i?86-*-freebsd*|ia64-*-freebsd*)
15257 pic_options='-fPIC'
15259 i?86-apple-darwin*)
15260 pic_options='-fno-common'
15266 if test x$dolt_supported = xno ; then
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, falling back to libtool" >&5
15268 $as_echo "no, falling back to libtool" >&6; }
15269 LTCOMPILE='$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(COMPILE)'
15270 LTCXXCOMPILE='$(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXXCOMPILE)'
15272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, replacing libtool" >&5
15273 $as_echo "yes, replacing libtool" >&6; }
15275 cat <<__DOLTCOMPILE__EOF__ >doltcompile
15277 __DOLTCOMPILE__EOF__
15278 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
15280 for ((arg=0; arg<${#args[@]}; arg++)) ; do
15281 if test x"${args[$arg]}" = x-o ; then
15286 if test x$objarg = x ; then
15287 echo 'Error: no -o on compiler command line' 1>&2
15290 lo="${args[$objarg]}"
15292 if test x"$lo" = x"$obj" ; then
15293 echo "Error: libtool object file name \"$lo\" does not end in .lo" 1>&2
15296 objbase="${obj##*/}"
15297 __DOLTCOMPILE__EOF__
15299 if test x$enable_shared = xyes; then
15300 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
15301 libobjdir="${obj%$objbase}.libs"
15302 if test ! -d "$libobjdir" ; then
15303 mkdir_out="$(mkdir "$libobjdir" 2>&1)"
15305 if test "$mkdir_ret" -ne 0 && test ! -d "$libobjdir" ; then
15306 echo "$mkdir_out" 1>&2
15310 pic_object="$libobjdir/$objbase.o"
15311 args[$objarg]="$pic_object"
15312 __DOLTCOMPILE__EOF__
15313 cat <<__DOLTCOMPILE__EOF__ >>doltcompile
15314 "\${args[@]}" $pic_options -DPIC || exit \$?
15315 __DOLTCOMPILE__EOF__
15318 if test x$enable_static = xyes; then
15319 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
15320 non_pic_object="$obj.o"
15321 args[$objarg]="$non_pic_object"
15322 __DOLTCOMPILE__EOF__
15323 if test x$enable_shared = xyes; then
15324 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
15325 "${args[@]}" >/dev/null 2>&1 || exit $?
15326 __DOLTCOMPILE__EOF__
15328 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
15329 "${args[@]}" || exit $?
15330 __DOLTCOMPILE__EOF__
15334 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
15336 echo "# $lo - a libtool object file"
15337 echo "# Generated by doltcompile, not libtool"
15338 __DOLTCOMPILE__EOF__
15340 if test x$enable_shared = xyes; then
15341 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
15342 echo "pic_object='.libs/${objbase}.o'"
15343 __DOLTCOMPILE__EOF__
15345 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
15346 echo pic_object=none
15347 __DOLTCOMPILE__EOF__
15350 if test x$enable_static = xyes; then
15351 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
15352 echo "non_pic_object='${objbase}.o'"
15353 __DOLTCOMPILE__EOF__
15355 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
15356 echo non_pic_object=none
15357 __DOLTCOMPILE__EOF__
15360 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
15362 __DOLTCOMPILE__EOF__
15364 chmod +x doltcompile
15365 LTCOMPILE='$(top_builddir)/doltcompile $(COMPILE)'
15366 LTCXXCOMPILE='$(top_builddir)/doltcompile $(CXXCOMPILE)'
15368 cat <<__DOLTLIBTOOL__EOF__ > doltlibtool
15370 __DOLTLIBTOOL__EOF__
15371 cat <<'__DOLTLIBTOOL__EOF__' >>doltlibtool
15372 top_builddir_slash="${0%%doltlibtool}"
15373 : ${top_builddir_slash:=./}
15377 for arg in "$@"; do
15379 --mode=compile) modeok=true ;;
15380 --tag=CC|--tag=CXX) tagok=true ;;
15381 *) args[${#args[@]}]="$arg" ;;
15384 if $modeok && $tagok ; then
15385 . ${top_builddir_slash}doltcompile "${args[@]}"
15387 exec ${top_builddir_slash}libtool "$@"
15389 __DOLTLIBTOOL__EOF__
15391 chmod +x doltlibtool
15392 LIBTOOL='$(top_builddir)/doltlibtool'
15399 for ac_header in sys/mman.h
15401 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
15402 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
15403 cat >>confdefs.h <<_ACEOF
15404 #define HAVE_SYS_MMAN_H 1
15411 for ac_header in sys/param.h
15413 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
15414 if test "x$ac_cv_header_sys_param_h" = xyes; then :
15415 cat >>confdefs.h <<_ACEOF
15416 #define HAVE_SYS_PARAM_H 1
15423 for ac_header in winsock2.h
15425 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
15426 if test "x$ac_cv_header_winsock2_h" = xyes; then :
15427 cat >>confdefs.h <<_ACEOF
15428 #define HAVE_WINSOCK2_H 1
15435 for ac_header in string.h
15437 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
15438 if test "x$ac_cv_header_string_h" = xyes; then :
15439 cat >>confdefs.h <<_ACEOF
15440 #define HAVE_STRING_H 1
15447 for ac_header in stdlib.h
15449 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15450 if test "x$ac_cv_header_stdlib_h" = xyes; then :
15451 cat >>confdefs.h <<_ACEOF
15452 #define HAVE_STDLIB_H 1
15459 for ac_header in netdb.h
15461 ac_fn_c_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
15462 if test "x$ac_cv_header_netdb_h" = xyes; then :
15463 cat >>confdefs.h <<_ACEOF
15464 #define HAVE_NETDB_H 1
15471 for ac_header in regex.h
15473 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
15474 if test "x$ac_cv_header_regex_h" = xyes; then :
15475 cat >>confdefs.h <<_ACEOF
15476 #define HAVE_REGEX_H 1
15483 for ac_header in time.h
15485 ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
15486 if test "x$ac_cv_header_time_h" = xyes; then :
15487 cat >>confdefs.h <<_ACEOF
15488 #define HAVE_TIME_H 1
15495 for ac_header in poll.h
15497 ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
15498 if test "x$ac_cv_header_poll_h" = xyes; then :
15499 cat >>confdefs.h <<_ACEOF
15500 #define HAVE_POLL_H 1
15508 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15509 if test "x$ac_cv_type_off_t" = xyes; then :
15513 cat >>confdefs.h <<_ACEOF
15514 #define off_t long int
15519 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15520 if test "x$ac_cv_type_size_t" = xyes; then :
15524 cat >>confdefs.h <<_ACEOF
15525 #define size_t unsigned int
15530 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
15531 if test "x$ac_cv_type_ssize_t" = xyes; then :
15535 cat >>confdefs.h <<_ACEOF
15536 #define ssize_t int
15541 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
15542 if test "x$ac_cv_type_mode_t" = xyes; then :
15546 cat >>confdefs.h <<_ACEOF
15553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nfds_t" >&5
15554 $as_echo_n "checking for nfds_t... " >&6; }
15555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15556 /* end confdefs.h. */
15558 #include <sys/types.h>
15573 if ac_fn_c_try_compile "$LINENO"; then :
15574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15575 $as_echo "yes" >&6; }
15579 $as_echo "#define nfds_t unsigned long int" >>confdefs.h
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15582 $as_echo "no" >&6; }
15585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15587 for ac_func in strftime localtime gmtime_r gmtime_s
15589 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15590 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15591 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15592 cat >>confdefs.h <<_ACEOF
15593 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15603 for ac_header in $ac_header_list
15605 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15606 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15608 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15609 cat >>confdefs.h <<_ACEOF
15610 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15624 for ac_func in getpagesize
15626 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
15627 if test "x$ac_cv_func_getpagesize" = xyes; then :
15628 cat >>confdefs.h <<_ACEOF
15629 #define HAVE_GETPAGESIZE 1
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
15636 $as_echo_n "checking for working mmap... " >&6; }
15637 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
15638 $as_echo_n "(cached) " >&6
15640 if test "$cross_compiling" = yes; then :
15641 ac_cv_func_mmap_fixed_mapped=no
15643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15644 /* end confdefs.h. */
15645 $ac_includes_default
15646 /* malloc might have been renamed as rpl_malloc. */
15649 /* Thanks to Mike Haertel and Jim Avera for this test.
15650 Here is a matrix of mmap possibilities:
15651 mmap private not fixed
15652 mmap private fixed at somewhere currently unmapped
15653 mmap private fixed at somewhere already mapped
15654 mmap shared not fixed
15655 mmap shared fixed at somewhere currently unmapped
15656 mmap shared fixed at somewhere already mapped
15657 For private mappings, we should verify that changes cannot be read()
15658 back from the file, nor mmap's back from the file at a different
15659 address. (There have been systems where private was not correctly
15660 implemented like the infamous i386 svr4.0, and systems where the
15661 VM page cache was not coherent with the file system buffer cache
15662 like early versions of FreeBSD and possibly contemporary NetBSD.)
15663 For shared mappings, we should conversely verify that changes get
15664 propagated back to all the places they're supposed to be.
15666 Grep wants private fixed already mapped.
15667 The main things grep needs to know about mmap are:
15668 * does it exist and is it safe to write into the mmap'd area
15669 * how to use it (BSD variants) */
15672 #include <sys/mman.h>
15674 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
15678 /* This mess was copied from the GNU getpagesize.h. */
15679 #ifndef HAVE_GETPAGESIZE
15680 # ifdef _SC_PAGESIZE
15681 # define getpagesize() sysconf(_SC_PAGESIZE)
15682 # else /* no _SC_PAGESIZE */
15683 # ifdef HAVE_SYS_PARAM_H
15684 # include <sys/param.h>
15685 # ifdef EXEC_PAGESIZE
15686 # define getpagesize() EXEC_PAGESIZE
15687 # else /* no EXEC_PAGESIZE */
15689 # define getpagesize() NBPG * CLSIZE
15692 # endif /* no CLSIZE */
15693 # else /* no NBPG */
15695 # define getpagesize() NBPC
15696 # else /* no NBPC */
15698 # define getpagesize() PAGESIZE
15699 # endif /* PAGESIZE */
15700 # endif /* no NBPC */
15701 # endif /* no NBPG */
15702 # endif /* no EXEC_PAGESIZE */
15703 # else /* no HAVE_SYS_PARAM_H */
15704 # define getpagesize() 8192 /* punt totally */
15705 # endif /* no HAVE_SYS_PARAM_H */
15706 # endif /* no _SC_PAGESIZE */
15708 #endif /* no HAVE_GETPAGESIZE */
15713 char *data, *data2, *data3;
15714 const char *cdata2;
15718 pagesize = getpagesize ();
15720 /* First, make a file with some known garbage in it. */
15721 data = (char *) malloc (pagesize);
15724 for (i = 0; i < pagesize; ++i)
15725 *(data + i) = rand ();
15727 fd = creat ("conftest.mmap", 0600);
15730 if (write (fd, data, pagesize) != pagesize)
15734 /* Next, check that the tail of a page is zero-filled. File must have
15735 non-zero length, otherwise we risk SIGBUS for entire page. */
15736 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
15740 if (write (fd2, cdata2, 1) != 1)
15742 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
15743 if (data2 == MAP_FAILED)
15745 for (i = 0; i < pagesize; ++i)
15749 if (munmap (data2, pagesize))
15752 /* Next, try to mmap the file at a fixed address which already has
15753 something else allocated at it. If we can, also make sure that
15754 we see the same garbage. */
15755 fd = open ("conftest.mmap", O_RDWR);
15758 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15759 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15761 for (i = 0; i < pagesize; ++i)
15762 if (*(data + i) != *(data2 + i))
15765 /* Finally, make sure that changes to the mapped area do not
15766 percolate back to the file as seen by read(). (This is a bug on
15767 some variants of i386 svr4.0.) */
15768 for (i = 0; i < pagesize; ++i)
15769 *(data2 + i) = *(data2 + i) + 1;
15770 data3 = (char *) malloc (pagesize);
15773 if (read (fd, data3, pagesize) != pagesize)
15775 for (i = 0; i < pagesize; ++i)
15776 if (*(data + i) != *(data3 + i))
15782 if ac_fn_c_try_run "$LINENO"; then :
15783 ac_cv_func_mmap_fixed_mapped=yes
15785 ac_cv_func_mmap_fixed_mapped=no
15787 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15788 conftest.$ac_objext conftest.beam conftest.$ac_ext
15792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
15793 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
15794 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15796 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
15799 rm -f conftest.mmap conftest.txt
15801 for ac_func in munmap msync
15803 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15804 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15805 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15806 cat >>confdefs.h <<_ACEOF
15807 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15814 for ac_func in select poll
15816 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15817 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15818 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15819 cat >>confdefs.h <<_ACEOF
15820 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15835 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15836 if test -n "$ac_tool_prefix"; then
15837 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15838 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15840 $as_echo_n "checking for $ac_word... " >&6; }
15841 if ${ac_cv_path_PKG_CONFIG+:} false; then :
15842 $as_echo_n "(cached) " >&6
15844 case $PKG_CONFIG in
15846 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15850 for as_dir in $PATH
15853 test -z "$as_dir" && as_dir=.
15854 for ac_exec_ext in '' $ac_executable_extensions; do
15855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15856 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15867 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15868 if test -n "$PKG_CONFIG"; then
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15870 $as_echo "$PKG_CONFIG" >&6; }
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15873 $as_echo "no" >&6; }
15878 if test -z "$ac_cv_path_PKG_CONFIG"; then
15879 ac_pt_PKG_CONFIG=$PKG_CONFIG
15880 # Extract the first word of "pkg-config", so it can be a program name with args.
15881 set dummy pkg-config; ac_word=$2
15882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15883 $as_echo_n "checking for $ac_word... " >&6; }
15884 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15885 $as_echo_n "(cached) " >&6
15887 case $ac_pt_PKG_CONFIG in
15889 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15893 for as_dir in $PATH
15896 test -z "$as_dir" && as_dir=.
15897 for ac_exec_ext in '' $ac_executable_extensions; do
15898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15899 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15910 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15911 if test -n "$ac_pt_PKG_CONFIG"; then
15912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15913 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
15915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15916 $as_echo "no" >&6; }
15919 if test "x$ac_pt_PKG_CONFIG" = x; then
15922 case $cross_compiling:$ac_tool_warned in
15924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15925 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15926 ac_tool_warned=yes ;;
15928 PKG_CONFIG=$ac_pt_PKG_CONFIG
15931 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15935 if test -n "$PKG_CONFIG"; then
15936 _pkg_min_version=0.9.0
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15938 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15939 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15941 $as_echo "yes" >&6; }
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15944 $as_echo "no" >&6; }
15951 # Extract the first word of "gtkdoc-check", so it can be a program name with args.
15952 set dummy gtkdoc-check; ac_word=$2
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15954 $as_echo_n "checking for $ac_word... " >&6; }
15955 if ${ac_cv_path_GTKDOC_CHECK+:} false; then :
15956 $as_echo_n "(cached) " >&6
15958 case $GTKDOC_CHECK in
15960 ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
15963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15964 for as_dir in $PATH
15967 test -z "$as_dir" && as_dir=.
15968 for ac_exec_ext in '' $ac_executable_extensions; do
15969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15970 ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
15971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15981 GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
15982 if test -n "$GTKDOC_CHECK"; then
15983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
15984 $as_echo "$GTKDOC_CHECK" >&6; }
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15987 $as_echo "no" >&6; }
15991 for ac_prog in gtkdoc-rebase
15993 # Extract the first word of "$ac_prog", so it can be a program name with args.
15994 set dummy $ac_prog; ac_word=$2
15995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15996 $as_echo_n "checking for $ac_word... " >&6; }
15997 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
15998 $as_echo_n "(cached) " >&6
16000 case $GTKDOC_REBASE in
16002 ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
16005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16006 for as_dir in $PATH
16009 test -z "$as_dir" && as_dir=.
16010 for ac_exec_ext in '' $ac_executable_extensions; do
16011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16012 ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
16013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16023 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
16024 if test -n "$GTKDOC_REBASE"; then
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
16026 $as_echo "$GTKDOC_REBASE" >&6; }
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16029 $as_echo "no" >&6; }
16033 test -n "$GTKDOC_REBASE" && break
16035 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
16037 # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
16038 set dummy gtkdoc-mkpdf; ac_word=$2
16039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16040 $as_echo_n "checking for $ac_word... " >&6; }
16041 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
16042 $as_echo_n "(cached) " >&6
16044 case $GTKDOC_MKPDF in
16046 ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
16049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16050 for as_dir in $PATH
16053 test -z "$as_dir" && as_dir=.
16054 for ac_exec_ext in '' $ac_executable_extensions; do
16055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16056 ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
16057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16067 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
16068 if test -n "$GTKDOC_MKPDF"; then
16069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
16070 $as_echo "$GTKDOC_MKPDF" >&6; }
16072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16073 $as_echo "no" >&6; }
16079 # Check whether --with-html-dir was given.
16080 if test "${with_html_dir+set}" = set; then :
16081 withval=$with_html_dir;
16083 with_html_dir='${datadir}/gtk-doc/html'
16086 HTML_DIR="$with_html_dir"
16089 # Check whether --enable-gtk-doc was given.
16090 if test "${enable_gtk_doc+set}" = set; then :
16091 enableval=$enable_gtk_doc;
16097 if test x$enable_gtk_doc = xyes; then
16098 if test -n "$PKG_CONFIG" && \
16099 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.8\""; } >&5
16100 ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.8") 2>&5
16102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16103 test $ac_status = 0; }; then
16106 as_fn_error $? "You need to have gtk-doc >= 1.8 installed to build $PACKAGE_NAME" "$LINENO" 5
16108 if test "x$PACKAGE_NAME" != "xglib"; then
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
16112 $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
16114 if test -n "$GTKDOC_DEPS_CFLAGS"; then
16115 pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
16116 elif test -n "$PKG_CONFIG"; then
16117 if test -n "$PKG_CONFIG" && \
16118 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5
16119 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
16121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16122 test $ac_status = 0; }; then
16123 pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
16124 test "x$?" != "x0" && pkg_failed=yes
16131 if test -n "$GTKDOC_DEPS_LIBS"; then
16132 pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
16133 elif test -n "$PKG_CONFIG"; then
16134 if test -n "$PKG_CONFIG" && \
16135 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5
16136 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
16138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16139 test $ac_status = 0; }; then
16140 pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
16141 test "x$?" != "x0" && pkg_failed=yes
16151 if test $pkg_failed = yes; then
16152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16153 $as_echo "no" >&6; }
16155 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16156 _pkg_short_errors_supported=yes
16158 _pkg_short_errors_supported=no
16160 if test $_pkg_short_errors_supported = yes; then
16161 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1`
16163 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1`
16165 # Put the nasty error message in config.log where it belongs
16166 echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
16168 as_fn_error $? "Package requirements (glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0) were not met:
16170 $GTKDOC_DEPS_PKG_ERRORS
16172 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16173 installed software in a non-standard prefix.
16175 Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
16176 and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
16177 See the pkg-config man page for more details." "$LINENO" 5
16178 elif test $pkg_failed = untried; then
16179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16180 $as_echo "no" >&6; }
16181 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16182 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16183 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16184 is in your PATH or set the PKG_CONFIG environment variable to the full
16185 path to pkg-config.
16187 Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
16188 and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
16189 See the pkg-config man page for more details.
16191 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16192 See \`config.log' for more details" "$LINENO" 5; }
16194 GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
16195 GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
16196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16197 $as_echo "yes" >&6; }
16203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
16204 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
16205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
16206 $as_echo "$enable_gtk_doc" >&6; }
16208 # Check whether --enable-gtk-doc-html was given.
16209 if test "${enable_gtk_doc_html+set}" = set; then :
16210 enableval=$enable_gtk_doc_html;
16212 enable_gtk_doc_html=yes
16215 # Check whether --enable-gtk-doc-pdf was given.
16216 if test "${enable_gtk_doc_pdf+set}" = set; then :
16217 enableval=$enable_gtk_doc_pdf;
16219 enable_gtk_doc_pdf=no
16223 if test -z "$GTKDOC_MKPDF"; then
16224 enable_gtk_doc_pdf=no
16228 if test x$enable_gtk_doc = xyes; then
16229 ENABLE_GTK_DOC_TRUE=
16230 ENABLE_GTK_DOC_FALSE='#'
16232 ENABLE_GTK_DOC_TRUE='#'
16233 ENABLE_GTK_DOC_FALSE=
16236 if test x$enable_gtk_doc_html = xyes; then
16237 GTK_DOC_BUILD_HTML_TRUE=
16238 GTK_DOC_BUILD_HTML_FALSE='#'
16240 GTK_DOC_BUILD_HTML_TRUE='#'
16241 GTK_DOC_BUILD_HTML_FALSE=
16244 if test x$enable_gtk_doc_pdf = xyes; then
16245 GTK_DOC_BUILD_PDF_TRUE=
16246 GTK_DOC_BUILD_PDF_FALSE='#'
16248 GTK_DOC_BUILD_PDF_TRUE='#'
16249 GTK_DOC_BUILD_PDF_FALSE=
16252 if test -n "$LIBTOOL"; then
16253 GTK_DOC_USE_LIBTOOL_TRUE=
16254 GTK_DOC_USE_LIBTOOL_FALSE='#'
16256 GTK_DOC_USE_LIBTOOL_TRUE='#'
16257 GTK_DOC_USE_LIBTOOL_FALSE=
16260 if test -n "$GTKDOC_REBASE"; then
16261 GTK_DOC_USE_REBASE_TRUE=
16262 GTK_DOC_USE_REBASE_FALSE='#'
16264 GTK_DOC_USE_REBASE_TRUE='#'
16265 GTK_DOC_USE_REBASE_FALSE=
16270 for ac_prog in db2html docbook2html
16272 # Extract the first word of "$ac_prog", so it can be a program name with args.
16273 set dummy $ac_prog; ac_word=$2
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16275 $as_echo_n "checking for $ac_word... " >&6; }
16276 if ${ac_cv_path_DB2HTML+:} false; then :
16277 $as_echo_n "(cached) " >&6
16281 ac_cv_path_DB2HTML="$DB2HTML" # Let the user override the test with a path.
16284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16285 for as_dir in $PATH
16288 test -z "$as_dir" && as_dir=.
16289 for ac_exec_ext in '' $ac_executable_extensions; do
16290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16291 ac_cv_path_DB2HTML="$as_dir/$ac_word$ac_exec_ext"
16292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16302 DB2HTML=$ac_cv_path_DB2HTML
16303 if test -n "$DB2HTML"; then
16304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DB2HTML" >&5
16305 $as_echo "$DB2HTML" >&6; }
16307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16308 $as_echo "no" >&6; }
16312 test -n "$DB2HTML" && break
16315 if test -n "$DB2HTML"; then
16317 HAVE_DOCBOOK_FALSE='#'
16319 HAVE_DOCBOOK_TRUE='#'
16320 HAVE_DOCBOOK_FALSE=
16324 if test "x$enable_gtk_doc" = "xyes"; then
16325 ENABLE_GTK_DOC_TRUE=
16326 ENABLE_GTK_DOC_FALSE='#'
16328 ENABLE_GTK_DOC_TRUE='#'
16329 ENABLE_GTK_DOC_FALSE=
16333 # Check whether --enable-profiling was given.
16334 if test "${enable_profiling+set}" = set; then :
16335 enableval=$enable_profiling;
16337 enable_profiling="no"
16340 if test "x$enable_profiling" = "xyes"; then
16341 # CFLAGS="-O0 -g -pg -fprofile-arcs -ftest-coverage"
16342 CFLAGS="-O0 -g -pg"
16345 # Check whether --enable-warnings was given.
16346 if test "${enable_warnings+set}" = set; then :
16347 enableval=$enable_warnings;
16349 enable_warnings="no"
16352 if test "x$enable_warnings" = "xyes"; then
16354 $as_echo "#define ENABLE_WARNINGS 1" >>confdefs.h
16358 # Check whether --enable-strict-parser was given.
16359 if test "${enable_strict_parser+set}" = set; then :
16360 enableval=$enable_strict_parser;
16362 enable_strict_parser="no"
16365 if test "x$enable_strict_parser" = "xyes"; then
16367 $as_echo "#define STRICT_PARSER 1" >>confdefs.h
16371 # Check whether --enable-cryptography was given.
16372 if test "${enable_cryptography+set}" = set; then :
16373 enableval=$enable_cryptography;
16375 enable_cryptography="yes"
16378 if test "x$enable_cryptography" = "xyes"; then
16379 ENABLE_CRYPTOGRAPHY_TRUE=
16380 ENABLE_CRYPTOGRAPHY_FALSE='#'
16382 ENABLE_CRYPTOGRAPHY_TRUE='#'
16383 ENABLE_CRYPTOGRAPHY_FALSE=
16386 if test "x$enable_cryptography" = "xyes"; then
16388 $as_echo "#define ENABLE_CRYPTOGRAPHY 1" >>confdefs.h
16393 # Check whether --enable-glibtest was given.
16394 if test "${enable_glibtest+set}" = set; then :
16395 enableval=$enable_glibtest;
16397 enable_glibtest=yes
16401 pkg_config_args=glib-2.0
16402 for module in . gobject gmodule gthread gio
16406 pkg_config_args="$pkg_config_args gmodule-2.0"
16409 pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
16412 pkg_config_args="$pkg_config_args gobject-2.0"
16415 pkg_config_args="$pkg_config_args gthread-2.0"
16418 pkg_config_args="$pkg_config_args $module-2.0"
16430 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16431 if test -n "$ac_tool_prefix"; then
16432 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16433 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16435 $as_echo_n "checking for $ac_word... " >&6; }
16436 if ${ac_cv_path_PKG_CONFIG+:} false; then :
16437 $as_echo_n "(cached) " >&6
16439 case $PKG_CONFIG in
16441 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16445 for as_dir in $PATH
16448 test -z "$as_dir" && as_dir=.
16449 for ac_exec_ext in '' $ac_executable_extensions; do
16450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16451 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16462 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16463 if test -n "$PKG_CONFIG"; then
16464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16465 $as_echo "$PKG_CONFIG" >&6; }
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16468 $as_echo "no" >&6; }
16473 if test -z "$ac_cv_path_PKG_CONFIG"; then
16474 ac_pt_PKG_CONFIG=$PKG_CONFIG
16475 # Extract the first word of "pkg-config", so it can be a program name with args.
16476 set dummy pkg-config; ac_word=$2
16477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16478 $as_echo_n "checking for $ac_word... " >&6; }
16479 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16480 $as_echo_n "(cached) " >&6
16482 case $ac_pt_PKG_CONFIG in
16484 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16488 for as_dir in $PATH
16491 test -z "$as_dir" && as_dir=.
16492 for ac_exec_ext in '' $ac_executable_extensions; do
16493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16494 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16505 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16506 if test -n "$ac_pt_PKG_CONFIG"; then
16507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16508 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
16510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16511 $as_echo "no" >&6; }
16514 if test "x$ac_pt_PKG_CONFIG" = x; then
16517 case $cross_compiling:$ac_tool_warned in
16519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16520 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16521 ac_tool_warned=yes ;;
16523 PKG_CONFIG=$ac_pt_PKG_CONFIG
16526 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16530 if test -n "$PKG_CONFIG"; then
16531 _pkg_min_version=0.16
16532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16533 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16534 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16536 $as_echo "yes" >&6; }
16538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16539 $as_echo "no" >&6; }
16546 if test "x$PKG_CONFIG" = x ; then
16551 min_glib_version=2.18.0
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
16553 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
16555 if test x$PKG_CONFIG != xno ; then
16556 ## don't try to run the test against uninstalled libtool libs
16557 if $PKG_CONFIG --uninstalled $pkg_config_args; then
16558 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
16562 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
16569 if test x"$no_glib" = x ; then
16570 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
16571 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
16572 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
16573 GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable=glib_compile_resources gio-2.0`
16575 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
16576 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
16577 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
16578 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
16579 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
16580 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
16581 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
16582 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
16583 if test "x$enable_glibtest" = "xyes" ; then
16584 ac_save_CFLAGS="$CFLAGS"
16585 ac_save_LIBS="$LIBS"
16586 CFLAGS="$CFLAGS $GLIB_CFLAGS"
16587 LIBS="$GLIB_LIBS $LIBS"
16588 rm -f conf.glibtest
16589 if test "$cross_compiling" = yes; then :
16590 echo $ac_n "cross compiling; assumed OK... $ac_c"
16592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16593 /* end confdefs.h. */
16597 #include <stdlib.h>
16602 unsigned int major, minor, micro;
16605 fclose (fopen ("conf.glibtest", "w"));
16607 /* HP/UX 9 (%@#!) writes to sscanf strings */
16608 tmp_version = g_strdup("$min_glib_version");
16609 if (sscanf(tmp_version, "%u.%u.%u", &major, &minor, µ) != 3) {
16610 printf("%s, bad version string\n", "$min_glib_version");
16614 if ((glib_major_version != $glib_config_major_version) ||
16615 (glib_minor_version != $glib_config_minor_version) ||
16616 (glib_micro_version != $glib_config_micro_version))
16618 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
16619 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
16620 glib_major_version, glib_minor_version, glib_micro_version);
16621 printf ("*** was found! If pkg-config was correct, then it is best\n");
16622 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
16623 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
16624 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
16625 printf("*** required on your system.\n");
16626 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
16627 printf("*** to point to the correct configuration files\n");
16629 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
16630 (glib_minor_version != GLIB_MINOR_VERSION) ||
16631 (glib_micro_version != GLIB_MICRO_VERSION))
16633 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
16634 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
16635 printf("*** library (version %d.%d.%d)\n",
16636 glib_major_version, glib_minor_version, glib_micro_version);
16640 if ((glib_major_version > major) ||
16641 ((glib_major_version == major) && (glib_minor_version > minor)) ||
16642 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
16648 printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n",
16649 glib_major_version, glib_minor_version, glib_micro_version);
16650 printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n",
16651 major, minor, micro);
16652 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
16654 printf("*** If you have already installed a sufficiently new version, this error\n");
16655 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
16656 printf("*** being found. The easiest way to fix this is to remove the old version\n");
16657 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
16658 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
16659 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
16660 printf("*** so that the correct libraries are found at run-time))\n");
16667 if ac_fn_c_try_run "$LINENO"; then :
16672 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16673 conftest.$ac_objext conftest.beam conftest.$ac_ext
16676 CFLAGS="$ac_save_CFLAGS"
16677 LIBS="$ac_save_LIBS"
16680 if test "x$no_glib" = x ; then
16681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
16682 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
16685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16686 $as_echo "no" >&6; }
16687 if test "$PKG_CONFIG" = "no" ; then
16688 echo "*** A new enough version of pkg-config was not found."
16689 echo "*** See http://www.freedesktop.org/software/pkgconfig/"
16691 if test -f conf.glibtest ; then
16694 echo "*** Could not run GLIB test program, checking why..."
16695 ac_save_CFLAGS="$CFLAGS"
16696 ac_save_LIBS="$LIBS"
16697 CFLAGS="$CFLAGS $GLIB_CFLAGS"
16698 LIBS="$LIBS $GLIB_LIBS"
16699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16700 /* end confdefs.h. */
16708 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
16713 if ac_fn_c_try_link "$LINENO"; then :
16714 echo "*** The test program compiled, but did not run. This usually means"
16715 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
16716 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
16717 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
16718 echo "*** to the installed location Also, make sure you have run ldconfig if that"
16719 echo "*** is required on your system"
16721 echo "*** If you have an old version installed, it is best to remove it, although"
16722 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
16724 echo "*** The test program failed to compile or link. See the file config.log for the"
16725 echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
16727 rm -f core conftest.err conftest.$ac_objext \
16728 conftest$ac_exeext conftest.$ac_ext
16729 CFLAGS="$ac_save_CFLAGS"
16730 LIBS="$ac_save_LIBS"
16738 GLIB_COMPILE_RESOURCES=""
16739 as_fn_error $? "Cannot find GLIB: Is pkg-config in your path?" "$LINENO" 5
16747 rm -f conf.glibtest
16750 for ac_header in zlib.h
16752 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
16753 if test "x$ac_cv_header_zlib_h" = xyes; then :
16754 cat >>confdefs.h <<_ACEOF
16755 #define HAVE_ZLIB_H 1
16762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
16763 $as_echo_n "checking for inflate in -lz... " >&6; }
16764 if ${ac_cv_lib_z_inflate+:} false; then :
16765 $as_echo_n "(cached) " >&6
16767 ac_check_lib_save_LIBS=$LIBS
16769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16770 /* end confdefs.h. */
16772 /* Override any GCC internal prototype to avoid an error.
16773 Use char because int might match the return type of a GCC
16774 builtin and then its argument prototype would still apply. */
16787 if ac_fn_c_try_link "$LINENO"; then :
16788 ac_cv_lib_z_inflate=yes
16790 ac_cv_lib_z_inflate=no
16792 rm -f core conftest.err conftest.$ac_objext \
16793 conftest$ac_exeext conftest.$ac_ext
16794 LIBS=$ac_check_lib_save_LIBS
16796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
16797 $as_echo "$ac_cv_lib_z_inflate" >&6; }
16798 if test "x$ac_cv_lib_z_inflate" = xyes; then :
16804 if test "X$prefix" = "XNONE"; then
16805 acl_final_prefix="$ac_default_prefix"
16807 acl_final_prefix="$prefix"
16809 if test "X$exec_prefix" = "XNONE"; then
16810 acl_final_exec_prefix='${prefix}'
16812 acl_final_exec_prefix="$exec_prefix"
16814 acl_save_prefix="$prefix"
16815 prefix="$acl_final_prefix"
16816 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16817 prefix="$acl_save_prefix"
16820 # Check whether --with-gnu-ld was given.
16821 if test "${with_gnu_ld+set}" = set; then :
16822 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16827 # Prepare PATH_SEPARATOR.
16828 # The user is always right.
16829 if test "${PATH_SEPARATOR+set}" != set; then
16830 echo "#! /bin/sh" >conf$$.sh
16831 echo "exit 0" >>conf$$.sh
16833 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16841 if test "$GCC" = yes; then
16842 # Check if gcc -print-prog-name=ld gives a path.
16843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
16844 $as_echo_n "checking for ld used by GCC... " >&6; }
16847 # gcc leaves a trailing carriage return which upsets mingw
16848 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16850 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16853 # Accept absolute paths.
16854 [\\/]* | [A-Za-z]:[\\/]*)
16855 re_direlt='/[^/][^/]*/\.\./'
16856 # Canonicalize the path of ld
16857 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16858 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16859 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16861 test -z "$LD" && LD="$ac_prog"
16864 # If it fails, then pretend we aren't using GCC.
16868 # If it is relative, then search for the first ld in PATH.
16869 with_gnu_ld=unknown
16872 elif test "$with_gnu_ld" = yes; then
16873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16874 $as_echo_n "checking for GNU ld... " >&6; }
16876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16877 $as_echo_n "checking for non-GNU ld... " >&6; }
16879 if ${acl_cv_path_LD+:} false; then :
16880 $as_echo_n "(cached) " >&6
16882 if test -z "$LD"; then
16883 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16884 for ac_dir in $PATH; do
16885 test -z "$ac_dir" && ac_dir=.
16886 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16887 acl_cv_path_LD="$ac_dir/$ac_prog"
16888 # Check to see if the program is GNU ld. I'd rather use --version,
16889 # but apparently some GNU ld's only accept -v.
16890 # Break only if it was the GNU/non-GNU ld that we prefer.
16891 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16892 *GNU* | *'with BFD'*)
16893 test "$with_gnu_ld" != no && break ;;
16895 test "$with_gnu_ld" != yes && break ;;
16901 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16905 LD="$acl_cv_path_LD"
16906 if test -n "$LD"; then
16907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16908 $as_echo "$LD" >&6; }
16910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16911 $as_echo "no" >&6; }
16913 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16915 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16916 if ${acl_cv_prog_gnu_ld+:} false; then :
16917 $as_echo_n "(cached) " >&6
16919 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16920 case `$LD -v 2>&1 </dev/null` in
16921 *GNU* | *'with BFD'*)
16922 acl_cv_prog_gnu_ld=yes ;;
16924 acl_cv_prog_gnu_ld=no ;;
16927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16928 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
16929 with_gnu_ld=$acl_cv_prog_gnu_ld
16934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16935 $as_echo_n "checking for shared library run path origin... " >&6; }
16936 if ${acl_cv_rpath+:} false; then :
16937 $as_echo_n "(cached) " >&6
16940 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16941 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16943 rm -f ./conftest.sh
16947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16948 $as_echo "$acl_cv_rpath" >&6; }
16950 acl_libext="$acl_cv_libext"
16951 acl_shlibext="$acl_cv_shlibext"
16952 acl_libname_spec="$acl_cv_libname_spec"
16953 acl_library_names_spec="$acl_cv_library_names_spec"
16954 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16955 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16956 acl_hardcode_direct="$acl_cv_hardcode_direct"
16957 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
16958 # Check whether --enable-rpath was given.
16959 if test "${enable_rpath+set}" = set; then :
16960 enableval=$enable_rpath; :
16972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
16973 $as_echo_n "checking for 64-bit host... " >&6; }
16974 if ${gl_cv_solaris_64bit+:} false; then :
16975 $as_echo_n "(cached) " >&6
16977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16978 /* end confdefs.h. */
16985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16986 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
16987 gl_cv_solaris_64bit=yes
16989 gl_cv_solaris_64bit=no
16995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
16996 $as_echo "$gl_cv_solaris_64bit" >&6; }
16997 if test $gl_cv_solaris_64bit = yes; then
16998 acl_libdirstem=lib/64
16999 case "$host_cpu" in
17000 sparc*) acl_libdirstem2=lib/sparcv9 ;;
17001 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
17006 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
17007 if test -n "$searchpath"; then
17008 acl_save_IFS="${IFS= }"; IFS=":"
17009 for searchdir in $searchpath; do
17010 if test -d "$searchdir"; then
17011 case "$searchdir" in
17012 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
17014 # Better ignore directories of this form. They are misleading.
17016 *) searchdir=`cd "$searchdir" && pwd`
17017 case "$searchdir" in
17018 */lib64 ) acl_libdirstem=lib64 ;;
17023 IFS="$acl_save_IFS"
17027 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
17042 acl_save_prefix="$prefix"
17043 prefix="$acl_final_prefix"
17044 acl_save_exec_prefix="$exec_prefix"
17045 exec_prefix="$acl_final_exec_prefix"
17047 eval additional_includedir=\"$includedir\"
17048 eval additional_libdir=\"$libdir\"
17050 exec_prefix="$acl_save_exec_prefix"
17051 prefix="$acl_save_prefix"
17054 # Check whether --with-libiconv-prefix was given.
17055 if test "${with_libiconv_prefix+set}" = set; then :
17056 withval=$with_libiconv_prefix;
17057 if test "X$withval" = "Xno"; then
17060 if test "X$withval" = "X"; then
17062 acl_save_prefix="$prefix"
17063 prefix="$acl_final_prefix"
17064 acl_save_exec_prefix="$exec_prefix"
17065 exec_prefix="$acl_final_exec_prefix"
17067 eval additional_includedir=\"$includedir\"
17068 eval additional_libdir=\"$libdir\"
17070 exec_prefix="$acl_save_exec_prefix"
17071 prefix="$acl_save_prefix"
17074 additional_includedir="$withval/include"
17075 additional_libdir="$withval/$acl_libdirstem"
17076 if test "$acl_libdirstem2" != "$acl_libdirstem" \
17077 && ! test -d "$withval/$acl_libdirstem"; then
17078 additional_libdir="$withval/$acl_libdirstem2"
17092 names_already_handled=
17093 names_next_round='iconv '
17094 while test -n "$names_next_round"; do
17095 names_this_round="$names_next_round"
17097 for name in $names_this_round; do
17099 for n in $names_already_handled; do
17100 if test "$n" = "$name"; then
17101 already_handled=yes
17105 if test -z "$already_handled"; then
17106 names_already_handled="$names_already_handled $name"
17107 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17108 eval value=\"\$HAVE_LIB$uppername\"
17109 if test -n "$value"; then
17110 if test "$value" = yes; then
17111 eval value=\"\$LIB$uppername\"
17112 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17113 eval value=\"\$LTLIB$uppername\"
17114 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17123 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
17124 if test -n "$acl_shlibext"; then
17125 shrext=".$acl_shlibext" # typically: shrext=.so
17129 if test $use_additional = yes; then
17130 dir="$additional_libdir"
17131 if test -n "$acl_shlibext"; then
17132 if test -f "$dir/$libname$shrext"; then
17134 found_so="$dir/$libname$shrext"
17136 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17137 ver=`(cd "$dir" && \
17138 for f in "$libname$shrext".*; do echo "$f"; done \
17139 | sed -e "s,^$libname$shrext\\\\.,," \
17140 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17141 | sed 1q ) 2>/dev/null`
17142 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17144 found_so="$dir/$libname$shrext.$ver"
17147 eval library_names=\"$acl_library_names_spec\"
17148 for f in $library_names; do
17149 if test -f "$dir/$f"; then
17158 if test "X$found_dir" = "X"; then
17159 if test -f "$dir/$libname.$acl_libext"; then
17161 found_a="$dir/$libname.$acl_libext"
17164 if test "X$found_dir" != "X"; then
17165 if test -f "$dir/$libname.la"; then
17166 found_la="$dir/$libname.la"
17170 if test "X$found_dir" = "X"; then
17171 for x in $LDFLAGS $LTLIBICONV; do
17173 acl_save_prefix="$prefix"
17174 prefix="$acl_final_prefix"
17175 acl_save_exec_prefix="$exec_prefix"
17176 exec_prefix="$acl_final_exec_prefix"
17178 exec_prefix="$acl_save_exec_prefix"
17179 prefix="$acl_save_prefix"
17183 dir=`echo "X$x" | sed -e 's/^X-L//'`
17184 if test -n "$acl_shlibext"; then
17185 if test -f "$dir/$libname$shrext"; then
17187 found_so="$dir/$libname$shrext"
17189 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17190 ver=`(cd "$dir" && \
17191 for f in "$libname$shrext".*; do echo "$f"; done \
17192 | sed -e "s,^$libname$shrext\\\\.,," \
17193 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17194 | sed 1q ) 2>/dev/null`
17195 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17197 found_so="$dir/$libname$shrext.$ver"
17200 eval library_names=\"$acl_library_names_spec\"
17201 for f in $library_names; do
17202 if test -f "$dir/$f"; then
17211 if test "X$found_dir" = "X"; then
17212 if test -f "$dir/$libname.$acl_libext"; then
17214 found_a="$dir/$libname.$acl_libext"
17217 if test "X$found_dir" != "X"; then
17218 if test -f "$dir/$libname.la"; then
17219 found_la="$dir/$libname.la"
17224 if test "X$found_dir" != "X"; then
17229 if test "X$found_dir" != "X"; then
17230 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17231 if test "X$found_so" != "X"; then
17232 if test "$enable_rpath" = no \
17233 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
17234 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
17235 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17238 for x in $ltrpathdirs; do
17239 if test "X$x" = "X$found_dir"; then
17244 if test -z "$haveit"; then
17245 ltrpathdirs="$ltrpathdirs $found_dir"
17247 if test "$acl_hardcode_direct" = yes; then
17248 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17250 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
17251 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17253 for x in $rpathdirs; do
17254 if test "X$x" = "X$found_dir"; then
17259 if test -z "$haveit"; then
17260 rpathdirs="$rpathdirs $found_dir"
17264 for x in $LDFLAGS $LIBICONV; do
17266 acl_save_prefix="$prefix"
17267 prefix="$acl_final_prefix"
17268 acl_save_exec_prefix="$exec_prefix"
17269 exec_prefix="$acl_final_exec_prefix"
17271 exec_prefix="$acl_save_exec_prefix"
17272 prefix="$acl_save_prefix"
17274 if test "X$x" = "X-L$found_dir"; then
17279 if test -z "$haveit"; then
17280 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17282 if test "$acl_hardcode_minus_L" != no; then
17283 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17285 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17291 if test "X$found_a" != "X"; then
17292 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17294 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17297 additional_includedir=
17298 case "$found_dir" in
17299 */$acl_libdirstem | */$acl_libdirstem/)
17300 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
17301 if test "$name" = 'iconv'; then
17302 LIBICONV_PREFIX="$basedir"
17304 additional_includedir="$basedir/include"
17306 */$acl_libdirstem2 | */$acl_libdirstem2/)
17307 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
17308 if test "$name" = 'iconv'; then
17309 LIBICONV_PREFIX="$basedir"
17311 additional_includedir="$basedir/include"
17314 if test "X$additional_includedir" != "X"; then
17315 if test "X$additional_includedir" != "X/usr/include"; then
17317 if test "X$additional_includedir" = "X/usr/local/include"; then
17318 if test -n "$GCC"; then
17320 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17324 if test -z "$haveit"; then
17325 for x in $CPPFLAGS $INCICONV; do
17327 acl_save_prefix="$prefix"
17328 prefix="$acl_final_prefix"
17329 acl_save_exec_prefix="$exec_prefix"
17330 exec_prefix="$acl_final_exec_prefix"
17332 exec_prefix="$acl_save_exec_prefix"
17333 prefix="$acl_save_prefix"
17335 if test "X$x" = "X-I$additional_includedir"; then
17340 if test -z "$haveit"; then
17341 if test -d "$additional_includedir"; then
17342 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17348 if test -n "$found_la"; then
17349 save_libdir="$libdir"
17350 case "$found_la" in
17351 */* | *\\*) . "$found_la" ;;
17352 *) . "./$found_la" ;;
17354 libdir="$save_libdir"
17355 for dep in $dependency_libs; do
17358 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17359 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
17360 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
17362 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
17363 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
17364 if test -n "$GCC"; then
17366 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17370 if test -z "$haveit"; then
17372 for x in $LDFLAGS $LIBICONV; do
17374 acl_save_prefix="$prefix"
17375 prefix="$acl_final_prefix"
17376 acl_save_exec_prefix="$exec_prefix"
17377 exec_prefix="$acl_final_exec_prefix"
17379 exec_prefix="$acl_save_exec_prefix"
17380 prefix="$acl_save_prefix"
17382 if test "X$x" = "X-L$additional_libdir"; then
17387 if test -z "$haveit"; then
17388 if test -d "$additional_libdir"; then
17389 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17393 for x in $LDFLAGS $LTLIBICONV; do
17395 acl_save_prefix="$prefix"
17396 prefix="$acl_final_prefix"
17397 acl_save_exec_prefix="$exec_prefix"
17398 exec_prefix="$acl_final_exec_prefix"
17400 exec_prefix="$acl_save_exec_prefix"
17401 prefix="$acl_save_prefix"
17403 if test "X$x" = "X-L$additional_libdir"; then
17408 if test -z "$haveit"; then
17409 if test -d "$additional_libdir"; then
17410 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17417 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17418 if test "$enable_rpath" != no; then
17420 for x in $rpathdirs; do
17421 if test "X$x" = "X$dir"; then
17426 if test -z "$haveit"; then
17427 rpathdirs="$rpathdirs $dir"
17430 for x in $ltrpathdirs; do
17431 if test "X$x" = "X$dir"; then
17436 if test -z "$haveit"; then
17437 ltrpathdirs="$ltrpathdirs $dir"
17442 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17445 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17448 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17449 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17455 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17456 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17462 if test "X$rpathdirs" != "X"; then
17463 if test -n "$acl_hardcode_libdir_separator"; then
17465 for found_dir in $rpathdirs; do
17466 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
17468 acl_save_libdir="$libdir"
17470 eval flag=\"$acl_hardcode_libdir_flag_spec\"
17471 libdir="$acl_save_libdir"
17472 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17474 for found_dir in $rpathdirs; do
17475 acl_save_libdir="$libdir"
17476 libdir="$found_dir"
17477 eval flag=\"$acl_hardcode_libdir_flag_spec\"
17478 libdir="$acl_save_libdir"
17479 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17483 if test "X$ltrpathdirs" != "X"; then
17484 for found_dir in $ltrpathdirs; do
17485 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17500 am_save_CPPFLAGS="$CPPFLAGS"
17502 for element in $INCICONV; do
17504 for x in $CPPFLAGS; do
17506 acl_save_prefix="$prefix"
17507 prefix="$acl_final_prefix"
17508 acl_save_exec_prefix="$exec_prefix"
17509 exec_prefix="$acl_final_exec_prefix"
17511 exec_prefix="$acl_save_exec_prefix"
17512 prefix="$acl_save_prefix"
17514 if test "X$x" = "X$element"; then
17519 if test -z "$haveit"; then
17520 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17526 $as_echo_n "checking for iconv... " >&6; }
17527 if ${am_cv_func_iconv+:} false; then :
17528 $as_echo_n "(cached) " >&6
17531 am_cv_func_iconv="no, consider installing GNU libiconv"
17533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17534 /* end confdefs.h. */
17535 #include <stdlib.h>
17540 iconv_t cd = iconv_open("","");
17541 iconv(cd,NULL,NULL,NULL,NULL);
17547 if ac_fn_c_try_link "$LINENO"; then :
17548 am_cv_func_iconv=yes
17550 rm -f core conftest.err conftest.$ac_objext \
17551 conftest$ac_exeext conftest.$ac_ext
17552 if test "$am_cv_func_iconv" != yes; then
17553 am_save_LIBS="$LIBS"
17554 LIBS="$LIBS $LIBICONV"
17555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17556 /* end confdefs.h. */
17557 #include <stdlib.h>
17562 iconv_t cd = iconv_open("","");
17563 iconv(cd,NULL,NULL,NULL,NULL);
17569 if ac_fn_c_try_link "$LINENO"; then :
17570 am_cv_lib_iconv=yes
17571 am_cv_func_iconv=yes
17573 rm -f core conftest.err conftest.$ac_objext \
17574 conftest$ac_exeext conftest.$ac_ext
17575 LIBS="$am_save_LIBS"
17579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17580 $as_echo "$am_cv_func_iconv" >&6; }
17581 if test "$am_cv_func_iconv" = yes; then
17582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
17583 $as_echo_n "checking for working iconv... " >&6; }
17584 if ${am_cv_func_iconv_works+:} false; then :
17585 $as_echo_n "(cached) " >&6
17588 am_save_LIBS="$LIBS"
17589 if test $am_cv_lib_iconv = yes; then
17590 LIBS="$LIBS $LIBICONV"
17592 if test "$cross_compiling" = yes; then :
17594 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
17595 *) am_cv_func_iconv_works="guessing yes" ;;
17598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17599 /* end confdefs.h. */
17602 #include <string.h>
17605 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
17608 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
17609 if (cd_utf8_to_88591 != (iconv_t)(-1))
17611 static const char input[] = "\342\202\254"; /* EURO SIGN */
17613 const char *inptr = input;
17614 size_t inbytesleft = strlen (input);
17615 char *outptr = buf;
17616 size_t outbytesleft = sizeof (buf);
17617 size_t res = iconv (cd_utf8_to_88591,
17618 (char **) &inptr, &inbytesleft,
17619 &outptr, &outbytesleft);
17624 /* Test against Solaris 10 bug: Failures are not distinguishable from
17625 successful returns. */
17627 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
17628 if (cd_ascii_to_88591 != (iconv_t)(-1))
17630 static const char input[] = "\263";
17632 const char *inptr = input;
17633 size_t inbytesleft = strlen (input);
17634 char *outptr = buf;
17635 size_t outbytesleft = sizeof (buf);
17636 size_t res = iconv (cd_ascii_to_88591,
17637 (char **) &inptr, &inbytesleft,
17638 &outptr, &outbytesleft);
17643 #if 0 /* This bug could be worked around by the caller. */
17644 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
17646 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
17647 if (cd_88591_to_utf8 != (iconv_t)(-1))
17649 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
17651 const char *inptr = input;
17652 size_t inbytesleft = strlen (input);
17653 char *outptr = buf;
17654 size_t outbytesleft = sizeof (buf);
17655 size_t res = iconv (cd_88591_to_utf8,
17656 (char **) &inptr, &inbytesleft,
17657 &outptr, &outbytesleft);
17663 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
17665 if (/* Try standardized names. */
17666 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
17667 /* Try IRIX, OSF/1 names. */
17668 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
17669 /* Try AIX names. */
17670 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
17671 /* Try HP-UX names. */
17672 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
17677 if ac_fn_c_try_run "$LINENO"; then :
17678 am_cv_func_iconv_works=yes
17680 am_cv_func_iconv_works=no
17682 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17683 conftest.$ac_objext conftest.beam conftest.$ac_ext
17686 LIBS="$am_save_LIBS"
17689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
17690 $as_echo "$am_cv_func_iconv_works" >&6; }
17691 case "$am_cv_func_iconv_works" in
17692 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
17693 *) am_func_iconv=yes ;;
17696 am_func_iconv=no am_cv_lib_iconv=no
17698 if test "$am_func_iconv" = yes; then
17700 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
17703 if test "$am_cv_lib_iconv" = yes; then
17704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17705 $as_echo_n "checking how to link with libiconv... " >&6; }
17706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17707 $as_echo "$LIBICONV" >&6; }
17709 CPPFLAGS="$am_save_CPPFLAGS"
17716 if test "$am_cv_func_iconv" = yes; then
17717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
17718 $as_echo_n "checking for iconv declaration... " >&6; }
17719 if ${am_cv_proto_iconv+:} false; then :
17720 $as_echo_n "(cached) " >&6
17723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17724 /* end confdefs.h. */
17726 #include <stdlib.h>
17732 #if defined(__STDC__) || defined(__cplusplus)
17733 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
17746 if ac_fn_c_try_compile "$LINENO"; then :
17747 am_cv_proto_iconv_arg1=""
17749 am_cv_proto_iconv_arg1="const"
17751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17752 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
17755 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
17756 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
17757 $am_cv_proto_iconv" >&5
17759 $am_cv_proto_iconv" >&6; }
17761 cat >>confdefs.h <<_ACEOF
17762 #define ICONV_CONST $am_cv_proto_iconv_arg1
17768 CFLAGS_save="$CFLAGS"
17769 CFLAGS="$CFLAGS -I$srcdir"
17771 LIBS="$LIBS $LIBICONV"
17773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking preferred charset formats for system iconv" >&5
17774 $as_echo_n "checking preferred charset formats for system iconv... " >&6; }
17775 if ${ac_cv_have_iconv_detect_h+:} false; then :
17776 $as_echo_n "(cached) " >&6
17779 if test "$cross_compiling" = yes; then :
17781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot run test program while cross compiling" >&5
17782 $as_echo "cannot run test program while cross compiling" >&6; }
17783 as_fn_error $? "Copy target system's iconv-detect.h to . and configure with ac_cv_have_iconv_detect_h=yes" "$LINENO" 5
17786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17787 /* end confdefs.h. */
17789 #define CONFIGURE_IN
17790 #include "iconv-detect.c"
17793 if ac_fn_c_try_run "$LINENO"; then :
17794 ac_cv_have_iconv_detect_h=yes
17796 ac_cv_have_iconv_detect_h=no
17798 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17799 conftest.$ac_objext conftest.beam conftest.$ac_ext
17804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_iconv_detect_h" >&5
17805 $as_echo "$ac_cv_have_iconv_detect_h" >&6; }
17806 if test "x$ac_cv_have_iconv_detect_h" = xyes; then
17807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
17808 $as_echo "found" >&6; }
17810 $as_echo "#define HAVE_ICONV_DETECT_H 1" >>confdefs.h
17813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found
17814 *** The iconv-detect program was unable to determine the
17815 *** preferred charset formats recognized by your system
17816 *** iconv library. It is suggested that you install a
17817 *** working iconv library such as the one found at
17818 *** ftp://ftp.gnu.org/pub/gnu/libiconv
17820 *** Default charset formats will be used.
17822 $as_echo "not found
17823 *** The iconv-detect program was unable to determine the
17824 *** preferred charset formats recognized by your system
17825 *** iconv library. It is suggested that you install a
17826 *** working iconv library such as the one found at
17827 *** ftp://ftp.gnu.org/pub/gnu/libiconv
17829 *** Default charset formats will be used.
17833 CFLAGS="$CFLAGS_save"
17836 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
17837 if test "x$ac_cv_header_getopt_h" = xyes; then :
17842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU getopt_long" >&5
17843 $as_echo_n "checking for GNU getopt_long... " >&6; }
17844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17845 /* end confdefs.h. */
17847 #include <string.h>
17848 #include <unistd.h>
17849 #define _GNU_SOURCE
17850 #include <getopt.h>
17856 return getopt_long (0, NULL, NULL, NULL, NULL);
17863 if ac_fn_c_try_link "$LINENO"; then :
17864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17865 $as_echo "yes" >&6; }
17867 $as_echo "#define HAVE_GETOPT_H 1" >>confdefs.h
17872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17873 $as_echo "no" >&6; }
17877 rm -f core conftest.err conftest.$ac_objext \
17878 conftest$ac_exeext conftest.$ac_ext
17879 if test "x$have_getopt" = "xyes"; then
17880 SYSTEM_GETOPT_TRUE=
17881 SYSTEM_GETOPT_FALSE='#'
17883 SYSTEM_GETOPT_TRUE='#'
17884 SYSTEM_GETOPT_FALSE=
17888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5
17889 $as_echo_n "checking for fsync... " >&6; }
17890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17891 /* end confdefs.h. */
17893 #include <unistd.h>
17906 if ac_fn_c_try_link "$LINENO"; then :
17907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17908 $as_echo "yes" >&6; }
17910 $as_echo "#define HAVE_FSYNC 1" >>confdefs.h
17914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17915 $as_echo "no" >&6; }
17918 rm -f core conftest.err conftest.$ac_objext \
17919 conftest$ac_exeext conftest.$ac_ext
17921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAXHOSTNAMELEN" >&5
17922 $as_echo_n "checking for MAXHOSTNAMELEN... " >&6; }
17923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17924 /* end confdefs.h. */
17926 #include <sys/param.h>
17932 return MAXHOSTNAMELEN;
17939 if ac_fn_c_try_compile "$LINENO"; then :
17940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17941 $as_echo "yes" >&6; }
17945 $as_echo "#define MAXHOSTNAMELEN 64" >>confdefs.h
17947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; defined as 64" >&5
17948 $as_echo "no; defined as 64" >&6; }
17951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for domainname in struct utsname" >&5
17954 $as_echo_n "checking for domainname in struct utsname... " >&6; }
17955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17956 /* end confdefs.h. */
17958 #define _GNU_SOURCE
17959 #include <sys/utsname.h>
17965 struct utsname unam;
17967 unam.domainname[0] = '\0';
17969 return unam.domainname[0];
17975 if ac_fn_c_try_compile "$LINENO"; then :
17976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17977 $as_echo "yes" >&6; }
17979 $as_echo "#define HAVE_UTSNAME_DOMAINNAME 1" >>confdefs.h
17983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17984 $as_echo "no" >&6; }
17987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
17990 $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
17991 if ${ac_cv_struct_tm_gmtoff+:} false; then :
17992 $as_echo_n "(cached) " >&6
17994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17995 /* end confdefs.h. */
18005 return tm.tm_gmtoff;
18011 if ac_fn_c_try_compile "$LINENO"; then :
18012 ac_cv_struct_tm_gmtoff="yes"
18014 ac_cv_struct_tm_gmtoff="no"
18016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_gmtoff" >&5
18019 $as_echo "$ac_cv_struct_tm_gmtoff" >&6; }
18020 if test "$ac_cv_struct_tm_gmtoff" = "yes"; then
18022 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
18025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
18026 $as_echo_n "checking for timezone variable... " >&6; }
18027 if ${ac_cv_var_timezone+:} false; then :
18028 $as_echo_n "(cached) " >&6
18030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18031 /* end confdefs.h. */
18045 if ac_fn_c_try_compile "$LINENO"; then :
18046 ac_cv_var_timezone="yes"
18048 ac_cv_var_timezone="no"
18050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_timezone" >&5
18053 $as_echo "$ac_cv_var_timezone" >&6; }
18054 if test "$ac_cv_var_timezone" = "yes"; then
18056 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
18058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for altzone variable" >&5
18059 $as_echo_n "checking for altzone variable... " >&6; }
18060 if ${ac_cv_var_altzone+:} false; then :
18061 $as_echo_n "(cached) " >&6
18063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18064 /* end confdefs.h. */
18078 if ac_fn_c_try_compile "$LINENO"; then :
18079 ac_cv_var_altzone="yes"
18081 ac_cv_var_altzone="no"
18083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_altzone" >&5
18086 $as_echo "$ac_cv_var_altzone" >&6; }
18087 if test "$ac_cv_var_altzone" = "yes"; then
18089 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h
18093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _timezone variable" >&5
18094 $as_echo_n "checking for _timezone variable... " >&6; }
18095 if ${ac_cv_var__timezone+:} false; then :
18096 $as_echo_n "(cached) " >&6
18098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18099 /* end confdefs.h. */
18113 if ac_fn_c_try_compile "$LINENO"; then :
18114 ac_cv_var__timezone="yes"
18116 ac_cv_var__timezone="no"
18118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__timezone" >&5
18121 $as_echo "$ac_cv_var__timezone" >&6; }
18122 if test "$ac_cv_var__timezone" = "yes"; then
18124 $as_echo "#define HAVE__TIMEZONE 1" >>confdefs.h
18127 as_fn_error $? "unable to find a way to determine timezone" "$LINENO" 5
18132 # Check whether --enable-largefile was given.
18133 if test "${enable_largefile+set}" = set; then :
18134 enableval=$enable_largefile;
18136 enable_largefile="yes"
18139 if test "x$enable_largefile" != "xno"; then
18140 # Check whether --enable-largefile was given.
18141 if test "${enable_largefile+set}" = set; then :
18142 enableval=$enable_largefile;
18145 if test "$enable_largefile" != no; then
18147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
18148 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
18149 if ${ac_cv_sys_largefile_CC+:} false; then :
18150 $as_echo_n "(cached) " >&6
18152 ac_cv_sys_largefile_CC=no
18153 if test "$GCC" != yes; then
18156 # IRIX 6.2 and later do not support large files by default,
18157 # so use the C compiler's -n32 option if that helps.
18158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18159 /* end confdefs.h. */
18160 #include <sys/types.h>
18161 /* Check that off_t can represent 2**63 - 1 correctly.
18162 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18163 since some C++ compilers masquerading as C compilers
18164 incorrectly reject 9223372036854775807. */
18165 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18166 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18167 && LARGE_OFF_T % 2147483647 == 1)
18177 if ac_fn_c_try_compile "$LINENO"; then :
18180 rm -f core conftest.err conftest.$ac_objext
18182 if ac_fn_c_try_compile "$LINENO"; then :
18183 ac_cv_sys_largefile_CC=' -n32'; break
18185 rm -f core conftest.err conftest.$ac_objext
18189 rm -f conftest.$ac_ext
18192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
18193 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
18194 if test "$ac_cv_sys_largefile_CC" != no; then
18195 CC=$CC$ac_cv_sys_largefile_CC
18198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18199 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
18200 if ${ac_cv_sys_file_offset_bits+:} false; then :
18201 $as_echo_n "(cached) " >&6
18204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18205 /* end confdefs.h. */
18206 #include <sys/types.h>
18207 /* Check that off_t can represent 2**63 - 1 correctly.
18208 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18209 since some C++ compilers masquerading as C compilers
18210 incorrectly reject 9223372036854775807. */
18211 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18212 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18213 && LARGE_OFF_T % 2147483647 == 1)
18223 if ac_fn_c_try_compile "$LINENO"; then :
18224 ac_cv_sys_file_offset_bits=no; break
18226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18228 /* end confdefs.h. */
18229 #define _FILE_OFFSET_BITS 64
18230 #include <sys/types.h>
18231 /* Check that off_t can represent 2**63 - 1 correctly.
18232 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18233 since some C++ compilers masquerading as C compilers
18234 incorrectly reject 9223372036854775807. */
18235 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18236 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18237 && LARGE_OFF_T % 2147483647 == 1)
18247 if ac_fn_c_try_compile "$LINENO"; then :
18248 ac_cv_sys_file_offset_bits=64; break
18250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18251 ac_cv_sys_file_offset_bits=unknown
18255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
18256 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
18257 case $ac_cv_sys_file_offset_bits in #(
18260 cat >>confdefs.h <<_ACEOF
18261 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18266 if test $ac_cv_sys_file_offset_bits = unknown; then
18267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
18268 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
18269 if ${ac_cv_sys_large_files+:} false; then :
18270 $as_echo_n "(cached) " >&6
18273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18274 /* end confdefs.h. */
18275 #include <sys/types.h>
18276 /* Check that off_t can represent 2**63 - 1 correctly.
18277 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18278 since some C++ compilers masquerading as C compilers
18279 incorrectly reject 9223372036854775807. */
18280 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18281 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18282 && LARGE_OFF_T % 2147483647 == 1)
18292 if ac_fn_c_try_compile "$LINENO"; then :
18293 ac_cv_sys_large_files=no; break
18295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18297 /* end confdefs.h. */
18298 #define _LARGE_FILES 1
18299 #include <sys/types.h>
18300 /* Check that off_t can represent 2**63 - 1 correctly.
18301 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18302 since some C++ compilers masquerading as C compilers
18303 incorrectly reject 9223372036854775807. */
18304 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18305 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18306 && LARGE_OFF_T % 2147483647 == 1)
18316 if ac_fn_c_try_compile "$LINENO"; then :
18317 ac_cv_sys_large_files=1; break
18319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18320 ac_cv_sys_large_files=unknown
18324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
18325 $as_echo "$ac_cv_sys_large_files" >&6; }
18326 case $ac_cv_sys_large_files in #(
18329 cat >>confdefs.h <<_ACEOF
18330 #define _LARGE_FILES $ac_cv_sys_large_files
18338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE64_SOURCE value needed for large files" >&5
18339 $as_echo_n "checking for _LARGEFILE64_SOURCE value needed for large files... " >&6; }
18340 if ${ac_cv_largefile64_source+:} false; then :
18341 $as_echo_n "(cached) " >&6
18344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18345 /* end confdefs.h. */
18347 #include <sys/types.h>
18348 #include <sys/stat.h>
18355 return open ("__o_largefile", O_CREAT | O_RDWR | O_LARGEFILE, 0644);
18361 if ac_fn_c_try_compile "$LINENO"; then :
18363 ac_cv_largefile64_source="no"
18367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18368 /* end confdefs.h. */
18370 #define _LARGEFILE64_SOURCE
18371 #include <sys/types.h>
18372 #include <sys/stat.h>
18379 return open ("__o_largefile", O_CREAT | O_RDWR | O_LARGEFILE, 0644);
18385 if ac_fn_c_try_compile "$LINENO"; then :
18387 ac_cv_largefile64_source="yes"
18391 ac_cv_largefile64_source="unknown"
18394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_largefile64_source" >&5
18401 $as_echo "$ac_cv_largefile64_source" >&6; }
18403 enable_largefile="no"
18405 if test "x$ac_cv_largefile64_source" = "xyes"; then
18406 LFS_CFLAGS="-D_LARGEFILE64_SOURCE"
18407 enable_largefile="yes"
18408 elif test "x$ac_cv_largefile64_source" = "xunknown"; then
18410 $as_echo "#define O_LARGEFILE 0" >>confdefs.h
18414 if test -n "$ac_cv_sys_large_files" -a "x$ac_cv_sys_large_files" != "xno"; then
18415 LFS_CFLAGS="$LFS_CFLAGS -D_LARGE_FILES"
18416 enable_largefile="yes"
18419 if test "x$ac_cv_sys_file_offset_bits" != "xno"; then
18420 LFS_CFLAGS="$LFS_CFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
18421 enable_largefile="yes"
18426 if test "x$enable_largefile" = "xyes"; then
18427 ENABLE_LARGEFILE_TRUE=
18428 ENABLE_LARGEFILE_FALSE='#'
18430 ENABLE_LARGEFILE_TRUE='#'
18431 ENABLE_LARGEFILE_FALSE=
18435 CFLAGS_save="$CFLAGS"
18436 CFLAGS="$CFLAGS $LFS_CFLAGS"
18437 # The cast to long int works around a bug in the HP C Compiler
18438 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18439 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18440 # This bug is HP SR number 8606223364.
18441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
18442 $as_echo_n "checking size of ssize_t... " >&6; }
18443 if ${ac_cv_sizeof_ssize_t+:} false; then :
18444 $as_echo_n "(cached) " >&6
18446 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
18449 if test "$ac_cv_type_ssize_t" = yes; then
18450 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18451 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18452 as_fn_error 77 "cannot compute sizeof (ssize_t)
18453 See \`config.log' for more details" "$LINENO" 5; }
18455 ac_cv_sizeof_ssize_t=0
18460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
18461 $as_echo "$ac_cv_sizeof_ssize_t" >&6; }
18465 cat >>confdefs.h <<_ACEOF
18466 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
18470 # The cast to long int works around a bug in the HP C Compiler
18471 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18472 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18473 # This bug is HP SR number 8606223364.
18474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
18475 $as_echo_n "checking size of size_t... " >&6; }
18476 if ${ac_cv_sizeof_size_t+:} false; then :
18477 $as_echo_n "(cached) " >&6
18479 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
18482 if test "$ac_cv_type_size_t" = yes; then
18483 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18484 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18485 as_fn_error 77 "cannot compute sizeof (size_t)
18486 See \`config.log' for more details" "$LINENO" 5; }
18488 ac_cv_sizeof_size_t=0
18493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
18494 $as_echo "$ac_cv_sizeof_size_t" >&6; }
18498 cat >>confdefs.h <<_ACEOF
18499 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
18503 # The cast to long int works around a bug in the HP C Compiler
18504 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18505 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18506 # This bug is HP SR number 8606223364.
18507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
18508 $as_echo_n "checking size of off_t... " >&6; }
18509 if ${ac_cv_sizeof_off_t+:} false; then :
18510 $as_echo_n "(cached) " >&6
18512 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
18515 if test "$ac_cv_type_off_t" = yes; then
18516 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18518 as_fn_error 77 "cannot compute sizeof (off_t)
18519 See \`config.log' for more details" "$LINENO" 5; }
18521 ac_cv_sizeof_off_t=0
18526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
18527 $as_echo "$ac_cv_sizeof_off_t" >&6; }
18531 cat >>confdefs.h <<_ACEOF
18532 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
18536 CFLAGS="$CFLAGS_save"
18538 for ac_func in gethostname getdomainname getaddrinfo
18540 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18541 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18542 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18543 cat >>confdefs.h <<_ACEOF
18544 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -lsocket" >&5
18553 $as_echo_n "checking for getaddrinfo in -lsocket... " >&6; }
18554 if ${ac_cv_lib_socket_getaddrinfo+:} false; then :
18555 $as_echo_n "(cached) " >&6
18557 ac_check_lib_save_LIBS=$LIBS
18558 LIBS="-lsocket $LIBS"
18559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18560 /* end confdefs.h. */
18562 /* Override any GCC internal prototype to avoid an error.
18563 Use char because int might match the return type of a GCC
18564 builtin and then its argument prototype would still apply. */
18568 char getaddrinfo ();
18572 return getaddrinfo ();
18577 if ac_fn_c_try_link "$LINENO"; then :
18578 ac_cv_lib_socket_getaddrinfo=yes
18580 ac_cv_lib_socket_getaddrinfo=no
18582 rm -f core conftest.err conftest.$ac_objext \
18583 conftest$ac_exeext conftest.$ac_ext
18584 LIBS=$ac_check_lib_save_LIBS
18586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getaddrinfo" >&5
18587 $as_echo "$ac_cv_lib_socket_getaddrinfo" >&6; }
18588 if test "x$ac_cv_lib_socket_getaddrinfo" = xyes; then :
18589 LIBSOCKET="-lsocket"
18594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -lnsl" >&5
18595 $as_echo_n "checking for getaddrinfo in -lnsl... " >&6; }
18596 if ${ac_cv_lib_nsl_getaddrinfo+:} false; then :
18597 $as_echo_n "(cached) " >&6
18599 ac_check_lib_save_LIBS=$LIBS
18601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18602 /* end confdefs.h. */
18604 /* Override any GCC internal prototype to avoid an error.
18605 Use char because int might match the return type of a GCC
18606 builtin and then its argument prototype would still apply. */
18610 char getaddrinfo ();
18614 return getaddrinfo ();
18619 if ac_fn_c_try_link "$LINENO"; then :
18620 ac_cv_lib_nsl_getaddrinfo=yes
18622 ac_cv_lib_nsl_getaddrinfo=no
18624 rm -f core conftest.err conftest.$ac_objext \
18625 conftest$ac_exeext conftest.$ac_ext
18626 LIBS=$ac_check_lib_save_LIBS
18628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_getaddrinfo" >&5
18629 $as_echo "$ac_cv_lib_nsl_getaddrinfo" >&6; }
18630 if test "x$ac_cv_lib_nsl_getaddrinfo" = xyes; then :
18635 # Check whether --enable-smime was given.
18636 if test "${enable_smime+set}" = set; then :
18637 enableval=$enable_smime;
18643 if test "x$enable_cryptography" != "xyes"; then
18647 if test "x$enable_smime" = "xyes"; then
18649 # Check whether --with-gpgme-prefix was given.
18650 if test "${with_gpgme_prefix+set}" = set; then :
18651 withval=$with_gpgme_prefix; gpgme_config_prefix="$withval"
18653 gpgme_config_prefix=""
18656 if test "x$gpgme_config_prefix" != x ; then
18657 GPGME_CONFIG="$gpgme_config_prefix/bin/gpgme-config"
18659 # Extract the first word of "gpgme-config", so it can be a program name with args.
18660 set dummy gpgme-config; ac_word=$2
18661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18662 $as_echo_n "checking for $ac_word... " >&6; }
18663 if ${ac_cv_path_GPGME_CONFIG+:} false; then :
18664 $as_echo_n "(cached) " >&6
18666 case $GPGME_CONFIG in
18668 ac_cv_path_GPGME_CONFIG="$GPGME_CONFIG" # Let the user override the test with a path.
18671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18672 for as_dir in $PATH
18675 test -z "$as_dir" && as_dir=.
18676 for ac_exec_ext in '' $ac_executable_extensions; do
18677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18678 ac_cv_path_GPGME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18686 test -z "$ac_cv_path_GPGME_CONFIG" && ac_cv_path_GPGME_CONFIG="no"
18690 GPGME_CONFIG=$ac_cv_path_GPGME_CONFIG
18691 if test -n "$GPGME_CONFIG"; then
18692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPGME_CONFIG" >&5
18693 $as_echo "$GPGME_CONFIG" >&6; }
18695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18696 $as_echo "no" >&6; }
18701 if test "$GPGME_CONFIG" != "no" ; then
18702 gpgme_version=`$GPGME_CONFIG --version`
18704 gpgme_version_major=`echo $gpgme_version | \
18705 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
18706 gpgme_version_minor=`echo $gpgme_version | \
18707 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
18708 gpgme_version_micro=`echo $gpgme_version | \
18709 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
18712 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
18713 req_gpgme_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
18714 min_gpgme_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
18717 min_gpgme_version="$tmp"
18720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPGME pthread - version >= $min_gpgme_version" >&5
18721 $as_echo_n "checking for GPGME pthread - version >= $min_gpgme_version... " >&6; }
18723 if test "$GPGME_CONFIG" != "no" ; then
18724 if `$GPGME_CONFIG --thread=pthread 2> /dev/null` ; then
18725 req_major=`echo $min_gpgme_version | \
18726 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
18727 req_minor=`echo $min_gpgme_version | \
18728 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
18729 req_micro=`echo $min_gpgme_version | \
18730 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
18731 if test "$gpgme_version_major" -gt "$req_major"; then
18734 if test "$gpgme_version_major" -eq "$req_major"; then
18735 if test "$gpgme_version_minor" -gt "$req_minor"; then
18738 if test "$gpgme_version_minor" -eq "$req_minor"; then
18739 if test "$gpgme_version_micro" -ge "$req_micro"; then
18748 if test $ok = yes; then
18749 # If we have a recent GPGME, we should also check that the
18750 # API is compatible.
18751 if test "$req_gpgme_api" -gt 0 ; then
18752 tmp=`$GPGME_CONFIG --api-version 2>/dev/null || echo 0`
18753 if test "$tmp" -gt 0 ; then
18754 if test "$req_gpgme_api" -ne "$tmp" ; then
18760 if test $ok = yes; then
18761 GPGME_PTHREAD_CFLAGS=`$GPGME_CONFIG --thread=pthread --cflags`
18762 GPGME_PTHREAD_LIBS=`$GPGME_CONFIG --thread=pthread --libs`
18763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18764 $as_echo "yes" >&6; }
18765 enable_smime="yes (via GpgME)"
18767 GPGME_PTHREAD_CFLAGS=""
18768 GPGME_PTHREAD_LIBS=""
18769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18770 $as_echo "no" >&6; }
18776 if test "x$enable_smime" != "xno"; then
18778 $as_echo "#define ENABLE_SMIME 1" >>confdefs.h
18783 # Check whether --enable-mono was given.
18784 if test "${enable_mono+set}" = set; then :
18785 enableval=$enable_mono;
18790 if test "x$enable_mono" != "xno"; then
18791 # Extract the first word of "mcs", so it can be a program name with args.
18792 set dummy mcs; ac_word=$2
18793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18794 $as_echo_n "checking for $ac_word... " >&6; }
18795 if ${ac_cv_path_CSC+:} false; then :
18796 $as_echo_n "(cached) " >&6
18800 ac_cv_path_CSC="$CSC" # Let the user override the test with a path.
18803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18804 for as_dir in $PATH
18807 test -z "$as_dir" && as_dir=.
18808 for ac_exec_ext in '' $ac_executable_extensions; do
18809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18810 ac_cv_path_CSC="$as_dir/$ac_word$ac_exec_ext"
18811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18818 test -z "$ac_cv_path_CSC" && ac_cv_path_CSC="no"
18822 CSC=$ac_cv_path_CSC
18823 if test -n "$CSC"; then
18824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSC" >&5
18825 $as_echo "$CSC" >&6; }
18827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18828 $as_echo "no" >&6; }
18832 # if we found mcs, make sure it's mono and not something else named
18833 # mcs, such as Tru64's /usr/bin/mcs, for manipulating object file
18834 # comment sections of eCOFF object files.
18835 if test "x$CSC" != "xno"; then
18836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CSC is GNU Mono" >&5
18837 $as_echo_n "checking whether $CSC is GNU Mono... " >&6; }
18838 $CSC --version > /dev/null 2>&1
18839 if test $? -ne 0; then
18841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18842 $as_echo "no" >&6; }
18844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18845 $as_echo "yes" >&6; }
18852 if test "x$CSC" = "xno"; then
18853 if test "x$enable_mono" = "xyes"; then
18854 as_fn_error $? "Could not find mcs" "$LINENO" 5
18860 ENABLE_MONO_FALSE='#'
18862 ENABLE_MONO_TRUE='#'
18870 ENABLE_MONO_FALSE='#'
18872 ENABLE_MONO_TRUE='#'
18878 if test "x$enable_mono" = "xyes"; then
18879 # Extract the first word of "gacutil", so it can be a program name with args.
18880 set dummy gacutil; ac_word=$2
18881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18882 $as_echo_n "checking for $ac_word... " >&6; }
18883 if ${ac_cv_path_GACUTIL+:} false; then :
18884 $as_echo_n "(cached) " >&6
18888 ac_cv_path_GACUTIL="$GACUTIL" # Let the user override the test with a path.
18891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18892 for as_dir in $PATH
18895 test -z "$as_dir" && as_dir=.
18896 for ac_exec_ext in '' $ac_executable_extensions; do
18897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18898 ac_cv_path_GACUTIL="$as_dir/$ac_word$ac_exec_ext"
18899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18906 test -z "$ac_cv_path_GACUTIL" && ac_cv_path_GACUTIL="no"
18910 GACUTIL=$ac_cv_path_GACUTIL
18911 if test -n "$GACUTIL"; then
18912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GACUTIL" >&5
18913 $as_echo "$GACUTIL" >&6; }
18915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18916 $as_echo "no" >&6; }
18920 if test "x$GACUTIL" = "xno"; then
18921 as_fn_error $? "Your mono installation doesn't expose gacutil" "$LINENO" 5
18929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB_SHARP" >&5
18930 $as_echo_n "checking for GLIB_SHARP... " >&6; }
18932 if test -n "$GLIB_SHARP_CFLAGS"; then
18933 pkg_cv_GLIB_SHARP_CFLAGS="$GLIB_SHARP_CFLAGS"
18934 elif test -n "$PKG_CONFIG"; then
18935 if test -n "$PKG_CONFIG" && \
18936 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-sharp-2.0 >= 2.4.0\""; } >&5
18937 ($PKG_CONFIG --exists --print-errors "glib-sharp-2.0 >= 2.4.0") 2>&5
18939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18940 test $ac_status = 0; }; then
18941 pkg_cv_GLIB_SHARP_CFLAGS=`$PKG_CONFIG --cflags "glib-sharp-2.0 >= 2.4.0" 2>/dev/null`
18942 test "x$?" != "x0" && pkg_failed=yes
18949 if test -n "$GLIB_SHARP_LIBS"; then
18950 pkg_cv_GLIB_SHARP_LIBS="$GLIB_SHARP_LIBS"
18951 elif test -n "$PKG_CONFIG"; then
18952 if test -n "$PKG_CONFIG" && \
18953 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-sharp-2.0 >= 2.4.0\""; } >&5
18954 ($PKG_CONFIG --exists --print-errors "glib-sharp-2.0 >= 2.4.0") 2>&5
18956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18957 test $ac_status = 0; }; then
18958 pkg_cv_GLIB_SHARP_LIBS=`$PKG_CONFIG --libs "glib-sharp-2.0 >= 2.4.0" 2>/dev/null`
18959 test "x$?" != "x0" && pkg_failed=yes
18969 if test $pkg_failed = yes; then
18970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18971 $as_echo "no" >&6; }
18973 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18974 _pkg_short_errors_supported=yes
18976 _pkg_short_errors_supported=no
18978 if test $_pkg_short_errors_supported = yes; then
18979 GLIB_SHARP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-sharp-2.0 >= 2.4.0" 2>&1`
18981 GLIB_SHARP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-sharp-2.0 >= 2.4.0" 2>&1`
18983 # Put the nasty error message in config.log where it belongs
18984 echo "$GLIB_SHARP_PKG_ERRORS" >&5
18986 as_fn_error $? "Package requirements (glib-sharp-2.0 >= 2.4.0) were not met:
18988 $GLIB_SHARP_PKG_ERRORS
18990 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18991 installed software in a non-standard prefix.
18993 Alternatively, you may set the environment variables GLIB_SHARP_CFLAGS
18994 and GLIB_SHARP_LIBS to avoid the need to call pkg-config.
18995 See the pkg-config man page for more details." "$LINENO" 5
18996 elif test $pkg_failed = untried; then
18997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18998 $as_echo "no" >&6; }
18999 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19000 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19001 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19002 is in your PATH or set the PKG_CONFIG environment variable to the full
19003 path to pkg-config.
19005 Alternatively, you may set the environment variables GLIB_SHARP_CFLAGS
19006 and GLIB_SHARP_LIBS to avoid the need to call pkg-config.
19007 See the pkg-config man page for more details.
19009 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19010 See \`config.log' for more details" "$LINENO" 5; }
19012 GLIB_SHARP_CFLAGS=$pkg_cv_GLIB_SHARP_CFLAGS
19013 GLIB_SHARP_LIBS=$pkg_cv_GLIB_SHARP_LIBS
19014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19015 $as_echo "yes" >&6; }
19022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GAPI_TOOLS" >&5
19023 $as_echo_n "checking for GAPI_TOOLS... " >&6; }
19025 if test -n "$GAPI_TOOLS_CFLAGS"; then
19026 pkg_cv_GAPI_TOOLS_CFLAGS="$GAPI_TOOLS_CFLAGS"
19027 elif test -n "$PKG_CONFIG"; then
19028 if test -n "$PKG_CONFIG" && \
19029 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gapi-2.0\""; } >&5
19030 ($PKG_CONFIG --exists --print-errors "gapi-2.0") 2>&5
19032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19033 test $ac_status = 0; }; then
19034 pkg_cv_GAPI_TOOLS_CFLAGS=`$PKG_CONFIG --cflags "gapi-2.0" 2>/dev/null`
19035 test "x$?" != "x0" && pkg_failed=yes
19042 if test -n "$GAPI_TOOLS_LIBS"; then
19043 pkg_cv_GAPI_TOOLS_LIBS="$GAPI_TOOLS_LIBS"
19044 elif test -n "$PKG_CONFIG"; then
19045 if test -n "$PKG_CONFIG" && \
19046 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gapi-2.0\""; } >&5
19047 ($PKG_CONFIG --exists --print-errors "gapi-2.0") 2>&5
19049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19050 test $ac_status = 0; }; then
19051 pkg_cv_GAPI_TOOLS_LIBS=`$PKG_CONFIG --libs "gapi-2.0" 2>/dev/null`
19052 test "x$?" != "x0" && pkg_failed=yes
19062 if test $pkg_failed = yes; then
19063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19064 $as_echo "no" >&6; }
19066 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19067 _pkg_short_errors_supported=yes
19069 _pkg_short_errors_supported=no
19071 if test $_pkg_short_errors_supported = yes; then
19072 GAPI_TOOLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gapi-2.0" 2>&1`
19074 GAPI_TOOLS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gapi-2.0" 2>&1`
19076 # Put the nasty error message in config.log where it belongs
19077 echo "$GAPI_TOOLS_PKG_ERRORS" >&5
19079 as_fn_error $? "Package requirements (gapi-2.0) were not met:
19081 $GAPI_TOOLS_PKG_ERRORS
19083 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19084 installed software in a non-standard prefix.
19086 Alternatively, you may set the environment variables GAPI_TOOLS_CFLAGS
19087 and GAPI_TOOLS_LIBS to avoid the need to call pkg-config.
19088 See the pkg-config man page for more details." "$LINENO" 5
19089 elif test $pkg_failed = untried; then
19090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19091 $as_echo "no" >&6; }
19092 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19093 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19094 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19095 is in your PATH or set the PKG_CONFIG environment variable to the full
19096 path to pkg-config.
19098 Alternatively, you may set the environment variables GAPI_TOOLS_CFLAGS
19099 and GAPI_TOOLS_LIBS to avoid the need to call pkg-config.
19100 See the pkg-config man page for more details.
19102 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19103 See \`config.log' for more details" "$LINENO" 5; }
19105 GAPI_TOOLS_CFLAGS=$pkg_cv_GAPI_TOOLS_CFLAGS
19106 GAPI_TOOLS_LIBS=$pkg_cv_GAPI_TOOLS_LIBS
19107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19108 $as_echo "yes" >&6; }
19111 # Extract the first word of "gapi2-codegen", so it can be a program name with args.
19112 set dummy gapi2-codegen; ac_word=$2
19113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19114 $as_echo_n "checking for $ac_word... " >&6; }
19115 if ${ac_cv_path_GAPI_CODEGEN+:} false; then :
19116 $as_echo_n "(cached) " >&6
19118 case $GAPI_CODEGEN in
19120 ac_cv_path_GAPI_CODEGEN="$GAPI_CODEGEN" # Let the user override the test with a path.
19123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19124 for as_dir in $PATH
19127 test -z "$as_dir" && as_dir=.
19128 for ac_exec_ext in '' $ac_executable_extensions; do
19129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19130 ac_cv_path_GAPI_CODEGEN="$as_dir/$ac_word$ac_exec_ext"
19131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19138 test -z "$ac_cv_path_GAPI_CODEGEN" && ac_cv_path_GAPI_CODEGEN="no"
19142 GAPI_CODEGEN=$ac_cv_path_GAPI_CODEGEN
19143 if test -n "$GAPI_CODEGEN"; then
19144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GAPI_CODEGEN" >&5
19145 $as_echo "$GAPI_CODEGEN" >&6; }
19147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19148 $as_echo "no" >&6; }
19152 if test "x$GAPI_CODEGEN" = "xno"; then
19153 as_fn_error $? "You need to install gtk-sharp2-gapi" "$LINENO" 5
19156 # Extract the first word of "gapi2-fixup", so it can be a program name with args.
19157 set dummy gapi2-fixup; ac_word=$2
19158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19159 $as_echo_n "checking for $ac_word... " >&6; }
19160 if ${ac_cv_path_GAPI_FIXUP+:} false; then :
19161 $as_echo_n "(cached) " >&6
19163 case $GAPI_FIXUP in
19165 ac_cv_path_GAPI_FIXUP="$GAPI_FIXUP" # Let the user override the test with a path.
19168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19169 for as_dir in $PATH
19172 test -z "$as_dir" && as_dir=.
19173 for ac_exec_ext in '' $ac_executable_extensions; do
19174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19175 ac_cv_path_GAPI_FIXUP="$as_dir/$ac_word$ac_exec_ext"
19176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19183 test -z "$ac_cv_path_GAPI_FIXUP" && ac_cv_path_GAPI_FIXUP="no"
19187 GAPI_FIXUP=$ac_cv_path_GAPI_FIXUP
19188 if test -n "$GAPI_FIXUP"; then
19189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GAPI_FIXUP" >&5
19190 $as_echo "$GAPI_FIXUP" >&6; }
19192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19193 $as_echo "no" >&6; }
19197 if test "x$GAPI_FIXUP" = "xno"; then
19198 as_fn_error $? "You need to install gtk-sharp2-gapi" "$LINENO" 5
19201 # Extract the first word of "gapi2-parser", so it can be a program name with args.
19202 set dummy gapi2-parser; ac_word=$2
19203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19204 $as_echo_n "checking for $ac_word... " >&6; }
19205 if ${ac_cv_path_GAPI_PARSER+:} false; then :
19206 $as_echo_n "(cached) " >&6
19208 case $GAPI_PARSER in
19210 ac_cv_path_GAPI_PARSER="$GAPI_PARSER" # Let the user override the test with a path.
19213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19214 for as_dir in $PATH
19217 test -z "$as_dir" && as_dir=.
19218 for ac_exec_ext in '' $ac_executable_extensions; do
19219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19220 ac_cv_path_GAPI_PARSER="$as_dir/$ac_word$ac_exec_ext"
19221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19228 test -z "$ac_cv_path_GAPI_PARSER" && ac_cv_path_GAPI_PARSER="no"
19232 GAPI_PARSER=$ac_cv_path_GAPI_PARSER
19233 if test -n "$GAPI_PARSER"; then
19234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GAPI_PARSER" >&5
19235 $as_echo "$GAPI_PARSER" >&6; }
19237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19238 $as_echo "no" >&6; }
19242 if test "x$GAPI_PARSER" = "xno"; then
19243 as_fn_error $? "You need to install gtk-sharp2-gapi" "$LINENO" 5
19246 MONO_INTERFACE_VERSION=0
19247 API_VERSION="$GMIME_MAJOR_VERSION.$GMIME_MINOR_VERSION.0.$MONO_INTERFACE_VERSION"
19252 # Check whether --with-gacdir was given.
19253 if test "${with_gacdir+set}" = set; then :
19254 withval=$with_gacdir; with_gacdir=$withval
19256 with_gacdir=\${prefix}/lib
19259 gacdir=$with_gacdir
19263 if test "x$LIBSOCKET" != "x"; then
19264 EXTRA_LIBS="$EXTRA_LIBS $LIBSOCKET"
19266 if test "x$LIBNSL" != "x"; then
19267 EXTRA_LIBS="$EXTRA_LIBS $LIBNSL"
19269 if test "x$LIBICONV" != "x"; then
19270 EXTRA_LIBS="$EXTRA_LIBS $LIBICONV"
19272 if test "x$GPGME_PTHREAD_LIBS" != "x"; then
19273 EXTRA_LIBS="$EXTRA_LIBS $GPGME_PTHREAD_LIBS"
19276 CFLAGS="$CFLAGS -fno-strict-aliasing"
19277 LIBS="$LIBS $EXTRA_LIBS"
19282 GMIME_CFLAGS="$LFS_CFLAGS $GPGME_PTHREAD_CFLAGS"
19283 GMIME_LIBDIR="-L${libdir}"
19284 GMIME_INCLUDEDIR="-I${includedir}/gmime-$GMIME_API_VERSION"
19285 GMIME_LIBS_PRIVATE="$EXTRA_LIBS"
19286 GMIME_LIBS="-lgmime-$GMIME_API_VERSION"
19295 ac_config_files="$ac_config_files Makefile m4/Makefile build/Makefile build/vs2008/Makefile build/vs2008/config-win32.h build/vs2010/Makefile build/vs2010/config-win32.h docs/Makefile docs/reference/Makefile docs/tutorial/Makefile util/Makefile gmime/Makefile gmime/gmime-version.h mono/Makefile mono/AssemblyInfo.cs mono/gmime-sharp.dll.config mono/gmime-sharp.pc tools/Makefile gmime.spec gmime.pc"
19297 cat >confcache <<\_ACEOF
19298 # This file is a shell script that caches the results of configure
19299 # tests run on this system so they can be shared between configure
19300 # scripts and configure runs, see configure's option --config-cache.
19301 # It is not useful on other systems. If it contains results you don't
19302 # want to keep, you may remove or edit it.
19304 # config.status only pays attention to the cache file if you give it
19305 # the --recheck option to rerun configure.
19307 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19308 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19309 # following values.
19313 # The following way of writing the cache mishandles newlines in values,
19314 # but we know of no workaround that is simple, portable, and efficient.
19315 # So, we kill variables containing newlines.
19316 # Ultrix sh set writes to stderr and can't be redirected directly,
19317 # and sets the high bit in the cache file unless we assign to the vars.
19319 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19320 eval ac_val=\$$ac_var
19324 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19325 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19328 _ | IFS | as_nl) ;; #(
19329 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19330 *) { eval $ac_var=; unset $ac_var;} ;;
19336 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19337 *${as_nl}ac_space=\ *)
19338 # `set' does not quote correctly, so add quotes: double-quote
19339 # substitution turns \\\\ into \\, and sed turns \\ into \.
19342 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19345 # `set' quotes correctly as required by POSIX, so do not add quotes.
19346 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19355 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19357 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19359 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19360 if test -w "$cache_file"; then
19361 if test "x$cache_file" != "x/dev/null"; then
19362 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19363 $as_echo "$as_me: updating cache $cache_file" >&6;}
19364 if test ! -f "$cache_file" || test -h "$cache_file"; then
19365 cat confcache >"$cache_file"
19367 case $cache_file in #(
19369 mv -f confcache "$cache_file"$$ &&
19370 mv -f "$cache_file"$$ "$cache_file" ;; #(
19372 mv -f confcache "$cache_file" ;;
19377 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19378 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19383 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19384 # Let make expand exec_prefix.
19385 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19387 DEFS=-DHAVE_CONFIG_H
19392 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19393 # 1. Remove the extension, and $U if already installed.
19394 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19395 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19396 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19397 # will be set to the directory where LIBOBJS objects are built.
19398 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19399 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19401 LIBOBJS=$ac_libobjs
19403 LTLIBOBJS=$ac_ltlibobjs
19406 if test -n "$EXEEXT"; then
19408 am__EXEEXT_FALSE='#'
19410 am__EXEEXT_TRUE='#'
19414 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19415 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19416 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19418 if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then
19419 as_fn_error $? "conditional \"PLATFORM_WIN32\" was never defined.
19420 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19422 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
19423 as_fn_error $? "conditional \"OS_WIN32\" was never defined.
19424 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19426 if test -z "${OS_WIN32_X64_TRUE}" && test -z "${OS_WIN32_X64_FALSE}"; then
19427 as_fn_error $? "conditional \"OS_WIN32_X64\" was never defined.
19428 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19430 if test -z "${MS_LIB_AVAILABLE_TRUE}" && test -z "${MS_LIB_AVAILABLE_FALSE}"; then
19431 as_fn_error $? "conditional \"MS_LIB_AVAILABLE\" was never defined.
19432 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19434 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19435 as_fn_error $? "conditional \"AMDEP\" was never defined.
19436 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19438 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19439 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19440 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19442 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19443 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19444 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19446 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19447 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19448 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19450 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
19451 as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
19452 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19454 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
19455 as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
19456 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19458 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
19459 as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
19460 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19462 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
19463 as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
19464 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19466 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
19467 as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
19468 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19470 if test -z "${HAVE_DOCBOOK_TRUE}" && test -z "${HAVE_DOCBOOK_FALSE}"; then
19471 as_fn_error $? "conditional \"HAVE_DOCBOOK\" was never defined.
19472 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19474 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
19475 as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
19476 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19478 if test -z "${ENABLE_CRYPTOGRAPHY_TRUE}" && test -z "${ENABLE_CRYPTOGRAPHY_FALSE}"; then
19479 as_fn_error $? "conditional \"ENABLE_CRYPTOGRAPHY\" was never defined.
19480 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19482 if test -z "${SYSTEM_GETOPT_TRUE}" && test -z "${SYSTEM_GETOPT_FALSE}"; then
19483 as_fn_error $? "conditional \"SYSTEM_GETOPT\" was never defined.
19484 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19486 if test -z "${ENABLE_LARGEFILE_TRUE}" && test -z "${ENABLE_LARGEFILE_FALSE}"; then
19487 as_fn_error $? "conditional \"ENABLE_LARGEFILE\" was never defined.
19488 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19490 if test -z "${ENABLE_MONO_TRUE}" && test -z "${ENABLE_MONO_FALSE}"; then
19491 as_fn_error $? "conditional \"ENABLE_MONO\" was never defined.
19492 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19494 if test -z "${ENABLE_MONO_TRUE}" && test -z "${ENABLE_MONO_FALSE}"; then
19495 as_fn_error $? "conditional \"ENABLE_MONO\" was never defined.
19496 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19499 : "${CONFIG_STATUS=./config.status}"
19501 ac_clean_files_save=$ac_clean_files
19502 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19503 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19504 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19506 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19508 # Generated by $as_me.
19509 # Run this file to recreate the current configuration.
19510 # Compiler output produced by configure, useful for debugging
19511 # configure, is in config.log if it exists.
19514 ac_cs_recheck=false
19517 SHELL=\${CONFIG_SHELL-$SHELL}
19520 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19521 ## -------------------- ##
19522 ## M4sh Initialization. ##
19523 ## -------------------- ##
19525 # Be more Bourne compatible
19526 DUALCASE=1; export DUALCASE # for MKS sh
19527 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19530 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19531 # is contrary to our usage. Disable this feature.
19532 alias -g '${1+"$@"}'='"$@"'
19533 setopt NO_GLOB_SUBST
19535 case `(set -o) 2>/dev/null` in #(
19547 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19548 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19549 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19550 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19551 # Prefer a ksh shell builtin over an external printf program on Solaris,
19552 # but without wasting forks for bash or zsh.
19553 if test -z "$BASH_VERSION$ZSH_VERSION" \
19554 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19555 as_echo='print -r --'
19556 as_echo_n='print -rn --'
19557 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19558 as_echo='printf %s\n'
19559 as_echo_n='printf %s'
19561 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19562 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19563 as_echo_n='/usr/ucb/echo -n'
19565 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19566 as_echo_n_body='eval
19570 expr "X$arg" : "X\\(.*\\)$as_nl";
19571 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19573 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19575 export as_echo_n_body
19576 as_echo_n='sh -c $as_echo_n_body as_echo'
19578 export as_echo_body
19579 as_echo='sh -c $as_echo_body as_echo'
19582 # The user is always right.
19583 if test "${PATH_SEPARATOR+set}" != set; then
19585 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19586 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19593 # We need space, tab and new line, in precisely that order. Quoting is
19594 # there to prevent editors from complaining about space-tab.
19595 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19596 # splitting by setting IFS to empty value.)
19599 # Find who we are. Look in the path if we contain no directory separator.
19602 *[\\/]* ) as_myself=$0 ;;
19603 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19604 for as_dir in $PATH
19607 test -z "$as_dir" && as_dir=.
19608 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19614 # We did not find ourselves, most probably we were run as `sh COMMAND'
19615 # in which case we are not to be found in the path.
19616 if test "x$as_myself" = x; then
19619 if test ! -f "$as_myself"; then
19620 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19624 # Unset variables that we do not need and which cause bugs (e.g. in
19625 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19626 # suppresses any "Segmentation fault" message there. '((' could
19627 # trigger a bug in pdksh 5.2.14.
19628 for as_var in BASH_ENV ENV MAIL MAILPATH
19629 do eval test x\${$as_var+set} = xset \
19630 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19643 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19646 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19647 # ----------------------------------------
19648 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19649 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19650 # script with STATUS, using 1 if that was 0.
19653 as_status=$1; test $as_status -eq 0 && as_status=1
19655 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19656 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19658 $as_echo "$as_me: error: $2" >&2
19659 as_fn_exit $as_status
19663 # as_fn_set_status STATUS
19664 # -----------------------
19665 # Set $? to STATUS, without forking.
19666 as_fn_set_status ()
19669 } # as_fn_set_status
19671 # as_fn_exit STATUS
19672 # -----------------
19673 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19677 as_fn_set_status $1
19683 # Portably unset VAR.
19686 { eval $1=; unset $1;}
19688 as_unset=as_fn_unset
19689 # as_fn_append VAR VALUE
19690 # ----------------------
19691 # Append the text in VALUE to the end of the definition contained in VAR. Take
19692 # advantage of any shell optimizations that allow amortized linear growth over
19693 # repeated appends, instead of the typical quadratic growth present in naive
19695 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19696 eval 'as_fn_append ()
19707 # as_fn_arith ARG...
19708 # ------------------
19709 # Perform arithmetic evaluation on the ARGs, and store the result in the
19710 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19711 # must be portable across $(()) and expr.
19712 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19713 eval 'as_fn_arith ()
19720 as_val=`expr "$@" || test $? -eq 1`
19725 if expr a : '\(a\)' >/dev/null 2>&1 &&
19726 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19732 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19733 as_basename=basename
19738 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19744 as_me=`$as_basename -- "$0" ||
19745 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19746 X"$0" : 'X\(//\)$' \| \
19747 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19749 sed '/^.*\/\([^/][^/]*\)\/*$/{
19763 # Avoid depending upon Character Ranges.
19764 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19765 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19766 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19767 as_cr_digits='0123456789'
19768 as_cr_alnum=$as_cr_Letters$as_cr_digits
19770 ECHO_C= ECHO_N= ECHO_T=
19771 case `echo -n x` in #(((((
19773 case `echo 'xy\c'` in
19774 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19776 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19783 rm -f conf$$ conf$$.exe conf$$.file
19784 if test -d conf$$.dir; then
19785 rm -f conf$$.dir/conf$$.file
19788 mkdir conf$$.dir 2>/dev/null
19790 if (echo >conf$$.file) 2>/dev/null; then
19791 if ln -s conf$$.file conf$$ 2>/dev/null; then
19793 # ... but there are two gotchas:
19794 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19795 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19796 # In both cases, we have to default to `cp -p'.
19797 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19799 elif ln conf$$.file conf$$ 2>/dev/null; then
19807 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19808 rmdir conf$$.dir 2>/dev/null
19813 # Create "$as_dir" as a directory, including parents if necessary.
19818 -*) as_dir=./$as_dir;;
19820 test -d "$as_dir" || eval $as_mkdir_p || {
19824 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19825 *) as_qdir=$as_dir;;
19827 as_dirs="'$as_qdir' $as_dirs"
19828 as_dir=`$as_dirname -- "$as_dir" ||
19829 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19830 X"$as_dir" : 'X\(//\)[^/]' \| \
19831 X"$as_dir" : 'X\(//\)$' \| \
19832 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19833 $as_echo X"$as_dir" |
19834 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19838 /^X\(\/\/\)[^/].*/{
19851 test -d "$as_dir" && break
19853 test -z "$as_dirs" || eval "mkdir $as_dirs"
19854 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19858 if mkdir -p . 2>/dev/null; then
19859 as_mkdir_p='mkdir -p "$as_dir"'
19861 test -d ./-p && rmdir ./-p
19865 if test -x / >/dev/null 2>&1; then
19866 as_test_x='test -x'
19868 if ls -dL / >/dev/null 2>&1; then
19875 if test -d "$1"; then
19881 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19882 ???[sx]*):;;*)false;;esac;fi
19886 as_executable_p=$as_test_x
19888 # Sed expression to map a string onto a valid CPP name.
19889 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19891 # Sed expression to map a string onto a valid variable name.
19892 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19896 ## ----------------------------------- ##
19897 ## Main body of $CONFIG_STATUS script. ##
19898 ## ----------------------------------- ##
19900 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19902 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19903 # Save the log message, to keep $0 and so on meaningful, and to
19904 # report actual input values of CONFIG_FILES etc. instead of their
19905 # values after options handling.
19907 This file was extended by gmime $as_me 2.6.15, which was
19908 generated by GNU Autoconf 2.68. Invocation command line was
19910 CONFIG_FILES = $CONFIG_FILES
19911 CONFIG_HEADERS = $CONFIG_HEADERS
19912 CONFIG_LINKS = $CONFIG_LINKS
19913 CONFIG_COMMANDS = $CONFIG_COMMANDS
19916 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19921 case $ac_config_files in *"
19922 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19925 case $ac_config_headers in *"
19926 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19930 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19931 # Files that config.status was made for.
19932 config_files="$ac_config_files"
19933 config_headers="$ac_config_headers"
19934 config_commands="$ac_config_commands"
19938 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19940 \`$as_me' instantiates files and other configuration actions
19941 from templates according to the current configuration. Unless the files
19942 and actions are specified as TAGs, all are instantiated by default.
19944 Usage: $0 [OPTION]... [TAG]...
19946 -h, --help print this help, then exit
19947 -V, --version print version number and configuration settings, then exit
19948 --config print configuration, then exit
19949 -q, --quiet, --silent
19950 do not print progress messages
19951 -d, --debug don't remove temporary files
19952 --recheck update $as_me by reconfiguring in the same conditions
19953 --file=FILE[:TEMPLATE]
19954 instantiate the configuration file FILE
19955 --header=FILE[:TEMPLATE]
19956 instantiate the configuration header FILE
19958 Configuration files:
19961 Configuration headers:
19964 Configuration commands:
19967 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=gmime>."
19970 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19971 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19973 gmime config.status 2.6.15
19974 configured by $0, generated by GNU Autoconf 2.68,
19975 with options \\"\$ac_cs_config\\"
19977 Copyright (C) 2010 Free Software Foundation, Inc.
19978 This config.status script is free software; the Free Software Foundation
19979 gives unlimited permission to copy, distribute and modify it."
19986 test -n "\$AWK" || AWK=awk
19989 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19990 # The default lists apply if the user does not specify any file.
19996 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19997 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20001 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20013 # Handling of the options.
20014 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20016 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20017 $as_echo "$ac_cs_version"; exit ;;
20018 --config | --confi | --conf | --con | --co | --c )
20019 $as_echo "$ac_cs_config"; exit ;;
20020 --debug | --debu | --deb | --de | --d | -d )
20022 --file | --fil | --fi | --f )
20025 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20026 '') as_fn_error $? "missing file argument" ;;
20028 as_fn_append CONFIG_FILES " '$ac_optarg'"
20029 ac_need_defaults=false;;
20030 --header | --heade | --head | --hea )
20033 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20035 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20036 ac_need_defaults=false;;
20038 # Conflict between --help and --header
20039 as_fn_error $? "ambiguous option: \`$1'
20040 Try \`$0 --help' for more information.";;
20041 --help | --hel | -h )
20042 $as_echo "$ac_cs_usage"; exit ;;
20043 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20044 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20047 # This is an error.
20048 -*) as_fn_error $? "unrecognized option: \`$1'
20049 Try \`$0 --help' for more information." ;;
20051 *) as_fn_append ac_config_targets " $1"
20052 ac_need_defaults=false ;;
20058 ac_configure_extra_args=
20060 if $ac_cs_silent; then
20062 ac_configure_extra_args="$ac_configure_extra_args --silent"
20066 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20067 if \$ac_cs_recheck; then
20068 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20070 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20071 CONFIG_SHELL='$SHELL'
20072 export CONFIG_SHELL
20077 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20081 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20082 ## Running $as_me. ##
20088 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20092 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20095 # The HP-UX ksh and POSIX shell print the target directory to stdout
20096 # if CDPATH is set.
20097 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20099 sed_quote_subst='$sed_quote_subst'
20100 double_quote_subst='$double_quote_subst'
20101 delay_variable_subst='$delay_variable_subst'
20102 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20103 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20104 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20105 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20106 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20107 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20108 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20109 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20110 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20111 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20112 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20113 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20114 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20115 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20116 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20117 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20118 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20119 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20120 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20121 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20122 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20123 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20124 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20125 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20126 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20127 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20128 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20129 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20130 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20131 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20132 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20133 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20134 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20135 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20136 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20137 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20138 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20139 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20140 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20141 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20142 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20143 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20144 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20145 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20146 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20147 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20148 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20149 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20150 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20151 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20152 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20153 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20154 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20155 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20156 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20157 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20158 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"`'
20159 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20160 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20161 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20162 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20163 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20164 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20165 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20166 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20167 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20168 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20169 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20170 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20171 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20172 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20173 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20174 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20175 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20176 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20177 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20178 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20179 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20180 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20181 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20182 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20183 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20184 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20185 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20186 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20187 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20188 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20189 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20190 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20191 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20192 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20193 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20194 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20195 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20196 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20197 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20198 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20199 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20200 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20201 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20202 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20203 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20204 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20205 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20206 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20207 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20208 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20209 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20210 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20211 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20212 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20213 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20214 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20215 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20216 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20217 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20218 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20219 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20220 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20221 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20222 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20223 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20224 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20225 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20226 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20227 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20228 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20229 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20230 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20231 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20234 LTCFLAGS='$LTCFLAGS'
20235 compiler='$compiler_DEFAULT'
20237 # A function that is used when there is no print builtin or printf.
20238 func_fallback_echo ()
20240 eval 'cat <<_LTECHO_EOF
20245 # Quote evaled strings.
20260 deplibs_check_method \
20265 sharedlib_from_linklib_cmd \
20268 archiver_list_spec \
20274 lt_cv_sys_global_symbol_pipe \
20275 lt_cv_sys_global_symbol_to_cdecl \
20276 lt_cv_sys_global_symbol_to_c_name_address \
20277 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20278 nm_file_list_spec \
20279 lt_prog_compiler_no_builtin_flag \
20280 lt_prog_compiler_pic \
20281 lt_prog_compiler_wl \
20282 lt_prog_compiler_static \
20283 lt_cv_prog_compiler_c_o \
20292 export_dynamic_flag_spec \
20293 whole_archive_flag_spec \
20294 compiler_needs_object \
20296 allow_undefined_flag \
20297 no_undefined_flag \
20298 hardcode_libdir_flag_spec \
20299 hardcode_libdir_separator \
20303 variables_saved_for_relink \
20305 library_names_spec \
20307 install_override_mode \
20311 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20312 *[\\\\\\\`\\"\\\$]*)
20313 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20316 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20321 # Double-quote double-evaled strings.
20322 for var in reload_cmds \
20323 old_postinstall_cmds \
20324 old_postuninstall_cmds \
20326 extract_expsyms_cmds \
20327 old_archive_from_new_cmds \
20328 old_archive_from_expsyms_cmds \
20330 archive_expsym_cmds \
20332 module_expsym_cmds \
20333 export_symbols_cmds \
20337 postuninstall_cmds \
20339 sys_lib_search_path_spec \
20340 sys_lib_dlsearch_path_spec; do
20341 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20342 *[\\\\\\\`\\"\\\$]*)
20343 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20346 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20351 ac_aux_dir='$ac_aux_dir'
20352 xsi_shell='$xsi_shell'
20353 lt_shell_append='$lt_shell_append'
20355 # See if we are running on zsh, and set the options which allow our
20356 # commands through without removal of \ escapes INIT.
20357 if test -n "\${ZSH_VERSION+set}" ; then
20358 setopt NO_GLOB_SUBST
20364 TIMESTAMP='$TIMESTAMP'
20368 ac_aux_dir='$ac_aux_dir'
20374 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20376 # Handling of arguments.
20377 for ac_config_target in $ac_config_targets
20379 case $ac_config_target in
20380 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20381 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20382 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20383 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20384 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
20385 "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;;
20386 "build/vs2008/Makefile") CONFIG_FILES="$CONFIG_FILES build/vs2008/Makefile" ;;
20387 "build/vs2008/config-win32.h") CONFIG_FILES="$CONFIG_FILES build/vs2008/config-win32.h" ;;
20388 "build/vs2010/Makefile") CONFIG_FILES="$CONFIG_FILES build/vs2010/Makefile" ;;
20389 "build/vs2010/config-win32.h") CONFIG_FILES="$CONFIG_FILES build/vs2010/config-win32.h" ;;
20390 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
20391 "docs/reference/Makefile") CONFIG_FILES="$CONFIG_FILES docs/reference/Makefile" ;;
20392 "docs/tutorial/Makefile") CONFIG_FILES="$CONFIG_FILES docs/tutorial/Makefile" ;;
20393 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
20394 "gmime/Makefile") CONFIG_FILES="$CONFIG_FILES gmime/Makefile" ;;
20395 "gmime/gmime-version.h") CONFIG_FILES="$CONFIG_FILES gmime/gmime-version.h" ;;
20396 "mono/Makefile") CONFIG_FILES="$CONFIG_FILES mono/Makefile" ;;
20397 "mono/AssemblyInfo.cs") CONFIG_FILES="$CONFIG_FILES mono/AssemblyInfo.cs" ;;
20398 "mono/gmime-sharp.dll.config") CONFIG_FILES="$CONFIG_FILES mono/gmime-sharp.dll.config" ;;
20399 "mono/gmime-sharp.pc") CONFIG_FILES="$CONFIG_FILES mono/gmime-sharp.pc" ;;
20400 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
20401 "gmime.spec") CONFIG_FILES="$CONFIG_FILES gmime.spec" ;;
20402 "gmime.pc") CONFIG_FILES="$CONFIG_FILES gmime.pc" ;;
20404 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20409 # If the user did not use the arguments to specify the items to instantiate,
20410 # then the envvar interface is used. Set only those that are not.
20411 # We use the long form for the default assignment because of an extremely
20412 # bizarre bug on SunOS 4.1.3.
20413 if $ac_need_defaults; then
20414 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20415 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20416 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20419 # Have a temporary directory for convenience. Make it in the build tree
20420 # simply because there is no reason against having it here, and in addition,
20421 # creating and moving files from /tmp can sometimes cause problems.
20422 # Hook for its removal unless debugging.
20423 # Note that there is a small window in which the directory will not be cleaned:
20424 # after its creation but before its name has been assigned to `$tmp'.
20428 trap 'exit_status=$?
20429 : "${ac_tmp:=$tmp}"
20430 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20432 trap 'as_fn_exit 1' 1 2 13 15
20434 # Create a (secure) tmp directory for tmp files.
20437 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20441 tmp=./conf$$-$RANDOM
20442 (umask 077 && mkdir "$tmp")
20443 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20446 # Set up the scripts for CONFIG_FILES section.
20447 # No need to generate them if there are no CONFIG_FILES.
20448 # This happens for instance with `./config.status config.h'.
20449 if test -n "$CONFIG_FILES"; then
20452 ac_cr=`echo X | tr X '\015'`
20453 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20454 # But we know of no other shell where ac_cr would be empty at this
20455 # point, so we can use a bashism as a fallback.
20456 if test "x$ac_cr" = x; then
20457 eval ac_cr=\$\'\\r\'
20459 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20460 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20463 ac_cs_awk_cr=$ac_cr
20466 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20471 echo "cat >conf$$subs.awk <<_ACEOF" &&
20472 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20474 } >conf$$subs.sh ||
20475 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20476 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20478 for ac_last_try in false false false false false :; do
20479 . ./conf$$subs.sh ||
20480 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20482 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20483 if test $ac_delim_n = $ac_delim_num; then
20485 elif $ac_last_try; then
20486 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20488 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20491 rm -f conf$$subs.sh
20493 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20494 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20498 s/^/S["/; s/!.*/"]=/
20508 s/\(.\{148\}\)..*/\1/
20510 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20515 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20522 s/\(.\{148\}\)..*/\1/
20524 s/["\\]/\\&/g; s/^/"/; s/$/"/
20528 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20533 ' <conf$$subs.awk | sed '
20538 ' >>$CONFIG_STATUS || ac_write_fail=1
20539 rm -f conf$$subs.awk
20540 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20542 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20543 for (key in S) S_is_set[key] = 1
20549 nfields = split(line, field, "@")
20551 len = length(field[1])
20552 for (i = 2; i < nfields; i++) {
20554 keylen = length(key)
20555 if (S_is_set[key]) {
20557 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20558 len += length(value) + length(field[++i])
20569 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20570 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20571 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20574 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20575 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20578 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20579 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20580 # trailing colons and then remove the whole line if VPATH becomes empty
20581 # (actually we leave an empty line to preserve line numbers).
20582 if test "x$srcdir" = x.; then
20583 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20601 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20602 fi # test -n "$CONFIG_FILES"
20604 # Set up the scripts for CONFIG_HEADERS section.
20605 # No need to generate them if there are no CONFIG_HEADERS.
20606 # This happens for instance with `./config.status Makefile'.
20607 if test -n "$CONFIG_HEADERS"; then
20608 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20612 # Transform confdefs.h into an awk script `defines.awk', embedded as
20613 # here-document in config.status, that substitutes the proper values into
20614 # config.h.in to produce config.h.
20616 # Create a delimiter string that does not exist in confdefs.h, to ease
20617 # handling of long lines.
20619 for ac_last_try in false false :; do
20620 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20621 if test -z "$ac_tt"; then
20623 elif $ac_last_try; then
20624 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20626 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20630 # For the awk script, D is an array of macro values keyed by name,
20631 # likewise P contains macro parameters if any. Preserve backslash
20632 # newline sequences.
20634 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20636 s/.\{148\}/&'"$ac_delim"'/g
20639 s/^[ ]*#[ ]*define[ ][ ]*/ /
20646 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20648 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20652 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20653 D["\1"]=" \3\\\\\\n"\\/p
20655 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20660 s/.\{148\}/&'"$ac_delim"'/g
20665 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20668 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20670 ' <confdefs.h | sed '
20671 s/'"$ac_delim"'/"\\\
20672 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20674 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20675 for (key in D) D_is_set[key] = 1
20678 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20680 split(line, arg, " ")
20681 if (arg[1] == "#") {
20685 defundef = substr(arg[1], 2)
20688 split(mac1, mac2, "(") #)
20690 prefix = substr(line, 1, index(line, defundef) - 1)
20691 if (D_is_set[macro]) {
20692 # Preserve the white space surrounding the "#".
20693 print prefix "define", macro P[macro] D[macro]
20696 # Replace #undef with comments. This is necessary, for example,
20697 # in the case of _POSIX_SOURCE, which is predefined and required
20698 # on some systems where configure will not decide to define it.
20699 if (defundef == "undef") {
20700 print "/*", prefix defundef, macro, "*/"
20708 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20709 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20710 fi # test -n "$CONFIG_HEADERS"
20713 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20718 :[FHLC]) ac_mode=$ac_tag; continue;;
20720 case $ac_mode$ac_tag in
20722 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20723 :[FH]-) ac_tag=-:-;;
20724 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20741 -) ac_f="$ac_tmp/stdin";;
20742 *) # Look for the file first in the build tree, then in the source tree
20743 # (if the path is not absolute). The absolute path cannot be DOS-style,
20744 # because $ac_f cannot contain `:'.
20748 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20750 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20752 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20753 as_fn_append ac_file_inputs " '$ac_f'"
20756 # Let's still pretend it is `configure' which instantiates (i.e., don't
20757 # use $as_me), people would be surprised to read:
20758 # /* config.h. Generated by config.status. */
20759 configure_input='Generated from '`
20760 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20762 if test x"$ac_file" != x-; then
20763 configure_input="$ac_file. $configure_input"
20764 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20765 $as_echo "$as_me: creating $ac_file" >&6;}
20767 # Neutralize special characters interpreted by sed in replacement strings.
20768 case $configure_input in #(
20769 *\&* | *\|* | *\\* )
20770 ac_sed_conf_input=`$as_echo "$configure_input" |
20771 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20772 *) ac_sed_conf_input=$configure_input;;
20776 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20777 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20782 ac_dir=`$as_dirname -- "$ac_file" ||
20783 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20784 X"$ac_file" : 'X\(//\)[^/]' \| \
20785 X"$ac_file" : 'X\(//\)$' \| \
20786 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20787 $as_echo X"$ac_file" |
20788 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20792 /^X\(\/\/\)[^/].*/{
20805 as_dir="$ac_dir"; as_fn_mkdir_p
20809 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20811 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20812 # A ".." for each directory in $ac_dir_suffix.
20813 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20814 case $ac_top_builddir_sub in
20815 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20816 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20819 ac_abs_top_builddir=$ac_pwd
20820 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20821 # for backward compatibility:
20822 ac_top_builddir=$ac_top_build_prefix
20825 .) # We are building in place.
20827 ac_top_srcdir=$ac_top_builddir_sub
20828 ac_abs_top_srcdir=$ac_pwd ;;
20829 [\\/]* | ?:[\\/]* ) # Absolute name.
20830 ac_srcdir=$srcdir$ac_dir_suffix;
20831 ac_top_srcdir=$srcdir
20832 ac_abs_top_srcdir=$srcdir ;;
20833 *) # Relative name.
20834 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20835 ac_top_srcdir=$ac_top_build_prefix$srcdir
20836 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20838 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20848 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20849 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20851 ac_MKDIR_P=$MKDIR_P
20853 [\\/$]* | ?:[\\/]* ) ;;
20854 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20858 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20859 # If the template does not know about datarootdir, expand it.
20860 # FIXME: This hack should be removed a few years after 2.60.
20861 ac_datarootdir_hack=; ac_datarootdir_seen=
20872 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20873 *datarootdir*) ac_datarootdir_seen=yes;;
20874 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20876 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20878 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20879 ac_datarootdir_hack='
20880 s&@datadir@&$datadir&g
20881 s&@docdir@&$docdir&g
20882 s&@infodir@&$infodir&g
20883 s&@localedir@&$localedir&g
20884 s&@mandir@&$mandir&g
20885 s&\\\${datarootdir}&$datarootdir&g' ;;
20889 # Neutralize VPATH when `$srcdir' = `.'.
20890 # Shell code in configure.ac might set extrasub.
20891 # FIXME: do we really want to maintain this feature?
20892 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20893 ac_sed_extra="$ac_vpsub
20896 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20898 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20899 s|@configure_input@|$ac_sed_conf_input|;t t
20900 s&@top_builddir@&$ac_top_builddir_sub&;t t
20901 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20902 s&@srcdir@&$ac_srcdir&;t t
20903 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20904 s&@top_srcdir@&$ac_top_srcdir&;t t
20905 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20906 s&@builddir@&$ac_builddir&;t t
20907 s&@abs_builddir@&$ac_abs_builddir&;t t
20908 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20909 s&@INSTALL@&$ac_INSTALL&;t t
20910 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20911 $ac_datarootdir_hack
20913 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20914 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20916 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20917 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20918 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20919 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20921 which seems to be undefined. Please make sure it is defined" >&5
20922 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20923 which seems to be undefined. Please make sure it is defined" >&2;}
20925 rm -f "$ac_tmp/stdin"
20927 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20928 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20930 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20936 if test x"$ac_file" != x-; then
20938 $as_echo "/* $configure_input */" \
20939 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20940 } >"$ac_tmp/config.h" \
20941 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20942 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20943 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20944 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20947 mv "$ac_tmp/config.h" "$ac_file" \
20948 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20951 $as_echo "/* $configure_input */" \
20952 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20953 || as_fn_error $? "could not create -" "$LINENO" 5
20955 # Compute "$ac_file"'s index in $config_headers.
20958 for _am_header in $config_headers :; do
20959 case $_am_header in
20960 $_am_arg | $_am_arg:* )
20963 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20966 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20967 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20968 X"$_am_arg" : 'X\(//\)[^/]' \| \
20969 X"$_am_arg" : 'X\(//\)$' \| \
20970 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20971 $as_echo X"$_am_arg" |
20972 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20976 /^X\(\/\/\)[^/].*/{
20988 s/.*/./; q'`/stamp-h$_am_stamp_count
20991 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20992 $as_echo "$as_me: executing $ac_file commands" >&6;}
20997 case $ac_file$ac_mode in
20998 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20999 # Autoconf 2.62 quotes --file arguments for eval, but not when files
21000 # are listed without --file. Let's play safe and only enable the eval
21001 # if we detect the quoting.
21002 case $CONFIG_FILES in
21003 *\'*) eval set x "$CONFIG_FILES" ;;
21004 *) set x $CONFIG_FILES ;;
21009 # Strip MF so we end up with the name of the file.
21010 mf=`echo "$mf" | sed -e 's/:.*$//'`
21011 # Check whether this is an Automake generated Makefile or not.
21012 # We used to match only the files named `Makefile.in', but
21013 # some people rename them; so instead we look at the file content.
21014 # Grep'ing the first line is not enough: some people post-process
21015 # each Makefile.in and add a new line on top of each file to say so.
21016 # Grep'ing the whole file is not good either: AIX grep has a line
21017 # limit of 2048, but all sed's we know have understand at least 4000.
21018 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21019 dirpart=`$as_dirname -- "$mf" ||
21020 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21021 X"$mf" : 'X\(//\)[^/]' \| \
21022 X"$mf" : 'X\(//\)$' \| \
21023 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21025 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21029 /^X\(\/\/\)[^/].*/{
21045 # Extract the definition of DEPDIR, am__include, and am__quote
21046 # from the Makefile without running `make'.
21047 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21048 test -z "$DEPDIR" && continue
21049 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21050 test -z "am__include" && continue
21051 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21052 # When using ansi2knr, U may be empty or an underscore; expand it
21053 U=`sed -n 's/^U = //p' < "$mf"`
21054 # Find all dependency output files, they are included files with
21055 # $(DEPDIR) in their names. We invoke sed twice because it is the
21056 # simplest approach to changing $(DEPDIR) to its actual value in the
21058 for file in `sed -n "
21059 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21060 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21061 # Make sure the directory exists.
21062 test -f "$dirpart/$file" && continue
21063 fdir=`$as_dirname -- "$file" ||
21064 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21065 X"$file" : 'X\(//\)[^/]' \| \
21066 X"$file" : 'X\(//\)$' \| \
21067 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21068 $as_echo X"$file" |
21069 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21073 /^X\(\/\/\)[^/].*/{
21086 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21087 # echo "creating $dirpart/$file"
21088 echo '# dummy' > "$dirpart/$file"
21095 # See if we are running on zsh, and set the options which allow our
21096 # commands through without removal of \ escapes.
21097 if test -n "${ZSH_VERSION+set}" ; then
21098 setopt NO_GLOB_SUBST
21101 cfgfile="${ofile}T"
21102 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21105 cat <<_LT_EOF >> "$cfgfile"
21108 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21109 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21110 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21111 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21113 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21114 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
21116 # Written by Gordon Matzigkeit, 1996
21118 # This file is part of GNU Libtool.
21120 # GNU Libtool is free software; you can redistribute it and/or
21121 # modify it under the terms of the GNU General Public License as
21122 # published by the Free Software Foundation; either version 2 of
21123 # the License, or (at your option) any later version.
21125 # As a special exception to the GNU General Public License,
21126 # if you distribute this file as part of a program or library that
21127 # is built using GNU Libtool, you may include this file under the
21128 # same distribution terms that you use for the rest of that program.
21130 # GNU Libtool is distributed in the hope that it will be useful,
21131 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21132 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21133 # GNU General Public License for more details.
21135 # You should have received a copy of the GNU General Public License
21136 # along with GNU Libtool; see the file COPYING. If not, a copy
21137 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21138 # obtained by writing to the Free Software Foundation, Inc.,
21139 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21142 # The names of the tagged configurations supported by this script.
21145 # ### BEGIN LIBTOOL CONFIG
21147 # Which release of libtool.m4 was used?
21148 macro_version=$macro_version
21149 macro_revision=$macro_revision
21151 # Whether or not to build shared libraries.
21152 build_libtool_libs=$enable_shared
21154 # Whether or not to build static libraries.
21155 build_old_libs=$enable_static
21157 # What type of objects to build.
21160 # Whether or not to optimize for fast installation.
21161 fast_install=$enable_fast_install
21163 # Shell to use when invoking shell scripts.
21166 # An echo program that protects backslashes.
21169 # The PATH separator for the build system.
21170 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21173 host_alias=$host_alias
21177 # The build system.
21178 build_alias=$build_alias
21182 # A sed program that does not truncate output.
21185 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21186 Xsed="\$SED -e 1s/^X//"
21188 # A grep program that handles long lines.
21194 # A literal string matcher.
21197 # A BSD- or MS-compatible name lister.
21200 # Whether we need soft or hard links.
21203 # What is the maximum length of a command?
21204 max_cmd_len=$max_cmd_len
21206 # Object file suffix (normally "o").
21209 # Executable file suffix (normally "").
21212 # whether the shell understands "unset".
21215 # turn spaces into newlines.
21218 # turn newlines into spaces.
21221 # convert \$build file names to \$host format.
21222 to_host_file_cmd=$lt_cv_to_host_file_cmd
21224 # convert \$build files to toolchain format.
21225 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21227 # An object symbol dumper.
21228 OBJDUMP=$lt_OBJDUMP
21230 # Method to check whether dependent libraries are shared objects.
21231 deplibs_check_method=$lt_deplibs_check_method
21233 # Command to use when deplibs_check_method = "file_magic".
21234 file_magic_cmd=$lt_file_magic_cmd
21236 # How to find potential files when deplibs_check_method = "file_magic".
21237 file_magic_glob=$lt_file_magic_glob
21239 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21240 want_nocaseglob=$lt_want_nocaseglob
21242 # DLL creation program.
21243 DLLTOOL=$lt_DLLTOOL
21245 # Command to associate shared and link libraries.
21246 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21251 # Flags to create an archive.
21252 AR_FLAGS=$lt_AR_FLAGS
21254 # How to feed a file listing to the archiver.
21255 archiver_list_spec=$lt_archiver_list_spec
21257 # A symbol stripping program.
21260 # Commands used to install an old-style archive.
21262 old_postinstall_cmds=$lt_old_postinstall_cmds
21263 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21265 # Whether to use a lock for old archive extraction.
21266 lock_old_archive_extraction=$lock_old_archive_extraction
21271 # LTCC compiler flags.
21272 LTCFLAGS=$lt_CFLAGS
21274 # Take the output of nm and produce a listing of raw symbols and C names.
21275 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21277 # Transform the output of nm in a proper C declaration.
21278 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21280 # Transform the output of nm in a C name address pair.
21281 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21283 # Transform the output of nm in a C name address pair when lib prefix is needed.
21284 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21286 # Specify filename containing input files for \$NM.
21287 nm_file_list_spec=$lt_nm_file_list_spec
21289 # The root where to search for dependent libraries,and in which our libraries should be installed.
21290 lt_sysroot=$lt_sysroot
21292 # The name of the directory that contains temporary libtool files.
21295 # Used to examine libraries when file_magic_cmd begins with "file".
21296 MAGIC_CMD=$MAGIC_CMD
21298 # Must we lock files when doing compilation?
21299 need_locks=$lt_need_locks
21302 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21304 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21305 DSYMUTIL=$lt_DSYMUTIL
21307 # Tool to change global to local symbols on Mac OS X.
21310 # Tool to manipulate fat objects and archives on Mac OS X.
21313 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21316 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21317 OTOOL64=$lt_OTOOL64
21319 # Old archive suffix (normally "a").
21322 # Shared library suffix (normally ".so").
21323 shrext_cmds=$lt_shrext_cmds
21325 # The commands to extract the exported symbol list from a shared archive.
21326 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21328 # Variables whose values should be saved in libtool wrapper scripts and
21329 # restored at link time.
21330 variables_saved_for_relink=$lt_variables_saved_for_relink
21332 # Do we need the "lib" prefix for modules?
21333 need_lib_prefix=$need_lib_prefix
21335 # Do we need a version for libraries?
21336 need_version=$need_version
21338 # Library versioning type.
21339 version_type=$version_type
21341 # Shared library runtime path variable.
21342 runpath_var=$runpath_var
21344 # Shared library path variable.
21345 shlibpath_var=$shlibpath_var
21347 # Is shlibpath searched before the hard-coded library search path?
21348 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21350 # Format of library name prefix.
21351 libname_spec=$lt_libname_spec
21353 # List of archive names. First name is the real one, the rest are links.
21354 # The last name is the one that the linker finds with -lNAME
21355 library_names_spec=$lt_library_names_spec
21357 # The coded name of the library, if different from the real name.
21358 soname_spec=$lt_soname_spec
21360 # Permission mode override for installation of shared libraries.
21361 install_override_mode=$lt_install_override_mode
21363 # Command to use after installation of a shared archive.
21364 postinstall_cmds=$lt_postinstall_cmds
21366 # Command to use after uninstallation of a shared archive.
21367 postuninstall_cmds=$lt_postuninstall_cmds
21369 # Commands used to finish a libtool library installation in a directory.
21370 finish_cmds=$lt_finish_cmds
21372 # As "finish_cmds", except a single script fragment to be evaled but
21374 finish_eval=$lt_finish_eval
21376 # Whether we should hardcode library paths into libraries.
21377 hardcode_into_libs=$hardcode_into_libs
21379 # Compile-time system search path for libraries.
21380 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21382 # Run-time system search path for libraries.
21383 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21385 # Whether dlopen is supported.
21386 dlopen_support=$enable_dlopen
21388 # Whether dlopen of programs is supported.
21389 dlopen_self=$enable_dlopen_self
21391 # Whether dlopen of statically linked programs is supported.
21392 dlopen_self_static=$enable_dlopen_self_static
21394 # Commands to strip libraries.
21395 old_striplib=$lt_old_striplib
21396 striplib=$lt_striplib
21399 # The linker used to build libraries.
21402 # How to create reloadable object files.
21403 reload_flag=$lt_reload_flag
21404 reload_cmds=$lt_reload_cmds
21406 # Commands used to build an old-style archive.
21407 old_archive_cmds=$lt_old_archive_cmds
21409 # A language specific compiler.
21412 # Is the compiler the GNU compiler?
21415 # Compiler flag to turn off builtin functions.
21416 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21418 # Additional compiler flags for building library objects.
21419 pic_flag=$lt_lt_prog_compiler_pic
21421 # How to pass a linker flag through the compiler.
21422 wl=$lt_lt_prog_compiler_wl
21424 # Compiler flag to prevent dynamic linking.
21425 link_static_flag=$lt_lt_prog_compiler_static
21427 # Does compiler simultaneously support -c and -o options?
21428 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21430 # Whether or not to add -lc for building shared libraries.
21431 build_libtool_need_lc=$archive_cmds_need_lc
21433 # Whether or not to disallow shared libs when runtime libs are static.
21434 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21436 # Compiler flag to allow reflexive dlopens.
21437 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21439 # Compiler flag to generate shared objects directly from archives.
21440 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21442 # Whether the compiler copes with passing no objects directly.
21443 compiler_needs_object=$lt_compiler_needs_object
21445 # Create an old-style archive from a shared archive.
21446 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21448 # Create a temporary old-style archive to link instead of a shared archive.
21449 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21451 # Commands used to build a shared archive.
21452 archive_cmds=$lt_archive_cmds
21453 archive_expsym_cmds=$lt_archive_expsym_cmds
21455 # Commands used to build a loadable module if different from building
21456 # a shared archive.
21457 module_cmds=$lt_module_cmds
21458 module_expsym_cmds=$lt_module_expsym_cmds
21460 # Whether we are building with GNU ld or not.
21461 with_gnu_ld=$lt_with_gnu_ld
21463 # Flag that allows shared libraries with undefined symbols to be built.
21464 allow_undefined_flag=$lt_allow_undefined_flag
21466 # Flag that enforces no undefined symbols.
21467 no_undefined_flag=$lt_no_undefined_flag
21469 # Flag to hardcode \$libdir into a binary during linking.
21470 # This must work even if \$libdir does not exist
21471 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21473 # Whether we need a single "-rpath" flag with a separated argument.
21474 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21476 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21477 # DIR into the resulting binary.
21478 hardcode_direct=$hardcode_direct
21480 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21481 # DIR into the resulting binary and the resulting library dependency is
21482 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21483 # library is relocated.
21484 hardcode_direct_absolute=$hardcode_direct_absolute
21486 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21487 # into the resulting binary.
21488 hardcode_minus_L=$hardcode_minus_L
21490 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21491 # into the resulting binary.
21492 hardcode_shlibpath_var=$hardcode_shlibpath_var
21494 # Set to "yes" if building a shared library automatically hardcodes DIR
21495 # into the library and all subsequent libraries and executables linked
21497 hardcode_automatic=$hardcode_automatic
21499 # Set to yes if linker adds runtime paths of dependent libraries
21500 # to runtime path list.
21501 inherit_rpath=$inherit_rpath
21503 # Whether libtool must link a program against all its dependency libraries.
21504 link_all_deplibs=$link_all_deplibs
21506 # Set to "yes" if exported symbols are required.
21507 always_export_symbols=$always_export_symbols
21509 # The commands to list exported symbols.
21510 export_symbols_cmds=$lt_export_symbols_cmds
21512 # Symbols that should not be listed in the preloaded symbols.
21513 exclude_expsyms=$lt_exclude_expsyms
21515 # Symbols that must always be exported.
21516 include_expsyms=$lt_include_expsyms
21518 # Commands necessary for linking programs (against libraries) with templates.
21519 prelink_cmds=$lt_prelink_cmds
21521 # Commands necessary for finishing linking programs.
21522 postlink_cmds=$lt_postlink_cmds
21524 # Specify filename containing input files.
21525 file_list_spec=$lt_file_list_spec
21527 # How to hardcode a shared library path into an executable.
21528 hardcode_action=$hardcode_action
21530 # ### END LIBTOOL CONFIG
21536 cat <<\_LT_EOF >> "$cfgfile"
21537 # AIX sometimes has problems with the GCC collect2 program. For some
21538 # reason, if we set the COLLECT_NAMES environment variable, the problems
21539 # vanish in a puff of smoke.
21540 if test "X${COLLECT_NAMES+set}" != Xset; then
21542 export COLLECT_NAMES
21549 ltmain="$ac_aux_dir/ltmain.sh"
21552 # We use sed instead of cat because bash on DJGPP gets confused if
21553 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21554 # text mode, it properly converts lines to CR/LF. This bash problem
21555 # is reportedly fixed, but why not run on old versions too?
21556 sed '$q' "$ltmain" >> "$cfgfile" \
21557 || (rm -f "$cfgfile"; exit 1)
21559 if test x"$xsi_shell" = xyes; then
21560 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21564 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21565 \ * ) func_dirname_result="${3}" ;;\
21567 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21568 && mv -f "$cfgfile.tmp" "$cfgfile" \
21569 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21570 test 0 -eq $? || _lt_function_replace_fail=:
21573 sed -e '/^func_basename ()$/,/^} # func_basename /c\
21576 \ func_basename_result="${1##*/}"\
21577 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21578 && mv -f "$cfgfile.tmp" "$cfgfile" \
21579 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21580 test 0 -eq $? || _lt_function_replace_fail=:
21583 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21584 func_dirname_and_basename ()\
21587 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21588 \ * ) func_dirname_result="${3}" ;;\
21590 \ func_basename_result="${1##*/}"\
21591 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21592 && mv -f "$cfgfile.tmp" "$cfgfile" \
21593 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21594 test 0 -eq $? || _lt_function_replace_fail=:
21597 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21600 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21601 \ # positional parameters, so assign one to ordinary parameter first.\
21602 \ func_stripname_result=${3}\
21603 \ func_stripname_result=${func_stripname_result#"${1}"}\
21604 \ func_stripname_result=${func_stripname_result%"${2}"}\
21605 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21606 && mv -f "$cfgfile.tmp" "$cfgfile" \
21607 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21608 test 0 -eq $? || _lt_function_replace_fail=:
21611 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21612 func_split_long_opt ()\
21614 \ func_split_long_opt_name=${1%%=*}\
21615 \ func_split_long_opt_arg=${1#*=}\
21616 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21617 && mv -f "$cfgfile.tmp" "$cfgfile" \
21618 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21619 test 0 -eq $? || _lt_function_replace_fail=:
21622 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21623 func_split_short_opt ()\
21625 \ func_split_short_opt_arg=${1#??}\
21626 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21627 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21628 && mv -f "$cfgfile.tmp" "$cfgfile" \
21629 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21630 test 0 -eq $? || _lt_function_replace_fail=:
21633 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21637 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21638 \ *) func_lo2o_result=${1} ;;\
21640 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21641 && mv -f "$cfgfile.tmp" "$cfgfile" \
21642 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21643 test 0 -eq $? || _lt_function_replace_fail=:
21646 sed -e '/^func_xform ()$/,/^} # func_xform /c\
21649 func_xform_result=${1%.*}.lo\
21650 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21651 && mv -f "$cfgfile.tmp" "$cfgfile" \
21652 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21653 test 0 -eq $? || _lt_function_replace_fail=:
21656 sed -e '/^func_arith ()$/,/^} # func_arith /c\
21659 func_arith_result=$(( $* ))\
21660 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21661 && mv -f "$cfgfile.tmp" "$cfgfile" \
21662 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21663 test 0 -eq $? || _lt_function_replace_fail=:
21666 sed -e '/^func_len ()$/,/^} # func_len /c\
21669 func_len_result=${#1}\
21670 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21671 && mv -f "$cfgfile.tmp" "$cfgfile" \
21672 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21673 test 0 -eq $? || _lt_function_replace_fail=:
21677 if test x"$lt_shell_append" = xyes; then
21678 sed -e '/^func_append ()$/,/^} # func_append /c\
21681 eval "${1}+=\\${2}"\
21682 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21683 && mv -f "$cfgfile.tmp" "$cfgfile" \
21684 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21685 test 0 -eq $? || _lt_function_replace_fail=:
21688 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21689 func_append_quoted ()\
21691 \ func_quote_for_eval "${2}"\
21692 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21693 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21694 && mv -f "$cfgfile.tmp" "$cfgfile" \
21695 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21696 test 0 -eq $? || _lt_function_replace_fail=:
21699 # Save a `func_append' function call where possible by direct use of '+='
21700 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21701 && mv -f "$cfgfile.tmp" "$cfgfile" \
21702 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21703 test 0 -eq $? || _lt_function_replace_fail=:
21705 # Save a `func_append' function call even when '+=' is not available
21706 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21707 && mv -f "$cfgfile.tmp" "$cfgfile" \
21708 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21709 test 0 -eq $? || _lt_function_replace_fail=:
21712 if test x"$_lt_function_replace_fail" = x":"; then
21713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21714 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21718 mv -f "$cfgfile" "$ofile" ||
21719 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21730 ac_clean_files=$ac_clean_files_save
21732 test $ac_write_fail = 0 ||
21733 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21736 # configure is writing to config.log, and then calls config.status.
21737 # config.status does its own redirection, appending to config.log.
21738 # Unfortunately, on DOS this fails, as config.log is still kept open
21739 # by configure, so config.status won't be able to write to it; its
21740 # output is simply discarded. So we exec the FD to /dev/null,
21741 # effectively closing config.log, so it can be properly (re)opened and
21742 # appended to by config.status. When coming back to configure, we
21743 # need to make the FD available again.
21744 if test "$no_create" != yes; then
21746 ac_config_status_args=
21747 test "$silent" = yes &&
21748 ac_config_status_args="$ac_config_status_args --quiet"
21750 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21752 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21753 # would make configure fail if this is the last instruction.
21754 $ac_cs_success || as_fn_exit 1
21756 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21758 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21766 Source code location: ${srcdir}
21767 Install prefix: ${prefix}
21770 Profiling enabled: ${enable_profiling}
21772 Large file support: ${enable_largefile}
21773 Console warnings: ${enable_warnings}
21774 PGP/MIME support: ${enable_cryptography}
21775 S/MIME support: ${enable_smime}
21776 Strict parser: ${enable_strict_parser}
21778 Mono bindings: ${enable_mono}