2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for popt 1.16.
5 # Report bugs to <popt-devel@rpm5.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
98 # Find who we are. Look in the path if we contain no directory separator.
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
182 if test $as_have_required = yes && (eval ":
192 as_func_ret_success () {
195 as_func_ret_failure () {
200 if as_func_success; then
204 echo as_func_success failed.
207 if as_func_failure; then
209 echo as_func_failure succeeded.
212 if as_func_ret_success; then
216 echo as_func_ret_success failed.
219 if as_func_ret_failure; then
221 echo as_func_ret_failure succeeded.
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
228 echo positional parameters were not saved.
231 test \$exitcode = 0) || { (exit 1); exit 1; }
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
246 test -z "$as_dir" && as_dir=.
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
279 CONFIG_SHELL=$as_shell
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
307 as_func_ret_success () {
310 as_func_ret_failure () {
315 if as_func_success; then
319 echo as_func_success failed.
322 if as_func_failure; then
324 echo as_func_failure succeeded.
327 if as_func_ret_success; then
331 echo as_func_ret_success failed.
334 if as_func_ret_failure; then
336 echo as_func_ret_failure succeeded.
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
343 echo positional parameters were not saved.
346 test $exitcode = 0) || { (exit 1); exit 1; }
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
387 (eval "as_func_return () {
396 as_func_ret_success () {
399 as_func_ret_failure () {
404 if as_func_success; then
408 echo as_func_success failed.
411 if as_func_failure; then
413 echo as_func_failure succeeded.
416 if as_func_ret_success; then
420 echo as_func_ret_success failed.
423 if as_func_ret_failure; then
425 echo as_func_ret_failure succeeded.
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
432 echo positional parameters were not saved.
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
483 # Exit status is that of the last command.
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
494 ECHO_C= ECHO_N= ECHO_T=
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
516 mkdir conf$$.dir 2>/dev/null
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
527 elif ln conf$$.file conf$$ 2>/dev/null; then
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
538 if mkdir -p . 2>/dev/null; then
541 test -d ./-p && rmdir ./-p
545 if test -x / >/dev/null 2>&1; then
548 if ls -dL / >/dev/null 2>&1; then
555 if test -d "$1"; then
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
566 as_executable_p=$as_test_x
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
577 # Check that we are running under the correct shell.
578 SHELL=${CONFIG_SHELL-/bin/sh}
582 # Remove one level of quotation (which was required for Make).
583 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
588 if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
591 elif test "X$1" = X--fallback-echo; then
592 # Avoid inline document here, it may be left over
594 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $ECHO works!
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
602 if test "X$1" = X--fallback-echo; then
603 # used as fallback echo
611 # The HP-UX ksh and POSIX shell print the target directory to stdout
613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
615 if test -z "$lt_ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
628 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630 test "X$echo_testing_string" = "X$echo_test_string"; then
633 # The Solaris, AIX, and Digital Unix default echo programs unquote
634 # backslashes. This makes it impossible to quote backslashes using
635 # echo "$something" | sed 's/\\/\\\\/g'
637 # So, first we look for a working echo in the user's PATH.
639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640 for dir in $PATH /usr/ucb; do
642 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645 test "X$echo_testing_string" = "X$echo_test_string"; then
652 if test "X$ECHO" = Xecho; then
653 # We didn't find a better echo, so look for alternatives.
654 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
657 # This shell has a builtin print -r that does the trick.
659 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660 test "X$CONFIG_SHELL" != X/bin/ksh; then
661 # If we have ksh, try running configure again with it.
662 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663 export ORIGINAL_CONFIG_SHELL
664 CONFIG_SHELL=/bin/ksh
666 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
670 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672 test "X$echo_testing_string" = "X$echo_test_string"; then
675 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676 test "X$echo_testing_string" = 'X\t' &&
677 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678 test "X$echo_testing_string" = "X$echo_test_string"; then
679 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
681 SHELL="$CONFIG_SHELL"
683 ECHO="$CONFIG_SHELL $0 --fallback-echo"
684 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685 test "X$echo_testing_string" = 'X\t' &&
686 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687 test "X$echo_testing_string" = "X$echo_test_string"; then
688 ECHO="$CONFIG_SHELL $0 --fallback-echo"
690 # maybe with a smaller string...
693 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
701 if test "$prev" != 'sed 50q "$0"'; then
702 echo_test_string=`eval $prev`
703 export echo_test_string
704 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
706 # Oops. We lost completely, so just stick with echo.
715 # Copy echo and quote the copy suitably for passing to libtool from
716 # the Makefile, instead of quoting the original, which is used later.
718 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
725 exec 7<&0 </dev/null 6>&1
728 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729 # so uname gets run too.
730 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
735 ac_default_prefix=/usr/local
737 ac_config_libobj_dir=.
743 SHELL=${CONFIG_SHELL-/bin/sh}
745 # Identity of this package.
747 PACKAGE_TARNAME='popt'
748 PACKAGE_VERSION='1.16'
749 PACKAGE_STRING='popt 1.16'
750 PACKAGE_BUGREPORT='popt-devel@rpm5.org'
752 ac_unique_file="popt.h"
753 # Factoring default headers for most tests.
754 ac_includes_default="\
756 #ifdef HAVE_SYS_TYPES_H
757 # include <sys/types.h>
759 #ifdef HAVE_SYS_STAT_H
760 # include <sys/stat.h>
766 # ifdef HAVE_STDLIB_H
771 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
776 #ifdef HAVE_STRINGS_H
777 # include <strings.h>
779 #ifdef HAVE_INTTYPES_H
780 # include <inttypes.h>
790 enable_option_checking=no
791 ac_subst_vars='am__EXEEXT_FALSE
805 XGETTEXT_EXTRA_OPTIONS
813 GETTEXT_MACRO_VERSION
815 HAVE_LD_VERSION_SCRIPT_FALSE
816 HAVE_LD_VERSION_SCRIPT_TRUE
860 MAINTAINER_MODE_FALSE
870 INSTALL_STRIP_PROGRAM
924 program_transform_name
936 enable_option_checking
937 enable_maintainer_mode
938 enable_dependency_tracking
946 enable_ld_version_script
953 ac_precious_vars='build_alias
964 # Initialize some variables set by options.
966 ac_init_version=false
967 ac_unrecognized_opts=
969 # The variables have the same names as the options, with
970 # dashes changed to underlines.
978 program_transform_name=s,x,x,
986 # Installation directory options.
987 # These are left unexpanded so users can "make install exec_prefix=/foo"
988 # and all the variables that are supposed to be based on exec_prefix
989 # by default will actually change.
990 # Use braces instead of parens because sh, perl, etc. also accept them.
991 # (The list follows the same order as the GNU Coding Standards.)
992 bindir='${exec_prefix}/bin'
993 sbindir='${exec_prefix}/sbin'
994 libexecdir='${exec_prefix}/libexec'
995 datarootdir='${prefix}/share'
996 datadir='${datarootdir}'
997 sysconfdir='${prefix}/etc'
998 sharedstatedir='${prefix}/com'
999 localstatedir='${prefix}/var'
1000 includedir='${prefix}/include'
1001 oldincludedir='/usr/include'
1002 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1003 infodir='${datarootdir}/info'
1008 libdir='${exec_prefix}/lib'
1009 localedir='${datarootdir}/locale'
1010 mandir='${datarootdir}/man'
1016 # If the previous option needs an argument, assign it.
1017 if test -n "$ac_prev"; then
1018 eval $ac_prev=\$ac_option
1024 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1028 # Accept the important Cygnus configure options, so we can diagnose typos.
1030 case $ac_dashdash$ac_option in
1034 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1036 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1037 bindir=$ac_optarg ;;
1039 -build | --build | --buil | --bui | --bu)
1040 ac_prev=build_alias ;;
1041 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1042 build_alias=$ac_optarg ;;
1044 -cache-file | --cache-file | --cache-fil | --cache-fi \
1045 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1046 ac_prev=cache_file ;;
1047 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1048 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1049 cache_file=$ac_optarg ;;
1051 --config-cache | -C)
1052 cache_file=config.cache ;;
1054 -datadir | --datadir | --datadi | --datad)
1056 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1057 datadir=$ac_optarg ;;
1059 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1060 | --dataroo | --dataro | --datar)
1061 ac_prev=datarootdir ;;
1062 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1063 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1064 datarootdir=$ac_optarg ;;
1066 -disable-* | --disable-*)
1067 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1068 # Reject names that are not valid shell variable names.
1069 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1070 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1071 { (exit 1); exit 1; }; }
1072 ac_useropt_orig=$ac_useropt
1073 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1074 case $ac_user_opts in
1076 "enable_$ac_useropt"
1078 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1079 ac_unrecognized_sep=', ';;
1081 eval enable_$ac_useropt=no ;;
1083 -docdir | --docdir | --docdi | --doc | --do)
1085 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1086 docdir=$ac_optarg ;;
1088 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1090 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1091 dvidir=$ac_optarg ;;
1093 -enable-* | --enable-*)
1094 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1095 # Reject names that are not valid shell variable names.
1096 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1097 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1098 { (exit 1); exit 1; }; }
1099 ac_useropt_orig=$ac_useropt
1100 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1101 case $ac_user_opts in
1103 "enable_$ac_useropt"
1105 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1106 ac_unrecognized_sep=', ';;
1108 eval enable_$ac_useropt=\$ac_optarg ;;
1110 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1111 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1112 | --exec | --exe | --ex)
1113 ac_prev=exec_prefix ;;
1114 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1115 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1116 | --exec=* | --exe=* | --ex=*)
1117 exec_prefix=$ac_optarg ;;
1119 -gas | --gas | --ga | --g)
1120 # Obsolete; use --with-gas.
1123 -help | --help | --hel | --he | -h)
1124 ac_init_help=long ;;
1125 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1126 ac_init_help=recursive ;;
1127 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1128 ac_init_help=short ;;
1130 -host | --host | --hos | --ho)
1131 ac_prev=host_alias ;;
1132 -host=* | --host=* | --hos=* | --ho=*)
1133 host_alias=$ac_optarg ;;
1135 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1137 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1139 htmldir=$ac_optarg ;;
1141 -includedir | --includedir | --includedi | --included | --include \
1142 | --includ | --inclu | --incl | --inc)
1143 ac_prev=includedir ;;
1144 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1145 | --includ=* | --inclu=* | --incl=* | --inc=*)
1146 includedir=$ac_optarg ;;
1148 -infodir | --infodir | --infodi | --infod | --info | --inf)
1150 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1151 infodir=$ac_optarg ;;
1153 -libdir | --libdir | --libdi | --libd)
1155 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1156 libdir=$ac_optarg ;;
1158 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1159 | --libexe | --libex | --libe)
1160 ac_prev=libexecdir ;;
1161 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1162 | --libexe=* | --libex=* | --libe=*)
1163 libexecdir=$ac_optarg ;;
1165 -localedir | --localedir | --localedi | --localed | --locale)
1166 ac_prev=localedir ;;
1167 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1168 localedir=$ac_optarg ;;
1170 -localstatedir | --localstatedir | --localstatedi | --localstated \
1171 | --localstate | --localstat | --localsta | --localst | --locals)
1172 ac_prev=localstatedir ;;
1173 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1174 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1175 localstatedir=$ac_optarg ;;
1177 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1179 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1180 mandir=$ac_optarg ;;
1182 -nfp | --nfp | --nf)
1183 # Obsolete; use --without-fp.
1186 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1187 | --no-cr | --no-c | -n)
1190 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1191 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1194 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1195 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1196 | --oldin | --oldi | --old | --ol | --o)
1197 ac_prev=oldincludedir ;;
1198 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1199 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1200 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1201 oldincludedir=$ac_optarg ;;
1203 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1205 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1206 prefix=$ac_optarg ;;
1208 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1209 | --program-pre | --program-pr | --program-p)
1210 ac_prev=program_prefix ;;
1211 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1212 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1213 program_prefix=$ac_optarg ;;
1215 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1216 | --program-suf | --program-su | --program-s)
1217 ac_prev=program_suffix ;;
1218 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1219 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1220 program_suffix=$ac_optarg ;;
1222 -program-transform-name | --program-transform-name \
1223 | --program-transform-nam | --program-transform-na \
1224 | --program-transform-n | --program-transform- \
1225 | --program-transform | --program-transfor \
1226 | --program-transfo | --program-transf \
1227 | --program-trans | --program-tran \
1228 | --progr-tra | --program-tr | --program-t)
1229 ac_prev=program_transform_name ;;
1230 -program-transform-name=* | --program-transform-name=* \
1231 | --program-transform-nam=* | --program-transform-na=* \
1232 | --program-transform-n=* | --program-transform-=* \
1233 | --program-transform=* | --program-transfor=* \
1234 | --program-transfo=* | --program-transf=* \
1235 | --program-trans=* | --program-tran=* \
1236 | --progr-tra=* | --program-tr=* | --program-t=*)
1237 program_transform_name=$ac_optarg ;;
1239 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1241 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1242 pdfdir=$ac_optarg ;;
1244 -psdir | --psdir | --psdi | --psd | --ps)
1246 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1249 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1250 | -silent | --silent | --silen | --sile | --sil)
1253 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1255 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1257 sbindir=$ac_optarg ;;
1259 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1260 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1261 | --sharedst | --shareds | --shared | --share | --shar \
1263 ac_prev=sharedstatedir ;;
1264 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1265 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1266 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1268 sharedstatedir=$ac_optarg ;;
1270 -site | --site | --sit)
1272 -site=* | --site=* | --sit=*)
1275 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1277 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1278 srcdir=$ac_optarg ;;
1280 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1281 | --syscon | --sysco | --sysc | --sys | --sy)
1282 ac_prev=sysconfdir ;;
1283 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1284 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1285 sysconfdir=$ac_optarg ;;
1287 -target | --target | --targe | --targ | --tar | --ta | --t)
1288 ac_prev=target_alias ;;
1289 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1290 target_alias=$ac_optarg ;;
1292 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1295 -version | --version | --versio | --versi | --vers | -V)
1296 ac_init_version=: ;;
1299 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1300 # Reject names that are not valid shell variable names.
1301 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1302 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1303 { (exit 1); exit 1; }; }
1304 ac_useropt_orig=$ac_useropt
1305 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1306 case $ac_user_opts in
1310 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1311 ac_unrecognized_sep=', ';;
1313 eval with_$ac_useropt=\$ac_optarg ;;
1315 -without-* | --without-*)
1316 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1317 # Reject names that are not valid shell variable names.
1318 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1319 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1320 { (exit 1); exit 1; }; }
1321 ac_useropt_orig=$ac_useropt
1322 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1323 case $ac_user_opts in
1327 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1328 ac_unrecognized_sep=', ';;
1330 eval with_$ac_useropt=no ;;
1333 # Obsolete; use --with-x.
1336 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1337 | --x-incl | --x-inc | --x-in | --x-i)
1338 ac_prev=x_includes ;;
1339 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1340 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1341 x_includes=$ac_optarg ;;
1343 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1344 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1345 ac_prev=x_libraries ;;
1346 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1347 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1348 x_libraries=$ac_optarg ;;
1350 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1351 Try \`$0 --help' for more information." >&2
1352 { (exit 1); exit 1; }; }
1356 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1357 # Reject names that are not valid shell variable names.
1358 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1359 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1360 { (exit 1); exit 1; }; }
1361 eval $ac_envvar=\$ac_optarg
1362 export $ac_envvar ;;
1365 # FIXME: should be removed in autoconf 3.0.
1366 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1367 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1368 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1369 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1375 if test -n "$ac_prev"; then
1376 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1377 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1378 { (exit 1); exit 1; }; }
1381 if test -n "$ac_unrecognized_opts"; then
1382 case $enable_option_checking in
1384 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1385 { (exit 1); exit 1; }; } ;;
1386 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1390 # Check all directory arguments for consistency.
1391 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1392 datadir sysconfdir sharedstatedir localstatedir includedir \
1393 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1394 libdir localedir mandir
1396 eval ac_val=\$$ac_var
1397 # Remove trailing slashes.
1400 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1401 eval $ac_var=\$ac_val;;
1403 # Be sure to have absolute directory names.
1405 [\\/$]* | ?:[\\/]* ) continue;;
1406 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1408 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1409 { (exit 1); exit 1; }; }
1412 # There might be people who depend on the old broken behavior: `$host'
1413 # used to hold the argument of --host etc.
1414 # FIXME: To remove some day.
1417 target=$target_alias
1419 # FIXME: To remove some day.
1420 if test "x$host_alias" != x; then
1421 if test "x$build_alias" = x; then
1422 cross_compiling=maybe
1423 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1424 If a cross compiler is detected then cross compile mode will be used." >&2
1425 elif test "x$build_alias" != "x$host_alias"; then
1431 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1433 test "$silent" = yes && exec 6>/dev/null
1436 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1437 ac_ls_di=`ls -di .` &&
1438 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1439 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1440 { (exit 1); exit 1; }; }
1441 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1442 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1443 { (exit 1); exit 1; }; }
1446 # Find the source files, if location was not specified.
1447 if test -z "$srcdir"; then
1448 ac_srcdir_defaulted=yes
1449 # Try the directory containing this script, then the parent directory.
1450 ac_confdir=`$as_dirname -- "$as_myself" ||
1451 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1452 X"$as_myself" : 'X\(//\)[^/]' \| \
1453 X"$as_myself" : 'X\(//\)$' \| \
1454 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1455 $as_echo X"$as_myself" |
1456 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1474 if test ! -r "$srcdir/$ac_unique_file"; then
1478 ac_srcdir_defaulted=no
1480 if test ! -r "$srcdir/$ac_unique_file"; then
1481 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1482 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1483 { (exit 1); exit 1; }; }
1485 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1487 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1488 { (exit 1); exit 1; }; }
1490 # When building in place, set srcdir=.
1491 if test "$ac_abs_confdir" = "$ac_pwd"; then
1494 # Remove unnecessary trailing slashes from srcdir.
1495 # Double slashes in file names in object file debugging info
1496 # mess up M-x gdb in Emacs.
1498 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1500 for ac_var in $ac_precious_vars; do
1501 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1502 eval ac_env_${ac_var}_value=\$${ac_var}
1503 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1504 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1508 # Report the --help message.
1510 if test "$ac_init_help" = "long"; then
1511 # Omit some internal or obsolete options to make the list less imposing.
1512 # This message is too long to be a string in the A/UX 3.1 sh.
1514 \`configure' configures popt 1.16 to adapt to many kinds of systems.
1516 Usage: $0 [OPTION]... [VAR=VALUE]...
1518 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1519 VAR=VALUE. See below for descriptions of some of the useful variables.
1521 Defaults for the options are specified in brackets.
1524 -h, --help display this help and exit
1525 --help=short display options specific to this package
1526 --help=recursive display the short help of all the included packages
1527 -V, --version display version information and exit
1528 -q, --quiet, --silent do not print \`checking...' messages
1529 --cache-file=FILE cache test results in FILE [disabled]
1530 -C, --config-cache alias for \`--cache-file=config.cache'
1531 -n, --no-create do not create output files
1532 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1534 Installation directories:
1535 --prefix=PREFIX install architecture-independent files in PREFIX
1536 [$ac_default_prefix]
1537 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1540 By default, \`make install' will install all the files in
1541 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1542 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1543 for instance \`--prefix=\$HOME'.
1545 For better control, use the options below.
1547 Fine tuning of the installation directories:
1548 --bindir=DIR user executables [EPREFIX/bin]
1549 --sbindir=DIR system admin executables [EPREFIX/sbin]
1550 --libexecdir=DIR program executables [EPREFIX/libexec]
1551 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1552 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1553 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1554 --libdir=DIR object code libraries [EPREFIX/lib]
1555 --includedir=DIR C header files [PREFIX/include]
1556 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1557 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1558 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1559 --infodir=DIR info documentation [DATAROOTDIR/info]
1560 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1561 --mandir=DIR man documentation [DATAROOTDIR/man]
1562 --docdir=DIR documentation root [DATAROOTDIR/doc/popt]
1563 --htmldir=DIR html documentation [DOCDIR]
1564 --dvidir=DIR dvi documentation [DOCDIR]
1565 --pdfdir=DIR pdf documentation [DOCDIR]
1566 --psdir=DIR ps documentation [DOCDIR]
1572 --program-prefix=PREFIX prepend PREFIX to installed program names
1573 --program-suffix=SUFFIX append SUFFIX to installed program names
1574 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1577 --build=BUILD configure for building on BUILD [guessed]
1578 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1579 --target=TARGET configure for building compilers for TARGET [HOST]
1583 if test -n "$ac_init_help"; then
1584 case $ac_init_help in
1585 short | recursive ) echo "Configuration of popt 1.16:";;
1590 --disable-option-checking ignore unrecognized --enable/--with options
1591 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1592 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1593 --enable-maintainer-mode enable make rules and dependencies not useful
1594 (and sometimes confusing) to the casual installer
1595 --disable-dependency-tracking speeds up one-time build
1596 --enable-dependency-tracking do not reject slow dependency extractors
1597 --enable-shared[=PKGS] build shared libraries [default=yes]
1598 --enable-static[=PKGS] build static libraries [default=yes]
1599 --enable-fast-install[=PKGS]
1600 optimize for fast installation [default=yes]
1601 --disable-libtool-lock avoid locking (might break parallel builds)
1602 --disable-largefile omit support for large files
1603 --enable-ld-version-script
1604 enable/disable use of linker version script.
1605 (default is system dependent)
1606 --enable-build-gcov build POPT instrumented for gcov
1607 --disable-nls do not use Native Language Support
1608 --disable-rpath do not hardcode runtime library paths
1611 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1612 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1613 --with-pic try to use only PIC/non-PIC objects [default=use
1615 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1616 --with-gnu-ld assume the C compiler uses GNU ld default=no
1617 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1618 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1619 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1620 --without-libintl-prefix don't search for libintl in includedir and libdir
1622 Some influential environment variables:
1623 CC C compiler command
1624 CFLAGS C compiler flags
1625 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1626 nonstandard directory <lib dir>
1627 LIBS libraries to pass to the linker, e.g. -l<library>
1628 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1629 you have headers in a nonstandard directory <include dir>
1632 Use these variables to override the choices made by `configure' or to help
1633 it to find libraries and programs with nonstandard names/locations.
1635 Report bugs to <popt-devel@rpm5.org>.
1640 if test "$ac_init_help" = "recursive"; then
1641 # If there are subdirs, report their specific --help.
1642 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1643 test -d "$ac_dir" ||
1644 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1649 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1651 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1652 # A ".." for each directory in $ac_dir_suffix.
1653 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1654 case $ac_top_builddir_sub in
1655 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1656 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1659 ac_abs_top_builddir=$ac_pwd
1660 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1661 # for backward compatibility:
1662 ac_top_builddir=$ac_top_build_prefix
1665 .) # We are building in place.
1667 ac_top_srcdir=$ac_top_builddir_sub
1668 ac_abs_top_srcdir=$ac_pwd ;;
1669 [\\/]* | ?:[\\/]* ) # Absolute name.
1670 ac_srcdir=$srcdir$ac_dir_suffix;
1671 ac_top_srcdir=$srcdir
1672 ac_abs_top_srcdir=$srcdir ;;
1674 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1675 ac_top_srcdir=$ac_top_build_prefix$srcdir
1676 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1678 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1680 cd "$ac_dir" || { ac_status=$?; continue; }
1681 # Check for guested configure.
1682 if test -f "$ac_srcdir/configure.gnu"; then
1684 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1685 elif test -f "$ac_srcdir/configure"; then
1687 $SHELL "$ac_srcdir/configure" --help=recursive
1689 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1691 cd "$ac_pwd" || { ac_status=$?; break; }
1695 test -n "$ac_init_help" && exit $ac_status
1696 if $ac_init_version; then
1699 generated by GNU Autoconf 2.63
1701 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1702 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1703 This configure script is free software; the Free Software Foundation
1704 gives unlimited permission to copy, distribute and modify it.
1708 cat >config.log <<_ACEOF
1709 This file contains any messages produced by compilers while
1710 running configure, to aid debugging if configure makes a mistake.
1712 It was created by popt $as_me 1.16, which was
1713 generated by GNU Autoconf 2.63. Invocation command line was
1725 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1726 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1727 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1728 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1729 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1731 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1732 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1734 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1735 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1736 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1737 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1738 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1739 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1740 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1748 test -z "$as_dir" && as_dir=.
1749 $as_echo "PATH: $as_dir"
1765 # Keep a trace of the command line.
1766 # Strip out --no-create and --no-recursion so they do not pile up.
1767 # Strip out --silent because we don't want to record it for future runs.
1768 # Also quote any args containing shell meta-characters.
1769 # Make two passes to allow for proper duplicate-argument suppression.
1773 ac_must_keep_next=false
1779 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1780 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1781 | -silent | --silent | --silen | --sile | --sil)
1784 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1787 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1789 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1790 if test $ac_must_keep_next = true; then
1791 ac_must_keep_next=false # Got value, back to normal.
1794 *=* | --config-cache | -C | -disable-* | --disable-* \
1795 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1796 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1797 | -with-* | --with-* | -without-* | --without-* | --x)
1798 case "$ac_configure_args0 " in
1799 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1802 -* ) ac_must_keep_next=true ;;
1805 ac_configure_args="$ac_configure_args '$ac_arg'"
1810 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1811 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1813 # When interrupted or exit'd, cleanup temporary files, and complete
1814 # config.log. We remove comments because anyway the quotes in there
1815 # would cause problems or look ugly.
1816 # WARNING: Use '\'' to represent an apostrophe within the trap.
1817 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1818 trap 'exit_status=$?
1819 # Save into config.log some information that might help in debugging.
1824 ## ---------------- ##
1825 ## Cache variables. ##
1826 ## ---------------- ##
1829 # The following way of writing the cache mishandles newlines in values,
1831 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1832 eval ac_val=\$$ac_var
1836 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1837 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1840 _ | IFS | as_nl) ;; #(
1841 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1842 *) $as_unset $ac_var ;;
1847 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1848 *${as_nl}ac_space=\ *)
1850 "s/'\''/'\''\\\\'\'''\''/g;
1851 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1854 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1862 ## ----------------- ##
1863 ## Output variables. ##
1864 ## ----------------- ##
1867 for ac_var in $ac_subst_vars
1869 eval ac_val=\$$ac_var
1871 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1873 $as_echo "$ac_var='\''$ac_val'\''"
1877 if test -n "$ac_subst_files"; then
1879 ## ------------------- ##
1880 ## File substitutions. ##
1881 ## ------------------- ##
1884 for ac_var in $ac_subst_files
1886 eval ac_val=\$$ac_var
1888 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1890 $as_echo "$ac_var='\''$ac_val'\''"
1895 if test -s confdefs.h; then
1905 test "$ac_signal" != 0 &&
1906 $as_echo "$as_me: caught signal $ac_signal"
1907 $as_echo "$as_me: exit $exit_status"
1909 rm -f core *.core core.conftest.* &&
1910 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1913 for ac_signal in 1 2 13 15; do
1914 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1918 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1919 rm -f -r conftest* confdefs.h
1921 # Predefined preprocessor variables.
1923 cat >>confdefs.h <<_ACEOF
1924 #define PACKAGE_NAME "$PACKAGE_NAME"
1928 cat >>confdefs.h <<_ACEOF
1929 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1933 cat >>confdefs.h <<_ACEOF
1934 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1938 cat >>confdefs.h <<_ACEOF
1939 #define PACKAGE_STRING "$PACKAGE_STRING"
1943 cat >>confdefs.h <<_ACEOF
1944 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1948 # Let the site file select an alternate cache file if it wants to.
1949 # Prefer an explicitly selected file to automatically selected ones.
1952 if test -n "$CONFIG_SITE"; then
1953 ac_site_file1=$CONFIG_SITE
1954 elif test "x$prefix" != xNONE; then
1955 ac_site_file1=$prefix/share/config.site
1956 ac_site_file2=$prefix/etc/config.site
1958 ac_site_file1=$ac_default_prefix/share/config.site
1959 ac_site_file2=$ac_default_prefix/etc/config.site
1961 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1963 test "x$ac_site_file" = xNONE && continue
1964 if test -r "$ac_site_file"; then
1965 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1966 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1967 sed 's/^/| /' "$ac_site_file" >&5
1972 if test -r "$cache_file"; then
1973 # Some versions of bash will fail to source /dev/null (special
1974 # files actually), so we avoid doing that.
1975 if test -f "$cache_file"; then
1976 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1977 $as_echo "$as_me: loading cache $cache_file" >&6;}
1979 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1980 *) . "./$cache_file";;
1984 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1985 $as_echo "$as_me: creating cache $cache_file" >&6;}
1989 gt_needs="$gt_needs "
1990 # Check that the precious variables saved in the cache have kept the same
1992 ac_cache_corrupted=false
1993 for ac_var in $ac_precious_vars; do
1994 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1995 eval ac_new_set=\$ac_env_${ac_var}_set
1996 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1997 eval ac_new_val=\$ac_env_${ac_var}_value
1998 case $ac_old_set,$ac_new_set in
2000 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2001 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2002 ac_cache_corrupted=: ;;
2004 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2005 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2006 ac_cache_corrupted=: ;;
2009 if test "x$ac_old_val" != "x$ac_new_val"; then
2010 # differences in whitespace do not lead to failure.
2011 ac_old_val_w=`echo x $ac_old_val`
2012 ac_new_val_w=`echo x $ac_new_val`
2013 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2014 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2015 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2016 ac_cache_corrupted=:
2018 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2019 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2020 eval $ac_var=\$ac_old_val
2022 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2023 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2024 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2025 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2028 # Pass precious variables to config.status.
2029 if test "$ac_new_set" = set; then
2031 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2032 *) ac_arg=$ac_var=$ac_new_val ;;
2034 case " $ac_configure_args " in
2035 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2036 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2040 if $ac_cache_corrupted; then
2041 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2042 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2043 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2044 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2045 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2046 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2047 { (exit 1); exit 1; }; }
2075 ac_cpp='$CPP $CPPFLAGS'
2076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2082 ac_config_headers="$ac_config_headers config.h"
2085 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2086 if test -f "$ac_dir/install-sh"; then
2088 ac_install_sh="$ac_aux_dir/install-sh -c"
2090 elif test -f "$ac_dir/install.sh"; then
2092 ac_install_sh="$ac_aux_dir/install.sh -c"
2094 elif test -f "$ac_dir/shtool"; then
2096 ac_install_sh="$ac_aux_dir/shtool install -c"
2100 if test -z "$ac_aux_dir"; then
2101 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2102 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2103 { (exit 1); exit 1; }; }
2106 # These three variables are undocumented and unsupported,
2107 # and are intended to be withdrawn in a future Autoconf release.
2108 # They can cause serious problems if a builder's source tree is in a directory
2109 # whose full name contains unusual characters.
2110 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2111 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2112 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2115 # Make sure we can run config.sub.
2116 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2117 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2118 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2119 { (exit 1); exit 1; }; }
2121 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2122 $as_echo_n "checking build system type... " >&6; }
2123 if test "${ac_cv_build+set}" = set; then
2124 $as_echo_n "(cached) " >&6
2126 ac_build_alias=$build_alias
2127 test "x$ac_build_alias" = x &&
2128 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2129 test "x$ac_build_alias" = x &&
2130 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2131 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2132 { (exit 1); exit 1; }; }
2133 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2134 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2135 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2136 { (exit 1); exit 1; }; }
2139 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2140 $as_echo "$ac_cv_build" >&6; }
2141 case $ac_cv_build in
2143 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2144 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2145 { (exit 1); exit 1; }; };;
2148 ac_save_IFS=$IFS; IFS='-'
2154 # Remember, the first character of IFS is used to create $*,
2155 # except with old shells:
2158 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2161 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2162 $as_echo_n "checking host system type... " >&6; }
2163 if test "${ac_cv_host+set}" = set; then
2164 $as_echo_n "(cached) " >&6
2166 if test "x$host_alias" = x; then
2167 ac_cv_host=$ac_cv_build
2169 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2170 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2171 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2172 { (exit 1); exit 1; }; }
2176 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2177 $as_echo "$ac_cv_host" >&6; }
2180 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2181 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2182 { (exit 1); exit 1; }; };;
2185 ac_save_IFS=$IFS; IFS='-'
2191 # Remember, the first character of IFS is used to create $*,
2192 # except with old shells:
2195 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2198 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2199 $as_echo_n "checking target system type... " >&6; }
2200 if test "${ac_cv_target+set}" = set; then
2201 $as_echo_n "(cached) " >&6
2203 if test "x$target_alias" = x; then
2204 ac_cv_target=$ac_cv_host
2206 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2207 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2208 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2209 { (exit 1); exit 1; }; }
2213 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2214 $as_echo "$ac_cv_target" >&6; }
2215 case $ac_cv_target in
2217 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2218 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2219 { (exit 1); exit 1; }; };;
2221 target=$ac_cv_target
2222 ac_save_IFS=$IFS; IFS='-'
2228 # Remember, the first character of IFS is used to create $*,
2229 # except with old shells:
2232 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2235 # The aliases save the names the user supplied, while $host etc.
2236 # will get canonicalized.
2237 test -n "$target_alias" &&
2238 test "$program_prefix$program_suffix$program_transform_name" = \
2240 program_prefix=${target_alias}-
2243 am__api_version='1.11'
2245 # Find a good install program. We prefer a C program (faster),
2246 # so one script is as good as another. But avoid the broken or
2247 # incompatible versions:
2248 # SysV /etc/install, /usr/sbin/install
2249 # SunOS /usr/etc/install
2250 # IRIX /sbin/install
2252 # AmigaOS /C/install, which installs bootblocks on floppy discs
2253 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2254 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2255 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2256 # OS/2's system install, which has a completely different semantic
2257 # ./install, which can be erroneously created by make from ./install.sh.
2258 # Reject install programs that cannot install multiple files.
2259 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2260 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2261 if test -z "$INSTALL"; then
2262 if test "${ac_cv_path_install+set}" = set; then
2263 $as_echo_n "(cached) " >&6
2265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2269 test -z "$as_dir" && as_dir=.
2270 # Account for people who put trailing slashes in PATH elements.
2272 ./ | .// | /cC/* | \
2273 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2274 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2277 # OSF1 and SCO ODT 3.0 have their own names for install.
2278 # Don't use installbsd from OSF since it installs stuff as root
2280 for ac_prog in ginstall scoinst install; do
2281 for ac_exec_ext in '' $ac_executable_extensions; do
2282 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2283 if test $ac_prog = install &&
2284 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2285 # AIX install. It has an incompatible calling convention.
2287 elif test $ac_prog = install &&
2288 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2289 # program-specific install script used by HP pwplus--don't use.
2292 rm -rf conftest.one conftest.two conftest.dir
2293 echo one > conftest.one
2294 echo two > conftest.two
2296 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2297 test -s conftest.one && test -s conftest.two &&
2298 test -s conftest.dir/conftest.one &&
2299 test -s conftest.dir/conftest.two
2301 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2314 rm -rf conftest.one conftest.two conftest.dir
2317 if test "${ac_cv_path_install+set}" = set; then
2318 INSTALL=$ac_cv_path_install
2320 # As a last resort, use the slow shell script. Don't cache a
2321 # value for INSTALL within a source directory, because that will
2322 # break other packages using the cache if that directory is
2323 # removed, or if the value is a relative name.
2324 INSTALL=$ac_install_sh
2327 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2328 $as_echo "$INSTALL" >&6; }
2330 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2331 # It thinks the first close brace ends the variable substitution.
2332 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2334 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2336 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2338 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2339 $as_echo_n "checking whether build environment is sane... " >&6; }
2342 echo timestamp > conftest.file
2343 # Reject unsafe characters in $srcdir or the absolute working directory
2344 # name. Accept space and tab only in the latter.
2348 *[\\\"\#\$\&\'\`$am_lf]*)
2349 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2350 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2351 { (exit 1); exit 1; }; };;
2354 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2355 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2356 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2357 { (exit 1); exit 1; }; };;
2360 # Do `set' in a subshell so we don't clobber the current shell's
2361 # arguments. Must try -L first in case configure is actually a
2362 # symlink; some systems play weird games with the mod time of symlinks
2363 # (eg FreeBSD returns the mod time of the symlink's containing
2366 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2367 if test "$*" = "X"; then
2369 set X `ls -t "$srcdir/configure" conftest.file`
2372 if test "$*" != "X $srcdir/configure conftest.file" \
2373 && test "$*" != "X conftest.file $srcdir/configure"; then
2375 # If neither matched, then we have a broken ls. This can happen
2376 # if, for instance, CONFIG_SHELL is bash and it inherits a
2377 # broken ls alias from the environment. This has actually
2378 # happened. Such a system could not be considered "sane".
2379 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2380 alias in your environment" >&5
2381 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2382 alias in your environment" >&2;}
2383 { (exit 1); exit 1; }; }
2386 test "$2" = conftest.file
2392 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2393 Check your system clock" >&5
2394 $as_echo "$as_me: error: newly created file is older than distributed files!
2395 Check your system clock" >&2;}
2396 { (exit 1); exit 1; }; }
2398 { $as_echo "$as_me:$LINENO: result: yes" >&5
2399 $as_echo "yes" >&6; }
2400 test "$program_prefix" != NONE &&
2401 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2402 # Use a double $ so make ignores it.
2403 test "$program_suffix" != NONE &&
2404 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2405 # Double any \ or $.
2406 # By default was `s,x,x', remove it if useless.
2407 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2408 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2410 # expand $ac_aux_dir to an absolute path
2411 am_aux_dir=`cd $ac_aux_dir && pwd`
2413 if test x"${MISSING+set}" != xset; then
2416 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2418 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2421 # Use eval to expand $SHELL
2422 if eval "$MISSING --run true"; then
2423 am_missing_run="$MISSING --run "
2426 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2427 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2430 if test x"${install_sh}" != xset; then
2433 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2435 install_sh="\${SHELL} $am_aux_dir/install-sh"
2439 # Installed binaries are usually stripped using `strip' when the user
2440 # run `make install-strip'. However `strip' might not be the right
2441 # tool to use in cross-compilation environments, therefore Automake
2442 # will honor the `STRIP' environment variable to overrule this program.
2443 if test "$cross_compiling" != no; then
2444 if test -n "$ac_tool_prefix"; then
2445 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2446 set dummy ${ac_tool_prefix}strip; ac_word=$2
2447 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2448 $as_echo_n "checking for $ac_word... " >&6; }
2449 if test "${ac_cv_prog_STRIP+set}" = set; then
2450 $as_echo_n "(cached) " >&6
2452 if test -n "$STRIP"; then
2453 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2459 test -z "$as_dir" && as_dir=.
2460 for ac_exec_ext in '' $ac_executable_extensions; do
2461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2462 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2463 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2472 STRIP=$ac_cv_prog_STRIP
2473 if test -n "$STRIP"; then
2474 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2475 $as_echo "$STRIP" >&6; }
2477 { $as_echo "$as_me:$LINENO: result: no" >&5
2478 $as_echo "no" >&6; }
2483 if test -z "$ac_cv_prog_STRIP"; then
2485 # Extract the first word of "strip", so it can be a program name with args.
2486 set dummy strip; ac_word=$2
2487 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2488 $as_echo_n "checking for $ac_word... " >&6; }
2489 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2490 $as_echo_n "(cached) " >&6
2492 if test -n "$ac_ct_STRIP"; then
2493 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499 test -z "$as_dir" && as_dir=.
2500 for ac_exec_ext in '' $ac_executable_extensions; do
2501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2502 ac_cv_prog_ac_ct_STRIP="strip"
2503 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2512 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2513 if test -n "$ac_ct_STRIP"; then
2514 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2515 $as_echo "$ac_ct_STRIP" >&6; }
2517 { $as_echo "$as_me:$LINENO: result: no" >&5
2518 $as_echo "no" >&6; }
2521 if test "x$ac_ct_STRIP" = x; then
2524 case $cross_compiling:$ac_tool_warned in
2526 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2528 ac_tool_warned=yes ;;
2533 STRIP="$ac_cv_prog_STRIP"
2537 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2539 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2540 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2541 if test -z "$MKDIR_P"; then
2542 if test "${ac_cv_path_mkdir+set}" = set; then
2543 $as_echo_n "(cached) " >&6
2545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2549 test -z "$as_dir" && as_dir=.
2550 for ac_prog in mkdir gmkdir; do
2551 for ac_exec_ext in '' $ac_executable_extensions; do
2552 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2553 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2554 'mkdir (GNU coreutils) '* | \
2555 'mkdir (coreutils) '* | \
2556 'mkdir (fileutils) '4.1*)
2557 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2567 if test "${ac_cv_path_mkdir+set}" = set; then
2568 MKDIR_P="$ac_cv_path_mkdir -p"
2570 # As a last resort, use the slow shell script. Don't cache a
2571 # value for MKDIR_P within a source directory, because that will
2572 # break other packages using the cache if that directory is
2573 # removed, or if the value is a relative name.
2574 test -d ./--version && rmdir ./--version
2575 MKDIR_P="$ac_install_sh -d"
2578 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2579 $as_echo "$MKDIR_P" >&6; }
2583 [\\/$]* | ?:[\\/]*) ;;
2584 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2587 for ac_prog in gawk mawk nawk awk
2589 # Extract the first word of "$ac_prog", so it can be a program name with args.
2590 set dummy $ac_prog; ac_word=$2
2591 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2592 $as_echo_n "checking for $ac_word... " >&6; }
2593 if test "${ac_cv_prog_AWK+set}" = set; then
2594 $as_echo_n "(cached) " >&6
2596 if test -n "$AWK"; then
2597 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603 test -z "$as_dir" && as_dir=.
2604 for ac_exec_ext in '' $ac_executable_extensions; do
2605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2606 ac_cv_prog_AWK="$ac_prog"
2607 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2617 if test -n "$AWK"; then
2618 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2619 $as_echo "$AWK" >&6; }
2621 { $as_echo "$as_me:$LINENO: result: no" >&5
2622 $as_echo "no" >&6; }
2626 test -n "$AWK" && break
2629 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2630 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2632 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2633 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2634 $as_echo_n "(cached) " >&6
2636 cat >conftest.make <<\_ACEOF
2639 @echo '@@@%%%=$(MAKE)=@@@%%%'
2641 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2642 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2644 eval ac_cv_prog_make_${ac_make}_set=yes;;
2646 eval ac_cv_prog_make_${ac_make}_set=no;;
2650 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2651 { $as_echo "$as_me:$LINENO: result: yes" >&5
2652 $as_echo "yes" >&6; }
2655 { $as_echo "$as_me:$LINENO: result: no" >&5
2656 $as_echo "no" >&6; }
2657 SET_MAKE="MAKE=${MAKE-make}"
2660 rm -rf .tst 2>/dev/null
2661 mkdir .tst 2>/dev/null
2662 if test -d .tst; then
2667 rmdir .tst 2>/dev/null
2669 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2670 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2671 # is not polluted with repeated "-I."
2672 am__isrc=' -I$(srcdir)'
2673 # test to see if srcdir already configured
2674 if test -f $srcdir/config.status; then
2675 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2676 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2677 { (exit 1); exit 1; }; }
2681 # test whether we have cygpath
2682 if test -z "$CYGPATH_W"; then
2683 if (cygpath --version) >/dev/null 2>/dev/null; then
2684 CYGPATH_W='cygpath -w'
2691 # Define the identity of the package.
2696 cat >>confdefs.h <<_ACEOF
2697 #define PACKAGE "$PACKAGE"
2701 cat >>confdefs.h <<_ACEOF
2702 #define VERSION "$VERSION"
2705 # Some tools Automake needs.
2707 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2710 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2713 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2716 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2719 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2721 # We need awk for the "check" target. The system "awk" is bad on
2723 # Always define AMTAR for backward compatibility.
2725 AMTAR=${AMTAR-"${am_missing_run}tar"}
2727 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2734 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2735 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2736 # Check whether --enable-maintainer-mode was given.
2737 if test "${enable_maintainer_mode+set}" = set; then
2738 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2740 USE_MAINTAINER_MODE=no
2743 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2744 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2745 if test $USE_MAINTAINER_MODE = yes; then
2746 MAINTAINER_MODE_TRUE=
2747 MAINTAINER_MODE_FALSE='#'
2749 MAINTAINER_MODE_TRUE='#'
2750 MAINTAINER_MODE_FALSE=
2753 MAINT=$MAINTAINER_MODE_TRUE
2757 # Library code modified: REVISION++
2758 # Interfaces changed/added/removed: CURRENT++ REVISION=0
2759 # Interfaces added: AGE++
2760 # Interfaces removed: AGE=0
2768 ALL_LINGUAS="cs da de eo es fi fr ga gl hu id is it ja ko lv nb nl pl pt ro ru sk sl sv th tr uk vi wa zh_TW zh_CN"
2770 DEPDIR="${am__leading_dot}deps"
2772 ac_config_commands="$ac_config_commands depfiles"
2775 am_make=${MAKE-make}
2776 cat > confinc << 'END'
2778 @echo this is the am__doit target
2781 # If we don't find an include directive, just comment out the code.
2782 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2783 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2787 # First try GNU make style include.
2788 echo "include confinc" > confmf
2789 # Ignore all kinds of additional output from `make'.
2790 case `$am_make -s -f confmf 2> /dev/null` in #(
2791 *the\ am__doit\ target*)
2797 # Now try BSD make style include.
2798 if test "$am__include" = "#"; then
2799 echo '.include "confinc"' > confmf
2800 case `$am_make -s -f confmf 2> /dev/null` in #(
2801 *the\ am__doit\ target*)
2802 am__include=.include
2810 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2811 $as_echo "$_am_result" >&6; }
2812 rm -f confinc confmf
2814 # Check whether --enable-dependency-tracking was given.
2815 if test "${enable_dependency_tracking+set}" = set; then
2816 enableval=$enable_dependency_tracking;
2819 if test "x$enable_dependency_tracking" != xno; then
2820 am_depcomp="$ac_aux_dir/depcomp"
2823 if test "x$enable_dependency_tracking" != xno; then
2833 ac_cpp='$CPP $CPPFLAGS'
2834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2837 if test -n "$ac_tool_prefix"; then
2838 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2839 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2840 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2841 $as_echo_n "checking for $ac_word... " >&6; }
2842 if test "${ac_cv_prog_CC+set}" = set; then
2843 $as_echo_n "(cached) " >&6
2845 if test -n "$CC"; then
2846 ac_cv_prog_CC="$CC" # Let the user override the test.
2848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852 test -z "$as_dir" && as_dir=.
2853 for ac_exec_ext in '' $ac_executable_extensions; do
2854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2855 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2856 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2866 if test -n "$CC"; then
2867 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2868 $as_echo "$CC" >&6; }
2870 { $as_echo "$as_me:$LINENO: result: no" >&5
2871 $as_echo "no" >&6; }
2876 if test -z "$ac_cv_prog_CC"; then
2878 # Extract the first word of "gcc", so it can be a program name with args.
2879 set dummy gcc; ac_word=$2
2880 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2881 $as_echo_n "checking for $ac_word... " >&6; }
2882 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2883 $as_echo_n "(cached) " >&6
2885 if test -n "$ac_ct_CC"; then
2886 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2892 test -z "$as_dir" && as_dir=.
2893 for ac_exec_ext in '' $ac_executable_extensions; do
2894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2895 ac_cv_prog_ac_ct_CC="gcc"
2896 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2905 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2906 if test -n "$ac_ct_CC"; then
2907 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2908 $as_echo "$ac_ct_CC" >&6; }
2910 { $as_echo "$as_me:$LINENO: result: no" >&5
2911 $as_echo "no" >&6; }
2914 if test "x$ac_ct_CC" = x; then
2917 case $cross_compiling:$ac_tool_warned in
2919 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2920 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2921 ac_tool_warned=yes ;;
2929 if test -z "$CC"; then
2930 if test -n "$ac_tool_prefix"; then
2931 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2932 set dummy ${ac_tool_prefix}cc; ac_word=$2
2933 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2934 $as_echo_n "checking for $ac_word... " >&6; }
2935 if test "${ac_cv_prog_CC+set}" = set; then
2936 $as_echo_n "(cached) " >&6
2938 if test -n "$CC"; then
2939 ac_cv_prog_CC="$CC" # Let the user override the test.
2941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945 test -z "$as_dir" && as_dir=.
2946 for ac_exec_ext in '' $ac_executable_extensions; do
2947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2948 ac_cv_prog_CC="${ac_tool_prefix}cc"
2949 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2959 if test -n "$CC"; then
2960 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2961 $as_echo "$CC" >&6; }
2963 { $as_echo "$as_me:$LINENO: result: no" >&5
2964 $as_echo "no" >&6; }
2970 if test -z "$CC"; then
2971 # Extract the first word of "cc", so it can be a program name with args.
2972 set dummy cc; ac_word=$2
2973 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2974 $as_echo_n "checking for $ac_word... " >&6; }
2975 if test "${ac_cv_prog_CC+set}" = set; then
2976 $as_echo_n "(cached) " >&6
2978 if test -n "$CC"; then
2979 ac_cv_prog_CC="$CC" # Let the user override the test.
2982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986 test -z "$as_dir" && as_dir=.
2987 for ac_exec_ext in '' $ac_executable_extensions; do
2988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2989 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2990 ac_prog_rejected=yes
2994 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3001 if test $ac_prog_rejected = yes; then
3002 # We found a bogon in the path, so make sure we never use it.
3003 set dummy $ac_cv_prog_CC
3005 if test $# != 0; then
3006 # We chose a different compiler from the bogus one.
3007 # However, it has the same basename, so the bogon will be chosen
3008 # first if we set CC to just the basename; use the full file name.
3010 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3016 if test -n "$CC"; then
3017 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3018 $as_echo "$CC" >&6; }
3020 { $as_echo "$as_me:$LINENO: result: no" >&5
3021 $as_echo "no" >&6; }
3026 if test -z "$CC"; then
3027 if test -n "$ac_tool_prefix"; then
3028 for ac_prog in cl.exe
3030 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3031 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3032 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3033 $as_echo_n "checking for $ac_word... " >&6; }
3034 if test "${ac_cv_prog_CC+set}" = set; then
3035 $as_echo_n "(cached) " >&6
3037 if test -n "$CC"; then
3038 ac_cv_prog_CC="$CC" # Let the user override the test.
3040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044 test -z "$as_dir" && as_dir=.
3045 for ac_exec_ext in '' $ac_executable_extensions; do
3046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3047 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3048 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3058 if test -n "$CC"; then
3059 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3060 $as_echo "$CC" >&6; }
3062 { $as_echo "$as_me:$LINENO: result: no" >&5
3063 $as_echo "no" >&6; }
3067 test -n "$CC" && break
3070 if test -z "$CC"; then
3072 for ac_prog in cl.exe
3074 # Extract the first word of "$ac_prog", so it can be a program name with args.
3075 set dummy $ac_prog; ac_word=$2
3076 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3077 $as_echo_n "checking for $ac_word... " >&6; }
3078 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3079 $as_echo_n "(cached) " >&6
3081 if test -n "$ac_ct_CC"; then
3082 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3088 test -z "$as_dir" && as_dir=.
3089 for ac_exec_ext in '' $ac_executable_extensions; do
3090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3091 ac_cv_prog_ac_ct_CC="$ac_prog"
3092 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3101 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3102 if test -n "$ac_ct_CC"; then
3103 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3104 $as_echo "$ac_ct_CC" >&6; }
3106 { $as_echo "$as_me:$LINENO: result: no" >&5
3107 $as_echo "no" >&6; }
3111 test -n "$ac_ct_CC" && break
3114 if test "x$ac_ct_CC" = x; then
3117 case $cross_compiling:$ac_tool_warned in
3119 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3120 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3121 ac_tool_warned=yes ;;
3130 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3131 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3132 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3133 See \`config.log' for more details." >&5
3134 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3135 See \`config.log' for more details." >&2;}
3136 { (exit 1); exit 1; }; }; }
3138 # Provide some information about the compiler.
3139 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3142 { (ac_try="$ac_compiler --version >&5"
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3148 $as_echo "$ac_try_echo") >&5
3149 (eval "$ac_compiler --version >&5") 2>&5
3151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); }
3153 { (ac_try="$ac_compiler -v >&5"
3155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3156 *) ac_try_echo=$ac_try;;
3158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3159 $as_echo "$ac_try_echo") >&5
3160 (eval "$ac_compiler -v >&5") 2>&5
3162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); }
3164 { (ac_try="$ac_compiler -V >&5"
3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167 *) ac_try_echo=$ac_try;;
3169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3170 $as_echo "$ac_try_echo") >&5
3171 (eval "$ac_compiler -V >&5") 2>&5
3173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); }
3176 cat >conftest.$ac_ext <<_ACEOF
3179 cat confdefs.h >>conftest.$ac_ext
3180 cat >>conftest.$ac_ext <<_ACEOF
3181 /* end confdefs.h. */
3191 ac_clean_files_save=$ac_clean_files
3192 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3193 # Try to create an executable without -o first, disregard a.out.
3194 # It will help us diagnose broken compilers, and finding out an intuition
3196 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3197 $as_echo_n "checking for C compiler default output file name... " >&6; }
3198 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3200 # The possible output files:
3201 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3204 for ac_file in $ac_files
3207 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3208 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3213 if { (ac_try="$ac_link_default"
3215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3216 *) ac_try_echo=$ac_try;;
3218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3219 $as_echo "$ac_try_echo") >&5
3220 (eval "$ac_link_default") 2>&5
3222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223 (exit $ac_status); }; then
3224 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3225 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3226 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3227 # so that the user can short-circuit this test for compilers unknown to
3229 for ac_file in $ac_files ''
3231 test -f "$ac_file" || continue
3233 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3236 # We found the default executable, but exeext='' is most
3240 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3242 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3244 # We set ac_cv_exeext here because the later test for it is not
3245 # safe: cross compilers may not add the suffix if given an `-o'
3246 # argument, so we may need to know it at that point already.
3247 # Even if this section looks crufty: it has the advantage of
3254 test "$ac_cv_exeext" = no && ac_cv_exeext=
3260 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3261 $as_echo "$ac_file" >&6; }
3262 if test -z "$ac_file"; then
3263 $as_echo "$as_me: failed program was:" >&5
3264 sed 's/^/| /' conftest.$ac_ext >&5
3266 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3267 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3268 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3269 See \`config.log' for more details." >&5
3270 $as_echo "$as_me: error: C compiler cannot create executables
3271 See \`config.log' for more details." >&2;}
3272 { (exit 77); exit 77; }; }; }
3275 ac_exeext=$ac_cv_exeext
3277 # Check that the compiler produces executables we can run. If not, either
3278 # the compiler is broken, or we cross compile.
3279 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3280 $as_echo_n "checking whether the C compiler works... " >&6; }
3281 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3282 # If not cross compiling, check that we can run a simple program.
3283 if test "$cross_compiling" != yes; then
3284 if { ac_try='./$ac_file'
3285 { (case "(($ac_try" in
3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287 *) ac_try_echo=$ac_try;;
3289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3290 $as_echo "$ac_try_echo") >&5
3291 (eval "$ac_try") 2>&5
3293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); }; }; then
3297 if test "$cross_compiling" = maybe; then
3300 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3301 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3302 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3303 If you meant to cross compile, use \`--host'.
3304 See \`config.log' for more details." >&5
3305 $as_echo "$as_me: error: cannot run C compiled programs.
3306 If you meant to cross compile, use \`--host'.
3307 See \`config.log' for more details." >&2;}
3308 { (exit 1); exit 1; }; }; }
3312 { $as_echo "$as_me:$LINENO: result: yes" >&5
3313 $as_echo "yes" >&6; }
3315 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3316 ac_clean_files=$ac_clean_files_save
3317 # Check that the compiler produces executables we can run. If not, either
3318 # the compiler is broken, or we cross compile.
3319 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3320 $as_echo_n "checking whether we are cross compiling... " >&6; }
3321 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3322 $as_echo "$cross_compiling" >&6; }
3324 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3325 $as_echo_n "checking for suffix of executables... " >&6; }
3326 if { (ac_try="$ac_link"
3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329 *) ac_try_echo=$ac_try;;
3331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3332 $as_echo "$ac_try_echo") >&5
3333 (eval "$ac_link") 2>&5
3335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); }; then
3337 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3338 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3339 # work properly (i.e., refer to `conftest.exe'), while it won't with
3341 for ac_file in conftest.exe conftest conftest.*; do
3342 test -f "$ac_file" || continue
3344 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3345 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3351 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3352 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3353 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3354 See \`config.log' for more details." >&5
3355 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3356 See \`config.log' for more details." >&2;}
3357 { (exit 1); exit 1; }; }; }
3360 rm -f conftest$ac_cv_exeext
3361 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3362 $as_echo "$ac_cv_exeext" >&6; }
3364 rm -f conftest.$ac_ext
3365 EXEEXT=$ac_cv_exeext
3367 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3368 $as_echo_n "checking for suffix of object files... " >&6; }
3369 if test "${ac_cv_objext+set}" = set; then
3370 $as_echo_n "(cached) " >&6
3372 cat >conftest.$ac_ext <<_ACEOF
3375 cat confdefs.h >>conftest.$ac_ext
3376 cat >>conftest.$ac_ext <<_ACEOF
3377 /* end confdefs.h. */
3387 rm -f conftest.o conftest.obj
3388 if { (ac_try="$ac_compile"
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3394 $as_echo "$ac_try_echo") >&5
3395 (eval "$ac_compile") 2>&5
3397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); }; then
3399 for ac_file in conftest.o conftest.obj conftest.*; do
3400 test -f "$ac_file" || continue;
3402 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3403 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3408 $as_echo "$as_me: failed program was:" >&5
3409 sed 's/^/| /' conftest.$ac_ext >&5
3411 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3412 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3413 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3414 See \`config.log' for more details." >&5
3415 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3416 See \`config.log' for more details." >&2;}
3417 { (exit 1); exit 1; }; }; }
3420 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3422 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3423 $as_echo "$ac_cv_objext" >&6; }
3424 OBJEXT=$ac_cv_objext
3426 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3427 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3428 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3429 $as_echo_n "(cached) " >&6
3431 cat >conftest.$ac_ext <<_ACEOF
3434 cat confdefs.h >>conftest.$ac_ext
3435 cat >>conftest.$ac_ext <<_ACEOF
3436 /* end confdefs.h. */
3449 rm -f conftest.$ac_objext
3450 if { (ac_try="$ac_compile"
3452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3453 *) ac_try_echo=$ac_try;;
3455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3456 $as_echo "$ac_try_echo") >&5
3457 (eval "$ac_compile") 2>conftest.er1
3459 grep -v '^ *+' conftest.er1 >conftest.err
3461 cat conftest.err >&5
3462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463 (exit $ac_status); } && {
3464 test -z "$ac_c_werror_flag" ||
3465 test ! -s conftest.err
3466 } && test -s conftest.$ac_objext; then
3469 $as_echo "$as_me: failed program was:" >&5
3470 sed 's/^/| /' conftest.$ac_ext >&5
3475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3476 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3479 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3480 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3481 if test $ac_compiler_gnu = yes; then
3486 ac_test_CFLAGS=${CFLAGS+set}
3487 ac_save_CFLAGS=$CFLAGS
3488 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3489 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3490 if test "${ac_cv_prog_cc_g+set}" = set; then
3491 $as_echo_n "(cached) " >&6
3493 ac_save_c_werror_flag=$ac_c_werror_flag
3494 ac_c_werror_flag=yes
3497 cat >conftest.$ac_ext <<_ACEOF
3500 cat confdefs.h >>conftest.$ac_ext
3501 cat >>conftest.$ac_ext <<_ACEOF
3502 /* end confdefs.h. */
3512 rm -f conftest.$ac_objext
3513 if { (ac_try="$ac_compile"
3515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516 *) ac_try_echo=$ac_try;;
3518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3519 $as_echo "$ac_try_echo") >&5
3520 (eval "$ac_compile") 2>conftest.er1
3522 grep -v '^ *+' conftest.er1 >conftest.err
3524 cat conftest.err >&5
3525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); } && {
3527 test -z "$ac_c_werror_flag" ||
3528 test ! -s conftest.err
3529 } && test -s conftest.$ac_objext; then
3532 $as_echo "$as_me: failed program was:" >&5
3533 sed 's/^/| /' conftest.$ac_ext >&5
3536 cat >conftest.$ac_ext <<_ACEOF
3539 cat confdefs.h >>conftest.$ac_ext
3540 cat >>conftest.$ac_ext <<_ACEOF
3541 /* end confdefs.h. */
3551 rm -f conftest.$ac_objext
3552 if { (ac_try="$ac_compile"
3554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3555 *) ac_try_echo=$ac_try;;
3557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3558 $as_echo "$ac_try_echo") >&5
3559 (eval "$ac_compile") 2>conftest.er1
3561 grep -v '^ *+' conftest.er1 >conftest.err
3563 cat conftest.err >&5
3564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); } && {
3566 test -z "$ac_c_werror_flag" ||
3567 test ! -s conftest.err
3568 } && test -s conftest.$ac_objext; then
3571 $as_echo "$as_me: failed program was:" >&5
3572 sed 's/^/| /' conftest.$ac_ext >&5
3574 ac_c_werror_flag=$ac_save_c_werror_flag
3576 cat >conftest.$ac_ext <<_ACEOF
3579 cat confdefs.h >>conftest.$ac_ext
3580 cat >>conftest.$ac_ext <<_ACEOF
3581 /* end confdefs.h. */
3591 rm -f conftest.$ac_objext
3592 if { (ac_try="$ac_compile"
3594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3595 *) ac_try_echo=$ac_try;;
3597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3598 $as_echo "$ac_try_echo") >&5
3599 (eval "$ac_compile") 2>conftest.er1
3601 grep -v '^ *+' conftest.er1 >conftest.err
3603 cat conftest.err >&5
3604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); } && {
3606 test -z "$ac_c_werror_flag" ||
3607 test ! -s conftest.err
3608 } && test -s conftest.$ac_objext; then
3611 $as_echo "$as_me: failed program was:" >&5
3612 sed 's/^/| /' conftest.$ac_ext >&5
3617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3624 ac_c_werror_flag=$ac_save_c_werror_flag
3626 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3627 $as_echo "$ac_cv_prog_cc_g" >&6; }
3628 if test "$ac_test_CFLAGS" = set; then
3629 CFLAGS=$ac_save_CFLAGS
3630 elif test $ac_cv_prog_cc_g = yes; then
3631 if test "$GCC" = yes; then
3637 if test "$GCC" = yes; then
3643 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3644 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3645 if test "${ac_cv_prog_cc_c89+set}" = set; then
3646 $as_echo_n "(cached) " >&6
3648 ac_cv_prog_cc_c89=no
3650 cat >conftest.$ac_ext <<_ACEOF
3653 cat confdefs.h >>conftest.$ac_ext
3654 cat >>conftest.$ac_ext <<_ACEOF
3655 /* end confdefs.h. */
3658 #include <sys/types.h>
3659 #include <sys/stat.h>
3660 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3661 struct buf { int x; };
3662 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3663 static char *e (p, i)
3669 static char *f (char * (*g) (char **, int), char **p, ...)
3674 s = g (p, va_arg (v,int));
3679 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3680 function prototypes and stuff, but not '\xHH' hex character constants.
3681 These don't provoke an error unfortunately, instead are silently treated
3682 as 'x'. The following induces an error, until -std is added to get
3683 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3684 array size at least. It's necessary to write '\x00'==0 to get something
3685 that's true only with -std. */
3686 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3688 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3689 inside strings and character constants. */
3691 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3693 int test (int i, double x);
3694 struct s1 {int (*f) (int a);};
3695 struct s2 {int (*f) (double a);};
3696 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3702 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3707 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3708 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3710 CC="$ac_save_CC $ac_arg"
3711 rm -f conftest.$ac_objext
3712 if { (ac_try="$ac_compile"
3714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3715 *) ac_try_echo=$ac_try;;
3717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3718 $as_echo "$ac_try_echo") >&5
3719 (eval "$ac_compile") 2>conftest.er1
3721 grep -v '^ *+' conftest.er1 >conftest.err
3723 cat conftest.err >&5
3724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); } && {
3726 test -z "$ac_c_werror_flag" ||
3727 test ! -s conftest.err
3728 } && test -s conftest.$ac_objext; then
3729 ac_cv_prog_cc_c89=$ac_arg
3731 $as_echo "$as_me: failed program was:" >&5
3732 sed 's/^/| /' conftest.$ac_ext >&5
3737 rm -f core conftest.err conftest.$ac_objext
3738 test "x$ac_cv_prog_cc_c89" != "xno" && break
3740 rm -f conftest.$ac_ext
3745 case "x$ac_cv_prog_cc_c89" in
3747 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3748 $as_echo "none needed" >&6; } ;;
3750 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3751 $as_echo "unsupported" >&6; } ;;
3753 CC="$CC $ac_cv_prog_cc_c89"
3754 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3755 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3760 ac_cpp='$CPP $CPPFLAGS'
3761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3765 depcc="$CC" am_compiler_list=
3767 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3768 $as_echo_n "checking dependency style of $depcc... " >&6; }
3769 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3770 $as_echo_n "(cached) " >&6
3772 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3773 # We make a subdir and do the tests there. Otherwise we can end up
3774 # making bogus files that we don't know about and never remove. For
3775 # instance it was reported that on HP-UX the gcc test will end up
3776 # making a dummy file named `D' -- because `-MD' means `put the output
3779 # Copy depcomp to subdir because otherwise we won't find it if we're
3780 # using a relative directory.
3781 cp "$am_depcomp" conftest.dir
3783 # We will build objects and dependencies in a subdirectory because
3784 # it helps to detect inapplicable dependency modes. For instance
3785 # both Tru64's cc and ICC support -MD to output dependencies as a
3786 # side effect of compilation, but ICC will put the dependencies in
3787 # the current directory while Tru64 will put them in the object
3791 am_cv_CC_dependencies_compiler_type=none
3792 if test "$am_compiler_list" = ""; then
3793 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3796 case " $depcc " in #(
3797 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3800 for depmode in $am_compiler_list; do
3801 # Setup a source with many dependencies, because some compilers
3802 # like to wrap large dependency lists on column 80 (with \), and
3803 # we should not choose a depcomp mode which is confused by this.
3805 # We need to recreate these files for each test, as the compiler may
3806 # overwrite some of them when testing with obscure command lines.
3807 # This happens at least with the AIX C compiler.
3809 for i in 1 2 3 4 5 6; do
3810 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3811 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3812 # Solaris 8's {/usr,}/bin/sh.
3813 touch sub/conftst$i.h
3815 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3817 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3818 # mode. It turns out that the SunPro C++ compiler does not properly
3819 # handle `-M -o', and we need to detect this. Also, some Intel
3820 # versions had trouble with output in subdirs
3821 am__obj=sub/conftest.${OBJEXT-o}
3822 am__minus_obj="-o $am__obj"
3825 # This depmode causes a compiler race in universal mode.
3826 test "$am__universal" = false || continue
3829 # after this tag, mechanisms are not by side-effect, so they'll
3830 # only be used when explicitly requested
3831 if test "x$enable_dependency_tracking" = xyes; then
3837 msvisualcpp | msvcmsys)
3838 # This compiler won't grok `-c -o', but also, the minuso test has
3839 # not run yet. These depmodes are late enough in the game, and
3840 # so weak that their functioning should not be impacted.
3841 am__obj=conftest.${OBJEXT-o}
3846 if depmode=$depmode \
3847 source=sub/conftest.c object=$am__obj \
3848 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3849 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3850 >/dev/null 2>conftest.err &&
3851 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3852 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3853 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3854 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3855 # icc doesn't choke on unknown options, it will just issue warnings
3856 # or remarks (even with -Werror). So we grep stderr for any message
3857 # that says an option was ignored or not supported.
3858 # When given -MP, icc 7.0 and 7.1 complain thusly:
3859 # icc: Command line warning: ignoring option '-M'; no argument required
3860 # The diagnosis changed in icc 8.0:
3861 # icc: Command line remark: option '-MP' not supported
3862 if (grep 'ignoring option' conftest.err ||
3863 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3864 am_cv_CC_dependencies_compiler_type=$depmode
3873 am_cv_CC_dependencies_compiler_type=none
3877 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3878 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3879 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3882 test "x$enable_dependency_tracking" != xno \
3883 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3885 am__fastdepCC_FALSE='#'
3887 am__fastdepCC_TRUE='#'
3888 am__fastdepCC_FALSE=
3892 case $ac_cv_prog_cc_stdc in
3893 no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
3894 *) { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
3895 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3896 if test "${ac_cv_prog_cc_c99+set}" = set; then
3897 $as_echo_n "(cached) " >&6
3899 ac_cv_prog_cc_c99=no
3901 cat >conftest.$ac_ext <<_ACEOF
3904 cat confdefs.h >>conftest.$ac_ext
3905 cat >>conftest.$ac_ext <<_ACEOF
3906 /* end confdefs.h. */
3908 #include <stdbool.h>
3913 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3914 #define debug(...) fprintf (stderr, __VA_ARGS__)
3915 #define showlist(...) puts (#__VA_ARGS__)
3916 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3918 test_varargs_macros (void)
3923 debug ("X = %d\n", x);
3924 showlist (The first, second, and third items.);
3925 report (x>y, "x is %d but y is %d", x, y);
3928 // Check long long types.
3929 #define BIG64 18446744073709551615ull
3930 #define BIG32 4294967295ul
3931 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3933 your preprocessor is broken;
3937 your preprocessor is broken;
3939 static long long int bignum = -9223372036854775807LL;
3940 static unsigned long long int ubignum = BIG64;
3942 struct incomplete_array
3950 const wchar_t *name;
3954 typedef const char *ccp;
3957 test_restrict (ccp restrict text)
3959 // See if C++-style comments work.
3960 // Iterate through items via the restricted pointer.
3961 // Also check for declarations in for loops.
3962 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3967 // Check varargs and va_copy.
3969 test_varargs (const char *format, ...)
3972 va_start (args, format);
3974 va_copy (args_copy, args);
3985 str = va_arg (args_copy, const char *);
3988 number = va_arg (args_copy, int);
3991 fnumber = va_arg (args_copy, double);
4006 _Bool success = false;
4009 if (test_restrict ("String literal") == 0)
4011 char *restrict newvar = "Another string";
4014 test_varargs ("s, d' f .", "string", 65, 34.234);
4015 test_varargs_macros ();
4017 // Check flexible array members.
4018 struct incomplete_array *ia =
4019 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4021 for (int i = 0; i < ia->datasize; ++i)
4022 ia->data[i] = i * 1.234;
4024 // Check named initializers.
4025 struct named_init ni = {
4027 .name = L"Test wide string",
4028 .average = 543.34343,
4033 int dynamic_array[ni.number];
4034 dynamic_array[ni.number - 1] = 543;
4036 // work around unused variable warnings
4037 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4038 || dynamic_array[ni.number - 1] != 543);
4044 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4046 CC="$ac_save_CC $ac_arg"
4047 rm -f conftest.$ac_objext
4048 if { (ac_try="$ac_compile"
4050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4051 *) ac_try_echo=$ac_try;;
4053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4054 $as_echo "$ac_try_echo") >&5
4055 (eval "$ac_compile") 2>conftest.er1
4057 grep -v '^ *+' conftest.er1 >conftest.err
4059 cat conftest.err >&5
4060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); } && {
4062 test -z "$ac_c_werror_flag" ||
4063 test ! -s conftest.err
4064 } && test -s conftest.$ac_objext; then
4065 ac_cv_prog_cc_c99=$ac_arg
4067 $as_echo "$as_me: failed program was:" >&5
4068 sed 's/^/| /' conftest.$ac_ext >&5
4073 rm -f core conftest.err conftest.$ac_objext
4074 test "x$ac_cv_prog_cc_c99" != "xno" && break
4076 rm -f conftest.$ac_ext
4081 case "x$ac_cv_prog_cc_c99" in
4083 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4084 $as_echo "none needed" >&6; } ;;
4086 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4087 $as_echo "unsupported" >&6; } ;;
4089 CC="$CC $ac_cv_prog_cc_c99"
4090 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
4091 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4093 if test "x$ac_cv_prog_cc_c99" != xno; then
4094 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4096 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4097 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4098 if test "${ac_cv_prog_cc_c89+set}" = set; then
4099 $as_echo_n "(cached) " >&6
4101 ac_cv_prog_cc_c89=no
4103 cat >conftest.$ac_ext <<_ACEOF
4106 cat confdefs.h >>conftest.$ac_ext
4107 cat >>conftest.$ac_ext <<_ACEOF
4108 /* end confdefs.h. */
4111 #include <sys/types.h>
4112 #include <sys/stat.h>
4113 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4114 struct buf { int x; };
4115 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4116 static char *e (p, i)
4122 static char *f (char * (*g) (char **, int), char **p, ...)
4127 s = g (p, va_arg (v,int));
4132 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4133 function prototypes and stuff, but not '\xHH' hex character constants.
4134 These don't provoke an error unfortunately, instead are silently treated
4135 as 'x'. The following induces an error, until -std is added to get
4136 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4137 array size at least. It's necessary to write '\x00'==0 to get something
4138 that's true only with -std. */
4139 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4141 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4142 inside strings and character constants. */
4144 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4146 int test (int i, double x);
4147 struct s1 {int (*f) (int a);};
4148 struct s2 {int (*f) (double a);};
4149 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4155 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4160 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4161 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4163 CC="$ac_save_CC $ac_arg"
4164 rm -f conftest.$ac_objext
4165 if { (ac_try="$ac_compile"
4167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4168 *) ac_try_echo=$ac_try;;
4170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4171 $as_echo "$ac_try_echo") >&5
4172 (eval "$ac_compile") 2>conftest.er1
4174 grep -v '^ *+' conftest.er1 >conftest.err
4176 cat conftest.err >&5
4177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); } && {
4179 test -z "$ac_c_werror_flag" ||
4180 test ! -s conftest.err
4181 } && test -s conftest.$ac_objext; then
4182 ac_cv_prog_cc_c89=$ac_arg
4184 $as_echo "$as_me: failed program was:" >&5
4185 sed 's/^/| /' conftest.$ac_ext >&5
4190 rm -f core conftest.err conftest.$ac_objext
4191 test "x$ac_cv_prog_cc_c89" != "xno" && break
4193 rm -f conftest.$ac_ext
4198 case "x$ac_cv_prog_cc_c89" in
4200 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4201 $as_echo "none needed" >&6; } ;;
4203 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4204 $as_echo "unsupported" >&6; } ;;
4206 CC="$CC $ac_cv_prog_cc_c89"
4207 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4208 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4210 if test "x$ac_cv_prog_cc_c89" != xno; then
4211 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4213 ac_cv_prog_cc_stdc=no
4221 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
4222 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4223 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4224 $as_echo_n "(cached) " >&6
4227 case $ac_cv_prog_cc_stdc in
4228 no) { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4229 $as_echo "unsupported" >&6; } ;;
4230 '') { $as_echo "$as_me:$LINENO: result: none needed" >&5
4231 $as_echo "none needed" >&6; } ;;
4232 *) { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4233 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4238 ac_cpp='$CPP $CPPFLAGS'
4239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4242 if test -n "$ac_tool_prefix"; then
4243 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4244 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4245 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4246 $as_echo_n "checking for $ac_word... " >&6; }
4247 if test "${ac_cv_prog_CC+set}" = set; then
4248 $as_echo_n "(cached) " >&6
4250 if test -n "$CC"; then
4251 ac_cv_prog_CC="$CC" # Let the user override the test.
4253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4257 test -z "$as_dir" && as_dir=.
4258 for ac_exec_ext in '' $ac_executable_extensions; do
4259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4260 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4261 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4271 if test -n "$CC"; then
4272 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4273 $as_echo "$CC" >&6; }
4275 { $as_echo "$as_me:$LINENO: result: no" >&5
4276 $as_echo "no" >&6; }
4281 if test -z "$ac_cv_prog_CC"; then
4283 # Extract the first word of "gcc", so it can be a program name with args.
4284 set dummy gcc; ac_word=$2
4285 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4286 $as_echo_n "checking for $ac_word... " >&6; }
4287 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4288 $as_echo_n "(cached) " >&6
4290 if test -n "$ac_ct_CC"; then
4291 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4297 test -z "$as_dir" && as_dir=.
4298 for ac_exec_ext in '' $ac_executable_extensions; do
4299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4300 ac_cv_prog_ac_ct_CC="gcc"
4301 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4310 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4311 if test -n "$ac_ct_CC"; then
4312 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4313 $as_echo "$ac_ct_CC" >&6; }
4315 { $as_echo "$as_me:$LINENO: result: no" >&5
4316 $as_echo "no" >&6; }
4319 if test "x$ac_ct_CC" = x; then
4322 case $cross_compiling:$ac_tool_warned in
4324 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4325 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4326 ac_tool_warned=yes ;;
4334 if test -z "$CC"; then
4335 if test -n "$ac_tool_prefix"; then
4336 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4337 set dummy ${ac_tool_prefix}cc; ac_word=$2
4338 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4339 $as_echo_n "checking for $ac_word... " >&6; }
4340 if test "${ac_cv_prog_CC+set}" = set; then
4341 $as_echo_n "(cached) " >&6
4343 if test -n "$CC"; then
4344 ac_cv_prog_CC="$CC" # Let the user override the test.
4346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4350 test -z "$as_dir" && as_dir=.
4351 for ac_exec_ext in '' $ac_executable_extensions; do
4352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4353 ac_cv_prog_CC="${ac_tool_prefix}cc"
4354 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4364 if test -n "$CC"; then
4365 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4366 $as_echo "$CC" >&6; }
4368 { $as_echo "$as_me:$LINENO: result: no" >&5
4369 $as_echo "no" >&6; }
4375 if test -z "$CC"; then
4376 # Extract the first word of "cc", so it can be a program name with args.
4377 set dummy cc; ac_word=$2
4378 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4379 $as_echo_n "checking for $ac_word... " >&6; }
4380 if test "${ac_cv_prog_CC+set}" = set; then
4381 $as_echo_n "(cached) " >&6
4383 if test -n "$CC"; then
4384 ac_cv_prog_CC="$CC" # Let the user override the test.
4387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4391 test -z "$as_dir" && as_dir=.
4392 for ac_exec_ext in '' $ac_executable_extensions; do
4393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4394 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4395 ac_prog_rejected=yes
4399 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4406 if test $ac_prog_rejected = yes; then
4407 # We found a bogon in the path, so make sure we never use it.
4408 set dummy $ac_cv_prog_CC
4410 if test $# != 0; then
4411 # We chose a different compiler from the bogus one.
4412 # However, it has the same basename, so the bogon will be chosen
4413 # first if we set CC to just the basename; use the full file name.
4415 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4421 if test -n "$CC"; then
4422 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4423 $as_echo "$CC" >&6; }
4425 { $as_echo "$as_me:$LINENO: result: no" >&5
4426 $as_echo "no" >&6; }
4431 if test -z "$CC"; then
4432 if test -n "$ac_tool_prefix"; then
4433 for ac_prog in cl.exe
4435 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4436 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4437 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4438 $as_echo_n "checking for $ac_word... " >&6; }
4439 if test "${ac_cv_prog_CC+set}" = set; then
4440 $as_echo_n "(cached) " >&6
4442 if test -n "$CC"; then
4443 ac_cv_prog_CC="$CC" # Let the user override the test.
4445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449 test -z "$as_dir" && as_dir=.
4450 for ac_exec_ext in '' $ac_executable_extensions; do
4451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4452 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4453 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4463 if test -n "$CC"; then
4464 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4465 $as_echo "$CC" >&6; }
4467 { $as_echo "$as_me:$LINENO: result: no" >&5
4468 $as_echo "no" >&6; }
4472 test -n "$CC" && break
4475 if test -z "$CC"; then
4477 for ac_prog in cl.exe
4479 # Extract the first word of "$ac_prog", so it can be a program name with args.
4480 set dummy $ac_prog; ac_word=$2
4481 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4482 $as_echo_n "checking for $ac_word... " >&6; }
4483 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4484 $as_echo_n "(cached) " >&6
4486 if test -n "$ac_ct_CC"; then
4487 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4493 test -z "$as_dir" && as_dir=.
4494 for ac_exec_ext in '' $ac_executable_extensions; do
4495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4496 ac_cv_prog_ac_ct_CC="$ac_prog"
4497 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4506 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4507 if test -n "$ac_ct_CC"; then
4508 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4509 $as_echo "$ac_ct_CC" >&6; }
4511 { $as_echo "$as_me:$LINENO: result: no" >&5
4512 $as_echo "no" >&6; }
4516 test -n "$ac_ct_CC" && break
4519 if test "x$ac_ct_CC" = x; then
4522 case $cross_compiling:$ac_tool_warned in
4524 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4525 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4526 ac_tool_warned=yes ;;
4535 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4536 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4537 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4538 See \`config.log' for more details." >&5
4539 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4540 See \`config.log' for more details." >&2;}
4541 { (exit 1); exit 1; }; }; }
4543 # Provide some information about the compiler.
4544 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4547 { (ac_try="$ac_compiler --version >&5"
4549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4550 *) ac_try_echo=$ac_try;;
4552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4553 $as_echo "$ac_try_echo") >&5
4554 (eval "$ac_compiler --version >&5") 2>&5
4556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); }
4558 { (ac_try="$ac_compiler -v >&5"
4560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4561 *) ac_try_echo=$ac_try;;
4563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4564 $as_echo "$ac_try_echo") >&5
4565 (eval "$ac_compiler -v >&5") 2>&5
4567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); }
4569 { (ac_try="$ac_compiler -V >&5"
4571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4572 *) ac_try_echo=$ac_try;;
4574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4575 $as_echo "$ac_try_echo") >&5
4576 (eval "$ac_compiler -V >&5") 2>&5
4578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); }
4581 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4582 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4583 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4584 $as_echo_n "(cached) " >&6
4586 cat >conftest.$ac_ext <<_ACEOF
4589 cat confdefs.h >>conftest.$ac_ext
4590 cat >>conftest.$ac_ext <<_ACEOF
4591 /* end confdefs.h. */
4604 rm -f conftest.$ac_objext
4605 if { (ac_try="$ac_compile"
4607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4608 *) ac_try_echo=$ac_try;;
4610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4611 $as_echo "$ac_try_echo") >&5
4612 (eval "$ac_compile") 2>conftest.er1
4614 grep -v '^ *+' conftest.er1 >conftest.err
4616 cat conftest.err >&5
4617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); } && {
4619 test -z "$ac_c_werror_flag" ||
4620 test ! -s conftest.err
4621 } && test -s conftest.$ac_objext; then
4624 $as_echo "$as_me: failed program was:" >&5
4625 sed 's/^/| /' conftest.$ac_ext >&5
4630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4631 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4634 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4635 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4636 if test $ac_compiler_gnu = yes; then
4641 ac_test_CFLAGS=${CFLAGS+set}
4642 ac_save_CFLAGS=$CFLAGS
4643 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4644 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4645 if test "${ac_cv_prog_cc_g+set}" = set; then
4646 $as_echo_n "(cached) " >&6
4648 ac_save_c_werror_flag=$ac_c_werror_flag
4649 ac_c_werror_flag=yes
4652 cat >conftest.$ac_ext <<_ACEOF
4655 cat confdefs.h >>conftest.$ac_ext
4656 cat >>conftest.$ac_ext <<_ACEOF
4657 /* end confdefs.h. */
4667 rm -f conftest.$ac_objext
4668 if { (ac_try="$ac_compile"
4670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4671 *) ac_try_echo=$ac_try;;
4673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4674 $as_echo "$ac_try_echo") >&5
4675 (eval "$ac_compile") 2>conftest.er1
4677 grep -v '^ *+' conftest.er1 >conftest.err
4679 cat conftest.err >&5
4680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); } && {
4682 test -z "$ac_c_werror_flag" ||
4683 test ! -s conftest.err
4684 } && test -s conftest.$ac_objext; then
4687 $as_echo "$as_me: failed program was:" >&5
4688 sed 's/^/| /' conftest.$ac_ext >&5
4691 cat >conftest.$ac_ext <<_ACEOF
4694 cat confdefs.h >>conftest.$ac_ext
4695 cat >>conftest.$ac_ext <<_ACEOF
4696 /* end confdefs.h. */
4706 rm -f conftest.$ac_objext
4707 if { (ac_try="$ac_compile"
4709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4710 *) ac_try_echo=$ac_try;;
4712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4713 $as_echo "$ac_try_echo") >&5
4714 (eval "$ac_compile") 2>conftest.er1
4716 grep -v '^ *+' conftest.er1 >conftest.err
4718 cat conftest.err >&5
4719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); } && {
4721 test -z "$ac_c_werror_flag" ||
4722 test ! -s conftest.err
4723 } && test -s conftest.$ac_objext; then
4726 $as_echo "$as_me: failed program was:" >&5
4727 sed 's/^/| /' conftest.$ac_ext >&5
4729 ac_c_werror_flag=$ac_save_c_werror_flag
4731 cat >conftest.$ac_ext <<_ACEOF
4734 cat confdefs.h >>conftest.$ac_ext
4735 cat >>conftest.$ac_ext <<_ACEOF
4736 /* end confdefs.h. */
4746 rm -f conftest.$ac_objext
4747 if { (ac_try="$ac_compile"
4749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4750 *) ac_try_echo=$ac_try;;
4752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4753 $as_echo "$ac_try_echo") >&5
4754 (eval "$ac_compile") 2>conftest.er1
4756 grep -v '^ *+' conftest.er1 >conftest.err
4758 cat conftest.err >&5
4759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); } && {
4761 test -z "$ac_c_werror_flag" ||
4762 test ! -s conftest.err
4763 } && test -s conftest.$ac_objext; then
4766 $as_echo "$as_me: failed program was:" >&5
4767 sed 's/^/| /' conftest.$ac_ext >&5
4772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4779 ac_c_werror_flag=$ac_save_c_werror_flag
4781 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4782 $as_echo "$ac_cv_prog_cc_g" >&6; }
4783 if test "$ac_test_CFLAGS" = set; then
4784 CFLAGS=$ac_save_CFLAGS
4785 elif test $ac_cv_prog_cc_g = yes; then
4786 if test "$GCC" = yes; then
4792 if test "$GCC" = yes; then
4798 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4799 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4800 if test "${ac_cv_prog_cc_c89+set}" = set; then
4801 $as_echo_n "(cached) " >&6
4803 ac_cv_prog_cc_c89=no
4805 cat >conftest.$ac_ext <<_ACEOF
4808 cat confdefs.h >>conftest.$ac_ext
4809 cat >>conftest.$ac_ext <<_ACEOF
4810 /* end confdefs.h. */
4813 #include <sys/types.h>
4814 #include <sys/stat.h>
4815 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4816 struct buf { int x; };
4817 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4818 static char *e (p, i)
4824 static char *f (char * (*g) (char **, int), char **p, ...)
4829 s = g (p, va_arg (v,int));
4834 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4835 function prototypes and stuff, but not '\xHH' hex character constants.
4836 These don't provoke an error unfortunately, instead are silently treated
4837 as 'x'. The following induces an error, until -std is added to get
4838 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4839 array size at least. It's necessary to write '\x00'==0 to get something
4840 that's true only with -std. */
4841 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4843 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4844 inside strings and character constants. */
4846 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4848 int test (int i, double x);
4849 struct s1 {int (*f) (int a);};
4850 struct s2 {int (*f) (double a);};
4851 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4857 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4862 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4863 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4865 CC="$ac_save_CC $ac_arg"
4866 rm -f conftest.$ac_objext
4867 if { (ac_try="$ac_compile"
4869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4870 *) ac_try_echo=$ac_try;;
4872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4873 $as_echo "$ac_try_echo") >&5
4874 (eval "$ac_compile") 2>conftest.er1
4876 grep -v '^ *+' conftest.er1 >conftest.err
4878 cat conftest.err >&5
4879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); } && {
4881 test -z "$ac_c_werror_flag" ||
4882 test ! -s conftest.err
4883 } && test -s conftest.$ac_objext; then
4884 ac_cv_prog_cc_c89=$ac_arg
4886 $as_echo "$as_me: failed program was:" >&5
4887 sed 's/^/| /' conftest.$ac_ext >&5
4892 rm -f core conftest.err conftest.$ac_objext
4893 test "x$ac_cv_prog_cc_c89" != "xno" && break
4895 rm -f conftest.$ac_ext
4900 case "x$ac_cv_prog_cc_c89" in
4902 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4903 $as_echo "none needed" >&6; } ;;
4905 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4906 $as_echo "unsupported" >&6; } ;;
4908 CC="$CC $ac_cv_prog_cc_c89"
4909 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4910 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4915 ac_cpp='$CPP $CPPFLAGS'
4916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4920 depcc="$CC" am_compiler_list=
4922 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4923 $as_echo_n "checking dependency style of $depcc... " >&6; }
4924 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4925 $as_echo_n "(cached) " >&6
4927 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4928 # We make a subdir and do the tests there. Otherwise we can end up
4929 # making bogus files that we don't know about and never remove. For
4930 # instance it was reported that on HP-UX the gcc test will end up
4931 # making a dummy file named `D' -- because `-MD' means `put the output
4934 # Copy depcomp to subdir because otherwise we won't find it if we're
4935 # using a relative directory.
4936 cp "$am_depcomp" conftest.dir
4938 # We will build objects and dependencies in a subdirectory because
4939 # it helps to detect inapplicable dependency modes. For instance
4940 # both Tru64's cc and ICC support -MD to output dependencies as a
4941 # side effect of compilation, but ICC will put the dependencies in
4942 # the current directory while Tru64 will put them in the object
4946 am_cv_CC_dependencies_compiler_type=none
4947 if test "$am_compiler_list" = ""; then
4948 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4951 case " $depcc " in #(
4952 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4955 for depmode in $am_compiler_list; do
4956 # Setup a source with many dependencies, because some compilers
4957 # like to wrap large dependency lists on column 80 (with \), and
4958 # we should not choose a depcomp mode which is confused by this.
4960 # We need to recreate these files for each test, as the compiler may
4961 # overwrite some of them when testing with obscure command lines.
4962 # This happens at least with the AIX C compiler.
4964 for i in 1 2 3 4 5 6; do
4965 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4966 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4967 # Solaris 8's {/usr,}/bin/sh.
4968 touch sub/conftst$i.h
4970 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4972 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4973 # mode. It turns out that the SunPro C++ compiler does not properly
4974 # handle `-M -o', and we need to detect this. Also, some Intel
4975 # versions had trouble with output in subdirs
4976 am__obj=sub/conftest.${OBJEXT-o}
4977 am__minus_obj="-o $am__obj"
4980 # This depmode causes a compiler race in universal mode.
4981 test "$am__universal" = false || continue
4984 # after this tag, mechanisms are not by side-effect, so they'll
4985 # only be used when explicitly requested
4986 if test "x$enable_dependency_tracking" = xyes; then
4992 msvisualcpp | msvcmsys)
4993 # This compiler won't grok `-c -o', but also, the minuso test has
4994 # not run yet. These depmodes are late enough in the game, and
4995 # so weak that their functioning should not be impacted.
4996 am__obj=conftest.${OBJEXT-o}
5001 if depmode=$depmode \
5002 source=sub/conftest.c object=$am__obj \
5003 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5004 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5005 >/dev/null 2>conftest.err &&
5006 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5007 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5008 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5009 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5010 # icc doesn't choke on unknown options, it will just issue warnings
5011 # or remarks (even with -Werror). So we grep stderr for any message
5012 # that says an option was ignored or not supported.
5013 # When given -MP, icc 7.0 and 7.1 complain thusly:
5014 # icc: Command line warning: ignoring option '-M'; no argument required
5015 # The diagnosis changed in icc 8.0:
5016 # icc: Command line remark: option '-MP' not supported
5017 if (grep 'ignoring option' conftest.err ||
5018 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5019 am_cv_CC_dependencies_compiler_type=$depmode
5028 am_cv_CC_dependencies_compiler_type=none
5032 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5033 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5034 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5037 test "x$enable_dependency_tracking" != xno \
5038 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5040 am__fastdepCC_FALSE='#'
5042 am__fastdepCC_TRUE='#'
5043 am__fastdepCC_FALSE=
5048 # Find a good install program. We prefer a C program (faster),
5049 # so one script is as good as another. But avoid the broken or
5050 # incompatible versions:
5051 # SysV /etc/install, /usr/sbin/install
5052 # SunOS /usr/etc/install
5053 # IRIX /sbin/install
5055 # AmigaOS /C/install, which installs bootblocks on floppy discs
5056 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5057 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5058 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5059 # OS/2's system install, which has a completely different semantic
5060 # ./install, which can be erroneously created by make from ./install.sh.
5061 # Reject install programs that cannot install multiple files.
5062 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5063 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5064 if test -z "$INSTALL"; then
5065 if test "${ac_cv_path_install+set}" = set; then
5066 $as_echo_n "(cached) " >&6
5068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072 test -z "$as_dir" && as_dir=.
5073 # Account for people who put trailing slashes in PATH elements.
5075 ./ | .// | /cC/* | \
5076 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5077 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5080 # OSF1 and SCO ODT 3.0 have their own names for install.
5081 # Don't use installbsd from OSF since it installs stuff as root
5083 for ac_prog in ginstall scoinst install; do
5084 for ac_exec_ext in '' $ac_executable_extensions; do
5085 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5086 if test $ac_prog = install &&
5087 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5088 # AIX install. It has an incompatible calling convention.
5090 elif test $ac_prog = install &&
5091 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5092 # program-specific install script used by HP pwplus--don't use.
5095 rm -rf conftest.one conftest.two conftest.dir
5096 echo one > conftest.one
5097 echo two > conftest.two
5099 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5100 test -s conftest.one && test -s conftest.two &&
5101 test -s conftest.dir/conftest.one &&
5102 test -s conftest.dir/conftest.two
5104 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5117 rm -rf conftest.one conftest.two conftest.dir
5120 if test "${ac_cv_path_install+set}" = set; then
5121 INSTALL=$ac_cv_path_install
5123 # As a last resort, use the slow shell script. Don't cache a
5124 # value for INSTALL within a source directory, because that will
5125 # break other packages using the cache if that directory is
5126 # removed, or if the value is a relative name.
5127 INSTALL=$ac_install_sh
5130 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5131 $as_echo "$INSTALL" >&6; }
5133 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5134 # It thinks the first close brace ends the variable substitution.
5135 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5137 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5139 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5143 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5144 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5149 macro_version='2.2.6'
5150 macro_revision='1.3012'
5164 ltmain="$ac_aux_dir/ltmain.sh"
5166 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5167 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5168 if test "${ac_cv_path_SED+set}" = set; then
5169 $as_echo_n "(cached) " >&6
5171 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5172 for ac_i in 1 2 3 4 5 6 7; do
5173 ac_script="$ac_script$as_nl$ac_script"
5175 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5176 $as_unset ac_script || ac_script=
5177 if test -z "$SED"; then
5178 ac_path_SED_found=false
5179 # Loop through the user's path and test for each of PROGNAME-LIST
5180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5184 test -z "$as_dir" && as_dir=.
5185 for ac_prog in sed gsed; do
5186 for ac_exec_ext in '' $ac_executable_extensions; do
5187 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5188 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5189 # Check for GNU ac_path_SED and select it if it is found.
5190 # Check for GNU $ac_path_SED
5191 case `"$ac_path_SED" --version 2>&1` in
5193 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5196 $as_echo_n 0123456789 >"conftest.in"
5199 cat "conftest.in" "conftest.in" >"conftest.tmp"
5200 mv "conftest.tmp" "conftest.in"
5201 cp "conftest.in" "conftest.nl"
5202 $as_echo '' >> "conftest.nl"
5203 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5204 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5205 ac_count=`expr $ac_count + 1`
5206 if test $ac_count -gt ${ac_path_SED_max-0}; then
5207 # Best one so far, save it but keep looking for a better one
5208 ac_cv_path_SED="$ac_path_SED"
5209 ac_path_SED_max=$ac_count
5211 # 10*(2^10) chars as input seems more than enough
5212 test $ac_count -gt 10 && break
5214 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5217 $ac_path_SED_found && break 3
5222 if test -z "$ac_cv_path_SED"; then
5223 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
5224 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5225 { (exit 1); exit 1; }; }
5232 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5233 $as_echo "$ac_cv_path_SED" >&6; }
5234 SED="$ac_cv_path_SED"
5237 test -z "$SED" && SED=sed
5238 Xsed="$SED -e 1s/^X//"
5250 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5251 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5252 if test "${ac_cv_path_GREP+set}" = set; then
5253 $as_echo_n "(cached) " >&6
5255 if test -z "$GREP"; then
5256 ac_path_GREP_found=false
5257 # Loop through the user's path and test for each of PROGNAME-LIST
5258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5262 test -z "$as_dir" && as_dir=.
5263 for ac_prog in grep ggrep; do
5264 for ac_exec_ext in '' $ac_executable_extensions; do
5265 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5266 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5267 # Check for GNU ac_path_GREP and select it if it is found.
5268 # Check for GNU $ac_path_GREP
5269 case `"$ac_path_GREP" --version 2>&1` in
5271 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5274 $as_echo_n 0123456789 >"conftest.in"
5277 cat "conftest.in" "conftest.in" >"conftest.tmp"
5278 mv "conftest.tmp" "conftest.in"
5279 cp "conftest.in" "conftest.nl"
5280 $as_echo 'GREP' >> "conftest.nl"
5281 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5282 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5283 ac_count=`expr $ac_count + 1`
5284 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5285 # Best one so far, save it but keep looking for a better one
5286 ac_cv_path_GREP="$ac_path_GREP"
5287 ac_path_GREP_max=$ac_count
5289 # 10*(2^10) chars as input seems more than enough
5290 test $ac_count -gt 10 && break
5292 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5295 $ac_path_GREP_found && break 3
5300 if test -z "$ac_cv_path_GREP"; then
5301 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5302 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5303 { (exit 1); exit 1; }; }
5306 ac_cv_path_GREP=$GREP
5310 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5311 $as_echo "$ac_cv_path_GREP" >&6; }
5312 GREP="$ac_cv_path_GREP"
5315 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5316 $as_echo_n "checking for egrep... " >&6; }
5317 if test "${ac_cv_path_EGREP+set}" = set; then
5318 $as_echo_n "(cached) " >&6
5320 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5321 then ac_cv_path_EGREP="$GREP -E"
5323 if test -z "$EGREP"; then
5324 ac_path_EGREP_found=false
5325 # Loop through the user's path and test for each of PROGNAME-LIST
5326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5330 test -z "$as_dir" && as_dir=.
5331 for ac_prog in egrep; do
5332 for ac_exec_ext in '' $ac_executable_extensions; do
5333 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5334 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5335 # Check for GNU ac_path_EGREP and select it if it is found.
5336 # Check for GNU $ac_path_EGREP
5337 case `"$ac_path_EGREP" --version 2>&1` in
5339 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5342 $as_echo_n 0123456789 >"conftest.in"
5345 cat "conftest.in" "conftest.in" >"conftest.tmp"
5346 mv "conftest.tmp" "conftest.in"
5347 cp "conftest.in" "conftest.nl"
5348 $as_echo 'EGREP' >> "conftest.nl"
5349 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5350 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5351 ac_count=`expr $ac_count + 1`
5352 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5353 # Best one so far, save it but keep looking for a better one
5354 ac_cv_path_EGREP="$ac_path_EGREP"
5355 ac_path_EGREP_max=$ac_count
5357 # 10*(2^10) chars as input seems more than enough
5358 test $ac_count -gt 10 && break
5360 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5363 $ac_path_EGREP_found && break 3
5368 if test -z "$ac_cv_path_EGREP"; then
5369 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5370 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5371 { (exit 1); exit 1; }; }
5374 ac_cv_path_EGREP=$EGREP
5379 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5380 $as_echo "$ac_cv_path_EGREP" >&6; }
5381 EGREP="$ac_cv_path_EGREP"
5384 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
5385 $as_echo_n "checking for fgrep... " >&6; }
5386 if test "${ac_cv_path_FGREP+set}" = set; then
5387 $as_echo_n "(cached) " >&6
5389 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5390 then ac_cv_path_FGREP="$GREP -F"
5392 if test -z "$FGREP"; then
5393 ac_path_FGREP_found=false
5394 # Loop through the user's path and test for each of PROGNAME-LIST
5395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5396 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5399 test -z "$as_dir" && as_dir=.
5400 for ac_prog in fgrep; do
5401 for ac_exec_ext in '' $ac_executable_extensions; do
5402 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5403 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5404 # Check for GNU ac_path_FGREP and select it if it is found.
5405 # Check for GNU $ac_path_FGREP
5406 case `"$ac_path_FGREP" --version 2>&1` in
5408 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5411 $as_echo_n 0123456789 >"conftest.in"
5414 cat "conftest.in" "conftest.in" >"conftest.tmp"
5415 mv "conftest.tmp" "conftest.in"
5416 cp "conftest.in" "conftest.nl"
5417 $as_echo 'FGREP' >> "conftest.nl"
5418 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5419 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5420 ac_count=`expr $ac_count + 1`
5421 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5422 # Best one so far, save it but keep looking for a better one
5423 ac_cv_path_FGREP="$ac_path_FGREP"
5424 ac_path_FGREP_max=$ac_count
5426 # 10*(2^10) chars as input seems more than enough
5427 test $ac_count -gt 10 && break
5429 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5432 $ac_path_FGREP_found && break 3
5437 if test -z "$ac_cv_path_FGREP"; then
5438 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5439 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5440 { (exit 1); exit 1; }; }
5443 ac_cv_path_FGREP=$FGREP
5448 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5449 $as_echo "$ac_cv_path_FGREP" >&6; }
5450 FGREP="$ac_cv_path_FGREP"
5453 test -z "$GREP" && GREP=grep
5473 # Check whether --with-gnu-ld was given.
5474 if test "${with_gnu_ld+set}" = set; then
5475 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5481 if test "$GCC" = yes; then
5482 # Check if gcc -print-prog-name=ld gives a path.
5483 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5484 $as_echo_n "checking for ld used by $CC... " >&6; }
5487 # gcc leaves a trailing carriage return which upsets mingw
5488 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5490 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5493 # Accept absolute paths.
5495 re_direlt='/[^/][^/]*/\.\./'
5496 # Canonicalize the pathname of ld
5497 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5498 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5499 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5501 test -z "$LD" && LD="$ac_prog"
5504 # If it fails, then pretend we aren't using GCC.
5508 # If it is relative, then search for the first ld in PATH.
5512 elif test "$with_gnu_ld" = yes; then
5513 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5514 $as_echo_n "checking for GNU ld... " >&6; }
5516 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5517 $as_echo_n "checking for non-GNU ld... " >&6; }
5519 if test "${lt_cv_path_LD+set}" = set; then
5520 $as_echo_n "(cached) " >&6
5522 if test -z "$LD"; then
5523 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5524 for ac_dir in $PATH; do
5526 test -z "$ac_dir" && ac_dir=.
5527 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5528 lt_cv_path_LD="$ac_dir/$ac_prog"
5529 # Check to see if the program is GNU ld. I'd rather use --version,
5530 # but apparently some variants of GNU ld only accept -v.
5531 # Break only if it was the GNU/non-GNU ld that we prefer.
5532 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5533 *GNU* | *'with BFD'*)
5534 test "$with_gnu_ld" != no && break
5537 test "$with_gnu_ld" != yes && break
5544 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5549 if test -n "$LD"; then
5550 { $as_echo "$as_me:$LINENO: result: $LD" >&5
5551 $as_echo "$LD" >&6; }
5553 { $as_echo "$as_me:$LINENO: result: no" >&5
5554 $as_echo "no" >&6; }
5556 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5557 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5558 { (exit 1); exit 1; }; }
5559 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5560 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5561 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5562 $as_echo_n "(cached) " >&6
5564 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5565 case `$LD -v 2>&1 </dev/null` in
5566 *GNU* | *'with BFD'*)
5567 lt_cv_prog_gnu_ld=yes
5570 lt_cv_prog_gnu_ld=no
5574 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5575 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5576 with_gnu_ld=$lt_cv_prog_gnu_ld
5586 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5587 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5588 if test "${lt_cv_path_NM+set}" = set; then
5589 $as_echo_n "(cached) " >&6
5591 if test -n "$NM"; then
5592 # Let the user override the test.
5595 lt_nm_to_check="${ac_tool_prefix}nm"
5596 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5597 lt_nm_to_check="$lt_nm_to_check nm"
5599 for lt_tmp_nm in $lt_nm_to_check; do
5600 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5601 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5603 test -z "$ac_dir" && ac_dir=.
5604 tmp_nm="$ac_dir/$lt_tmp_nm"
5605 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5606 # Check to see if the nm accepts a BSD-compat flag.
5607 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5608 # nm: unknown option "B" ignored
5609 # Tru64's nm complains that /dev/null is an invalid object file
5610 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5611 */dev/null* | *'Invalid file or object type'*)
5612 lt_cv_path_NM="$tmp_nm -B"
5616 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5618 lt_cv_path_NM="$tmp_nm -p"
5622 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5623 continue # so that we can try to find one that supports BSD flags
5632 : ${lt_cv_path_NM=no}
5635 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5636 $as_echo "$lt_cv_path_NM" >&6; }
5637 if test "$lt_cv_path_NM" != "no"; then
5640 # Didn't find any BSD compatible name lister, look for dumpbin.
5641 if test -n "$ac_tool_prefix"; then
5642 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5644 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5645 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5646 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5647 $as_echo_n "checking for $ac_word... " >&6; }
5648 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5649 $as_echo_n "(cached) " >&6
5651 if test -n "$DUMPBIN"; then
5652 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658 test -z "$as_dir" && as_dir=.
5659 for ac_exec_ext in '' $ac_executable_extensions; do
5660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5661 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5662 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5671 DUMPBIN=$ac_cv_prog_DUMPBIN
5672 if test -n "$DUMPBIN"; then
5673 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5674 $as_echo "$DUMPBIN" >&6; }
5676 { $as_echo "$as_me:$LINENO: result: no" >&5
5677 $as_echo "no" >&6; }
5681 test -n "$DUMPBIN" && break
5684 if test -z "$DUMPBIN"; then
5685 ac_ct_DUMPBIN=$DUMPBIN
5686 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5688 # Extract the first word of "$ac_prog", so it can be a program name with args.
5689 set dummy $ac_prog; ac_word=$2
5690 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5691 $as_echo_n "checking for $ac_word... " >&6; }
5692 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5693 $as_echo_n "(cached) " >&6
5695 if test -n "$ac_ct_DUMPBIN"; then
5696 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5702 test -z "$as_dir" && as_dir=.
5703 for ac_exec_ext in '' $ac_executable_extensions; do
5704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5705 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5706 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5715 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5716 if test -n "$ac_ct_DUMPBIN"; then
5717 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5718 $as_echo "$ac_ct_DUMPBIN" >&6; }
5720 { $as_echo "$as_me:$LINENO: result: no" >&5
5721 $as_echo "no" >&6; }
5725 test -n "$ac_ct_DUMPBIN" && break
5728 if test "x$ac_ct_DUMPBIN" = x; then
5731 case $cross_compiling:$ac_tool_warned in
5733 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5734 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5735 ac_tool_warned=yes ;;
5737 DUMPBIN=$ac_ct_DUMPBIN
5742 if test "$DUMPBIN" != ":"; then
5746 test -z "$NM" && NM=nm
5753 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5754 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5755 if test "${lt_cv_nm_interface+set}" = set; then
5756 $as_echo_n "(cached) " >&6
5758 lt_cv_nm_interface="BSD nm"
5759 echo "int some_variable = 0;" > conftest.$ac_ext
5760 (eval echo "\"\$as_me:5760: $ac_compile\"" >&5)
5761 (eval "$ac_compile" 2>conftest.err)
5762 cat conftest.err >&5
5763 (eval echo "\"\$as_me:5763: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5764 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5765 cat conftest.err >&5
5766 (eval echo "\"\$as_me:5766: output\"" >&5)
5767 cat conftest.out >&5
5768 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5769 lt_cv_nm_interface="MS dumpbin"
5773 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5774 $as_echo "$lt_cv_nm_interface" >&6; }
5776 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5777 $as_echo_n "checking whether ln -s works... " >&6; }
5779 if test "$LN_S" = "ln -s"; then
5780 { $as_echo "$as_me:$LINENO: result: yes" >&5
5781 $as_echo "yes" >&6; }
5783 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5784 $as_echo "no, using $LN_S" >&6; }
5787 # find the maximum length of command line arguments
5788 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5789 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5790 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5791 $as_echo_n "(cached) " >&6
5798 # On DJGPP, this test can blow up pretty badly due to problems in libc
5799 # (any single argument exceeding 2000 bytes causes a buffer overrun
5800 # during glob expansion). Even if it were fixed, the result of this
5801 # check would be larger than it should be.
5802 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5806 # Under GNU Hurd, this test is not required because there is
5807 # no limit to the length of command line arguments.
5808 # Libtool will interpret -1 as no limit whatsoever
5809 lt_cv_sys_max_cmd_len=-1;
5812 cygwin* | mingw* | cegcc*)
5813 # On Win9x/ME, this test blows up -- it succeeds, but takes
5814 # about 5 minutes as the teststring grows exponentially.
5815 # Worse, since 9x/ME are not pre-emptively multitasking,
5816 # you end up with a "frozen" computer, even though with patience
5817 # the test eventually succeeds (with a max line length of 256k).
5818 # Instead, let's just punt: use the minimum linelength reported by
5819 # all of the supported platforms: 8192 (on NT/2K/XP).
5820 lt_cv_sys_max_cmd_len=8192;
5824 # On AmigaOS with pdksh, this test takes hours, literally.
5825 # So we just punt and use a minimum line length of 8192.
5826 lt_cv_sys_max_cmd_len=8192;
5829 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5830 # This has been around since 386BSD, at least. Likely further.
5831 if test -x /sbin/sysctl; then
5832 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5833 elif test -x /usr/sbin/sysctl; then
5834 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5836 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5838 # And add a safety zone
5839 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5840 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5844 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5845 lt_cv_sys_max_cmd_len=196608
5849 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5850 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5851 # nice to cause kernel panics so lets avoid the loop below.
5852 # First set a reasonable default.
5853 lt_cv_sys_max_cmd_len=16384
5855 if test -x /sbin/sysconfig; then
5856 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5857 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5862 lt_cv_sys_max_cmd_len=102400
5864 sysv5* | sco5v6* | sysv4.2uw2*)
5865 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5866 if test -n "$kargmax"; then
5867 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5869 lt_cv_sys_max_cmd_len=32768
5873 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5874 if test -n "$lt_cv_sys_max_cmd_len"; then
5875 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5876 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5878 # Make teststring a little bigger before we do anything with it.
5879 # a 1K string should be a reasonable start.
5880 for i in 1 2 3 4 5 6 7 8 ; do
5881 teststring=$teststring$teststring
5883 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5884 # If test is not a shell built-in, we'll probably end up computing a
5885 # maximum length that is only half of the actual maximum length, but
5887 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5888 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5889 test $i != 17 # 1/2 MB should be enough
5892 teststring=$teststring$teststring
5894 # Only check the string length outside the loop.
5895 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5897 # Add a significant safety factor because C++ compilers can tack on
5898 # massive amounts of additional arguments before passing them to the
5899 # linker. It appears as though 1/2 is a usable value.
5900 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5907 if test -n $lt_cv_sys_max_cmd_len ; then
5908 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5909 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5911 { $as_echo "$as_me:$LINENO: result: none" >&5
5912 $as_echo "none" >&6; }
5914 max_cmd_len=$lt_cv_sys_max_cmd_len
5925 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5926 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5927 # Try some XSI features
5930 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5932 && eval 'test $(( 1 + 1 )) -eq 2 \
5933 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5935 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
5936 $as_echo "$xsi_shell" >&6; }
5939 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5940 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5942 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5944 && lt_shell_append=yes
5945 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5946 $as_echo "$lt_shell_append" >&6; }
5949 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5959 # test EBCDIC or ASCII
5960 case `echo X|tr X '\101'` in
5961 A) # ASCII based system
5962 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5963 lt_SP2NL='tr \040 \012'
5964 lt_NL2SP='tr \015\012 \040\040'
5966 *) # EBCDIC based system
5967 lt_SP2NL='tr \100 \n'
5968 lt_NL2SP='tr \r\n \100\100'
5980 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5981 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5982 if test "${lt_cv_ld_reload_flag+set}" = set; then
5983 $as_echo_n "(cached) " >&6
5985 lt_cv_ld_reload_flag='-r'
5987 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5988 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5989 reload_flag=$lt_cv_ld_reload_flag
5990 case $reload_flag in
5992 *) reload_flag=" $reload_flag" ;;
5994 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5997 if test "$GCC" = yes; then
5998 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6000 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6013 if test -n "$ac_tool_prefix"; then
6014 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6015 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6016 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6017 $as_echo_n "checking for $ac_word... " >&6; }
6018 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6019 $as_echo_n "(cached) " >&6
6021 if test -n "$OBJDUMP"; then
6022 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6028 test -z "$as_dir" && as_dir=.
6029 for ac_exec_ext in '' $ac_executable_extensions; do
6030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6031 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6032 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6041 OBJDUMP=$ac_cv_prog_OBJDUMP
6042 if test -n "$OBJDUMP"; then
6043 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6044 $as_echo "$OBJDUMP" >&6; }
6046 { $as_echo "$as_me:$LINENO: result: no" >&5
6047 $as_echo "no" >&6; }
6052 if test -z "$ac_cv_prog_OBJDUMP"; then
6053 ac_ct_OBJDUMP=$OBJDUMP
6054 # Extract the first word of "objdump", so it can be a program name with args.
6055 set dummy objdump; ac_word=$2
6056 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6057 $as_echo_n "checking for $ac_word... " >&6; }
6058 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6059 $as_echo_n "(cached) " >&6
6061 if test -n "$ac_ct_OBJDUMP"; then
6062 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6068 test -z "$as_dir" && as_dir=.
6069 for ac_exec_ext in '' $ac_executable_extensions; do
6070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6071 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6072 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6081 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6082 if test -n "$ac_ct_OBJDUMP"; then
6083 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6084 $as_echo "$ac_ct_OBJDUMP" >&6; }
6086 { $as_echo "$as_me:$LINENO: result: no" >&5
6087 $as_echo "no" >&6; }
6090 if test "x$ac_ct_OBJDUMP" = x; then
6093 case $cross_compiling:$ac_tool_warned in
6095 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6097 ac_tool_warned=yes ;;
6099 OBJDUMP=$ac_ct_OBJDUMP
6102 OBJDUMP="$ac_cv_prog_OBJDUMP"
6105 test -z "$OBJDUMP" && OBJDUMP=objdump
6115 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6116 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6117 if test "${lt_cv_deplibs_check_method+set}" = set; then
6118 $as_echo_n "(cached) " >&6
6120 lt_cv_file_magic_cmd='$MAGIC_CMD'
6121 lt_cv_file_magic_test_file=
6122 lt_cv_deplibs_check_method='unknown'
6123 # Need to set the preceding variable on all platforms that support
6124 # interlibrary dependencies.
6125 # 'none' -- dependencies not supported.
6126 # `unknown' -- same as none, but documents that we really don't know.
6127 # 'pass_all' -- all dependencies passed with no checks.
6128 # 'test_compile' -- check by making test program.
6129 # 'file_magic [[regex]]' -- check by looking for files in library path
6130 # which responds to the $file_magic_cmd with a given extended regex.
6131 # If you have `file' or equivalent on your system and you're not sure
6132 # whether `pass_all' will *always* work, you probably want this one.
6136 lt_cv_deplibs_check_method=pass_all
6140 lt_cv_deplibs_check_method=pass_all
6144 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6145 lt_cv_file_magic_cmd='/usr/bin/file -L'
6146 lt_cv_file_magic_test_file=/shlib/libc.so
6150 # func_win32_libid is a shell function defined in ltmain.sh
6151 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6152 lt_cv_file_magic_cmd='func_win32_libid'
6156 # Base MSYS/MinGW do not provide the 'file' command needed by
6157 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6158 # unless we find 'file', for example because we are cross-compiling.
6159 if ( file / ) >/dev/null 2>&1; then
6160 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6161 lt_cv_file_magic_cmd='func_win32_libid'
6163 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6164 lt_cv_file_magic_cmd='$OBJDUMP -f'
6169 # use the weaker test based on 'objdump'. See mingw*.
6170 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6171 lt_cv_file_magic_cmd='$OBJDUMP -f'
6174 darwin* | rhapsody*)
6175 lt_cv_deplibs_check_method=pass_all
6178 freebsd* | dragonfly*)
6179 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6182 # Not sure whether the presence of OpenBSD here was a mistake.
6183 # Let's accept both of them until this is cleared up.
6184 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6185 lt_cv_file_magic_cmd=/usr/bin/file
6186 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6190 lt_cv_deplibs_check_method=pass_all
6195 lt_cv_deplibs_check_method=pass_all
6198 hpux10.20* | hpux11*)
6199 lt_cv_file_magic_cmd=/usr/bin/file
6202 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6203 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6206 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6207 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6210 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6211 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6217 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6218 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6221 irix5* | irix6* | nonstopux*)
6223 *-32|*"-32 ") libmagic=32-bit;;
6224 *-n32|*"-n32 ") libmagic=N32;;
6225 *-64|*"-64 ") libmagic=64-bit;;
6226 *) libmagic=never-match;;
6228 lt_cv_deplibs_check_method=pass_all
6231 # This must be Linux ELF.
6232 linux* | k*bsd*-gnu)
6233 lt_cv_deplibs_check_method=pass_all
6237 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6238 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6240 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6245 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6246 lt_cv_file_magic_cmd=/usr/bin/file
6247 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6251 lt_cv_deplibs_check_method=pass_all
6255 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6256 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6258 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6262 osf3* | osf4* | osf5*)
6263 lt_cv_deplibs_check_method=pass_all
6267 lt_cv_deplibs_check_method=pass_all
6271 lt_cv_deplibs_check_method=pass_all
6274 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6275 lt_cv_deplibs_check_method=pass_all
6279 case $host_vendor in
6281 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]'
6282 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6285 lt_cv_deplibs_check_method=pass_all
6288 lt_cv_file_magic_cmd='/bin/file'
6289 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6292 lt_cv_file_magic_cmd='/bin/file'
6293 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6294 lt_cv_file_magic_test_file=/lib/libc.so
6297 lt_cv_deplibs_check_method=pass_all
6300 lt_cv_deplibs_check_method=pass_all
6306 lt_cv_deplibs_check_method=pass_all
6311 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6312 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6313 file_magic_cmd=$lt_cv_file_magic_cmd
6314 deplibs_check_method=$lt_cv_deplibs_check_method
6315 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6328 if test -n "$ac_tool_prefix"; then
6329 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6330 set dummy ${ac_tool_prefix}ar; ac_word=$2
6331 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6332 $as_echo_n "checking for $ac_word... " >&6; }
6333 if test "${ac_cv_prog_AR+set}" = set; then
6334 $as_echo_n "(cached) " >&6
6336 if test -n "$AR"; then
6337 ac_cv_prog_AR="$AR" # Let the user override the test.
6339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6343 test -z "$as_dir" && as_dir=.
6344 for ac_exec_ext in '' $ac_executable_extensions; do
6345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6346 ac_cv_prog_AR="${ac_tool_prefix}ar"
6347 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6357 if test -n "$AR"; then
6358 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6359 $as_echo "$AR" >&6; }
6361 { $as_echo "$as_me:$LINENO: result: no" >&5
6362 $as_echo "no" >&6; }
6367 if test -z "$ac_cv_prog_AR"; then
6369 # Extract the first word of "ar", so it can be a program name with args.
6370 set dummy ar; ac_word=$2
6371 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6372 $as_echo_n "checking for $ac_word... " >&6; }
6373 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6374 $as_echo_n "(cached) " >&6
6376 if test -n "$ac_ct_AR"; then
6377 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6383 test -z "$as_dir" && as_dir=.
6384 for ac_exec_ext in '' $ac_executable_extensions; do
6385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6386 ac_cv_prog_ac_ct_AR="ar"
6387 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6396 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6397 if test -n "$ac_ct_AR"; then
6398 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6399 $as_echo "$ac_ct_AR" >&6; }
6401 { $as_echo "$as_me:$LINENO: result: no" >&5
6402 $as_echo "no" >&6; }
6405 if test "x$ac_ct_AR" = x; then
6408 case $cross_compiling:$ac_tool_warned in
6410 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6411 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6412 ac_tool_warned=yes ;;
6420 test -z "$AR" && AR=ar
6421 test -z "$AR_FLAGS" && AR_FLAGS=cru
6433 if test -n "$ac_tool_prefix"; then
6434 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6435 set dummy ${ac_tool_prefix}strip; ac_word=$2
6436 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6437 $as_echo_n "checking for $ac_word... " >&6; }
6438 if test "${ac_cv_prog_STRIP+set}" = set; then
6439 $as_echo_n "(cached) " >&6
6441 if test -n "$STRIP"; then
6442 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6448 test -z "$as_dir" && as_dir=.
6449 for ac_exec_ext in '' $ac_executable_extensions; do
6450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6451 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6452 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6461 STRIP=$ac_cv_prog_STRIP
6462 if test -n "$STRIP"; then
6463 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6464 $as_echo "$STRIP" >&6; }
6466 { $as_echo "$as_me:$LINENO: result: no" >&5
6467 $as_echo "no" >&6; }
6472 if test -z "$ac_cv_prog_STRIP"; then
6474 # Extract the first word of "strip", so it can be a program name with args.
6475 set dummy strip; ac_word=$2
6476 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6477 $as_echo_n "checking for $ac_word... " >&6; }
6478 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6479 $as_echo_n "(cached) " >&6
6481 if test -n "$ac_ct_STRIP"; then
6482 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6488 test -z "$as_dir" && as_dir=.
6489 for ac_exec_ext in '' $ac_executable_extensions; do
6490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6491 ac_cv_prog_ac_ct_STRIP="strip"
6492 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6501 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6502 if test -n "$ac_ct_STRIP"; then
6503 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6504 $as_echo "$ac_ct_STRIP" >&6; }
6506 { $as_echo "$as_me:$LINENO: result: no" >&5
6507 $as_echo "no" >&6; }
6510 if test "x$ac_ct_STRIP" = x; then
6513 case $cross_compiling:$ac_tool_warned in
6515 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6516 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6517 ac_tool_warned=yes ;;
6522 STRIP="$ac_cv_prog_STRIP"
6525 test -z "$STRIP" && STRIP=:
6532 if test -n "$ac_tool_prefix"; then
6533 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6534 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6535 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6536 $as_echo_n "checking for $ac_word... " >&6; }
6537 if test "${ac_cv_prog_RANLIB+set}" = set; then
6538 $as_echo_n "(cached) " >&6
6540 if test -n "$RANLIB"; then
6541 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6547 test -z "$as_dir" && as_dir=.
6548 for ac_exec_ext in '' $ac_executable_extensions; do
6549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6550 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6551 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6560 RANLIB=$ac_cv_prog_RANLIB
6561 if test -n "$RANLIB"; then
6562 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6563 $as_echo "$RANLIB" >&6; }
6565 { $as_echo "$as_me:$LINENO: result: no" >&5
6566 $as_echo "no" >&6; }
6571 if test -z "$ac_cv_prog_RANLIB"; then
6572 ac_ct_RANLIB=$RANLIB
6573 # Extract the first word of "ranlib", so it can be a program name with args.
6574 set dummy ranlib; ac_word=$2
6575 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6576 $as_echo_n "checking for $ac_word... " >&6; }
6577 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6578 $as_echo_n "(cached) " >&6
6580 if test -n "$ac_ct_RANLIB"; then
6581 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6587 test -z "$as_dir" && as_dir=.
6588 for ac_exec_ext in '' $ac_executable_extensions; do
6589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6590 ac_cv_prog_ac_ct_RANLIB="ranlib"
6591 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6600 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6601 if test -n "$ac_ct_RANLIB"; then
6602 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6603 $as_echo "$ac_ct_RANLIB" >&6; }
6605 { $as_echo "$as_me:$LINENO: result: no" >&5
6606 $as_echo "no" >&6; }
6609 if test "x$ac_ct_RANLIB" = x; then
6612 case $cross_compiling:$ac_tool_warned in
6614 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6616 ac_tool_warned=yes ;;
6618 RANLIB=$ac_ct_RANLIB
6621 RANLIB="$ac_cv_prog_RANLIB"
6624 test -z "$RANLIB" && RANLIB=:
6631 # Determine commands to create old-style static archives.
6632 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6633 old_postinstall_cmds='chmod 644 $oldlib'
6634 old_postuninstall_cmds=
6636 if test -n "$RANLIB"; then
6639 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6642 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6645 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6681 # If no C compiler was specified, use CC.
6684 # If no C compiler flags were specified, use CFLAGS.
6685 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6687 # Allow CC to be a program name with arguments.
6691 # Check for command to grab the raw symbol name followed by C symbol from nm.
6692 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6693 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6694 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6695 $as_echo_n "(cached) " >&6
6698 # These are sane defaults that work on at least a few old systems.
6699 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6701 # Character class describing NM global symbol codes.
6702 symcode='[BCDEGRST]'
6704 # Regexp to match symbols that can be accessed directly from C.
6705 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6707 # Define system-specific variables.
6712 cygwin* | mingw* | pw32* | cegcc*)
6713 symcode='[ABCDGISTW]'
6716 if test "$host_cpu" = ia64; then
6717 symcode='[ABCDEGRST]'
6721 symcode='[BCDEGRST]'
6724 symcode='[BCDEGQRST]'
6735 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6743 # If we're using GNU nm, then use its standard symbol codes.
6744 case `$NM -V 2>&1` in
6745 *GNU* | *'with BFD'*)
6746 symcode='[ABCDGIRSTW]' ;;
6749 # Transform an extracted symbol line into a proper C declaration.
6750 # Some systems (esp. on ia64) link data and code symbols differently,
6751 # so use this general approach.
6752 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6754 # Transform an extracted symbol line into symbol name and symbol address
6755 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6756 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'"
6758 # Handle CRLF in mingw tool chain
6762 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6766 # Try without a prefix underscore, then with it.
6767 for ac_symprfx in "" "_"; do
6769 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6770 symxfrm="\\1 $ac_symprfx\\2 \\2"
6772 # Write the raw and C identifiers.
6773 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6774 # Fake it for dumpbin and say T for any non-static function
6775 # and D for any global variable.
6776 # Also find C++ and __fastcall symbols from MSVC++,
6777 # which start with @ or ?.
6778 lt_cv_sys_global_symbol_pipe="$AWK '"\
6779 " {last_section=section; section=\$ 3};"\
6780 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6781 " \$ 0!~/External *\|/{next};"\
6782 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6783 " {if(hide[section]) next};"\
6784 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6785 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6786 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6787 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6788 " ' prfx=^$ac_symprfx"
6790 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6793 # Check to see that the pipe works correctly.
6797 cat > conftest.$ac_ext <<_LT_EOF
6802 void nm_test_func(void);
6803 void nm_test_func(void){}
6807 int main(){nm_test_var='a';nm_test_func();return(0);}
6810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6811 (eval $ac_compile) 2>&5
6813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); }; then
6815 # Now try to grab the symbols.
6817 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6818 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); } && test -s "$nlist"; then
6822 # Try sorting and uniquifying the output.
6823 if sort "$nlist" | uniq > "$nlist"T; then
6824 mv -f "$nlist"T "$nlist"
6829 # Make sure that we snagged all the symbols we need.
6830 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6831 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6832 cat <<_LT_EOF > conftest.$ac_ext
6838 # Now generate the symbol file.
6839 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6841 cat <<_LT_EOF >> conftest.$ac_ext
6843 /* The mapping between symbol names and symbols. */
6848 lt__PROGRAM__LTX_preloaded_symbols[] =
6850 { "@PROGRAM@", (void *) 0 },
6852 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6853 cat <<\_LT_EOF >> conftest.$ac_ext
6857 /* This works around a problem in FreeBSD linker */
6858 #ifdef FREEBSD_WORKAROUND
6859 static const void *lt_preloaded_setup() {
6860 return lt__PROGRAM__LTX_preloaded_symbols;
6868 # Now try linking the two files.
6869 mv conftest.$ac_objext conftstm.$ac_objext
6870 lt_save_LIBS="$LIBS"
6871 lt_save_CFLAGS="$CFLAGS"
6872 LIBS="conftstm.$ac_objext"
6873 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6875 (eval $ac_link) 2>&5
6877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6881 LIBS="$lt_save_LIBS"
6882 CFLAGS="$lt_save_CFLAGS"
6884 echo "cannot find nm_test_func in $nlist" >&5
6887 echo "cannot find nm_test_var in $nlist" >&5
6890 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6893 echo "$progname: failed program was:" >&5
6894 cat conftest.$ac_ext >&5
6896 rm -rf conftest* conftst*
6898 # Do not use the global_symbol_pipe unless it works.
6899 if test "$pipe_works" = yes; then
6902 lt_cv_sys_global_symbol_pipe=
6908 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6909 lt_cv_sys_global_symbol_to_cdecl=
6911 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6912 { $as_echo "$as_me:$LINENO: result: failed" >&5
6913 $as_echo "failed" >&6; }
6915 { $as_echo "$as_me:$LINENO: result: ok" >&5
6916 $as_echo "ok" >&6; }
6941 # Check whether --enable-libtool-lock was given.
6942 if test "${enable_libtool_lock+set}" = set; then
6943 enableval=$enable_libtool_lock;
6946 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6948 # Some flags need to be propagated to the compiler or linker for good
6952 # Find out which ABI we are using.
6953 echo 'int i;' > conftest.$ac_ext
6954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6955 (eval $ac_compile) 2>&5
6957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958 (exit $ac_status); }; then
6959 case `/usr/bin/file conftest.$ac_objext` in
6971 # Find out which ABI we are using.
6972 echo '#line 6972 "configure"' > conftest.$ac_ext
6973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6974 (eval $ac_compile) 2>&5
6976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); }; then
6978 if test "$lt_cv_prog_gnu_ld" = yes; then
6979 case `/usr/bin/file conftest.$ac_objext` in
6981 LD="${LD-ld} -melf32bsmip"
6984 LD="${LD-ld} -melf32bmipn32"
6987 LD="${LD-ld} -melf64bmip"
6991 case `/usr/bin/file conftest.$ac_objext` in
7007 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7008 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7009 # Find out which ABI we are using.
7010 echo 'int i;' > conftest.$ac_ext
7011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7012 (eval $ac_compile) 2>&5
7014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); }; then
7016 case `/usr/bin/file conftest.o` in
7019 x86_64-*kfreebsd*-gnu)
7020 LD="${LD-ld} -m elf_i386_fbsd"
7023 LD="${LD-ld} -m elf_i386"
7025 ppc64-*linux*|powerpc64-*linux*)
7026 LD="${LD-ld} -m elf32ppclinux"
7029 LD="${LD-ld} -m elf_s390"
7032 LD="${LD-ld} -m elf32_sparc"
7038 x86_64-*kfreebsd*-gnu)
7039 LD="${LD-ld} -m elf_x86_64_fbsd"
7042 LD="${LD-ld} -m elf_x86_64"
7044 ppc*-*linux*|powerpc*-*linux*)
7045 LD="${LD-ld} -m elf64ppc"
7047 s390*-*linux*|s390*-*tpf*)
7048 LD="${LD-ld} -m elf64_s390"
7051 LD="${LD-ld} -m elf64_sparc"
7061 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7062 SAVE_CFLAGS="$CFLAGS"
7063 CFLAGS="$CFLAGS -belf"
7064 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7065 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7066 if test "${lt_cv_cc_needs_belf+set}" = set; then
7067 $as_echo_n "(cached) " >&6
7070 ac_cpp='$CPP $CPPFLAGS'
7071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7075 cat >conftest.$ac_ext <<_ACEOF
7078 cat confdefs.h >>conftest.$ac_ext
7079 cat >>conftest.$ac_ext <<_ACEOF
7080 /* end confdefs.h. */
7090 rm -f conftest.$ac_objext conftest$ac_exeext
7091 if { (ac_try="$ac_link"
7093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7094 *) ac_try_echo=$ac_try;;
7096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7097 $as_echo "$ac_try_echo") >&5
7098 (eval "$ac_link") 2>conftest.er1
7100 grep -v '^ *+' conftest.er1 >conftest.err
7102 cat conftest.err >&5
7103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104 (exit $ac_status); } && {
7105 test -z "$ac_c_werror_flag" ||
7106 test ! -s conftest.err
7107 } && test -s conftest$ac_exeext && {
7108 test "$cross_compiling" = yes ||
7109 $as_test_x conftest$ac_exeext
7111 lt_cv_cc_needs_belf=yes
7113 $as_echo "$as_me: failed program was:" >&5
7114 sed 's/^/| /' conftest.$ac_ext >&5
7116 lt_cv_cc_needs_belf=no
7119 rm -rf conftest.dSYM
7120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7121 conftest$ac_exeext conftest.$ac_ext
7123 ac_cpp='$CPP $CPPFLAGS'
7124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7129 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7130 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7131 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7132 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7133 CFLAGS="$SAVE_CFLAGS"
7137 # Find out which ABI we are using.
7138 echo 'int i;' > conftest.$ac_ext
7139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7140 (eval $ac_compile) 2>&5
7142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143 (exit $ac_status); }; then
7144 case `/usr/bin/file conftest.o` in
7146 case $lt_cv_prog_gnu_ld in
7147 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7149 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7161 need_locks="$enable_libtool_lock"
7165 rhapsody* | darwin*)
7166 if test -n "$ac_tool_prefix"; then
7167 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7168 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7169 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7170 $as_echo_n "checking for $ac_word... " >&6; }
7171 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7172 $as_echo_n "(cached) " >&6
7174 if test -n "$DSYMUTIL"; then
7175 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7181 test -z "$as_dir" && as_dir=.
7182 for ac_exec_ext in '' $ac_executable_extensions; do
7183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7184 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7185 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7194 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7195 if test -n "$DSYMUTIL"; then
7196 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7197 $as_echo "$DSYMUTIL" >&6; }
7199 { $as_echo "$as_me:$LINENO: result: no" >&5
7200 $as_echo "no" >&6; }
7205 if test -z "$ac_cv_prog_DSYMUTIL"; then
7206 ac_ct_DSYMUTIL=$DSYMUTIL
7207 # Extract the first word of "dsymutil", so it can be a program name with args.
7208 set dummy dsymutil; ac_word=$2
7209 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7210 $as_echo_n "checking for $ac_word... " >&6; }
7211 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7212 $as_echo_n "(cached) " >&6
7214 if test -n "$ac_ct_DSYMUTIL"; then
7215 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7221 test -z "$as_dir" && as_dir=.
7222 for ac_exec_ext in '' $ac_executable_extensions; do
7223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7224 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7225 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7234 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7235 if test -n "$ac_ct_DSYMUTIL"; then
7236 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7237 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7239 { $as_echo "$as_me:$LINENO: result: no" >&5
7240 $as_echo "no" >&6; }
7243 if test "x$ac_ct_DSYMUTIL" = x; then
7246 case $cross_compiling:$ac_tool_warned in
7248 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7249 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7250 ac_tool_warned=yes ;;
7252 DSYMUTIL=$ac_ct_DSYMUTIL
7255 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7258 if test -n "$ac_tool_prefix"; then
7259 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7260 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7261 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7262 $as_echo_n "checking for $ac_word... " >&6; }
7263 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7264 $as_echo_n "(cached) " >&6
7266 if test -n "$NMEDIT"; then
7267 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273 test -z "$as_dir" && as_dir=.
7274 for ac_exec_ext in '' $ac_executable_extensions; do
7275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7276 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7277 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7286 NMEDIT=$ac_cv_prog_NMEDIT
7287 if test -n "$NMEDIT"; then
7288 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7289 $as_echo "$NMEDIT" >&6; }
7291 { $as_echo "$as_me:$LINENO: result: no" >&5
7292 $as_echo "no" >&6; }
7297 if test -z "$ac_cv_prog_NMEDIT"; then
7298 ac_ct_NMEDIT=$NMEDIT
7299 # Extract the first word of "nmedit", so it can be a program name with args.
7300 set dummy nmedit; ac_word=$2
7301 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7302 $as_echo_n "checking for $ac_word... " >&6; }
7303 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7304 $as_echo_n "(cached) " >&6
7306 if test -n "$ac_ct_NMEDIT"; then
7307 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7313 test -z "$as_dir" && as_dir=.
7314 for ac_exec_ext in '' $ac_executable_extensions; do
7315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7316 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7317 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7326 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7327 if test -n "$ac_ct_NMEDIT"; then
7328 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7329 $as_echo "$ac_ct_NMEDIT" >&6; }
7331 { $as_echo "$as_me:$LINENO: result: no" >&5
7332 $as_echo "no" >&6; }
7335 if test "x$ac_ct_NMEDIT" = x; then
7338 case $cross_compiling:$ac_tool_warned in
7340 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7341 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7342 ac_tool_warned=yes ;;
7344 NMEDIT=$ac_ct_NMEDIT
7347 NMEDIT="$ac_cv_prog_NMEDIT"
7350 if test -n "$ac_tool_prefix"; then
7351 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7352 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7353 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7354 $as_echo_n "checking for $ac_word... " >&6; }
7355 if test "${ac_cv_prog_LIPO+set}" = set; then
7356 $as_echo_n "(cached) " >&6
7358 if test -n "$LIPO"; then
7359 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365 test -z "$as_dir" && as_dir=.
7366 for ac_exec_ext in '' $ac_executable_extensions; do
7367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7368 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7369 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7378 LIPO=$ac_cv_prog_LIPO
7379 if test -n "$LIPO"; then
7380 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
7381 $as_echo "$LIPO" >&6; }
7383 { $as_echo "$as_me:$LINENO: result: no" >&5
7384 $as_echo "no" >&6; }
7389 if test -z "$ac_cv_prog_LIPO"; then
7391 # Extract the first word of "lipo", so it can be a program name with args.
7392 set dummy lipo; ac_word=$2
7393 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7394 $as_echo_n "checking for $ac_word... " >&6; }
7395 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7396 $as_echo_n "(cached) " >&6
7398 if test -n "$ac_ct_LIPO"; then
7399 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7405 test -z "$as_dir" && as_dir=.
7406 for ac_exec_ext in '' $ac_executable_extensions; do
7407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7408 ac_cv_prog_ac_ct_LIPO="lipo"
7409 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7418 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7419 if test -n "$ac_ct_LIPO"; then
7420 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7421 $as_echo "$ac_ct_LIPO" >&6; }
7423 { $as_echo "$as_me:$LINENO: result: no" >&5
7424 $as_echo "no" >&6; }
7427 if test "x$ac_ct_LIPO" = x; then
7430 case $cross_compiling:$ac_tool_warned in
7432 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7433 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7434 ac_tool_warned=yes ;;
7439 LIPO="$ac_cv_prog_LIPO"
7442 if test -n "$ac_tool_prefix"; then
7443 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7444 set dummy ${ac_tool_prefix}otool; ac_word=$2
7445 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7446 $as_echo_n "checking for $ac_word... " >&6; }
7447 if test "${ac_cv_prog_OTOOL+set}" = set; then
7448 $as_echo_n "(cached) " >&6
7450 if test -n "$OTOOL"; then
7451 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7457 test -z "$as_dir" && as_dir=.
7458 for ac_exec_ext in '' $ac_executable_extensions; do
7459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7460 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7461 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7470 OTOOL=$ac_cv_prog_OTOOL
7471 if test -n "$OTOOL"; then
7472 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
7473 $as_echo "$OTOOL" >&6; }
7475 { $as_echo "$as_me:$LINENO: result: no" >&5
7476 $as_echo "no" >&6; }
7481 if test -z "$ac_cv_prog_OTOOL"; then
7483 # Extract the first word of "otool", so it can be a program name with args.
7484 set dummy otool; ac_word=$2
7485 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7486 $as_echo_n "checking for $ac_word... " >&6; }
7487 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7488 $as_echo_n "(cached) " >&6
7490 if test -n "$ac_ct_OTOOL"; then
7491 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7497 test -z "$as_dir" && as_dir=.
7498 for ac_exec_ext in '' $ac_executable_extensions; do
7499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7500 ac_cv_prog_ac_ct_OTOOL="otool"
7501 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7510 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7511 if test -n "$ac_ct_OTOOL"; then
7512 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7513 $as_echo "$ac_ct_OTOOL" >&6; }
7515 { $as_echo "$as_me:$LINENO: result: no" >&5
7516 $as_echo "no" >&6; }
7519 if test "x$ac_ct_OTOOL" = x; then
7522 case $cross_compiling:$ac_tool_warned in
7524 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7525 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7526 ac_tool_warned=yes ;;
7531 OTOOL="$ac_cv_prog_OTOOL"
7534 if test -n "$ac_tool_prefix"; then
7535 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7536 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7537 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7538 $as_echo_n "checking for $ac_word... " >&6; }
7539 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7540 $as_echo_n "(cached) " >&6
7542 if test -n "$OTOOL64"; then
7543 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7549 test -z "$as_dir" && as_dir=.
7550 for ac_exec_ext in '' $ac_executable_extensions; do
7551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7552 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7553 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7562 OTOOL64=$ac_cv_prog_OTOOL64
7563 if test -n "$OTOOL64"; then
7564 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
7565 $as_echo "$OTOOL64" >&6; }
7567 { $as_echo "$as_me:$LINENO: result: no" >&5
7568 $as_echo "no" >&6; }
7573 if test -z "$ac_cv_prog_OTOOL64"; then
7574 ac_ct_OTOOL64=$OTOOL64
7575 # Extract the first word of "otool64", so it can be a program name with args.
7576 set dummy otool64; ac_word=$2
7577 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7578 $as_echo_n "checking for $ac_word... " >&6; }
7579 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7580 $as_echo_n "(cached) " >&6
7582 if test -n "$ac_ct_OTOOL64"; then
7583 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7589 test -z "$as_dir" && as_dir=.
7590 for ac_exec_ext in '' $ac_executable_extensions; do
7591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7592 ac_cv_prog_ac_ct_OTOOL64="otool64"
7593 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7602 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7603 if test -n "$ac_ct_OTOOL64"; then
7604 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7605 $as_echo "$ac_ct_OTOOL64" >&6; }
7607 { $as_echo "$as_me:$LINENO: result: no" >&5
7608 $as_echo "no" >&6; }
7611 if test "x$ac_ct_OTOOL64" = x; then
7614 case $cross_compiling:$ac_tool_warned in
7616 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7618 ac_tool_warned=yes ;;
7620 OTOOL64=$ac_ct_OTOOL64
7623 OTOOL64="$ac_cv_prog_OTOOL64"
7652 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7653 $as_echo_n "checking for -single_module linker flag... " >&6; }
7654 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7655 $as_echo_n "(cached) " >&6
7657 lt_cv_apple_cc_single_mod=no
7658 if test -z "${LT_MULTI_MODULE}"; then
7659 # By default we will add the -single_module flag. You can override
7660 # by either setting the environment variable LT_MULTI_MODULE
7661 # non-empty at configure time, or by adding -multi_module to the
7663 rm -rf libconftest.dylib*
7664 echo "int foo(void){return 1;}" > conftest.c
7665 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7666 -dynamiclib -Wl,-single_module conftest.c" >&5
7667 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7668 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7670 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7671 lt_cv_apple_cc_single_mod=yes
7673 cat conftest.err >&5
7675 rm -rf libconftest.dylib*
7679 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7680 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7681 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7682 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7683 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7684 $as_echo_n "(cached) " >&6
7686 lt_cv_ld_exported_symbols_list=no
7687 save_LDFLAGS=$LDFLAGS
7688 echo "_main" > conftest.sym
7689 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7690 cat >conftest.$ac_ext <<_ACEOF
7693 cat confdefs.h >>conftest.$ac_ext
7694 cat >>conftest.$ac_ext <<_ACEOF
7695 /* end confdefs.h. */
7705 rm -f conftest.$ac_objext conftest$ac_exeext
7706 if { (ac_try="$ac_link"
7708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7709 *) ac_try_echo=$ac_try;;
7711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7712 $as_echo "$ac_try_echo") >&5
7713 (eval "$ac_link") 2>conftest.er1
7715 grep -v '^ *+' conftest.er1 >conftest.err
7717 cat conftest.err >&5
7718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); } && {
7720 test -z "$ac_c_werror_flag" ||
7721 test ! -s conftest.err
7722 } && test -s conftest$ac_exeext && {
7723 test "$cross_compiling" = yes ||
7724 $as_test_x conftest$ac_exeext
7726 lt_cv_ld_exported_symbols_list=yes
7728 $as_echo "$as_me: failed program was:" >&5
7729 sed 's/^/| /' conftest.$ac_ext >&5
7731 lt_cv_ld_exported_symbols_list=no
7734 rm -rf conftest.dSYM
7735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7736 conftest$ac_exeext conftest.$ac_ext
7737 LDFLAGS="$save_LDFLAGS"
7740 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7741 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7743 rhapsody* | darwin1.[012])
7744 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7746 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7747 darwin*) # darwin 5.x on
7748 # if running on 10.5 or later, the deployment target defaults
7749 # to the OS version, if on x86, and 10.4, the deployment
7750 # target defaults to 10.4. Don't you love it?
7751 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7752 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7753 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7755 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7757 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7761 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7762 _lt_dar_single_mod='$single_module'
7764 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7765 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7767 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7769 if test "$DSYMUTIL" != ":"; then
7770 _lt_dsymutil='~$DSYMUTIL $lib || :'
7778 ac_cpp='$CPP $CPPFLAGS'
7779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7782 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7783 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7784 # On Suns, sometimes $CPP names a directory.
7785 if test -n "$CPP" && test -d "$CPP"; then
7788 if test -z "$CPP"; then
7789 if test "${ac_cv_prog_CPP+set}" = set; then
7790 $as_echo_n "(cached) " >&6
7792 # Double quotes because CPP needs to be expanded
7793 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7796 for ac_c_preproc_warn_flag in '' yes
7798 # Use a header file that comes with gcc, so configuring glibc
7799 # with a fresh cross-compiler works.
7800 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7801 # <limits.h> exists even on freestanding compilers.
7802 # On the NeXT, cc -E runs the code through the compiler's parser,
7803 # not just through cpp. "Syntax error" is here to catch this case.
7804 cat >conftest.$ac_ext <<_ACEOF
7807 cat confdefs.h >>conftest.$ac_ext
7808 cat >>conftest.$ac_ext <<_ACEOF
7809 /* end confdefs.h. */
7811 # include <limits.h>
7813 # include <assert.h>
7817 if { (ac_try="$ac_cpp conftest.$ac_ext"
7819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7820 *) ac_try_echo=$ac_try;;
7822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7823 $as_echo "$ac_try_echo") >&5
7824 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7826 grep -v '^ *+' conftest.er1 >conftest.err
7828 cat conftest.err >&5
7829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830 (exit $ac_status); } >/dev/null && {
7831 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7832 test ! -s conftest.err
7836 $as_echo "$as_me: failed program was:" >&5
7837 sed 's/^/| /' conftest.$ac_ext >&5
7839 # Broken: fails on valid input.
7843 rm -f conftest.err conftest.$ac_ext
7845 # OK, works on sane cases. Now check whether nonexistent headers
7846 # can be detected and how.
7847 cat >conftest.$ac_ext <<_ACEOF
7850 cat confdefs.h >>conftest.$ac_ext
7851 cat >>conftest.$ac_ext <<_ACEOF
7852 /* end confdefs.h. */
7853 #include <ac_nonexistent.h>
7855 if { (ac_try="$ac_cpp conftest.$ac_ext"
7857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7858 *) ac_try_echo=$ac_try;;
7860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7861 $as_echo "$ac_try_echo") >&5
7862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7864 grep -v '^ *+' conftest.er1 >conftest.err
7866 cat conftest.err >&5
7867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7868 (exit $ac_status); } >/dev/null && {
7869 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7870 test ! -s conftest.err
7872 # Broken: success on invalid input.
7875 $as_echo "$as_me: failed program was:" >&5
7876 sed 's/^/| /' conftest.$ac_ext >&5
7878 # Passes both tests.
7883 rm -f conftest.err conftest.$ac_ext
7886 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7887 rm -f conftest.err conftest.$ac_ext
7888 if $ac_preproc_ok; then
7900 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
7901 $as_echo "$CPP" >&6; }
7903 for ac_c_preproc_warn_flag in '' yes
7905 # Use a header file that comes with gcc, so configuring glibc
7906 # with a fresh cross-compiler works.
7907 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7908 # <limits.h> exists even on freestanding compilers.
7909 # On the NeXT, cc -E runs the code through the compiler's parser,
7910 # not just through cpp. "Syntax error" is here to catch this case.
7911 cat >conftest.$ac_ext <<_ACEOF
7914 cat confdefs.h >>conftest.$ac_ext
7915 cat >>conftest.$ac_ext <<_ACEOF
7916 /* end confdefs.h. */
7918 # include <limits.h>
7920 # include <assert.h>
7924 if { (ac_try="$ac_cpp conftest.$ac_ext"
7926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7927 *) ac_try_echo=$ac_try;;
7929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7930 $as_echo "$ac_try_echo") >&5
7931 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7933 grep -v '^ *+' conftest.er1 >conftest.err
7935 cat conftest.err >&5
7936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937 (exit $ac_status); } >/dev/null && {
7938 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7939 test ! -s conftest.err
7943 $as_echo "$as_me: failed program was:" >&5
7944 sed 's/^/| /' conftest.$ac_ext >&5
7946 # Broken: fails on valid input.
7950 rm -f conftest.err conftest.$ac_ext
7952 # OK, works on sane cases. Now check whether nonexistent headers
7953 # can be detected and how.
7954 cat >conftest.$ac_ext <<_ACEOF
7957 cat confdefs.h >>conftest.$ac_ext
7958 cat >>conftest.$ac_ext <<_ACEOF
7959 /* end confdefs.h. */
7960 #include <ac_nonexistent.h>
7962 if { (ac_try="$ac_cpp conftest.$ac_ext"
7964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7965 *) ac_try_echo=$ac_try;;
7967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7968 $as_echo "$ac_try_echo") >&5
7969 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7971 grep -v '^ *+' conftest.er1 >conftest.err
7973 cat conftest.err >&5
7974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 (exit $ac_status); } >/dev/null && {
7976 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7977 test ! -s conftest.err
7979 # Broken: success on invalid input.
7982 $as_echo "$as_me: failed program was:" >&5
7983 sed 's/^/| /' conftest.$ac_ext >&5
7985 # Passes both tests.
7990 rm -f conftest.err conftest.$ac_ext
7993 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7994 rm -f conftest.err conftest.$ac_ext
7995 if $ac_preproc_ok; then
7998 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7999 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8000 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
8001 See \`config.log' for more details." >&5
8002 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
8003 See \`config.log' for more details." >&2;}
8004 { (exit 1); exit 1; }; }; }
8008 ac_cpp='$CPP $CPPFLAGS'
8009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8014 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8015 $as_echo_n "checking for ANSI C header files... " >&6; }
8016 if test "${ac_cv_header_stdc+set}" = set; then
8017 $as_echo_n "(cached) " >&6
8019 cat >conftest.$ac_ext <<_ACEOF
8022 cat confdefs.h >>conftest.$ac_ext
8023 cat >>conftest.$ac_ext <<_ACEOF
8024 /* end confdefs.h. */
8038 rm -f conftest.$ac_objext
8039 if { (ac_try="$ac_compile"
8041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8042 *) ac_try_echo=$ac_try;;
8044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8045 $as_echo "$ac_try_echo") >&5
8046 (eval "$ac_compile") 2>conftest.er1
8048 grep -v '^ *+' conftest.er1 >conftest.err
8050 cat conftest.err >&5
8051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); } && {
8053 test -z "$ac_c_werror_flag" ||
8054 test ! -s conftest.err
8055 } && test -s conftest.$ac_objext; then
8056 ac_cv_header_stdc=yes
8058 $as_echo "$as_me: failed program was:" >&5
8059 sed 's/^/| /' conftest.$ac_ext >&5
8061 ac_cv_header_stdc=no
8064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8066 if test $ac_cv_header_stdc = yes; then
8067 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8068 cat >conftest.$ac_ext <<_ACEOF
8071 cat confdefs.h >>conftest.$ac_ext
8072 cat >>conftest.$ac_ext <<_ACEOF
8073 /* end confdefs.h. */
8077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8078 $EGREP "memchr" >/dev/null 2>&1; then
8081 ac_cv_header_stdc=no
8087 if test $ac_cv_header_stdc = yes; then
8088 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8089 cat >conftest.$ac_ext <<_ACEOF
8092 cat confdefs.h >>conftest.$ac_ext
8093 cat >>conftest.$ac_ext <<_ACEOF
8094 /* end confdefs.h. */
8098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8099 $EGREP "free" >/dev/null 2>&1; then
8102 ac_cv_header_stdc=no
8108 if test $ac_cv_header_stdc = yes; then
8109 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8110 if test "$cross_compiling" = yes; then
8113 cat >conftest.$ac_ext <<_ACEOF
8116 cat confdefs.h >>conftest.$ac_ext
8117 cat >>conftest.$ac_ext <<_ACEOF
8118 /* end confdefs.h. */
8121 #if ((' ' & 0x0FF) == 0x020)
8122 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8123 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8125 # define ISLOWER(c) \
8126 (('a' <= (c) && (c) <= 'i') \
8127 || ('j' <= (c) && (c) <= 'r') \
8128 || ('s' <= (c) && (c) <= 'z'))
8129 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8132 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8137 for (i = 0; i < 256; i++)
8138 if (XOR (islower (i), ISLOWER (i))
8139 || toupper (i) != TOUPPER (i))
8144 rm -f conftest$ac_exeext
8145 if { (ac_try="$ac_link"
8147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8148 *) ac_try_echo=$ac_try;;
8150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8151 $as_echo "$ac_try_echo") >&5
8152 (eval "$ac_link") 2>&5
8154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8156 { (case "(($ac_try" in
8157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8158 *) ac_try_echo=$ac_try;;
8160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8161 $as_echo "$ac_try_echo") >&5
8162 (eval "$ac_try") 2>&5
8164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); }; }; then
8168 $as_echo "$as_me: program exited with status $ac_status" >&5
8169 $as_echo "$as_me: failed program was:" >&5
8170 sed 's/^/| /' conftest.$ac_ext >&5
8173 ac_cv_header_stdc=no
8175 rm -rf conftest.dSYM
8176 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8182 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8183 $as_echo "$ac_cv_header_stdc" >&6; }
8184 if test $ac_cv_header_stdc = yes; then
8186 cat >>confdefs.h <<\_ACEOF
8187 #define STDC_HEADERS 1
8192 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8202 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8203 inttypes.h stdint.h unistd.h
8205 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8206 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8207 $as_echo_n "checking for $ac_header... " >&6; }
8208 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8209 $as_echo_n "(cached) " >&6
8211 cat >conftest.$ac_ext <<_ACEOF
8214 cat confdefs.h >>conftest.$ac_ext
8215 cat >>conftest.$ac_ext <<_ACEOF
8216 /* end confdefs.h. */
8217 $ac_includes_default
8219 #include <$ac_header>
8221 rm -f conftest.$ac_objext
8222 if { (ac_try="$ac_compile"
8224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8225 *) ac_try_echo=$ac_try;;
8227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8228 $as_echo "$ac_try_echo") >&5
8229 (eval "$ac_compile") 2>conftest.er1
8231 grep -v '^ *+' conftest.er1 >conftest.err
8233 cat conftest.err >&5
8234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 (exit $ac_status); } && {
8236 test -z "$ac_c_werror_flag" ||
8237 test ! -s conftest.err
8238 } && test -s conftest.$ac_objext; then
8239 eval "$as_ac_Header=yes"
8241 $as_echo "$as_me: failed program was:" >&5
8242 sed 's/^/| /' conftest.$ac_ext >&5
8244 eval "$as_ac_Header=no"
8247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8249 ac_res=`eval 'as_val=${'$as_ac_Header'}
8250 $as_echo "$as_val"'`
8251 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8252 $as_echo "$ac_res" >&6; }
8253 as_val=`eval 'as_val=${'$as_ac_Header'}
8254 $as_echo "$as_val"'`
8255 if test "x$as_val" = x""yes; then
8256 cat >>confdefs.h <<_ACEOF
8257 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8266 for ac_header in dlfcn.h
8268 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8269 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8270 $as_echo_n "checking for $ac_header... " >&6; }
8271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8272 $as_echo_n "(cached) " >&6
8274 cat >conftest.$ac_ext <<_ACEOF
8277 cat confdefs.h >>conftest.$ac_ext
8278 cat >>conftest.$ac_ext <<_ACEOF
8279 /* end confdefs.h. */
8280 $ac_includes_default
8282 #include <$ac_header>
8284 rm -f conftest.$ac_objext
8285 if { (ac_try="$ac_compile"
8287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8288 *) ac_try_echo=$ac_try;;
8290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8291 $as_echo "$ac_try_echo") >&5
8292 (eval "$ac_compile") 2>conftest.er1
8294 grep -v '^ *+' conftest.er1 >conftest.err
8296 cat conftest.err >&5
8297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); } && {
8299 test -z "$ac_c_werror_flag" ||
8300 test ! -s conftest.err
8301 } && test -s conftest.$ac_objext; then
8302 eval "$as_ac_Header=yes"
8304 $as_echo "$as_me: failed program was:" >&5
8305 sed 's/^/| /' conftest.$ac_ext >&5
8307 eval "$as_ac_Header=no"
8310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8312 ac_res=`eval 'as_val=${'$as_ac_Header'}
8313 $as_echo "$as_val"'`
8314 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8315 $as_echo "$ac_res" >&6; }
8316 as_val=`eval 'as_val=${'$as_ac_Header'}
8317 $as_echo "$as_val"'`
8318 if test "x$as_val" = x""yes; then
8319 cat >>confdefs.h <<_ACEOF
8320 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8339 # Check whether --enable-shared was given.
8340 if test "${enable_shared+set}" = set; then
8341 enableval=$enable_shared; p=${PACKAGE-default}
8343 yes) enable_shared=yes ;;
8344 no) enable_shared=no ;;
8347 # Look at the argument we got. We use all the common list separators.
8348 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8349 for pkg in $enableval; do
8351 if test "X$pkg" = "X$p"; then
8370 # Check whether --enable-static was given.
8371 if test "${enable_static+set}" = set; then
8372 enableval=$enable_static; p=${PACKAGE-default}
8374 yes) enable_static=yes ;;
8375 no) enable_static=no ;;
8378 # Look at the argument we got. We use all the common list separators.
8379 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8380 for pkg in $enableval; do
8382 if test "X$pkg" = "X$p"; then
8402 # Check whether --with-pic was given.
8403 if test "${with_pic+set}" = set; then
8404 withval=$with_pic; pic_mode="$withval"
8410 test -z "$pic_mode" && pic_mode=default
8418 # Check whether --enable-fast-install was given.
8419 if test "${enable_fast_install+set}" = set; then
8420 enableval=$enable_fast_install; p=${PACKAGE-default}
8422 yes) enable_fast_install=yes ;;
8423 no) enable_fast_install=no ;;
8425 enable_fast_install=no
8426 # Look at the argument we got. We use all the common list separators.
8427 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8428 for pkg in $enableval; do
8430 if test "X$pkg" = "X$p"; then
8431 enable_fast_install=yes
8438 enable_fast_install=yes
8451 # This can be used to rebuild libtool when needed
8452 LIBTOOL_DEPS="$ltmain"
8454 # Always use our own libtool.
8455 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8481 test -z "$LN_S" && LN_S="ln -s"
8496 if test -n "${ZSH_VERSION+set}" ; then
8497 setopt NO_GLOB_SUBST
8500 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
8501 $as_echo_n "checking for objdir... " >&6; }
8502 if test "${lt_cv_objdir+set}" = set; then
8503 $as_echo_n "(cached) " >&6
8505 rm -f .libs 2>/dev/null
8506 mkdir .libs 2>/dev/null
8507 if test -d .libs; then
8510 # MS-DOS does not allow filenames that begin with a dot.
8513 rmdir .libs 2>/dev/null
8515 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8516 $as_echo "$lt_cv_objdir" >&6; }
8517 objdir=$lt_cv_objdir
8523 cat >>confdefs.h <<_ACEOF
8524 #define LT_OBJDIR "$lt_cv_objdir/"
8545 # AIX sometimes has problems with the GCC collect2 program. For some
8546 # reason, if we set the COLLECT_NAMES environment variable, the problems
8547 # vanish in a puff of smoke.
8548 if test "X${COLLECT_NAMES+set}" != Xset; then
8550 export COLLECT_NAMES
8555 # Sed substitution that helps us do robust quoting. It backslashifies
8556 # metacharacters that are still active within double-quoted strings.
8557 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8559 # Same as above, but do not quote variable references.
8560 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8562 # Sed substitution to delay expansion of an escaped shell variable in a
8563 # double_quote_subst'ed string.
8564 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8566 # Sed substitution to delay expansion of an escaped single quote.
8567 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8569 # Sed substitution to avoid accidental globbing in evaled expressions
8570 no_glob_subst='s/\*/\\\*/g'
8574 can_build_shared=yes
8576 # All known linkers require a `.a' archive for static linking (except MSVC,
8577 # which needs '.lib').
8580 with_gnu_ld="$lt_cv_prog_gnu_ld"
8583 old_CFLAGS="$CFLAGS"
8585 # Set sane defaults for various variables
8586 test -z "$CC" && CC=cc
8587 test -z "$LTCC" && LTCC=$CC
8588 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8589 test -z "$LD" && LD=ld
8590 test -z "$ac_objext" && ac_objext=o
8592 for cc_temp in $compiler""; do
8594 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8595 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8600 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8603 # Only perform the check for file, if the check method requires it
8604 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8605 case $deplibs_check_method in
8607 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8608 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8609 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8610 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8611 $as_echo_n "(cached) " >&6
8615 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8618 lt_save_MAGIC_CMD="$MAGIC_CMD"
8619 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8620 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8621 for ac_dir in $ac_dummy; do
8623 test -z "$ac_dir" && ac_dir=.
8624 if test -f $ac_dir/${ac_tool_prefix}file; then
8625 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8626 if test -n "$file_magic_test_file"; then
8627 case $deplibs_check_method in
8629 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8630 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8631 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8632 $EGREP "$file_magic_regex" > /dev/null; then
8637 *** Warning: the command libtool uses to detect shared libraries,
8638 *** $file_magic_cmd, produces output that libtool cannot recognize.
8639 *** The result is that libtool may fail to recognize shared libraries
8640 *** as such. This will affect the creation of libtool libraries that
8641 *** depend on shared libraries, but programs linked with such libtool
8642 *** libraries will work regardless of this problem. Nevertheless, you
8643 *** may want to report the problem to your system manager and/or to
8644 *** bug-libtool@gnu.org
8654 MAGIC_CMD="$lt_save_MAGIC_CMD"
8659 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8660 if test -n "$MAGIC_CMD"; then
8661 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8662 $as_echo "$MAGIC_CMD" >&6; }
8664 { $as_echo "$as_me:$LINENO: result: no" >&5
8665 $as_echo "no" >&6; }
8672 if test -z "$lt_cv_path_MAGIC_CMD"; then
8673 if test -n "$ac_tool_prefix"; then
8674 { $as_echo "$as_me:$LINENO: checking for file" >&5
8675 $as_echo_n "checking for file... " >&6; }
8676 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8677 $as_echo_n "(cached) " >&6
8681 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8684 lt_save_MAGIC_CMD="$MAGIC_CMD"
8685 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8686 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8687 for ac_dir in $ac_dummy; do
8689 test -z "$ac_dir" && ac_dir=.
8690 if test -f $ac_dir/file; then
8691 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8692 if test -n "$file_magic_test_file"; then
8693 case $deplibs_check_method in
8695 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8696 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8697 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8698 $EGREP "$file_magic_regex" > /dev/null; then
8703 *** Warning: the command libtool uses to detect shared libraries,
8704 *** $file_magic_cmd, produces output that libtool cannot recognize.
8705 *** The result is that libtool may fail to recognize shared libraries
8706 *** as such. This will affect the creation of libtool libraries that
8707 *** depend on shared libraries, but programs linked with such libtool
8708 *** libraries will work regardless of this problem. Nevertheless, you
8709 *** may want to report the problem to your system manager and/or to
8710 *** bug-libtool@gnu.org
8720 MAGIC_CMD="$lt_save_MAGIC_CMD"
8725 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8726 if test -n "$MAGIC_CMD"; then
8727 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8728 $as_echo "$MAGIC_CMD" >&6; }
8730 { $as_echo "$as_me:$LINENO: result: no" >&5
8731 $as_echo "no" >&6; }
8744 # Use C for the default configuration in the libtool script
8748 ac_cpp='$CPP $CPPFLAGS'
8749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8754 # Source file extension for C test sources.
8757 # Object file extension for compiled C test sources.
8761 # Code to be used in simple compile tests
8762 lt_simple_compile_test_code="int some_variable = 0;"
8764 # Code to be used in simple link tests
8765 lt_simple_link_test_code='int main(){return(0);}'
8773 # If no C compiler was specified, use CC.
8776 # If no C compiler flags were specified, use CFLAGS.
8777 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8779 # Allow CC to be a program name with arguments.
8782 # Save the default compiler, since it gets overwritten when the other
8783 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8784 compiler_DEFAULT=$CC
8786 # save warnings/boilerplate of simple test code
8787 ac_outfile=conftest.$ac_objext
8788 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8789 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8790 _lt_compiler_boilerplate=`cat conftest.err`
8793 ac_outfile=conftest.$ac_objext
8794 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8795 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8796 _lt_linker_boilerplate=`cat conftest.err`
8801 ## There is no encapsulation within the following macros, do not change
8802 ## the running order or otherwise move them around unless you know exactly
8803 ## what you are doing...
8804 if test -n "$compiler"; then
8806 lt_prog_compiler_no_builtin_flag=
8808 if test "$GCC" = yes; then
8809 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8811 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8812 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8813 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8814 $as_echo_n "(cached) " >&6
8816 lt_cv_prog_compiler_rtti_exceptions=no
8817 ac_outfile=conftest.$ac_objext
8818 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8819 lt_compiler_flag="-fno-rtti -fno-exceptions"
8820 # Insert the option either (1) after the last *FLAGS variable, or
8821 # (2) before a word containing "conftest.", or (3) at the end.
8822 # Note that $ac_compile itself does not contain backslashes and begins
8823 # with a dollar sign (not a hyphen), so the echo should work correctly.
8824 # The option is referenced via a variable to avoid confusing sed.
8825 lt_compile=`echo "$ac_compile" | $SED \
8826 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8827 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8828 -e 's:$: $lt_compiler_flag:'`
8829 (eval echo "\"\$as_me:8829: $lt_compile\"" >&5)
8830 (eval "$lt_compile" 2>conftest.err)
8832 cat conftest.err >&5
8833 echo "$as_me:8833: \$? = $ac_status" >&5
8834 if (exit $ac_status) && test -s "$ac_outfile"; then
8835 # The compiler can only warn and ignore the option if not recognized
8836 # So say no if there are warnings other than the usual output.
8837 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8838 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8839 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8840 lt_cv_prog_compiler_rtti_exceptions=yes
8846 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8847 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8849 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8850 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8862 lt_prog_compiler_wl=
8863 lt_prog_compiler_pic=
8864 lt_prog_compiler_static=
8866 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8867 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8869 if test "$GCC" = yes; then
8870 lt_prog_compiler_wl='-Wl,'
8871 lt_prog_compiler_static='-static'
8875 # All AIX code is PIC.
8876 if test "$host_cpu" = ia64; then
8877 # AIX 5 now supports IA64 processor
8878 lt_prog_compiler_static='-Bstatic'
8885 # see comment about AmigaOS4 .so support
8886 lt_prog_compiler_pic='-fPIC'
8889 # FIXME: we need at least 68020 code to build shared libraries, but
8890 # adding the `-m68020' flag to GCC prevents building anything better,
8892 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8897 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8898 # PIC is the default for these OSes.
8901 mingw* | cygwin* | pw32* | os2* | cegcc*)
8902 # This hack is so that the source file can tell whether it is being
8903 # built for inclusion in a dll (and should export symbols for example).
8904 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8905 # (--disable-auto-import) libraries
8906 lt_prog_compiler_pic='-DDLL_EXPORT'
8909 darwin* | rhapsody*)
8910 # PIC is the default on this platform
8911 # Common symbols not allowed in MH_DYLIB files
8912 lt_prog_compiler_pic='-fno-common'
8916 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8917 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8918 # sets the default TLS model and affects inlining.
8924 lt_prog_compiler_pic='-fPIC'
8930 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8931 # Instead, we relocate shared libraries at runtime.
8935 # Just because we use GCC doesn't mean we suddenly get shared libraries
8936 # on systems that don't support them.
8937 lt_prog_compiler_can_build_shared=no
8942 # QNX uses GNU C++, but need to define -shared option too, otherwise
8944 lt_prog_compiler_pic='-fPIC -shared'
8948 if test -d /usr/nec; then
8949 lt_prog_compiler_pic=-Kconform_pic
8954 lt_prog_compiler_pic='-fPIC'
8958 # PORTME Check for flag to pass linker flags through the system compiler.
8961 lt_prog_compiler_wl='-Wl,'
8962 if test "$host_cpu" = ia64; then
8963 # AIX 5 now supports IA64 processor
8964 lt_prog_compiler_static='-Bstatic'
8966 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8970 mingw* | cygwin* | pw32* | os2* | cegcc*)
8971 # This hack is so that the source file can tell whether it is being
8972 # built for inclusion in a dll (and should export symbols for example).
8973 lt_prog_compiler_pic='-DDLL_EXPORT'
8976 hpux9* | hpux10* | hpux11*)
8977 lt_prog_compiler_wl='-Wl,'
8978 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8985 lt_prog_compiler_pic='+Z'
8988 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8989 lt_prog_compiler_static='${wl}-a ${wl}archive'
8992 irix5* | irix6* | nonstopux*)
8993 lt_prog_compiler_wl='-Wl,'
8994 # PIC (with -KPIC) is the default.
8995 lt_prog_compiler_static='-non_shared'
8998 linux* | k*bsd*-gnu)
8999 case $cc_basename in
9000 # old Intel for x86_64 which still supported -KPIC.
9002 lt_prog_compiler_wl='-Wl,'
9003 lt_prog_compiler_pic='-KPIC'
9004 lt_prog_compiler_static='-static'
9006 # icc used to be incompatible with GCC.
9007 # ICC 10 doesn't accept -KPIC any more.
9009 lt_prog_compiler_wl='-Wl,'
9010 lt_prog_compiler_pic='-fPIC'
9011 lt_prog_compiler_static='-static'
9013 # Lahey Fortran 8.1.
9015 lt_prog_compiler_wl='-Wl,'
9016 lt_prog_compiler_pic='--shared'
9017 lt_prog_compiler_static='--static'
9019 pgcc* | pgf77* | pgf90* | pgf95*)
9020 # Portland Group compilers (*not* the Pentium gcc compiler,
9021 # which looks to be a dead project)
9022 lt_prog_compiler_wl='-Wl,'
9023 lt_prog_compiler_pic='-fpic'
9024 lt_prog_compiler_static='-Bstatic'
9027 lt_prog_compiler_wl='-Wl,'
9028 # All Alpha code is PIC.
9029 lt_prog_compiler_static='-non_shared'
9032 # IBM XL C 8.0/Fortran 10.1 on PPC
9033 lt_prog_compiler_wl='-Wl,'
9034 lt_prog_compiler_pic='-qpic'
9035 lt_prog_compiler_static='-qstaticlink'
9038 case `$CC -V 2>&1 | sed 5q` in
9041 lt_prog_compiler_pic='-KPIC'
9042 lt_prog_compiler_static='-Bstatic'
9043 lt_prog_compiler_wl='-Wl,'
9046 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9047 lt_prog_compiler_pic='-KPIC'
9048 lt_prog_compiler_static='-Bstatic'
9049 lt_prog_compiler_wl=''
9057 lt_prog_compiler_pic='-KPIC'
9058 lt_prog_compiler_static='-Bstatic'
9062 # QNX uses GNU C++, but need to define -shared option too, otherwise
9064 lt_prog_compiler_pic='-fPIC -shared'
9067 osf3* | osf4* | osf5*)
9068 lt_prog_compiler_wl='-Wl,'
9069 # All OSF/1 code is PIC.
9070 lt_prog_compiler_static='-non_shared'
9074 lt_prog_compiler_static='-non_shared'
9078 lt_prog_compiler_pic='-KPIC'
9079 lt_prog_compiler_static='-Bstatic'
9080 case $cc_basename in
9082 lt_prog_compiler_wl='-Qoption ld ';;
9084 lt_prog_compiler_wl='-Wl,';;
9089 lt_prog_compiler_wl='-Qoption ld '
9090 lt_prog_compiler_pic='-PIC'
9091 lt_prog_compiler_static='-Bstatic'
9094 sysv4 | sysv4.2uw2* | sysv4.3*)
9095 lt_prog_compiler_wl='-Wl,'
9096 lt_prog_compiler_pic='-KPIC'
9097 lt_prog_compiler_static='-Bstatic'
9101 if test -d /usr/nec ;then
9102 lt_prog_compiler_pic='-Kconform_pic'
9103 lt_prog_compiler_static='-Bstatic'
9107 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9108 lt_prog_compiler_wl='-Wl,'
9109 lt_prog_compiler_pic='-KPIC'
9110 lt_prog_compiler_static='-Bstatic'
9114 lt_prog_compiler_wl='-Wl,'
9115 lt_prog_compiler_can_build_shared=no
9119 lt_prog_compiler_pic='-pic'
9120 lt_prog_compiler_static='-Bstatic'
9124 lt_prog_compiler_can_build_shared=no
9130 # For platforms which do not support PIC, -DPIC is meaningless:
9132 lt_prog_compiler_pic=
9135 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9138 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9139 $as_echo "$lt_prog_compiler_pic" >&6; }
9147 # Check to make sure the PIC flag actually works.
9149 if test -n "$lt_prog_compiler_pic"; then
9150 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9151 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9152 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9153 $as_echo_n "(cached) " >&6
9155 lt_cv_prog_compiler_pic_works=no
9156 ac_outfile=conftest.$ac_objext
9157 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9158 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9159 # Insert the option either (1) after the last *FLAGS variable, or
9160 # (2) before a word containing "conftest.", or (3) at the end.
9161 # Note that $ac_compile itself does not contain backslashes and begins
9162 # with a dollar sign (not a hyphen), so the echo should work correctly.
9163 # The option is referenced via a variable to avoid confusing sed.
9164 lt_compile=`echo "$ac_compile" | $SED \
9165 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9166 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9167 -e 's:$: $lt_compiler_flag:'`
9168 (eval echo "\"\$as_me:9168: $lt_compile\"" >&5)
9169 (eval "$lt_compile" 2>conftest.err)
9171 cat conftest.err >&5
9172 echo "$as_me:9172: \$? = $ac_status" >&5
9173 if (exit $ac_status) && test -s "$ac_outfile"; then
9174 # The compiler can only warn and ignore the option if not recognized
9175 # So say no if there are warnings other than the usual output.
9176 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9177 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9178 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9179 lt_cv_prog_compiler_pic_works=yes
9185 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9186 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9188 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9189 case $lt_prog_compiler_pic in
9191 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9194 lt_prog_compiler_pic=
9195 lt_prog_compiler_can_build_shared=no
9206 # Check to make sure the static flag actually works.
9208 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9209 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9210 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9211 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9212 $as_echo_n "(cached) " >&6
9214 lt_cv_prog_compiler_static_works=no
9215 save_LDFLAGS="$LDFLAGS"
9216 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9217 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9218 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9219 # The linker can only warn and ignore the option if not recognized
9220 # So say no if there are warnings
9221 if test -s conftest.err; then
9222 # Append any errors to the config.log.
9223 cat conftest.err 1>&5
9224 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9225 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9226 if diff conftest.exp conftest.er2 >/dev/null; then
9227 lt_cv_prog_compiler_static_works=yes
9230 lt_cv_prog_compiler_static_works=yes
9234 LDFLAGS="$save_LDFLAGS"
9237 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9238 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9240 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9243 lt_prog_compiler_static=
9252 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9253 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9254 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9255 $as_echo_n "(cached) " >&6
9257 lt_cv_prog_compiler_c_o=no
9258 $RM -r conftest 2>/dev/null
9262 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9264 lt_compiler_flag="-o out/conftest2.$ac_objext"
9265 # Insert the option either (1) after the last *FLAGS variable, or
9266 # (2) before a word containing "conftest.", or (3) at the end.
9267 # Note that $ac_compile itself does not contain backslashes and begins
9268 # with a dollar sign (not a hyphen), so the echo should work correctly.
9269 lt_compile=`echo "$ac_compile" | $SED \
9270 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9271 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9272 -e 's:$: $lt_compiler_flag:'`
9273 (eval echo "\"\$as_me:9273: $lt_compile\"" >&5)
9274 (eval "$lt_compile" 2>out/conftest.err)
9276 cat out/conftest.err >&5
9277 echo "$as_me:9277: \$? = $ac_status" >&5
9278 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9280 # The compiler can only warn and ignore the option if not recognized
9281 # So say no if there are warnings
9282 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9283 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9284 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9285 lt_cv_prog_compiler_c_o=yes
9290 # SGI C++ compiler will create directory out/ii_files/ for
9291 # template instantiation
9292 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9293 $RM out/* && rmdir out
9299 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9300 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9307 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9308 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9309 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9310 $as_echo_n "(cached) " >&6
9312 lt_cv_prog_compiler_c_o=no
9313 $RM -r conftest 2>/dev/null
9317 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9319 lt_compiler_flag="-o out/conftest2.$ac_objext"
9320 # Insert the option either (1) after the last *FLAGS variable, or
9321 # (2) before a word containing "conftest.", or (3) at the end.
9322 # Note that $ac_compile itself does not contain backslashes and begins
9323 # with a dollar sign (not a hyphen), so the echo should work correctly.
9324 lt_compile=`echo "$ac_compile" | $SED \
9325 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9326 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9327 -e 's:$: $lt_compiler_flag:'`
9328 (eval echo "\"\$as_me:9328: $lt_compile\"" >&5)
9329 (eval "$lt_compile" 2>out/conftest.err)
9331 cat out/conftest.err >&5
9332 echo "$as_me:9332: \$? = $ac_status" >&5
9333 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9335 # The compiler can only warn and ignore the option if not recognized
9336 # So say no if there are warnings
9337 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9338 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9339 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9340 lt_cv_prog_compiler_c_o=yes
9345 # SGI C++ compiler will create directory out/ii_files/ for
9346 # template instantiation
9347 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9348 $RM out/* && rmdir out
9354 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9355 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9360 hard_links="nottested"
9361 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9362 # do not overwrite the value of need_locks provided by the user
9363 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9364 $as_echo_n "checking if we can lock with hard links... " >&6; }
9367 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9369 ln conftest.a conftest.b 2>&5 || hard_links=no
9370 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9371 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
9372 $as_echo "$hard_links" >&6; }
9373 if test "$hard_links" = no; then
9374 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9375 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9387 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9388 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9391 allow_undefined_flag=
9392 always_export_symbols=no
9394 archive_expsym_cmds=
9395 compiler_needs_object=no
9396 enable_shared_with_static_runtimes=no
9397 export_dynamic_flag_spec=
9398 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9399 hardcode_automatic=no
9401 hardcode_direct_absolute=no
9402 hardcode_libdir_flag_spec=
9403 hardcode_libdir_flag_spec_ld=
9404 hardcode_libdir_separator=
9406 hardcode_shlibpath_var=unsupported
9408 link_all_deplibs=unknown
9411 old_archive_from_new_cmds=
9412 old_archive_from_expsyms_cmds=
9413 thread_safe_flag_spec=
9414 whole_archive_flag_spec=
9415 # include_expsyms should be a list of space-separated symbols to be *always*
9416 # included in the symbol list
9418 # exclude_expsyms can be an extended regexp of symbols to exclude
9419 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9420 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9421 # as well as any symbol that contains `d'.
9422 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9423 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9424 # platforms (ab)use it in PIC code, but their linkers get confused if
9425 # the symbol is explicitly referenced. Since portable code cannot
9426 # rely on this symbol name, it's probably fine to never include it in
9427 # preloaded symbol tables.
9428 # Exclude shared library initialization/finalization symbols.
9429 extract_expsyms_cmds=
9432 cygwin* | mingw* | pw32* | cegcc*)
9433 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9434 # When not using gcc, we currently assume that we are using
9435 # Microsoft Visual C++.
9436 if test "$GCC" != yes; then
9441 # we just hope/assume this is gcc and not c89 (= MSVC++)
9450 if test "$with_gnu_ld" = yes; then
9451 # If archive_cmds runs LD, not CC, wlarc should be empty
9454 # Set some defaults for GNU ld with shared library support. These
9455 # are reset later if shared libraries are not supported. Putting them
9456 # here allows them to be overridden if necessary.
9457 runpath_var=LD_RUN_PATH
9458 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9459 export_dynamic_flag_spec='${wl}--export-dynamic'
9460 # ancient GNU ld didn't support --whole-archive et. al.
9461 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9462 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9464 whole_archive_flag_spec=
9466 supports_anon_versioning=no
9467 case `$LD -v 2>&1` in
9468 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9469 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9470 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9471 *\ 2.11.*) ;; # other 2.11 versions
9472 *) supports_anon_versioning=yes ;;
9475 # See if GNU ld supports shared libraries.
9478 # On AIX/PPC, the GNU linker is very broken
9479 if test "$host_cpu" != ia64; then
9483 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9484 *** to be unable to reliably create shared libraries on AIX.
9485 *** Therefore, libtool is disabling shared libraries support. If you
9486 *** really care for shared libraries, you may want to modify your PATH
9487 *** so that a non-GNU linker is found, and then restart.
9496 # see comment about AmigaOS4 .so support
9497 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9498 archive_expsym_cmds=''
9501 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)'
9502 hardcode_libdir_flag_spec='-L$libdir'
9503 hardcode_minus_L=yes
9509 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9510 allow_undefined_flag=unsupported
9511 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9512 # support --undefined. This deserves some investigation. FIXME
9513 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9519 cygwin* | mingw* | pw32* | cegcc*)
9520 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9521 # as there is no search path for DLLs.
9522 hardcode_libdir_flag_spec='-L$libdir'
9523 allow_undefined_flag=unsupported
9524 always_export_symbols=no
9525 enable_shared_with_static_runtimes=yes
9526 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9528 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9529 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9530 # If the export-symbols file already is a .def file (1st line
9531 # is EXPORTS), use it as is; otherwise, prepend...
9532 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9533 cp $export_symbols $output_objdir/$soname.def;
9535 echo EXPORTS > $output_objdir/$soname.def;
9536 cat $export_symbols >> $output_objdir/$soname.def;
9538 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9546 hardcode_shlibpath_var=no
9547 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9548 export_dynamic_flag_spec='${wl}-E'
9549 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9550 # Instead, shared libraries are loaded at an image base (0x10000000 by
9551 # default) and relocated if they conflict, which is a slow very memory
9552 # consuming and fragmenting process. To avoid this, we pick a random,
9553 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9554 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9555 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9556 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'
9559 gnu* | linux* | tpf* | k*bsd*-gnu)
9561 if test "$host_os" = linux-dietlibc; then
9562 case $cc_basename in
9563 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9566 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9567 && test "$tmp_diet" = no
9570 tmp_sharedflag='-shared'
9571 case $cc_basename,$host_cpu in
9572 pgcc*) # Portland Group C compiler
9573 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9574 tmp_addflag=' $pic_flag'
9576 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9577 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9578 tmp_addflag=' $pic_flag -Mnomain' ;;
9579 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9580 tmp_addflag=' -i_dynamic' ;;
9581 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9582 tmp_addflag=' -i_dynamic -nofor_main' ;;
9583 ifc* | ifort*) # Intel Fortran compiler
9584 tmp_addflag=' -nofor_main' ;;
9585 lf95*) # Lahey Fortran 8.1
9586 whole_archive_flag_spec=
9587 tmp_sharedflag='--shared' ;;
9588 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9589 tmp_sharedflag='-qmkshrobj'
9592 case `$CC -V 2>&1 | sed 5q` in
9593 *Sun\ C*) # Sun C 5.9
9594 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9595 compiler_needs_object=yes
9596 tmp_sharedflag='-G' ;;
9597 *Sun\ F*) # Sun Fortran 8.3
9598 tmp_sharedflag='-G' ;;
9600 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9602 if test "x$supports_anon_versioning" = xyes; then
9603 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9604 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9605 echo "local: *; };" >> $output_objdir/$libname.ver~
9606 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9609 case $cc_basename in
9611 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9612 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9613 hardcode_libdir_flag_spec=
9614 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9615 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9616 if test "x$supports_anon_versioning" = xyes; then
9617 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9618 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9619 echo "local: *; };" >> $output_objdir/$libname.ver~
9620 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9630 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9631 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9634 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9635 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9640 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9644 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9645 *** create shared libraries on Solaris systems. Therefore, libtool
9646 *** is disabling shared libraries support. We urge you to upgrade GNU
9647 *** binutils to release 2.9.1 or newer. Another option is to modify
9648 *** your PATH or compiler configuration so that the native linker is
9649 *** used, and then restart.
9652 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9653 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9654 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9660 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9661 case `$LD -v 2>&1` in
9662 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9666 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9667 *** reliably create shared libraries on SCO systems. Therefore, libtool
9668 *** is disabling shared libraries support. We urge you to upgrade GNU
9669 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9670 *** your PATH or compiler configuration so that the native linker is
9671 *** used, and then restart.
9676 # For security reasons, it is highly recommended that you always
9677 # use absolute paths for naming shared libraries, and exclude the
9678 # DT_RUNPATH tag from executables and libraries. But doing so
9679 # requires that you compile everything twice, which is a pain.
9680 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9681 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9682 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9683 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9692 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9695 hardcode_shlibpath_var=no
9699 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9700 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9701 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9708 if test "$ld_shlibs" = no; then
9710 hardcode_libdir_flag_spec=
9711 export_dynamic_flag_spec=
9712 whole_archive_flag_spec=
9715 # PORTME fill in a description of your system's linker (not GNU ld)
9718 allow_undefined_flag=unsupported
9719 always_export_symbols=yes
9720 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'
9721 # Note: this linker hardcodes the directories in LIBPATH if there
9722 # are no directories specified by -L.
9723 hardcode_minus_L=yes
9724 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9725 # Neither direct hardcoding nor static linking is supported with a
9727 hardcode_direct=unsupported
9732 if test "$host_cpu" = ia64; then
9733 # On IA64, the linker does run time linking by default, so we don't
9734 # have to do anything special.
9735 aix_use_runtimelinking=no
9736 exp_sym_flag='-Bexport'
9739 # If we're using GNU nm, then we don't want the "-C" option.
9740 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9741 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9742 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9744 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'
9746 aix_use_runtimelinking=no
9748 # Test if we are trying to use run time linking or normal
9749 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9750 # need to do runtime linking.
9751 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9752 for ld_flag in $LDFLAGS; do
9753 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9754 aix_use_runtimelinking=yes
9761 exp_sym_flag='-bexport'
9762 no_entry_flag='-bnoentry'
9765 # When large executables or shared objects are built, AIX ld can
9766 # have problems creating the table of contents. If linking a library
9767 # or program results in "error TOC overflow" add -mminimal-toc to
9768 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9769 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9773 hardcode_direct_absolute=yes
9774 hardcode_libdir_separator=':'
9775 link_all_deplibs=yes
9776 file_list_spec='${wl}-f,'
9778 if test "$GCC" = yes; then
9779 case $host_os in aix4.[012]|aix4.[012].*)
9780 # We only want to do this on AIX 4.2 and lower, the check
9781 # below for broken collect2 doesn't work under 4.3+
9782 collect2name=`${CC} -print-prog-name=collect2`
9783 if test -f "$collect2name" &&
9784 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9786 # We have reworked collect2
9789 # We have old collect2
9790 hardcode_direct=unsupported
9791 # It fails to find uninstalled libraries when the uninstalled
9792 # path is not listed in the libpath. Setting hardcode_minus_L
9793 # to unsupported forces relinking
9794 hardcode_minus_L=yes
9795 hardcode_libdir_flag_spec='-L$libdir'
9796 hardcode_libdir_separator=
9800 shared_flag='-shared'
9801 if test "$aix_use_runtimelinking" = yes; then
9802 shared_flag="$shared_flag "'${wl}-G'
9806 if test "$host_cpu" = ia64; then
9807 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9808 # chokes on -Wl,-G. The following line is correct:
9811 if test "$aix_use_runtimelinking" = yes; then
9812 shared_flag='${wl}-G'
9814 shared_flag='${wl}-bM:SRE'
9819 export_dynamic_flag_spec='${wl}-bexpall'
9820 # It seems that -bexpall does not export symbols beginning with
9821 # underscore (_), so it is better to generate a list of symbols to export.
9822 always_export_symbols=yes
9823 if test "$aix_use_runtimelinking" = yes; then
9824 # Warning - without using the other runtime loading flags (-brtl),
9825 # -berok will link without error, but may produce a broken library.
9826 allow_undefined_flag='-berok'
9827 # Determine the default libpath from the value encoded in an
9829 cat >conftest.$ac_ext <<_ACEOF
9832 cat confdefs.h >>conftest.$ac_ext
9833 cat >>conftest.$ac_ext <<_ACEOF
9834 /* end confdefs.h. */
9844 rm -f conftest.$ac_objext conftest$ac_exeext
9845 if { (ac_try="$ac_link"
9847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9848 *) ac_try_echo=$ac_try;;
9850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9851 $as_echo "$ac_try_echo") >&5
9852 (eval "$ac_link") 2>conftest.er1
9854 grep -v '^ *+' conftest.er1 >conftest.err
9856 cat conftest.err >&5
9857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); } && {
9859 test -z "$ac_c_werror_flag" ||
9860 test ! -s conftest.err
9861 } && test -s conftest$ac_exeext && {
9862 test "$cross_compiling" = yes ||
9863 $as_test_x conftest$ac_exeext
9866 lt_aix_libpath_sed='
9867 /Import File Strings/,/^$/ {
9873 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9874 # Check for a 64-bit object if we didn't find anything.
9875 if test -z "$aix_libpath"; then
9876 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9879 $as_echo "$as_me: failed program was:" >&5
9880 sed 's/^/| /' conftest.$ac_ext >&5
9885 rm -rf conftest.dSYM
9886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9887 conftest$ac_exeext conftest.$ac_ext
9888 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9890 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9891 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9893 if test "$host_cpu" = ia64; then
9894 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9895 allow_undefined_flag="-z nodefs"
9896 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"
9898 # Determine the default libpath from the value encoded in an
9900 cat >conftest.$ac_ext <<_ACEOF
9903 cat confdefs.h >>conftest.$ac_ext
9904 cat >>conftest.$ac_ext <<_ACEOF
9905 /* end confdefs.h. */
9915 rm -f conftest.$ac_objext conftest$ac_exeext
9916 if { (ac_try="$ac_link"
9918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9919 *) ac_try_echo=$ac_try;;
9921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9922 $as_echo "$ac_try_echo") >&5
9923 (eval "$ac_link") 2>conftest.er1
9925 grep -v '^ *+' conftest.er1 >conftest.err
9927 cat conftest.err >&5
9928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929 (exit $ac_status); } && {
9930 test -z "$ac_c_werror_flag" ||
9931 test ! -s conftest.err
9932 } && test -s conftest$ac_exeext && {
9933 test "$cross_compiling" = yes ||
9934 $as_test_x conftest$ac_exeext
9937 lt_aix_libpath_sed='
9938 /Import File Strings/,/^$/ {
9944 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9945 # Check for a 64-bit object if we didn't find anything.
9946 if test -z "$aix_libpath"; then
9947 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9950 $as_echo "$as_me: failed program was:" >&5
9951 sed 's/^/| /' conftest.$ac_ext >&5
9956 rm -rf conftest.dSYM
9957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9958 conftest$ac_exeext conftest.$ac_ext
9959 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9961 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9962 # Warning - without using the other run time loading flags,
9963 # -berok will link without error, but may produce a broken library.
9964 no_undefined_flag=' ${wl}-bernotok'
9965 allow_undefined_flag=' ${wl}-berok'
9966 # Exported symbols can be pulled into shared objects from archives
9967 whole_archive_flag_spec='$convenience'
9968 archive_cmds_need_lc=yes
9969 # This is similar to how AIX traditionally builds its shared libraries.
9970 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'
9978 # see comment about AmigaOS4 .so support
9979 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9980 archive_expsym_cmds=''
9983 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)'
9984 hardcode_libdir_flag_spec='-L$libdir'
9985 hardcode_minus_L=yes
9991 export_dynamic_flag_spec=-rdynamic
9994 cygwin* | mingw* | pw32* | cegcc*)
9995 # When not using gcc, we currently assume that we are using
9996 # Microsoft Visual C++.
9997 # hardcode_libdir_flag_spec is actually meaningless, as there is
9998 # no search path for DLLs.
9999 hardcode_libdir_flag_spec=' '
10000 allow_undefined_flag=unsupported
10001 # Tell ltmain to make .lib files, not .a files.
10003 # Tell ltmain to make .dll files, not .so files.
10005 # FIXME: Setting linknames here is a bad hack.
10006 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10007 # The linker will automatically build a .lib file if we build a DLL.
10008 old_archive_from_new_cmds='true'
10009 # FIXME: Should let the user specify the lib program.
10010 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10011 fix_srcfile_path='`cygpath -w "$srcfile"`'
10012 enable_shared_with_static_runtimes=yes
10015 darwin* | rhapsody*)
10018 archive_cmds_need_lc=no
10020 hardcode_automatic=yes
10021 hardcode_shlibpath_var=unsupported
10022 whole_archive_flag_spec=''
10023 link_all_deplibs=yes
10024 allow_undefined_flag="$_lt_dar_allow_undefined"
10025 case $cc_basename in
10026 ifort*) _lt_dar_can_shared=yes ;;
10027 *) _lt_dar_can_shared=$GCC ;;
10029 if test "$_lt_dar_can_shared" = "yes"; then
10030 output_verbose_link_cmd=echo
10031 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10032 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10033 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}"
10034 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}"
10043 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10044 hardcode_libdir_flag_spec='-L$libdir'
10045 hardcode_shlibpath_var=no
10052 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10053 # support. Future versions do this automatically, but an explicit c++rt0.o
10054 # does not break anything, and helps significantly (at the cost of a little
10057 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10058 hardcode_libdir_flag_spec='-R$libdir'
10059 hardcode_direct=yes
10060 hardcode_shlibpath_var=no
10063 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10065 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10066 hardcode_direct=yes
10067 hardcode_minus_L=yes
10068 hardcode_shlibpath_var=no
10071 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10072 freebsd* | dragonfly*)
10073 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10074 hardcode_libdir_flag_spec='-R$libdir'
10075 hardcode_direct=yes
10076 hardcode_shlibpath_var=no
10080 if test "$GCC" = yes; then
10081 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10083 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'
10085 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10086 hardcode_libdir_separator=:
10087 hardcode_direct=yes
10089 # hardcode_minus_L: Not really in the search PATH,
10090 # but as the default location of the library.
10091 hardcode_minus_L=yes
10092 export_dynamic_flag_spec='${wl}-E'
10096 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10097 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10099 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10101 if test "$with_gnu_ld" = no; then
10102 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10103 hardcode_libdir_flag_spec_ld='+b $libdir'
10104 hardcode_libdir_separator=:
10105 hardcode_direct=yes
10106 hardcode_direct_absolute=yes
10107 export_dynamic_flag_spec='${wl}-E'
10108 # hardcode_minus_L: Not really in the search PATH,
10109 # but as the default location of the library.
10110 hardcode_minus_L=yes
10115 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10118 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10121 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10124 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10130 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10133 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10136 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10140 if test "$with_gnu_ld" = no; then
10141 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10142 hardcode_libdir_separator=:
10147 hardcode_shlibpath_var=no
10150 hardcode_direct=yes
10151 hardcode_direct_absolute=yes
10152 export_dynamic_flag_spec='${wl}-E'
10154 # hardcode_minus_L: Not really in the search PATH,
10155 # but as the default location of the library.
10156 hardcode_minus_L=yes
10162 irix5* | irix6* | nonstopux*)
10163 if test "$GCC" = yes; then
10164 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10165 # Try to use the -exported_symbol ld option, if it does not
10166 # work, assume that -exports_file does not work either and
10167 # implicitly export all symbols.
10168 save_LDFLAGS="$LDFLAGS"
10169 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10170 cat >conftest.$ac_ext <<_ACEOF
10173 rm -f conftest.$ac_objext conftest$ac_exeext
10174 if { (ac_try="$ac_link"
10175 case "(($ac_try" in
10176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10177 *) ac_try_echo=$ac_try;;
10179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10180 $as_echo "$ac_try_echo") >&5
10181 (eval "$ac_link") 2>conftest.er1
10183 grep -v '^ *+' conftest.er1 >conftest.err
10185 cat conftest.err >&5
10186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187 (exit $ac_status); } && {
10188 test -z "$ac_c_werror_flag" ||
10189 test ! -s conftest.err
10190 } && test -s conftest$ac_exeext && {
10191 test "$cross_compiling" = yes ||
10192 $as_test_x conftest$ac_exeext
10194 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10197 $as_echo "$as_me: failed program was:" >&5
10198 sed 's/^/| /' conftest.$ac_ext >&5
10203 rm -rf conftest.dSYM
10204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10205 conftest$ac_exeext conftest.$ac_ext
10206 LDFLAGS="$save_LDFLAGS"
10208 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10209 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10211 archive_cmds_need_lc='no'
10212 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10213 hardcode_libdir_separator=:
10215 link_all_deplibs=yes
10219 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10220 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10222 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10224 hardcode_libdir_flag_spec='-R$libdir'
10225 hardcode_direct=yes
10226 hardcode_shlibpath_var=no
10230 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10231 hardcode_direct=yes
10232 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10233 hardcode_libdir_separator=:
10234 hardcode_shlibpath_var=no
10241 if test -f /usr/libexec/ld.so; then
10242 hardcode_direct=yes
10243 hardcode_shlibpath_var=no
10244 hardcode_direct_absolute=yes
10245 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10246 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10247 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10248 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10249 export_dynamic_flag_spec='${wl}-E'
10252 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10253 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10254 hardcode_libdir_flag_spec='-R$libdir'
10257 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10258 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10268 hardcode_libdir_flag_spec='-L$libdir'
10269 hardcode_minus_L=yes
10270 allow_undefined_flag=unsupported
10271 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'
10272 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10276 if test "$GCC" = yes; then
10277 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10278 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10280 allow_undefined_flag=' -expect_unresolved \*'
10281 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10283 archive_cmds_need_lc='no'
10284 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10285 hardcode_libdir_separator=:
10288 osf4* | osf5*) # as osf3* with the addition of -msym flag
10289 if test "$GCC" = yes; then
10290 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10291 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10292 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10294 allow_undefined_flag=' -expect_unresolved \*'
10295 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10296 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~
10297 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10299 # Both c and cxx compiler support -rpath directly
10300 hardcode_libdir_flag_spec='-rpath $libdir'
10302 archive_cmds_need_lc='no'
10303 hardcode_libdir_separator=:
10307 no_undefined_flag=' -z defs'
10308 if test "$GCC" = yes; then
10310 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10311 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10312 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10314 case `$CC -V 2>&1` in
10317 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10318 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10319 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10323 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10324 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10325 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10329 hardcode_libdir_flag_spec='-R$libdir'
10330 hardcode_shlibpath_var=no
10332 solaris2.[0-5] | solaris2.[0-5].*) ;;
10334 # The compiler driver will combine and reorder linker options,
10335 # but understands `-z linker_flag'. GCC discards it without `$wl',
10336 # but is careful enough not to reorder.
10337 # Supported since Solaris 2.6 (maybe 2.5.1?)
10338 if test "$GCC" = yes; then
10339 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10341 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10345 link_all_deplibs=yes
10349 if test "x$host_vendor" = xsequent; then
10350 # Use $CC to link under sequent, because it throws in some extra .o
10351 # files that make .init and .fini sections work.
10352 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10354 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10356 hardcode_libdir_flag_spec='-L$libdir'
10357 hardcode_direct=yes
10358 hardcode_minus_L=yes
10359 hardcode_shlibpath_var=no
10363 case $host_vendor in
10365 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10366 hardcode_direct=yes # is this really true???
10369 ## LD is ld it makes a PLAMLIB
10370 ## CC just makes a GrossModule.
10371 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10372 reload_cmds='$CC -r -o $output$reload_objs'
10376 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10377 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10380 runpath_var='LD_RUN_PATH'
10381 hardcode_shlibpath_var=no
10385 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10386 hardcode_shlibpath_var=no
10387 export_dynamic_flag_spec='-Bexport'
10391 if test -d /usr/nec; then
10392 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10393 hardcode_shlibpath_var=no
10394 runpath_var=LD_RUN_PATH
10395 hardcode_runpath_var=yes
10400 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10401 no_undefined_flag='${wl}-z,text'
10402 archive_cmds_need_lc=no
10403 hardcode_shlibpath_var=no
10404 runpath_var='LD_RUN_PATH'
10406 if test "$GCC" = yes; then
10407 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10408 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10410 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10411 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10415 sysv5* | sco3.2v5* | sco5v6*)
10416 # Note: We can NOT use -z defs as we might desire, because we do not
10417 # link with -lc, and that would cause any symbols used from libc to
10418 # always be unresolved, which means just about no library would
10419 # ever link correctly. If we're not using GNU ld we use -z text
10420 # though, which does catch some bad symbols but isn't as heavy-handed
10422 no_undefined_flag='${wl}-z,text'
10423 allow_undefined_flag='${wl}-z,nodefs'
10424 archive_cmds_need_lc=no
10425 hardcode_shlibpath_var=no
10426 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10427 hardcode_libdir_separator=':'
10428 link_all_deplibs=yes
10429 export_dynamic_flag_spec='${wl}-Bexport'
10430 runpath_var='LD_RUN_PATH'
10432 if test "$GCC" = yes; then
10433 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10434 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10436 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10437 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10442 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10443 hardcode_libdir_flag_spec='-L$libdir'
10444 hardcode_shlibpath_var=no
10452 if test x$host_vendor = xsni; then
10454 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10455 export_dynamic_flag_spec='${wl}-Blargedynsym'
10461 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10462 $as_echo "$ld_shlibs" >&6; }
10463 test "$ld_shlibs" = no && can_build_shared=no
10465 with_gnu_ld=$with_gnu_ld
10482 # Do we need to explicitly link libc?
10484 case "x$archive_cmds_need_lc" in
10486 # Assume -lc should be added
10487 archive_cmds_need_lc=yes
10489 if test "$enable_shared" = yes && test "$GCC" = yes; then
10490 case $archive_cmds in
10492 # FIXME: we may have to deal with multi-command sequences.
10495 # Test whether the compiler implicitly links with -lc since on some
10496 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10497 # to ld, don't add -lc before -lgcc.
10498 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10499 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10501 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10504 (eval $ac_compile) 2>&5
10506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); } 2>conftest.err; then
10510 libobjs=conftest.$ac_objext
10512 wl=$lt_prog_compiler_wl
10513 pic_flag=$lt_prog_compiler_pic
10519 lt_save_allow_undefined_flag=$allow_undefined_flag
10520 allow_undefined_flag=
10521 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10522 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525 (exit $ac_status); }
10527 archive_cmds_need_lc=no
10529 archive_cmds_need_lc=yes
10531 allow_undefined_flag=$lt_save_allow_undefined_flag
10533 cat conftest.err 1>&5
10536 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10537 $as_echo "$archive_cmds_need_lc" >&6; }
10700 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10701 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10703 if test "$GCC" = yes; then
10705 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10706 *) lt_awk_arg="/^libraries:/" ;;
10708 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10709 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10710 # if the path contains ";" then we assume it to be the separator
10711 # otherwise default to the standard path separator (i.e. ":") - it is
10712 # assumed that no part of a normal pathname contains ";" but that should
10713 # okay in the real world where ";" in dirpaths is itself problematic.
10714 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10716 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10718 # Ok, now we have the path, separated by spaces, we can step through it
10719 # and add multilib dir if necessary.
10720 lt_tmp_lt_search_path_spec=
10721 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10722 for lt_sys_path in $lt_search_path_spec; do
10723 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10724 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10726 test -d "$lt_sys_path" && \
10727 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10730 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10731 BEGIN {RS=" "; FS="/|\n";} {
10734 for (lt_i = NF; lt_i > 0; lt_i--) {
10735 if ($lt_i != "" && $lt_i != ".") {
10736 if ($lt_i == "..") {
10739 if (lt_count == 0) {
10740 lt_foo="/" $lt_i lt_foo;
10747 if (lt_foo != "") { lt_freq[lt_foo]++; }
10748 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10750 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10752 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10754 library_names_spec=
10755 libname_spec='lib$name'
10759 postuninstall_cmds=
10763 shlibpath_overrides_runpath=unknown
10765 dynamic_linker="$host_os ld.so"
10766 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10767 need_lib_prefix=unknown
10768 hardcode_into_libs=no
10770 # when you set need_version to no, make sure it does not cause -set_version
10771 # flags to be left without arguments
10772 need_version=unknown
10777 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10778 shlibpath_var=LIBPATH
10780 # AIX 3 has no versioning support, so we append a major version to the name.
10781 soname_spec='${libname}${release}${shared_ext}$major'
10788 hardcode_into_libs=yes
10789 if test "$host_cpu" = ia64; then
10790 # AIX 5 supports IA64
10791 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10792 shlibpath_var=LD_LIBRARY_PATH
10794 # With GCC up to 2.95.x, collect2 would create an import file
10795 # for dependence libraries. The import file would start with
10796 # the line `#! .'. This would cause the generated library to
10797 # depend on `.', always an invalid library. This was fixed in
10798 # development snapshots of GCC prior to 3.0.
10800 aix4 | aix4.[01] | aix4.[01].*)
10801 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10803 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10806 can_build_shared=no
10810 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10811 # soname into executable. Probably we can add versioning support to
10812 # collect2, so additional links can be useful in future.
10813 if test "$aix_use_runtimelinking" = yes; then
10814 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10815 # instead of lib<name>.a to let people know that these are not
10816 # typical AIX shared libraries.
10817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10819 # We preserve .a as extension for shared libraries through AIX4.2
10820 # and later when we are not doing run time linking.
10821 library_names_spec='${libname}${release}.a $libname.a'
10822 soname_spec='${libname}${release}${shared_ext}$major'
10824 shlibpath_var=LIBPATH
10831 # Since July 2007 AmigaOS4 officially supports .so libraries.
10832 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10836 library_names_spec='$libname.ixlibrary $libname.a'
10837 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10838 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
10844 library_names_spec='${libname}${shared_ext}'
10845 dynamic_linker="$host_os ld.so"
10846 shlibpath_var=LIBRARY_PATH
10852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10853 soname_spec='${libname}${release}${shared_ext}$major'
10854 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10855 shlibpath_var=LD_LIBRARY_PATH
10856 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10857 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10858 # the default ld.so.conf also contains /usr/contrib/lib and
10859 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10860 # libtool to hard-code these into programs
10863 cygwin* | mingw* | pw32* | cegcc*)
10864 version_type=windows
10869 case $GCC,$host_os in
10870 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10871 library_names_spec='$libname.dll.a'
10872 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10873 postinstall_cmds='base_file=`basename \${file}`~
10874 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10875 dldir=$destdir/`dirname \$dlpath`~
10876 test -d \$dldir || mkdir -p \$dldir~
10877 $install_prog $dir/$dlname \$dldir/$dlname~
10878 chmod a+x \$dldir/$dlname~
10879 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10880 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10882 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10883 dlpath=$dir/\$dldll~
10885 shlibpath_overrides_runpath=yes
10889 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10890 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10891 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10894 # MinGW DLLs use traditional 'lib' prefix
10895 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10896 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10897 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10898 # It is most probably a Windows format PATH printed by
10899 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10900 # path with ; separators, and with drive letters. We can handle the
10901 # drive letters (cygwin fileutils understands them), so leave them,
10902 # especially as we might pass files found there to a mingw objdump,
10903 # which wouldn't understand a cygwinified path. Ahh.
10904 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10906 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10910 # pw32 DLLs use 'pw' prefix rather than 'lib'
10911 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10917 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10920 dynamic_linker='Win32 ld.exe'
10921 # FIXME: first we should search . and the directory the executable is in
10925 darwin* | rhapsody*)
10926 dynamic_linker="$host_os dyld"
10927 version_type=darwin
10930 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10931 soname_spec='${libname}${release}${major}$shared_ext'
10932 shlibpath_overrides_runpath=yes
10933 shlibpath_var=DYLD_LIBRARY_PATH
10934 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10936 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10937 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10945 soname_spec='${libname}${release}${shared_ext}$major'
10946 shlibpath_var=LD_LIBRARY_PATH
10953 freebsd* | dragonfly*)
10954 # DragonFly does not have aout. When/if they implement a new
10955 # versioning mechanism, adjust this.
10956 if test -x /usr/bin/objformat; then
10957 objformat=`/usr/bin/objformat`
10960 freebsd[123]*) objformat=aout ;;
10961 *) objformat=elf ;;
10964 version_type=freebsd-$objformat
10965 case $version_type in
10967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10972 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10976 shlibpath_var=LD_LIBRARY_PATH
10979 shlibpath_overrides_runpath=yes
10981 freebsd3.[01]* | freebsdelf3.[01]*)
10982 shlibpath_overrides_runpath=yes
10983 hardcode_into_libs=yes
10985 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10986 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10987 shlibpath_overrides_runpath=no
10988 hardcode_into_libs=yes
10990 *) # from 4.6 on, and DragonFly
10991 shlibpath_overrides_runpath=yes
10992 hardcode_into_libs=yes
11001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11002 soname_spec='${libname}${release}${shared_ext}$major'
11003 shlibpath_var=LD_LIBRARY_PATH
11004 hardcode_into_libs=yes
11007 hpux9* | hpux10* | hpux11*)
11008 # Give a soname corresponding to the major version so that dld.sl refuses to
11009 # link against other versions.
11016 hardcode_into_libs=yes
11017 dynamic_linker="$host_os dld.so"
11018 shlibpath_var=LD_LIBRARY_PATH
11019 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11021 soname_spec='${libname}${release}${shared_ext}$major'
11022 if test "X$HPUX_IA64_MODE" = X32; then
11023 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11025 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11027 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11031 hardcode_into_libs=yes
11032 dynamic_linker="$host_os dld.sl"
11033 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11034 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11036 soname_spec='${libname}${release}${shared_ext}$major'
11037 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11038 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11042 dynamic_linker="$host_os dld.sl"
11043 shlibpath_var=SHLIB_PATH
11044 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11046 soname_spec='${libname}${release}${shared_ext}$major'
11049 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11050 postinstall_cmds='chmod 555 $lib'
11057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11058 soname_spec='${libname}${release}${shared_ext}$major'
11059 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11060 shlibpath_var=LD_LIBRARY_PATH
11061 shlibpath_overrides_runpath=no
11062 hardcode_into_libs=yes
11065 irix5* | irix6* | nonstopux*)
11067 nonstopux*) version_type=nonstopux ;;
11069 if test "$lt_cv_prog_gnu_ld" = yes; then
11077 soname_spec='${libname}${release}${shared_ext}$major'
11078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11080 irix5* | nonstopux*)
11081 libsuff= shlibsuff=
11084 case $LD in # libtool.m4 will add one of these switches to LD
11085 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11086 libsuff= shlibsuff= libmagic=32-bit;;
11087 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11088 libsuff=32 shlibsuff=N32 libmagic=N32;;
11089 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11090 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11091 *) libsuff= shlibsuff= libmagic=never-match;;
11095 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11096 shlibpath_overrides_runpath=no
11097 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11098 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11099 hardcode_into_libs=yes
11102 # No shared lib support for Linux oldld, aout, or coff.
11103 linux*oldld* | linux*aout* | linux*coff*)
11107 # This must be Linux ELF.
11108 linux* | k*bsd*-gnu)
11112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11113 soname_spec='${libname}${release}${shared_ext}$major'
11114 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11115 shlibpath_var=LD_LIBRARY_PATH
11116 shlibpath_overrides_runpath=no
11117 # Some binutils ld are patched to set DT_RUNPATH
11118 save_LDFLAGS=$LDFLAGS
11119 save_libdir=$libdir
11120 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11121 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11122 cat >conftest.$ac_ext <<_ACEOF
11125 cat confdefs.h >>conftest.$ac_ext
11126 cat >>conftest.$ac_ext <<_ACEOF
11127 /* end confdefs.h. */
11137 rm -f conftest.$ac_objext conftest$ac_exeext
11138 if { (ac_try="$ac_link"
11139 case "(($ac_try" in
11140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11141 *) ac_try_echo=$ac_try;;
11143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11144 $as_echo "$ac_try_echo") >&5
11145 (eval "$ac_link") 2>conftest.er1
11147 grep -v '^ *+' conftest.er1 >conftest.err
11149 cat conftest.err >&5
11150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 (exit $ac_status); } && {
11152 test -z "$ac_c_werror_flag" ||
11153 test ! -s conftest.err
11154 } && test -s conftest$ac_exeext && {
11155 test "$cross_compiling" = yes ||
11156 $as_test_x conftest$ac_exeext
11158 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11159 shlibpath_overrides_runpath=yes
11163 $as_echo "$as_me: failed program was:" >&5
11164 sed 's/^/| /' conftest.$ac_ext >&5
11169 rm -rf conftest.dSYM
11170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11171 conftest$ac_exeext conftest.$ac_ext
11172 LDFLAGS=$save_LDFLAGS
11173 libdir=$save_libdir
11175 # This implies no fast_install, which is unacceptable.
11176 # Some rework will be needed to allow for fast_install
11177 # before this can be enabled.
11178 hardcode_into_libs=yes
11180 # Add ABI-specific directories to the system library path.
11181 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11183 # Append ld.so.conf contents to the search path
11184 if test -f /etc/ld.so.conf; then
11185 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;/^$/d' | tr '\n' ' '`
11186 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11189 # We used to test for /lib/ld.so.1 and disable shared libraries on
11190 # powerpc, because MkLinux only supported shared libraries with the
11191 # GNU dynamic linker. Since this was broken with cross compilers,
11192 # most powerpc-linux boxes support dynamic linking these days and
11193 # people can always --disable-shared, the test was removed, and we
11194 # assume the GNU/Linux dynamic linker is in use.
11195 dynamic_linker='GNU/Linux ld.so'
11202 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11204 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11205 dynamic_linker='NetBSD (a.out) ld.so'
11207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11208 soname_spec='${libname}${release}${shared_ext}$major'
11209 dynamic_linker='NetBSD ld.elf_so'
11211 shlibpath_var=LD_LIBRARY_PATH
11212 shlibpath_overrides_runpath=yes
11213 hardcode_into_libs=yes
11218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11219 shlibpath_var=LD_LIBRARY_PATH
11220 shlibpath_overrides_runpath=yes
11227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11228 soname_spec='${libname}${release}${shared_ext}$major'
11229 shlibpath_var=LD_LIBRARY_PATH
11230 shlibpath_overrides_runpath=no
11231 hardcode_into_libs=yes
11232 dynamic_linker='ldqnx.so'
11237 sys_lib_dlsearch_path_spec="/usr/lib"
11239 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11241 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11242 *) need_version=no ;;
11244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11245 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11246 shlibpath_var=LD_LIBRARY_PATH
11247 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11249 openbsd2.[89] | openbsd2.[89].*)
11250 shlibpath_overrides_runpath=no
11253 shlibpath_overrides_runpath=yes
11257 shlibpath_overrides_runpath=yes
11262 libname_spec='$name'
11265 library_names_spec='$libname${shared_ext} $libname.a'
11266 dynamic_linker='OS/2 ld.exe'
11267 shlibpath_var=LIBPATH
11270 osf3* | osf4* | osf5*)
11274 soname_spec='${libname}${release}${shared_ext}$major'
11275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11276 shlibpath_var=LD_LIBRARY_PATH
11277 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11278 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11290 soname_spec='${libname}${release}${shared_ext}$major'
11291 shlibpath_var=LD_LIBRARY_PATH
11292 shlibpath_overrides_runpath=yes
11293 hardcode_into_libs=yes
11294 # ldd complains unless libraries are executable
11295 postinstall_cmds='chmod +x $lib'
11300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11301 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11302 shlibpath_var=LD_LIBRARY_PATH
11303 shlibpath_overrides_runpath=yes
11304 if test "$with_gnu_ld" = yes; then
11312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11313 soname_spec='${libname}${release}${shared_ext}$major'
11314 shlibpath_var=LD_LIBRARY_PATH
11315 case $host_vendor in
11317 shlibpath_overrides_runpath=no
11319 runpath_var=LD_RUN_PATH
11327 shlibpath_overrides_runpath=no
11328 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11334 if test -d /usr/nec ;then
11336 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11337 soname_spec='$libname${shared_ext}.$major'
11338 shlibpath_var=LD_LIBRARY_PATH
11342 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11343 version_type=freebsd-elf
11346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11347 soname_spec='${libname}${release}${shared_ext}$major'
11348 shlibpath_var=LD_LIBRARY_PATH
11349 shlibpath_overrides_runpath=yes
11350 hardcode_into_libs=yes
11351 if test "$with_gnu_ld" = yes; then
11352 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11354 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11357 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11361 sys_lib_dlsearch_path_spec='/usr/lib'
11365 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11370 shlibpath_var=LD_LIBRARY_PATH
11371 shlibpath_overrides_runpath=no
11372 hardcode_into_libs=yes
11377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11378 soname_spec='${libname}${release}${shared_ext}$major'
11379 shlibpath_var=LD_LIBRARY_PATH
11386 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11387 $as_echo "$dynamic_linker" >&6; }
11388 test "$dynamic_linker" = no && can_build_shared=no
11390 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11391 if test "$GCC" = yes; then
11392 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11395 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11396 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11398 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11399 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11488 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11489 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11491 if test -n "$hardcode_libdir_flag_spec" ||
11492 test -n "$runpath_var" ||
11493 test "X$hardcode_automatic" = "Xyes" ; then
11495 # We can hardcode non-existent directories.
11496 if test "$hardcode_direct" != no &&
11497 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11498 # have to relink, otherwise we might link with an installed library
11499 # when we should be linking with a yet-to-be-installed one
11500 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11501 test "$hardcode_minus_L" != no; then
11502 # Linking always hardcodes the temporary library directory.
11503 hardcode_action=relink
11505 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11506 hardcode_action=immediate
11509 # We cannot hardcode anything, or else we can only hardcode existing
11511 hardcode_action=unsupported
11513 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
11514 $as_echo "$hardcode_action" >&6; }
11516 if test "$hardcode_action" = relink ||
11517 test "$inherit_rpath" = yes; then
11518 # Fast installation is not supported
11519 enable_fast_install=no
11520 elif test "$shlibpath_overrides_runpath" = yes ||
11521 test "$enable_shared" = no; then
11522 # Fast installation is not necessary
11523 enable_fast_install=needless
11531 if test "x$enable_dlopen" != xyes; then
11532 enable_dlopen=unknown
11533 enable_dlopen_self=unknown
11534 enable_dlopen_self_static=unknown
11541 lt_cv_dlopen="load_add_on"
11543 lt_cv_dlopen_self=yes
11546 mingw* | pw32* | cegcc*)
11547 lt_cv_dlopen="LoadLibrary"
11552 lt_cv_dlopen="dlopen"
11557 # if libdl is installed we need to link against it
11558 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11559 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11560 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11561 $as_echo_n "(cached) " >&6
11563 ac_check_lib_save_LIBS=$LIBS
11565 cat >conftest.$ac_ext <<_ACEOF
11568 cat confdefs.h >>conftest.$ac_ext
11569 cat >>conftest.$ac_ext <<_ACEOF
11570 /* end confdefs.h. */
11572 /* Override any GCC internal prototype to avoid an error.
11573 Use char because int might match the return type of a GCC
11574 builtin and then its argument prototype would still apply. */
11587 rm -f conftest.$ac_objext conftest$ac_exeext
11588 if { (ac_try="$ac_link"
11589 case "(($ac_try" in
11590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11591 *) ac_try_echo=$ac_try;;
11593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11594 $as_echo "$ac_try_echo") >&5
11595 (eval "$ac_link") 2>conftest.er1
11597 grep -v '^ *+' conftest.er1 >conftest.err
11599 cat conftest.err >&5
11600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601 (exit $ac_status); } && {
11602 test -z "$ac_c_werror_flag" ||
11603 test ! -s conftest.err
11604 } && test -s conftest$ac_exeext && {
11605 test "$cross_compiling" = yes ||
11606 $as_test_x conftest$ac_exeext
11608 ac_cv_lib_dl_dlopen=yes
11610 $as_echo "$as_me: failed program was:" >&5
11611 sed 's/^/| /' conftest.$ac_ext >&5
11613 ac_cv_lib_dl_dlopen=no
11616 rm -rf conftest.dSYM
11617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11618 conftest$ac_exeext conftest.$ac_ext
11619 LIBS=$ac_check_lib_save_LIBS
11621 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11622 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11623 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11624 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11627 lt_cv_dlopen="dyld"
11629 lt_cv_dlopen_self=yes
11636 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11637 $as_echo_n "checking for shl_load... " >&6; }
11638 if test "${ac_cv_func_shl_load+set}" = set; then
11639 $as_echo_n "(cached) " >&6
11641 cat >conftest.$ac_ext <<_ACEOF
11644 cat confdefs.h >>conftest.$ac_ext
11645 cat >>conftest.$ac_ext <<_ACEOF
11646 /* end confdefs.h. */
11647 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11649 #define shl_load innocuous_shl_load
11651 /* System header to define __stub macros and hopefully few prototypes,
11652 which can conflict with char shl_load (); below.
11653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11654 <limits.h> exists even on freestanding compilers. */
11657 # include <limits.h>
11659 # include <assert.h>
11664 /* Override any GCC internal prototype to avoid an error.
11665 Use char because int might match the return type of a GCC
11666 builtin and then its argument prototype would still apply. */
11671 /* The GNU C library defines this for functions which it implements
11672 to always fail with ENOSYS. Some functions are actually named
11673 something starting with __ and the normal name is an alias. */
11674 #if defined __stub_shl_load || defined __stub___shl_load
11681 return shl_load ();
11686 rm -f conftest.$ac_objext conftest$ac_exeext
11687 if { (ac_try="$ac_link"
11688 case "(($ac_try" in
11689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11690 *) ac_try_echo=$ac_try;;
11692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11693 $as_echo "$ac_try_echo") >&5
11694 (eval "$ac_link") 2>conftest.er1
11696 grep -v '^ *+' conftest.er1 >conftest.err
11698 cat conftest.err >&5
11699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700 (exit $ac_status); } && {
11701 test -z "$ac_c_werror_flag" ||
11702 test ! -s conftest.err
11703 } && test -s conftest$ac_exeext && {
11704 test "$cross_compiling" = yes ||
11705 $as_test_x conftest$ac_exeext
11707 ac_cv_func_shl_load=yes
11709 $as_echo "$as_me: failed program was:" >&5
11710 sed 's/^/| /' conftest.$ac_ext >&5
11712 ac_cv_func_shl_load=no
11715 rm -rf conftest.dSYM
11716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11717 conftest$ac_exeext conftest.$ac_ext
11719 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11720 $as_echo "$ac_cv_func_shl_load" >&6; }
11721 if test "x$ac_cv_func_shl_load" = x""yes; then
11722 lt_cv_dlopen="shl_load"
11724 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11725 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11726 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11727 $as_echo_n "(cached) " >&6
11729 ac_check_lib_save_LIBS=$LIBS
11731 cat >conftest.$ac_ext <<_ACEOF
11734 cat confdefs.h >>conftest.$ac_ext
11735 cat >>conftest.$ac_ext <<_ACEOF
11736 /* end confdefs.h. */
11738 /* Override any GCC internal prototype to avoid an error.
11739 Use char because int might match the return type of a GCC
11740 builtin and then its argument prototype would still apply. */
11748 return shl_load ();
11753 rm -f conftest.$ac_objext conftest$ac_exeext
11754 if { (ac_try="$ac_link"
11755 case "(($ac_try" in
11756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11757 *) ac_try_echo=$ac_try;;
11759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11760 $as_echo "$ac_try_echo") >&5
11761 (eval "$ac_link") 2>conftest.er1
11763 grep -v '^ *+' conftest.er1 >conftest.err
11765 cat conftest.err >&5
11766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767 (exit $ac_status); } && {
11768 test -z "$ac_c_werror_flag" ||
11769 test ! -s conftest.err
11770 } && test -s conftest$ac_exeext && {
11771 test "$cross_compiling" = yes ||
11772 $as_test_x conftest$ac_exeext
11774 ac_cv_lib_dld_shl_load=yes
11776 $as_echo "$as_me: failed program was:" >&5
11777 sed 's/^/| /' conftest.$ac_ext >&5
11779 ac_cv_lib_dld_shl_load=no
11782 rm -rf conftest.dSYM
11783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11784 conftest$ac_exeext conftest.$ac_ext
11785 LIBS=$ac_check_lib_save_LIBS
11787 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11788 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11789 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
11790 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11792 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
11793 $as_echo_n "checking for dlopen... " >&6; }
11794 if test "${ac_cv_func_dlopen+set}" = set; then
11795 $as_echo_n "(cached) " >&6
11797 cat >conftest.$ac_ext <<_ACEOF
11800 cat confdefs.h >>conftest.$ac_ext
11801 cat >>conftest.$ac_ext <<_ACEOF
11802 /* end confdefs.h. */
11803 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11804 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11805 #define dlopen innocuous_dlopen
11807 /* System header to define __stub macros and hopefully few prototypes,
11808 which can conflict with char dlopen (); below.
11809 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11810 <limits.h> exists even on freestanding compilers. */
11813 # include <limits.h>
11815 # include <assert.h>
11820 /* Override any GCC internal prototype to avoid an error.
11821 Use char because int might match the return type of a GCC
11822 builtin and then its argument prototype would still apply. */
11827 /* The GNU C library defines this for functions which it implements
11828 to always fail with ENOSYS. Some functions are actually named
11829 something starting with __ and the normal name is an alias. */
11830 #if defined __stub_dlopen || defined __stub___dlopen
11842 rm -f conftest.$ac_objext conftest$ac_exeext
11843 if { (ac_try="$ac_link"
11844 case "(($ac_try" in
11845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11846 *) ac_try_echo=$ac_try;;
11848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11849 $as_echo "$ac_try_echo") >&5
11850 (eval "$ac_link") 2>conftest.er1
11852 grep -v '^ *+' conftest.er1 >conftest.err
11854 cat conftest.err >&5
11855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856 (exit $ac_status); } && {
11857 test -z "$ac_c_werror_flag" ||
11858 test ! -s conftest.err
11859 } && test -s conftest$ac_exeext && {
11860 test "$cross_compiling" = yes ||
11861 $as_test_x conftest$ac_exeext
11863 ac_cv_func_dlopen=yes
11865 $as_echo "$as_me: failed program was:" >&5
11866 sed 's/^/| /' conftest.$ac_ext >&5
11868 ac_cv_func_dlopen=no
11871 rm -rf conftest.dSYM
11872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11873 conftest$ac_exeext conftest.$ac_ext
11875 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11876 $as_echo "$ac_cv_func_dlopen" >&6; }
11877 if test "x$ac_cv_func_dlopen" = x""yes; then
11878 lt_cv_dlopen="dlopen"
11880 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11881 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11882 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11883 $as_echo_n "(cached) " >&6
11885 ac_check_lib_save_LIBS=$LIBS
11887 cat >conftest.$ac_ext <<_ACEOF
11890 cat confdefs.h >>conftest.$ac_ext
11891 cat >>conftest.$ac_ext <<_ACEOF
11892 /* end confdefs.h. */
11894 /* Override any GCC internal prototype to avoid an error.
11895 Use char because int might match the return type of a GCC
11896 builtin and then its argument prototype would still apply. */
11909 rm -f conftest.$ac_objext conftest$ac_exeext
11910 if { (ac_try="$ac_link"
11911 case "(($ac_try" in
11912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11913 *) ac_try_echo=$ac_try;;
11915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11916 $as_echo "$ac_try_echo") >&5
11917 (eval "$ac_link") 2>conftest.er1
11919 grep -v '^ *+' conftest.er1 >conftest.err
11921 cat conftest.err >&5
11922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); } && {
11924 test -z "$ac_c_werror_flag" ||
11925 test ! -s conftest.err
11926 } && test -s conftest$ac_exeext && {
11927 test "$cross_compiling" = yes ||
11928 $as_test_x conftest$ac_exeext
11930 ac_cv_lib_dl_dlopen=yes
11932 $as_echo "$as_me: failed program was:" >&5
11933 sed 's/^/| /' conftest.$ac_ext >&5
11935 ac_cv_lib_dl_dlopen=no
11938 rm -rf conftest.dSYM
11939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11940 conftest$ac_exeext conftest.$ac_ext
11941 LIBS=$ac_check_lib_save_LIBS
11943 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11944 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11945 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11946 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11948 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11949 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11950 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11951 $as_echo_n "(cached) " >&6
11953 ac_check_lib_save_LIBS=$LIBS
11954 LIBS="-lsvld $LIBS"
11955 cat >conftest.$ac_ext <<_ACEOF
11958 cat confdefs.h >>conftest.$ac_ext
11959 cat >>conftest.$ac_ext <<_ACEOF
11960 /* end confdefs.h. */
11962 /* Override any GCC internal prototype to avoid an error.
11963 Use char because int might match the return type of a GCC
11964 builtin and then its argument prototype would still apply. */
11977 rm -f conftest.$ac_objext conftest$ac_exeext
11978 if { (ac_try="$ac_link"
11979 case "(($ac_try" in
11980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11981 *) ac_try_echo=$ac_try;;
11983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11984 $as_echo "$ac_try_echo") >&5
11985 (eval "$ac_link") 2>conftest.er1
11987 grep -v '^ *+' conftest.er1 >conftest.err
11989 cat conftest.err >&5
11990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 (exit $ac_status); } && {
11992 test -z "$ac_c_werror_flag" ||
11993 test ! -s conftest.err
11994 } && test -s conftest$ac_exeext && {
11995 test "$cross_compiling" = yes ||
11996 $as_test_x conftest$ac_exeext
11998 ac_cv_lib_svld_dlopen=yes
12000 $as_echo "$as_me: failed program was:" >&5
12001 sed 's/^/| /' conftest.$ac_ext >&5
12003 ac_cv_lib_svld_dlopen=no
12006 rm -rf conftest.dSYM
12007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12008 conftest$ac_exeext conftest.$ac_ext
12009 LIBS=$ac_check_lib_save_LIBS
12011 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12012 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12013 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
12014 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12016 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12017 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12018 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12019 $as_echo_n "(cached) " >&6
12021 ac_check_lib_save_LIBS=$LIBS
12023 cat >conftest.$ac_ext <<_ACEOF
12026 cat confdefs.h >>conftest.$ac_ext
12027 cat >>conftest.$ac_ext <<_ACEOF
12028 /* end confdefs.h. */
12030 /* Override any GCC internal prototype to avoid an error.
12031 Use char because int might match the return type of a GCC
12032 builtin and then its argument prototype would still apply. */
12040 return dld_link ();
12045 rm -f conftest.$ac_objext conftest$ac_exeext
12046 if { (ac_try="$ac_link"
12047 case "(($ac_try" in
12048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12049 *) ac_try_echo=$ac_try;;
12051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12052 $as_echo "$ac_try_echo") >&5
12053 (eval "$ac_link") 2>conftest.er1
12055 grep -v '^ *+' conftest.er1 >conftest.err
12057 cat conftest.err >&5
12058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); } && {
12060 test -z "$ac_c_werror_flag" ||
12061 test ! -s conftest.err
12062 } && test -s conftest$ac_exeext && {
12063 test "$cross_compiling" = yes ||
12064 $as_test_x conftest$ac_exeext
12066 ac_cv_lib_dld_dld_link=yes
12068 $as_echo "$as_me: failed program was:" >&5
12069 sed 's/^/| /' conftest.$ac_ext >&5
12071 ac_cv_lib_dld_dld_link=no
12074 rm -rf conftest.dSYM
12075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12076 conftest$ac_exeext conftest.$ac_ext
12077 LIBS=$ac_check_lib_save_LIBS
12079 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12080 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12081 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
12082 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12103 if test "x$lt_cv_dlopen" != xno; then
12109 case $lt_cv_dlopen in
12111 save_CPPFLAGS="$CPPFLAGS"
12112 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12114 save_LDFLAGS="$LDFLAGS"
12115 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12118 LIBS="$lt_cv_dlopen_libs $LIBS"
12120 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12121 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12122 if test "${lt_cv_dlopen_self+set}" = set; then
12123 $as_echo_n "(cached) " >&6
12125 if test "$cross_compiling" = yes; then :
12126 lt_cv_dlopen_self=cross
12128 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12129 lt_status=$lt_dlunknown
12130 cat > conftest.$ac_ext <<_LT_EOF
12131 #line 12131 "configure"
12132 #include "confdefs.h"
12141 # define LT_DLGLOBAL RTLD_GLOBAL
12144 # define LT_DLGLOBAL DL_GLOBAL
12146 # define LT_DLGLOBAL 0
12150 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12151 find out it does not work in some platform. */
12152 #ifndef LT_DLLAZY_OR_NOW
12154 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12157 # define LT_DLLAZY_OR_NOW DL_LAZY
12160 # define LT_DLLAZY_OR_NOW RTLD_NOW
12163 # define LT_DLLAZY_OR_NOW DL_NOW
12165 # define LT_DLLAZY_OR_NOW 0
12172 void fnord() { int i=42;}
12175 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12176 int status = $lt_dlunknown;
12180 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12181 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12182 /* dlclose (self); */
12190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12191 (eval $ac_link) 2>&5
12193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12195 (./conftest; exit; ) >&5 2>/dev/null
12197 case x$lt_status in
12198 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12199 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12200 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12203 # compilation failed
12204 lt_cv_dlopen_self=no
12211 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12212 $as_echo "$lt_cv_dlopen_self" >&6; }
12214 if test "x$lt_cv_dlopen_self" = xyes; then
12215 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12216 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12217 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12218 if test "${lt_cv_dlopen_self_static+set}" = set; then
12219 $as_echo_n "(cached) " >&6
12221 if test "$cross_compiling" = yes; then :
12222 lt_cv_dlopen_self_static=cross
12224 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12225 lt_status=$lt_dlunknown
12226 cat > conftest.$ac_ext <<_LT_EOF
12227 #line 12227 "configure"
12228 #include "confdefs.h"
12237 # define LT_DLGLOBAL RTLD_GLOBAL
12240 # define LT_DLGLOBAL DL_GLOBAL
12242 # define LT_DLGLOBAL 0
12246 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12247 find out it does not work in some platform. */
12248 #ifndef LT_DLLAZY_OR_NOW
12250 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12253 # define LT_DLLAZY_OR_NOW DL_LAZY
12256 # define LT_DLLAZY_OR_NOW RTLD_NOW
12259 # define LT_DLLAZY_OR_NOW DL_NOW
12261 # define LT_DLLAZY_OR_NOW 0
12268 void fnord() { int i=42;}
12271 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12272 int status = $lt_dlunknown;
12276 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12277 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12278 /* dlclose (self); */
12286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12287 (eval $ac_link) 2>&5
12289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12291 (./conftest; exit; ) >&5 2>/dev/null
12293 case x$lt_status in
12294 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12295 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12296 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12299 # compilation failed
12300 lt_cv_dlopen_self_static=no
12307 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12308 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12311 CPPFLAGS="$save_CPPFLAGS"
12312 LDFLAGS="$save_LDFLAGS"
12317 case $lt_cv_dlopen_self in
12318 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12319 *) enable_dlopen_self=unknown ;;
12322 case $lt_cv_dlopen_self_static in
12323 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12324 *) enable_dlopen_self_static=unknown ;;
12346 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12347 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12348 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12349 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12350 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12351 { $as_echo "$as_me:$LINENO: result: yes" >&5
12352 $as_echo "yes" >&6; }
12354 # FIXME - insert some real tests, host_os isn't really good enough
12357 if test -n "$STRIP" ; then
12358 striplib="$STRIP -x"
12359 old_striplib="$STRIP -S"
12360 { $as_echo "$as_me:$LINENO: result: yes" >&5
12361 $as_echo "yes" >&6; }
12363 { $as_echo "$as_me:$LINENO: result: no" >&5
12364 $as_echo "no" >&6; }
12368 { $as_echo "$as_me:$LINENO: result: no" >&5
12369 $as_echo "no" >&6; }
12385 # Report which library types will actually be built
12386 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12387 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12388 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12389 $as_echo "$can_build_shared" >&6; }
12391 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12392 $as_echo_n "checking whether to build shared libraries... " >&6; }
12393 test "$can_build_shared" = "no" && enable_shared=no
12395 # On AIX, shared libraries and static libraries use the same namespace, and
12396 # are all built from PIC.
12399 test "$enable_shared" = yes && enable_static=no
12400 if test -n "$RANLIB"; then
12401 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12402 postinstall_cmds='$RANLIB $lib'
12407 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12408 test "$enable_shared" = yes && enable_static=no
12412 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
12413 $as_echo "$enable_shared" >&6; }
12415 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12416 $as_echo_n "checking whether to build static libraries... " >&6; }
12417 # Make sure either enable_shared or enable_static is yes.
12418 test "$enable_shared" = yes || enable_static=yes
12419 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
12420 $as_echo "$enable_static" >&6; }
12427 ac_cpp='$CPP $CPPFLAGS'
12428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12446 ac_config_commands="$ac_config_commands libtool"
12451 # Only expand once:
12455 if test X"$GCC" = "Xyes"; then
12456 CFLAGS="$CFLAGS -Wall -W"
12457 TARGET="depend allprogs"
12459 TARGET="everything"
12464 CFLAGS="$CFLAGS -D_GNU_SOURCE -D_REENTRANT"
12466 if test $ac_cv_c_compiler_gnu = yes; then
12467 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12468 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
12469 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12470 $as_echo_n "(cached) " >&6
12472 ac_pattern="Autoconf.*'x'"
12473 cat >conftest.$ac_ext <<_ACEOF
12476 cat confdefs.h >>conftest.$ac_ext
12477 cat >>conftest.$ac_ext <<_ACEOF
12478 /* end confdefs.h. */
12482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12483 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12484 ac_cv_prog_gcc_traditional=yes
12486 ac_cv_prog_gcc_traditional=no
12491 if test $ac_cv_prog_gcc_traditional = no; then
12492 cat >conftest.$ac_ext <<_ACEOF
12495 cat confdefs.h >>conftest.$ac_ext
12496 cat >>conftest.$ac_ext <<_ACEOF
12497 /* end confdefs.h. */
12498 #include <termio.h>
12501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12502 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12503 ac_cv_prog_gcc_traditional=yes
12509 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12510 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
12511 if test $ac_cv_prog_gcc_traditional = yes; then
12512 CC="$CC -traditional"
12516 # Check whether --enable-largefile was given.
12517 if test "${enable_largefile+set}" = set; then
12518 enableval=$enable_largefile;
12521 if test "$enable_largefile" != no; then
12523 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
12524 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12525 if test "${ac_cv_sys_largefile_CC+set}" = set; then
12526 $as_echo_n "(cached) " >&6
12528 ac_cv_sys_largefile_CC=no
12529 if test "$GCC" != yes; then
12532 # IRIX 6.2 and later do not support large files by default,
12533 # so use the C compiler's -n32 option if that helps.
12534 cat >conftest.$ac_ext <<_ACEOF
12537 cat confdefs.h >>conftest.$ac_ext
12538 cat >>conftest.$ac_ext <<_ACEOF
12539 /* end confdefs.h. */
12540 #include <sys/types.h>
12541 /* Check that off_t can represent 2**63 - 1 correctly.
12542 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12543 since some C++ compilers masquerading as C compilers
12544 incorrectly reject 9223372036854775807. */
12545 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12546 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12547 && LARGE_OFF_T % 2147483647 == 1)
12557 rm -f conftest.$ac_objext
12558 if { (ac_try="$ac_compile"
12559 case "(($ac_try" in
12560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12561 *) ac_try_echo=$ac_try;;
12563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12564 $as_echo "$ac_try_echo") >&5
12565 (eval "$ac_compile") 2>conftest.er1
12567 grep -v '^ *+' conftest.er1 >conftest.err
12569 cat conftest.err >&5
12570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571 (exit $ac_status); } && {
12572 test -z "$ac_c_werror_flag" ||
12573 test ! -s conftest.err
12574 } && test -s conftest.$ac_objext; then
12577 $as_echo "$as_me: failed program was:" >&5
12578 sed 's/^/| /' conftest.$ac_ext >&5
12583 rm -f core conftest.err conftest.$ac_objext
12585 rm -f conftest.$ac_objext
12586 if { (ac_try="$ac_compile"
12587 case "(($ac_try" in
12588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12589 *) ac_try_echo=$ac_try;;
12591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12592 $as_echo "$ac_try_echo") >&5
12593 (eval "$ac_compile") 2>conftest.er1
12595 grep -v '^ *+' conftest.er1 >conftest.err
12597 cat conftest.err >&5
12598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); } && {
12600 test -z "$ac_c_werror_flag" ||
12601 test ! -s conftest.err
12602 } && test -s conftest.$ac_objext; then
12603 ac_cv_sys_largefile_CC=' -n32'; break
12605 $as_echo "$as_me: failed program was:" >&5
12606 sed 's/^/| /' conftest.$ac_ext >&5
12611 rm -f core conftest.err conftest.$ac_objext
12615 rm -f conftest.$ac_ext
12618 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
12619 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
12620 if test "$ac_cv_sys_largefile_CC" != no; then
12621 CC=$CC$ac_cv_sys_largefile_CC
12624 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12625 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12626 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
12627 $as_echo_n "(cached) " >&6
12630 cat >conftest.$ac_ext <<_ACEOF
12633 cat confdefs.h >>conftest.$ac_ext
12634 cat >>conftest.$ac_ext <<_ACEOF
12635 /* end confdefs.h. */
12636 #include <sys/types.h>
12637 /* Check that off_t can represent 2**63 - 1 correctly.
12638 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12639 since some C++ compilers masquerading as C compilers
12640 incorrectly reject 9223372036854775807. */
12641 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12642 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12643 && LARGE_OFF_T % 2147483647 == 1)
12653 rm -f conftest.$ac_objext
12654 if { (ac_try="$ac_compile"
12655 case "(($ac_try" in
12656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12657 *) ac_try_echo=$ac_try;;
12659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12660 $as_echo "$ac_try_echo") >&5
12661 (eval "$ac_compile") 2>conftest.er1
12663 grep -v '^ *+' conftest.er1 >conftest.err
12665 cat conftest.err >&5
12666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667 (exit $ac_status); } && {
12668 test -z "$ac_c_werror_flag" ||
12669 test ! -s conftest.err
12670 } && test -s conftest.$ac_objext; then
12671 ac_cv_sys_file_offset_bits=no; break
12673 $as_echo "$as_me: failed program was:" >&5
12674 sed 's/^/| /' conftest.$ac_ext >&5
12679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12680 cat >conftest.$ac_ext <<_ACEOF
12683 cat confdefs.h >>conftest.$ac_ext
12684 cat >>conftest.$ac_ext <<_ACEOF
12685 /* end confdefs.h. */
12686 #define _FILE_OFFSET_BITS 64
12687 #include <sys/types.h>
12688 /* Check that off_t can represent 2**63 - 1 correctly.
12689 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12690 since some C++ compilers masquerading as C compilers
12691 incorrectly reject 9223372036854775807. */
12692 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12693 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12694 && LARGE_OFF_T % 2147483647 == 1)
12704 rm -f conftest.$ac_objext
12705 if { (ac_try="$ac_compile"
12706 case "(($ac_try" in
12707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12708 *) ac_try_echo=$ac_try;;
12710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12711 $as_echo "$ac_try_echo") >&5
12712 (eval "$ac_compile") 2>conftest.er1
12714 grep -v '^ *+' conftest.er1 >conftest.err
12716 cat conftest.err >&5
12717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); } && {
12719 test -z "$ac_c_werror_flag" ||
12720 test ! -s conftest.err
12721 } && test -s conftest.$ac_objext; then
12722 ac_cv_sys_file_offset_bits=64; break
12724 $as_echo "$as_me: failed program was:" >&5
12725 sed 's/^/| /' conftest.$ac_ext >&5
12730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12731 ac_cv_sys_file_offset_bits=unknown
12735 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
12736 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12737 case $ac_cv_sys_file_offset_bits in #(
12740 cat >>confdefs.h <<_ACEOF
12741 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12746 if test $ac_cv_sys_file_offset_bits = unknown; then
12747 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
12748 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12749 if test "${ac_cv_sys_large_files+set}" = set; then
12750 $as_echo_n "(cached) " >&6
12753 cat >conftest.$ac_ext <<_ACEOF
12756 cat confdefs.h >>conftest.$ac_ext
12757 cat >>conftest.$ac_ext <<_ACEOF
12758 /* end confdefs.h. */
12759 #include <sys/types.h>
12760 /* Check that off_t can represent 2**63 - 1 correctly.
12761 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12762 since some C++ compilers masquerading as C compilers
12763 incorrectly reject 9223372036854775807. */
12764 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12765 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12766 && LARGE_OFF_T % 2147483647 == 1)
12776 rm -f conftest.$ac_objext
12777 if { (ac_try="$ac_compile"
12778 case "(($ac_try" in
12779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12780 *) ac_try_echo=$ac_try;;
12782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12783 $as_echo "$ac_try_echo") >&5
12784 (eval "$ac_compile") 2>conftest.er1
12786 grep -v '^ *+' conftest.er1 >conftest.err
12788 cat conftest.err >&5
12789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 (exit $ac_status); } && {
12791 test -z "$ac_c_werror_flag" ||
12792 test ! -s conftest.err
12793 } && test -s conftest.$ac_objext; then
12794 ac_cv_sys_large_files=no; break
12796 $as_echo "$as_me: failed program was:" >&5
12797 sed 's/^/| /' conftest.$ac_ext >&5
12802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12803 cat >conftest.$ac_ext <<_ACEOF
12806 cat confdefs.h >>conftest.$ac_ext
12807 cat >>conftest.$ac_ext <<_ACEOF
12808 /* end confdefs.h. */
12809 #define _LARGE_FILES 1
12810 #include <sys/types.h>
12811 /* Check that off_t can represent 2**63 - 1 correctly.
12812 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12813 since some C++ compilers masquerading as C compilers
12814 incorrectly reject 9223372036854775807. */
12815 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12816 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12817 && LARGE_OFF_T % 2147483647 == 1)
12827 rm -f conftest.$ac_objext
12828 if { (ac_try="$ac_compile"
12829 case "(($ac_try" in
12830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12831 *) ac_try_echo=$ac_try;;
12833 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12834 $as_echo "$ac_try_echo") >&5
12835 (eval "$ac_compile") 2>conftest.er1
12837 grep -v '^ *+' conftest.er1 >conftest.err
12839 cat conftest.err >&5
12840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 (exit $ac_status); } && {
12842 test -z "$ac_c_werror_flag" ||
12843 test ! -s conftest.err
12844 } && test -s conftest.$ac_objext; then
12845 ac_cv_sys_large_files=1; break
12847 $as_echo "$as_me: failed program was:" >&5
12848 sed 's/^/| /' conftest.$ac_ext >&5
12853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12854 ac_cv_sys_large_files=unknown
12858 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
12859 $as_echo "$ac_cv_sys_large_files" >&6; }
12860 case $ac_cv_sys_large_files in #(
12863 cat >>confdefs.h <<_ACEOF
12864 #define _LARGE_FILES $ac_cv_sys_large_files
12873 { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
12874 $as_echo_n "checking for library containing strerror... " >&6; }
12875 if test "${ac_cv_search_strerror+set}" = set; then
12876 $as_echo_n "(cached) " >&6
12878 ac_func_search_save_LIBS=$LIBS
12879 cat >conftest.$ac_ext <<_ACEOF
12882 cat confdefs.h >>conftest.$ac_ext
12883 cat >>conftest.$ac_ext <<_ACEOF
12884 /* end confdefs.h. */
12886 /* Override any GCC internal prototype to avoid an error.
12887 Use char because int might match the return type of a GCC
12888 builtin and then its argument prototype would still apply. */
12896 return strerror ();
12901 for ac_lib in '' cposix; do
12902 if test -z "$ac_lib"; then
12903 ac_res="none required"
12906 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12908 rm -f conftest.$ac_objext conftest$ac_exeext
12909 if { (ac_try="$ac_link"
12910 case "(($ac_try" in
12911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12912 *) ac_try_echo=$ac_try;;
12914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12915 $as_echo "$ac_try_echo") >&5
12916 (eval "$ac_link") 2>conftest.er1
12918 grep -v '^ *+' conftest.er1 >conftest.err
12920 cat conftest.err >&5
12921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922 (exit $ac_status); } && {
12923 test -z "$ac_c_werror_flag" ||
12924 test ! -s conftest.err
12925 } && test -s conftest$ac_exeext && {
12926 test "$cross_compiling" = yes ||
12927 $as_test_x conftest$ac_exeext
12929 ac_cv_search_strerror=$ac_res
12931 $as_echo "$as_me: failed program was:" >&5
12932 sed 's/^/| /' conftest.$ac_ext >&5
12937 rm -rf conftest.dSYM
12938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12940 if test "${ac_cv_search_strerror+set}" = set; then
12944 if test "${ac_cv_search_strerror+set}" = set; then
12947 ac_cv_search_strerror=no
12949 rm conftest.$ac_ext
12950 LIBS=$ac_func_search_save_LIBS
12952 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
12953 $as_echo "$ac_cv_search_strerror" >&6; }
12954 ac_res=$ac_cv_search_strerror
12955 if test "$ac_res" != no; then
12956 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12960 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
12961 $as_echo_n "checking for function prototypes... " >&6; }
12962 if test "$ac_cv_prog_cc_c89" != no; then
12963 { $as_echo "$as_me:$LINENO: result: yes" >&5
12964 $as_echo "yes" >&6; }
12966 cat >>confdefs.h <<\_ACEOF
12967 #define PROTOTYPES 1
12971 cat >>confdefs.h <<\_ACEOF
12972 #define __PROTOTYPES 1
12976 { $as_echo "$as_me:$LINENO: result: no" >&5
12977 $as_echo "no" >&6; }
12981 if test "$ac_cv_prog_cc_stdc" != no; then
12984 U=_ ANSI2KNR=./ansi2knr
12986 # Ensure some checks needed by ansi2knr itself.
12989 for ac_header in string.h
12991 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12993 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12994 $as_echo_n "checking for $ac_header... " >&6; }
12995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12996 $as_echo_n "(cached) " >&6
12998 ac_res=`eval 'as_val=${'$as_ac_Header'}
12999 $as_echo "$as_val"'`
13000 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13001 $as_echo "$ac_res" >&6; }
13003 # Is the header compilable?
13004 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13005 $as_echo_n "checking $ac_header usability... " >&6; }
13006 cat >conftest.$ac_ext <<_ACEOF
13009 cat confdefs.h >>conftest.$ac_ext
13010 cat >>conftest.$ac_ext <<_ACEOF
13011 /* end confdefs.h. */
13012 $ac_includes_default
13013 #include <$ac_header>
13015 rm -f conftest.$ac_objext
13016 if { (ac_try="$ac_compile"
13017 case "(($ac_try" in
13018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13019 *) ac_try_echo=$ac_try;;
13021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13022 $as_echo "$ac_try_echo") >&5
13023 (eval "$ac_compile") 2>conftest.er1
13025 grep -v '^ *+' conftest.er1 >conftest.err
13027 cat conftest.err >&5
13028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029 (exit $ac_status); } && {
13030 test -z "$ac_c_werror_flag" ||
13031 test ! -s conftest.err
13032 } && test -s conftest.$ac_objext; then
13033 ac_header_compiler=yes
13035 $as_echo "$as_me: failed program was:" >&5
13036 sed 's/^/| /' conftest.$ac_ext >&5
13038 ac_header_compiler=no
13041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13042 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13043 $as_echo "$ac_header_compiler" >&6; }
13045 # Is the header present?
13046 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13047 $as_echo_n "checking $ac_header presence... " >&6; }
13048 cat >conftest.$ac_ext <<_ACEOF
13051 cat confdefs.h >>conftest.$ac_ext
13052 cat >>conftest.$ac_ext <<_ACEOF
13053 /* end confdefs.h. */
13054 #include <$ac_header>
13056 if { (ac_try="$ac_cpp conftest.$ac_ext"
13057 case "(($ac_try" in
13058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13059 *) ac_try_echo=$ac_try;;
13061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13062 $as_echo "$ac_try_echo") >&5
13063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13065 grep -v '^ *+' conftest.er1 >conftest.err
13067 cat conftest.err >&5
13068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); } >/dev/null && {
13070 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13071 test ! -s conftest.err
13073 ac_header_preproc=yes
13075 $as_echo "$as_me: failed program was:" >&5
13076 sed 's/^/| /' conftest.$ac_ext >&5
13078 ac_header_preproc=no
13081 rm -f conftest.err conftest.$ac_ext
13082 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13083 $as_echo "$ac_header_preproc" >&6; }
13085 # So? What about this header?
13086 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13088 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13089 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13090 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13091 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13092 ac_header_preproc=yes
13095 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13096 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13097 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13098 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13099 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13100 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13101 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13102 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13103 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13104 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13105 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13106 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13108 ## ---------------------------------- ##
13109 ## Report this to popt-devel@rpm5.org ##
13110 ## ---------------------------------- ##
13112 ) | sed "s/^/$as_me: WARNING: /" >&2
13115 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13116 $as_echo_n "checking for $ac_header... " >&6; }
13117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13118 $as_echo_n "(cached) " >&6
13120 eval "$as_ac_Header=\$ac_header_preproc"
13122 ac_res=`eval 'as_val=${'$as_ac_Header'}
13123 $as_echo "$as_val"'`
13124 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13125 $as_echo "$ac_res" >&6; }
13128 as_val=`eval 'as_val=${'$as_ac_Header'}
13129 $as_echo "$as_val"'`
13130 if test "x$as_val" = x""yes; then
13131 cat >>confdefs.h <<_ACEOF
13132 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13148 for ac_header in float.h fnmatch.h glob.h langinfo.h libintl.h mcheck.h unistd.h
13150 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13152 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13153 $as_echo_n "checking for $ac_header... " >&6; }
13154 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13155 $as_echo_n "(cached) " >&6
13157 ac_res=`eval 'as_val=${'$as_ac_Header'}
13158 $as_echo "$as_val"'`
13159 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13160 $as_echo "$ac_res" >&6; }
13162 # Is the header compilable?
13163 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13164 $as_echo_n "checking $ac_header usability... " >&6; }
13165 cat >conftest.$ac_ext <<_ACEOF
13168 cat confdefs.h >>conftest.$ac_ext
13169 cat >>conftest.$ac_ext <<_ACEOF
13170 /* end confdefs.h. */
13171 $ac_includes_default
13172 #include <$ac_header>
13174 rm -f conftest.$ac_objext
13175 if { (ac_try="$ac_compile"
13176 case "(($ac_try" in
13177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13178 *) ac_try_echo=$ac_try;;
13180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13181 $as_echo "$ac_try_echo") >&5
13182 (eval "$ac_compile") 2>conftest.er1
13184 grep -v '^ *+' conftest.er1 >conftest.err
13186 cat conftest.err >&5
13187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188 (exit $ac_status); } && {
13189 test -z "$ac_c_werror_flag" ||
13190 test ! -s conftest.err
13191 } && test -s conftest.$ac_objext; then
13192 ac_header_compiler=yes
13194 $as_echo "$as_me: failed program was:" >&5
13195 sed 's/^/| /' conftest.$ac_ext >&5
13197 ac_header_compiler=no
13200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13201 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13202 $as_echo "$ac_header_compiler" >&6; }
13204 # Is the header present?
13205 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13206 $as_echo_n "checking $ac_header presence... " >&6; }
13207 cat >conftest.$ac_ext <<_ACEOF
13210 cat confdefs.h >>conftest.$ac_ext
13211 cat >>conftest.$ac_ext <<_ACEOF
13212 /* end confdefs.h. */
13213 #include <$ac_header>
13215 if { (ac_try="$ac_cpp conftest.$ac_ext"
13216 case "(($ac_try" in
13217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13218 *) ac_try_echo=$ac_try;;
13220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13221 $as_echo "$ac_try_echo") >&5
13222 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13224 grep -v '^ *+' conftest.er1 >conftest.err
13226 cat conftest.err >&5
13227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228 (exit $ac_status); } >/dev/null && {
13229 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13230 test ! -s conftest.err
13232 ac_header_preproc=yes
13234 $as_echo "$as_me: failed program was:" >&5
13235 sed 's/^/| /' conftest.$ac_ext >&5
13237 ac_header_preproc=no
13240 rm -f conftest.err conftest.$ac_ext
13241 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13242 $as_echo "$ac_header_preproc" >&6; }
13244 # So? What about this header?
13245 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13247 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13248 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13249 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13250 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13251 ac_header_preproc=yes
13254 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13255 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13256 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13257 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13258 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13259 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13260 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13261 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13262 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13263 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13264 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13265 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13267 ## ---------------------------------- ##
13268 ## Report this to popt-devel@rpm5.org ##
13269 ## ---------------------------------- ##
13271 ) | sed "s/^/$as_me: WARNING: /" >&2
13274 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13275 $as_echo_n "checking for $ac_header... " >&6; }
13276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13277 $as_echo_n "(cached) " >&6
13279 eval "$as_ac_Header=\$ac_header_preproc"
13281 ac_res=`eval 'as_val=${'$as_ac_Header'}
13282 $as_echo "$as_val"'`
13283 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13284 $as_echo "$ac_res" >&6; }
13287 as_val=`eval 'as_val=${'$as_ac_Header'}
13288 $as_echo "$as_val"'`
13289 if test "x$as_val" = x""yes; then
13290 cat >>confdefs.h <<_ACEOF
13291 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13299 # For some systems we know that we have ld_version scripts.
13300 # Use it then as default.
13301 have_ld_version_script=no
13304 have_ld_version_script=yes
13307 have_ld_version_script=yes
13310 # Check whether --enable-ld-version-script was given.
13311 if test "${enable_ld_version_script+set}" = set; then
13312 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
13317 if test "$have_ld_version_script" = "yes"; then
13318 HAVE_LD_VERSION_SCRIPT_TRUE=
13319 HAVE_LD_VERSION_SCRIPT_FALSE='#'
13321 HAVE_LD_VERSION_SCRIPT_TRUE='#'
13322 HAVE_LD_VERSION_SCRIPT_FALSE=
13326 # Check whether --enable-build-gcov was given.
13327 if test "${enable_build_gcov+set}" = set; then
13328 enableval=$enable_build_gcov; if test ".$enableval" = .yes; then
13329 if test ".`$CC --version 2>&1 | grep 'GCC'`" != .; then
13330 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
13337 { $as_echo "$as_me:$LINENO: checking for setreuid" >&5
13338 $as_echo_n "checking for setreuid... " >&6; }
13339 if test "${ac_cv_func_setreuid+set}" = set; then
13340 $as_echo_n "(cached) " >&6
13342 cat >conftest.$ac_ext <<_ACEOF
13345 cat confdefs.h >>conftest.$ac_ext
13346 cat >>conftest.$ac_ext <<_ACEOF
13347 /* end confdefs.h. */
13348 /* Define setreuid to an innocuous variant, in case <limits.h> declares setreuid.
13349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13350 #define setreuid innocuous_setreuid
13352 /* System header to define __stub macros and hopefully few prototypes,
13353 which can conflict with char setreuid (); below.
13354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13355 <limits.h> exists even on freestanding compilers. */
13358 # include <limits.h>
13360 # include <assert.h>
13365 /* Override any GCC internal prototype to avoid an error.
13366 Use char because int might match the return type of a GCC
13367 builtin and then its argument prototype would still apply. */
13372 /* The GNU C library defines this for functions which it implements
13373 to always fail with ENOSYS. Some functions are actually named
13374 something starting with __ and the normal name is an alias. */
13375 #if defined __stub_setreuid || defined __stub___setreuid
13382 return setreuid ();
13387 rm -f conftest.$ac_objext conftest$ac_exeext
13388 if { (ac_try="$ac_link"
13389 case "(($ac_try" in
13390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13391 *) ac_try_echo=$ac_try;;
13393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13394 $as_echo "$ac_try_echo") >&5
13395 (eval "$ac_link") 2>conftest.er1
13397 grep -v '^ *+' conftest.er1 >conftest.err
13399 cat conftest.err >&5
13400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 (exit $ac_status); } && {
13402 test -z "$ac_c_werror_flag" ||
13403 test ! -s conftest.err
13404 } && test -s conftest$ac_exeext && {
13405 test "$cross_compiling" = yes ||
13406 $as_test_x conftest$ac_exeext
13408 ac_cv_func_setreuid=yes
13410 $as_echo "$as_me: failed program was:" >&5
13411 sed 's/^/| /' conftest.$ac_ext >&5
13413 ac_cv_func_setreuid=no
13416 rm -rf conftest.dSYM
13417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13418 conftest$ac_exeext conftest.$ac_ext
13420 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_setreuid" >&5
13421 $as_echo "$ac_cv_func_setreuid" >&6; }
13422 if test "x$ac_cv_func_setreuid" = x""yes; then
13426 { $as_echo "$as_me:$LINENO: checking for setreuid in -lucb" >&5
13427 $as_echo_n "checking for setreuid in -lucb... " >&6; }
13428 if test "${ac_cv_lib_ucb_setreuid+set}" = set; then
13429 $as_echo_n "(cached) " >&6
13431 ac_check_lib_save_LIBS=$LIBS
13433 cat >conftest.$ac_ext <<_ACEOF
13436 cat confdefs.h >>conftest.$ac_ext
13437 cat >>conftest.$ac_ext <<_ACEOF
13438 /* end confdefs.h. */
13440 /* Override any GCC internal prototype to avoid an error.
13441 Use char because int might match the return type of a GCC
13442 builtin and then its argument prototype would still apply. */
13450 return setreuid ();
13455 rm -f conftest.$ac_objext conftest$ac_exeext
13456 if { (ac_try="$ac_link"
13457 case "(($ac_try" in
13458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13459 *) ac_try_echo=$ac_try;;
13461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13462 $as_echo "$ac_try_echo") >&5
13463 (eval "$ac_link") 2>conftest.er1
13465 grep -v '^ *+' conftest.er1 >conftest.err
13467 cat conftest.err >&5
13468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469 (exit $ac_status); } && {
13470 test -z "$ac_c_werror_flag" ||
13471 test ! -s conftest.err
13472 } && test -s conftest$ac_exeext && {
13473 test "$cross_compiling" = yes ||
13474 $as_test_x conftest$ac_exeext
13476 ac_cv_lib_ucb_setreuid=yes
13478 $as_echo "$as_me: failed program was:" >&5
13479 sed 's/^/| /' conftest.$ac_ext >&5
13481 ac_cv_lib_ucb_setreuid=no
13484 rm -rf conftest.dSYM
13485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13486 conftest$ac_exeext conftest.$ac_ext
13487 LIBS=$ac_check_lib_save_LIBS
13489 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_setreuid" >&5
13490 $as_echo "$ac_cv_lib_ucb_setreuid" >&6; }
13491 if test "x$ac_cv_lib_ucb_setreuid" = x""yes; then
13492 if echo $LIBS | grep -- -lucb >/dev/null ;then :; else LIBS="$LIBS -lc -lucb" USEUCB=y;fi
13508 for ac_func in getuid geteuid iconv mtrace __secure_getenv setregid stpcpy strerror vasprintf srandom
13510 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13511 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13512 $as_echo_n "checking for $ac_func... " >&6; }
13513 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13514 $as_echo_n "(cached) " >&6
13516 cat >conftest.$ac_ext <<_ACEOF
13519 cat confdefs.h >>conftest.$ac_ext
13520 cat >>conftest.$ac_ext <<_ACEOF
13521 /* end confdefs.h. */
13522 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13524 #define $ac_func innocuous_$ac_func
13526 /* System header to define __stub macros and hopefully few prototypes,
13527 which can conflict with char $ac_func (); below.
13528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13529 <limits.h> exists even on freestanding compilers. */
13532 # include <limits.h>
13534 # include <assert.h>
13539 /* Override any GCC internal prototype to avoid an error.
13540 Use char because int might match the return type of a GCC
13541 builtin and then its argument prototype would still apply. */
13546 /* The GNU C library defines this for functions which it implements
13547 to always fail with ENOSYS. Some functions are actually named
13548 something starting with __ and the normal name is an alias. */
13549 #if defined __stub_$ac_func || defined __stub___$ac_func
13556 return $ac_func ();
13561 rm -f conftest.$ac_objext conftest$ac_exeext
13562 if { (ac_try="$ac_link"
13563 case "(($ac_try" in
13564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13565 *) ac_try_echo=$ac_try;;
13567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13568 $as_echo "$ac_try_echo") >&5
13569 (eval "$ac_link") 2>conftest.er1
13571 grep -v '^ *+' conftest.er1 >conftest.err
13573 cat conftest.err >&5
13574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); } && {
13576 test -z "$ac_c_werror_flag" ||
13577 test ! -s conftest.err
13578 } && test -s conftest$ac_exeext && {
13579 test "$cross_compiling" = yes ||
13580 $as_test_x conftest$ac_exeext
13582 eval "$as_ac_var=yes"
13584 $as_echo "$as_me: failed program was:" >&5
13585 sed 's/^/| /' conftest.$ac_ext >&5
13587 eval "$as_ac_var=no"
13590 rm -rf conftest.dSYM
13591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13592 conftest$ac_exeext conftest.$ac_ext
13594 ac_res=`eval 'as_val=${'$as_ac_var'}
13595 $as_echo "$as_val"'`
13596 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13597 $as_echo "$ac_res" >&6; }
13598 as_val=`eval 'as_val=${'$as_ac_var'}
13599 $as_echo "$as_val"'`
13600 if test "x$as_val" = x""yes; then
13601 cat >>confdefs.h <<_ACEOF
13602 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13610 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13611 $as_echo_n "checking whether NLS is requested... " >&6; }
13612 # Check whether --enable-nls was given.
13613 if test "${enable_nls+set}" = set; then
13614 enableval=$enable_nls; USE_NLS=$enableval
13619 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
13620 $as_echo "$USE_NLS" >&6; }
13625 GETTEXT_MACRO_VERSION=0.17
13630 # Prepare PATH_SEPARATOR.
13631 # The user is always right.
13632 if test "${PATH_SEPARATOR+set}" != set; then
13633 echo "#! /bin/sh" >conf$$.sh
13634 echo "exit 0" >>conf$$.sh
13636 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13644 # Find out how to test for executable files. Don't use a zero-byte file,
13645 # as systems may use methods other than mode bits to determine executability.
13646 cat >conf$$.file <<_ASEOF
13650 chmod +x conf$$.file
13651 if test -x conf$$.file >/dev/null 2>&1; then
13652 ac_executable_p="test -x"
13654 ac_executable_p="test -f"
13658 # Extract the first word of "msgfmt", so it can be a program name with args.
13659 set dummy msgfmt; ac_word=$2
13660 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13661 $as_echo_n "checking for $ac_word... " >&6; }
13662 if test "${ac_cv_path_MSGFMT+set}" = set; then
13663 $as_echo_n "(cached) " >&6
13667 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13670 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13671 for ac_dir in $PATH; do
13673 test -z "$ac_dir" && ac_dir=.
13674 for ac_exec_ext in '' $ac_executable_extensions; do
13675 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13676 echo "$as_me: trying $ac_dir/$ac_word..." >&5
13677 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
13678 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13679 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13686 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13690 MSGFMT="$ac_cv_path_MSGFMT"
13691 if test "$MSGFMT" != ":"; then
13692 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
13693 $as_echo "$MSGFMT" >&6; }
13695 { $as_echo "$as_me:$LINENO: result: no" >&5
13696 $as_echo "no" >&6; }
13699 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13700 set dummy gmsgfmt; ac_word=$2
13701 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13702 $as_echo_n "checking for $ac_word... " >&6; }
13703 if test "${ac_cv_path_GMSGFMT+set}" = set; then
13704 $as_echo_n "(cached) " >&6
13708 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13712 for as_dir in $PATH
13715 test -z "$as_dir" && as_dir=.
13716 for ac_exec_ext in '' $ac_executable_extensions; do
13717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13718 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13719 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13726 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13730 GMSGFMT=$ac_cv_path_GMSGFMT
13731 if test -n "$GMSGFMT"; then
13732 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
13733 $as_echo "$GMSGFMT" >&6; }
13735 { $as_echo "$as_me:$LINENO: result: no" >&5
13736 $as_echo "no" >&6; }
13741 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13742 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
13743 *) MSGFMT_015=$MSGFMT ;;
13746 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13747 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
13748 *) GMSGFMT_015=$GMSGFMT ;;
13753 # Prepare PATH_SEPARATOR.
13754 # The user is always right.
13755 if test "${PATH_SEPARATOR+set}" != set; then
13756 echo "#! /bin/sh" >conf$$.sh
13757 echo "exit 0" >>conf$$.sh
13759 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13767 # Find out how to test for executable files. Don't use a zero-byte file,
13768 # as systems may use methods other than mode bits to determine executability.
13769 cat >conf$$.file <<_ASEOF
13773 chmod +x conf$$.file
13774 if test -x conf$$.file >/dev/null 2>&1; then
13775 ac_executable_p="test -x"
13777 ac_executable_p="test -f"
13781 # Extract the first word of "xgettext", so it can be a program name with args.
13782 set dummy xgettext; ac_word=$2
13783 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13784 $as_echo_n "checking for $ac_word... " >&6; }
13785 if test "${ac_cv_path_XGETTEXT+set}" = set; then
13786 $as_echo_n "(cached) " >&6
13788 case "$XGETTEXT" in
13790 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13793 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13794 for ac_dir in $PATH; do
13796 test -z "$ac_dir" && ac_dir=.
13797 for ac_exec_ext in '' $ac_executable_extensions; do
13798 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13799 echo "$as_me: trying $ac_dir/$ac_word..." >&5
13800 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
13801 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13802 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13809 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13813 XGETTEXT="$ac_cv_path_XGETTEXT"
13814 if test "$XGETTEXT" != ":"; then
13815 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
13816 $as_echo "$XGETTEXT" >&6; }
13818 { $as_echo "$as_me:$LINENO: result: no" >&5
13819 $as_echo "no" >&6; }
13824 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13825 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
13826 *) XGETTEXT_015=$XGETTEXT ;;
13831 # Prepare PATH_SEPARATOR.
13832 # The user is always right.
13833 if test "${PATH_SEPARATOR+set}" != set; then
13834 echo "#! /bin/sh" >conf$$.sh
13835 echo "exit 0" >>conf$$.sh
13837 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13845 # Find out how to test for executable files. Don't use a zero-byte file,
13846 # as systems may use methods other than mode bits to determine executability.
13847 cat >conf$$.file <<_ASEOF
13851 chmod +x conf$$.file
13852 if test -x conf$$.file >/dev/null 2>&1; then
13853 ac_executable_p="test -x"
13855 ac_executable_p="test -f"
13859 # Extract the first word of "msgmerge", so it can be a program name with args.
13860 set dummy msgmerge; ac_word=$2
13861 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13862 $as_echo_n "checking for $ac_word... " >&6; }
13863 if test "${ac_cv_path_MSGMERGE+set}" = set; then
13864 $as_echo_n "(cached) " >&6
13866 case "$MSGMERGE" in
13868 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13871 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13872 for ac_dir in $PATH; do
13874 test -z "$ac_dir" && ac_dir=.
13875 for ac_exec_ext in '' $ac_executable_extensions; do
13876 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13877 echo "$as_me: trying $ac_dir/$ac_word..." >&5
13878 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
13879 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13886 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13890 MSGMERGE="$ac_cv_path_MSGMERGE"
13891 if test "$MSGMERGE" != ":"; then
13892 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
13893 $as_echo "$MSGMERGE" >&6; }
13895 { $as_echo "$as_me:$LINENO: result: no" >&5
13896 $as_echo "no" >&6; }
13900 test -n "$localedir" || localedir='${datadir}/locale'
13903 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
13906 ac_config_commands="$ac_config_commands po-directories"
13910 if test "X$prefix" = "XNONE"; then
13911 acl_final_prefix="$ac_default_prefix"
13913 acl_final_prefix="$prefix"
13915 if test "X$exec_prefix" = "XNONE"; then
13916 acl_final_exec_prefix='${prefix}'
13918 acl_final_exec_prefix="$exec_prefix"
13920 acl_save_prefix="$prefix"
13921 prefix="$acl_final_prefix"
13922 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13923 prefix="$acl_save_prefix"
13926 # Check whether --with-gnu-ld was given.
13927 if test "${with_gnu_ld+set}" = set; then
13928 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13933 # Prepare PATH_SEPARATOR.
13934 # The user is always right.
13935 if test "${PATH_SEPARATOR+set}" != set; then
13936 echo "#! /bin/sh" >conf$$.sh
13937 echo "exit 0" >>conf$$.sh
13939 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13947 if test "$GCC" = yes; then
13948 # Check if gcc -print-prog-name=ld gives a path.
13949 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
13950 $as_echo_n "checking for ld used by GCC... " >&6; }
13953 # gcc leaves a trailing carriage return which upsets mingw
13954 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13956 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13959 # Accept absolute paths.
13960 [\\/]* | [A-Za-z]:[\\/]*)
13961 re_direlt='/[^/][^/]*/\.\./'
13962 # Canonicalize the path of ld
13963 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13964 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13965 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13967 test -z "$LD" && LD="$ac_prog"
13970 # If it fails, then pretend we aren't using GCC.
13974 # If it is relative, then search for the first ld in PATH.
13975 with_gnu_ld=unknown
13978 elif test "$with_gnu_ld" = yes; then
13979 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
13980 $as_echo_n "checking for GNU ld... " >&6; }
13982 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13983 $as_echo_n "checking for non-GNU ld... " >&6; }
13985 if test "${acl_cv_path_LD+set}" = set; then
13986 $as_echo_n "(cached) " >&6
13988 if test -z "$LD"; then
13989 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13990 for ac_dir in $PATH; do
13991 test -z "$ac_dir" && ac_dir=.
13992 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13993 acl_cv_path_LD="$ac_dir/$ac_prog"
13994 # Check to see if the program is GNU ld. I'd rather use --version,
13995 # but apparently some GNU ld's only accept -v.
13996 # Break only if it was the GNU/non-GNU ld that we prefer.
13997 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
13998 *GNU* | *'with BFD'*)
13999 test "$with_gnu_ld" != no && break ;;
14001 test "$with_gnu_ld" != yes && break ;;
14007 acl_cv_path_LD="$LD" # Let the user override the test with a path.
14011 LD="$acl_cv_path_LD"
14012 if test -n "$LD"; then
14013 { $as_echo "$as_me:$LINENO: result: $LD" >&5
14014 $as_echo "$LD" >&6; }
14016 { $as_echo "$as_me:$LINENO: result: no" >&5
14017 $as_echo "no" >&6; }
14019 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14020 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14021 { (exit 1); exit 1; }; }
14022 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14023 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14024 if test "${acl_cv_prog_gnu_ld+set}" = set; then
14025 $as_echo_n "(cached) " >&6
14027 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14028 case `$LD -v 2>&1 </dev/null` in
14029 *GNU* | *'with BFD'*)
14030 acl_cv_prog_gnu_ld=yes ;;
14032 acl_cv_prog_gnu_ld=no ;;
14035 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
14036 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
14037 with_gnu_ld=$acl_cv_prog_gnu_ld
14042 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
14043 $as_echo_n "checking for shared library run path origin... " >&6; }
14044 if test "${acl_cv_rpath+set}" = set; then
14045 $as_echo_n "(cached) " >&6
14048 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14049 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14051 rm -f ./conftest.sh
14055 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
14056 $as_echo "$acl_cv_rpath" >&6; }
14058 acl_libext="$acl_cv_libext"
14059 acl_shlibext="$acl_cv_shlibext"
14060 acl_libname_spec="$acl_cv_libname_spec"
14061 acl_library_names_spec="$acl_cv_library_names_spec"
14062 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
14063 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
14064 acl_hardcode_direct="$acl_cv_hardcode_direct"
14065 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
14066 # Check whether --enable-rpath was given.
14067 if test "${enable_rpath+set}" = set; then
14068 enableval=$enable_rpath; :
14076 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
14077 if test -n "$searchpath"; then
14078 acl_save_IFS="${IFS= }"; IFS=":"
14079 for searchdir in $searchpath; do
14080 if test -d "$searchdir"; then
14081 case "$searchdir" in
14082 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
14083 *) searchdir=`cd "$searchdir" && pwd`
14084 case "$searchdir" in
14085 */lib64 ) acl_libdirstem=lib64 ;;
14090 IFS="$acl_save_IFS"
14103 acl_save_prefix="$prefix"
14104 prefix="$acl_final_prefix"
14105 acl_save_exec_prefix="$exec_prefix"
14106 exec_prefix="$acl_final_exec_prefix"
14108 eval additional_includedir=\"$includedir\"
14109 eval additional_libdir=\"$libdir\"
14111 exec_prefix="$acl_save_exec_prefix"
14112 prefix="$acl_save_prefix"
14115 # Check whether --with-libiconv-prefix was given.
14116 if test "${with_libiconv_prefix+set}" = set; then
14117 withval=$with_libiconv_prefix;
14118 if test "X$withval" = "Xno"; then
14121 if test "X$withval" = "X"; then
14123 acl_save_prefix="$prefix"
14124 prefix="$acl_final_prefix"
14125 acl_save_exec_prefix="$exec_prefix"
14126 exec_prefix="$acl_final_exec_prefix"
14128 eval additional_includedir=\"$includedir\"
14129 eval additional_libdir=\"$libdir\"
14131 exec_prefix="$acl_save_exec_prefix"
14132 prefix="$acl_save_prefix"
14135 additional_includedir="$withval/include"
14136 additional_libdir="$withval/$acl_libdirstem"
14148 names_already_handled=
14149 names_next_round='iconv '
14150 while test -n "$names_next_round"; do
14151 names_this_round="$names_next_round"
14153 for name in $names_this_round; do
14155 for n in $names_already_handled; do
14156 if test "$n" = "$name"; then
14157 already_handled=yes
14161 if test -z "$already_handled"; then
14162 names_already_handled="$names_already_handled $name"
14163 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14164 eval value=\"\$HAVE_LIB$uppername\"
14165 if test -n "$value"; then
14166 if test "$value" = yes; then
14167 eval value=\"\$LIB$uppername\"
14168 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14169 eval value=\"\$LTLIB$uppername\"
14170 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14179 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
14180 if test -n "$acl_shlibext"; then
14181 shrext=".$acl_shlibext" # typically: shrext=.so
14185 if test $use_additional = yes; then
14186 dir="$additional_libdir"
14187 if test -n "$acl_shlibext"; then
14188 if test -f "$dir/$libname$shrext"; then
14190 found_so="$dir/$libname$shrext"
14192 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14193 ver=`(cd "$dir" && \
14194 for f in "$libname$shrext".*; do echo "$f"; done \
14195 | sed -e "s,^$libname$shrext\\\\.,," \
14196 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14197 | sed 1q ) 2>/dev/null`
14198 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14200 found_so="$dir/$libname$shrext.$ver"
14203 eval library_names=\"$acl_library_names_spec\"
14204 for f in $library_names; do
14205 if test -f "$dir/$f"; then
14214 if test "X$found_dir" = "X"; then
14215 if test -f "$dir/$libname.$acl_libext"; then
14217 found_a="$dir/$libname.$acl_libext"
14220 if test "X$found_dir" != "X"; then
14221 if test -f "$dir/$libname.la"; then
14222 found_la="$dir/$libname.la"
14226 if test "X$found_dir" = "X"; then
14227 for x in $LDFLAGS $LTLIBICONV; do
14229 acl_save_prefix="$prefix"
14230 prefix="$acl_final_prefix"
14231 acl_save_exec_prefix="$exec_prefix"
14232 exec_prefix="$acl_final_exec_prefix"
14234 exec_prefix="$acl_save_exec_prefix"
14235 prefix="$acl_save_prefix"
14239 dir=`echo "X$x" | sed -e 's/^X-L//'`
14240 if test -n "$acl_shlibext"; then
14241 if test -f "$dir/$libname$shrext"; then
14243 found_so="$dir/$libname$shrext"
14245 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14246 ver=`(cd "$dir" && \
14247 for f in "$libname$shrext".*; do echo "$f"; done \
14248 | sed -e "s,^$libname$shrext\\\\.,," \
14249 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14250 | sed 1q ) 2>/dev/null`
14251 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14253 found_so="$dir/$libname$shrext.$ver"
14256 eval library_names=\"$acl_library_names_spec\"
14257 for f in $library_names; do
14258 if test -f "$dir/$f"; then
14267 if test "X$found_dir" = "X"; then
14268 if test -f "$dir/$libname.$acl_libext"; then
14270 found_a="$dir/$libname.$acl_libext"
14273 if test "X$found_dir" != "X"; then
14274 if test -f "$dir/$libname.la"; then
14275 found_la="$dir/$libname.la"
14280 if test "X$found_dir" != "X"; then
14285 if test "X$found_dir" != "X"; then
14286 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14287 if test "X$found_so" != "X"; then
14288 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
14289 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14292 for x in $ltrpathdirs; do
14293 if test "X$x" = "X$found_dir"; then
14298 if test -z "$haveit"; then
14299 ltrpathdirs="$ltrpathdirs $found_dir"
14301 if test "$acl_hardcode_direct" = yes; then
14302 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14304 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14305 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14307 for x in $rpathdirs; do
14308 if test "X$x" = "X$found_dir"; then
14313 if test -z "$haveit"; then
14314 rpathdirs="$rpathdirs $found_dir"
14318 for x in $LDFLAGS $LIBICONV; do
14320 acl_save_prefix="$prefix"
14321 prefix="$acl_final_prefix"
14322 acl_save_exec_prefix="$exec_prefix"
14323 exec_prefix="$acl_final_exec_prefix"
14325 exec_prefix="$acl_save_exec_prefix"
14326 prefix="$acl_save_prefix"
14328 if test "X$x" = "X-L$found_dir"; then
14333 if test -z "$haveit"; then
14334 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14336 if test "$acl_hardcode_minus_L" != no; then
14337 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14339 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14345 if test "X$found_a" != "X"; then
14346 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14348 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14351 additional_includedir=
14352 case "$found_dir" in
14353 */$acl_libdirstem | */$acl_libdirstem/)
14354 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14355 LIBICONV_PREFIX="$basedir"
14356 additional_includedir="$basedir/include"
14359 if test "X$additional_includedir" != "X"; then
14360 if test "X$additional_includedir" != "X/usr/include"; then
14362 if test "X$additional_includedir" = "X/usr/local/include"; then
14363 if test -n "$GCC"; then
14365 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14369 if test -z "$haveit"; then
14370 for x in $CPPFLAGS $INCICONV; do
14372 acl_save_prefix="$prefix"
14373 prefix="$acl_final_prefix"
14374 acl_save_exec_prefix="$exec_prefix"
14375 exec_prefix="$acl_final_exec_prefix"
14377 exec_prefix="$acl_save_exec_prefix"
14378 prefix="$acl_save_prefix"
14380 if test "X$x" = "X-I$additional_includedir"; then
14385 if test -z "$haveit"; then
14386 if test -d "$additional_includedir"; then
14387 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14393 if test -n "$found_la"; then
14394 save_libdir="$libdir"
14395 case "$found_la" in
14396 */* | *\\*) . "$found_la" ;;
14397 *) . "./$found_la" ;;
14399 libdir="$save_libdir"
14400 for dep in $dependency_libs; do
14403 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14404 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
14406 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
14407 if test -n "$GCC"; then
14409 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14413 if test -z "$haveit"; then
14415 for x in $LDFLAGS $LIBICONV; do
14417 acl_save_prefix="$prefix"
14418 prefix="$acl_final_prefix"
14419 acl_save_exec_prefix="$exec_prefix"
14420 exec_prefix="$acl_final_exec_prefix"
14422 exec_prefix="$acl_save_exec_prefix"
14423 prefix="$acl_save_prefix"
14425 if test "X$x" = "X-L$additional_libdir"; then
14430 if test -z "$haveit"; then
14431 if test -d "$additional_libdir"; then
14432 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14436 for x in $LDFLAGS $LTLIBICONV; do
14438 acl_save_prefix="$prefix"
14439 prefix="$acl_final_prefix"
14440 acl_save_exec_prefix="$exec_prefix"
14441 exec_prefix="$acl_final_exec_prefix"
14443 exec_prefix="$acl_save_exec_prefix"
14444 prefix="$acl_save_prefix"
14446 if test "X$x" = "X-L$additional_libdir"; then
14451 if test -z "$haveit"; then
14452 if test -d "$additional_libdir"; then
14453 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14460 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14461 if test "$enable_rpath" != no; then
14463 for x in $rpathdirs; do
14464 if test "X$x" = "X$dir"; then
14469 if test -z "$haveit"; then
14470 rpathdirs="$rpathdirs $dir"
14473 for x in $ltrpathdirs; do
14474 if test "X$x" = "X$dir"; then
14479 if test -z "$haveit"; then
14480 ltrpathdirs="$ltrpathdirs $dir"
14485 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14488 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14491 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14492 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14498 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14499 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14505 if test "X$rpathdirs" != "X"; then
14506 if test -n "$acl_hardcode_libdir_separator"; then
14508 for found_dir in $rpathdirs; do
14509 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14511 acl_save_libdir="$libdir"
14513 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14514 libdir="$acl_save_libdir"
14515 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14517 for found_dir in $rpathdirs; do
14518 acl_save_libdir="$libdir"
14519 libdir="$found_dir"
14520 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14521 libdir="$acl_save_libdir"
14522 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14526 if test "X$ltrpathdirs" != "X"; then
14527 for found_dir in $ltrpathdirs; do
14528 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14556 { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
14557 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
14558 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
14559 $as_echo_n "(cached) " >&6
14561 gt_save_LIBS="$LIBS"
14562 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14563 cat >conftest.$ac_ext <<_ACEOF
14566 cat confdefs.h >>conftest.$ac_ext
14567 cat >>conftest.$ac_ext <<_ACEOF
14568 /* end confdefs.h. */
14569 #include <CoreFoundation/CFPreferences.h>
14573 CFPreferencesCopyAppValue(NULL, NULL)
14578 rm -f conftest.$ac_objext conftest$ac_exeext
14579 if { (ac_try="$ac_link"
14580 case "(($ac_try" in
14581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14582 *) ac_try_echo=$ac_try;;
14584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14585 $as_echo "$ac_try_echo") >&5
14586 (eval "$ac_link") 2>conftest.er1
14588 grep -v '^ *+' conftest.er1 >conftest.err
14590 cat conftest.err >&5
14591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14592 (exit $ac_status); } && {
14593 test -z "$ac_c_werror_flag" ||
14594 test ! -s conftest.err
14595 } && test -s conftest$ac_exeext && {
14596 test "$cross_compiling" = yes ||
14597 $as_test_x conftest$ac_exeext
14599 gt_cv_func_CFPreferencesCopyAppValue=yes
14601 $as_echo "$as_me: failed program was:" >&5
14602 sed 's/^/| /' conftest.$ac_ext >&5
14604 gt_cv_func_CFPreferencesCopyAppValue=no
14607 rm -rf conftest.dSYM
14608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14609 conftest$ac_exeext conftest.$ac_ext
14610 LIBS="$gt_save_LIBS"
14612 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
14613 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
14614 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
14616 cat >>confdefs.h <<\_ACEOF
14617 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
14621 { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
14622 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
14623 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
14624 $as_echo_n "(cached) " >&6
14626 gt_save_LIBS="$LIBS"
14627 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14628 cat >conftest.$ac_ext <<_ACEOF
14631 cat confdefs.h >>conftest.$ac_ext
14632 cat >>conftest.$ac_ext <<_ACEOF
14633 /* end confdefs.h. */
14634 #include <CoreFoundation/CFLocale.h>
14638 CFLocaleCopyCurrent();
14643 rm -f conftest.$ac_objext conftest$ac_exeext
14644 if { (ac_try="$ac_link"
14645 case "(($ac_try" in
14646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14647 *) ac_try_echo=$ac_try;;
14649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14650 $as_echo "$ac_try_echo") >&5
14651 (eval "$ac_link") 2>conftest.er1
14653 grep -v '^ *+' conftest.er1 >conftest.err
14655 cat conftest.err >&5
14656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657 (exit $ac_status); } && {
14658 test -z "$ac_c_werror_flag" ||
14659 test ! -s conftest.err
14660 } && test -s conftest$ac_exeext && {
14661 test "$cross_compiling" = yes ||
14662 $as_test_x conftest$ac_exeext
14664 gt_cv_func_CFLocaleCopyCurrent=yes
14666 $as_echo "$as_me: failed program was:" >&5
14667 sed 's/^/| /' conftest.$ac_ext >&5
14669 gt_cv_func_CFLocaleCopyCurrent=no
14672 rm -rf conftest.dSYM
14673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14674 conftest$ac_exeext conftest.$ac_ext
14675 LIBS="$gt_save_LIBS"
14677 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
14678 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
14679 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14681 cat >>confdefs.h <<\_ACEOF
14682 #define HAVE_CFLOCALECOPYCURRENT 1
14687 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14688 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
14700 case " $gt_needs " in
14701 *" need-formatstring-macros "*) gt_api_version=3 ;;
14702 *" need-ngettext "*) gt_api_version=2 ;;
14703 *) gt_api_version=1 ;;
14705 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
14706 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
14708 if test "$USE_NLS" = "yes"; then
14709 gt_use_preinstalled_gnugettext=no
14712 if test $gt_api_version -ge 3; then
14713 gt_revision_test_code='
14714 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14715 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
14717 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
14720 gt_revision_test_code=
14722 if test $gt_api_version -ge 2; then
14723 gt_expression_test_code=' + * ngettext ("", "", 0)'
14725 gt_expression_test_code=
14728 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
14729 $as_echo_n "checking for GNU gettext in libc... " >&6; }
14730 if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
14731 $as_echo_n "(cached) " >&6
14733 cat >conftest.$ac_ext <<_ACEOF
14736 cat confdefs.h >>conftest.$ac_ext
14737 cat >>conftest.$ac_ext <<_ACEOF
14738 /* end confdefs.h. */
14739 #include <libintl.h>
14740 $gt_revision_test_code
14741 extern int _nl_msg_cat_cntr;
14742 extern int *_nl_domain_bindings;
14746 bindtextdomain ("", "");
14747 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
14752 rm -f conftest.$ac_objext conftest$ac_exeext
14753 if { (ac_try="$ac_link"
14754 case "(($ac_try" in
14755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14756 *) ac_try_echo=$ac_try;;
14758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14759 $as_echo "$ac_try_echo") >&5
14760 (eval "$ac_link") 2>conftest.er1
14762 grep -v '^ *+' conftest.er1 >conftest.err
14764 cat conftest.err >&5
14765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766 (exit $ac_status); } && {
14767 test -z "$ac_c_werror_flag" ||
14768 test ! -s conftest.err
14769 } && test -s conftest$ac_exeext && {
14770 test "$cross_compiling" = yes ||
14771 $as_test_x conftest$ac_exeext
14773 eval "$gt_func_gnugettext_libc=yes"
14775 $as_echo "$as_me: failed program was:" >&5
14776 sed 's/^/| /' conftest.$ac_ext >&5
14778 eval "$gt_func_gnugettext_libc=no"
14781 rm -rf conftest.dSYM
14782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14783 conftest$ac_exeext conftest.$ac_ext
14785 ac_res=`eval 'as_val=${'$gt_func_gnugettext_libc'}
14786 $as_echo "$as_val"'`
14787 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14788 $as_echo "$ac_res" >&6; }
14790 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
14796 am_save_CPPFLAGS="$CPPFLAGS"
14798 for element in $INCICONV; do
14800 for x in $CPPFLAGS; do
14802 acl_save_prefix="$prefix"
14803 prefix="$acl_final_prefix"
14804 acl_save_exec_prefix="$exec_prefix"
14805 exec_prefix="$acl_final_exec_prefix"
14807 exec_prefix="$acl_save_exec_prefix"
14808 prefix="$acl_save_prefix"
14810 if test "X$x" = "X$element"; then
14815 if test -z "$haveit"; then
14816 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14821 { $as_echo "$as_me:$LINENO: checking for iconv" >&5
14822 $as_echo_n "checking for iconv... " >&6; }
14823 if test "${am_cv_func_iconv+set}" = set; then
14824 $as_echo_n "(cached) " >&6
14827 am_cv_func_iconv="no, consider installing GNU libiconv"
14829 cat >conftest.$ac_ext <<_ACEOF
14832 cat confdefs.h >>conftest.$ac_ext
14833 cat >>conftest.$ac_ext <<_ACEOF
14834 /* end confdefs.h. */
14835 #include <stdlib.h>
14840 iconv_t cd = iconv_open("","");
14841 iconv(cd,NULL,NULL,NULL,NULL);
14847 rm -f conftest.$ac_objext conftest$ac_exeext
14848 if { (ac_try="$ac_link"
14849 case "(($ac_try" in
14850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14851 *) ac_try_echo=$ac_try;;
14853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14854 $as_echo "$ac_try_echo") >&5
14855 (eval "$ac_link") 2>conftest.er1
14857 grep -v '^ *+' conftest.er1 >conftest.err
14859 cat conftest.err >&5
14860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14861 (exit $ac_status); } && {
14862 test -z "$ac_c_werror_flag" ||
14863 test ! -s conftest.err
14864 } && test -s conftest$ac_exeext && {
14865 test "$cross_compiling" = yes ||
14866 $as_test_x conftest$ac_exeext
14868 am_cv_func_iconv=yes
14870 $as_echo "$as_me: failed program was:" >&5
14871 sed 's/^/| /' conftest.$ac_ext >&5
14876 rm -rf conftest.dSYM
14877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14878 conftest$ac_exeext conftest.$ac_ext
14879 if test "$am_cv_func_iconv" != yes; then
14880 am_save_LIBS="$LIBS"
14881 LIBS="$LIBS $LIBICONV"
14882 cat >conftest.$ac_ext <<_ACEOF
14885 cat confdefs.h >>conftest.$ac_ext
14886 cat >>conftest.$ac_ext <<_ACEOF
14887 /* end confdefs.h. */
14888 #include <stdlib.h>
14893 iconv_t cd = iconv_open("","");
14894 iconv(cd,NULL,NULL,NULL,NULL);
14900 rm -f conftest.$ac_objext conftest$ac_exeext
14901 if { (ac_try="$ac_link"
14902 case "(($ac_try" in
14903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14904 *) ac_try_echo=$ac_try;;
14906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14907 $as_echo "$ac_try_echo") >&5
14908 (eval "$ac_link") 2>conftest.er1
14910 grep -v '^ *+' conftest.er1 >conftest.err
14912 cat conftest.err >&5
14913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914 (exit $ac_status); } && {
14915 test -z "$ac_c_werror_flag" ||
14916 test ! -s conftest.err
14917 } && test -s conftest$ac_exeext && {
14918 test "$cross_compiling" = yes ||
14919 $as_test_x conftest$ac_exeext
14921 am_cv_lib_iconv=yes
14922 am_cv_func_iconv=yes
14924 $as_echo "$as_me: failed program was:" >&5
14925 sed 's/^/| /' conftest.$ac_ext >&5
14930 rm -rf conftest.dSYM
14931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14932 conftest$ac_exeext conftest.$ac_ext
14933 LIBS="$am_save_LIBS"
14937 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
14938 $as_echo "$am_cv_func_iconv" >&6; }
14939 if test "$am_cv_func_iconv" = yes; then
14940 { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
14941 $as_echo_n "checking for working iconv... " >&6; }
14942 if test "${am_cv_func_iconv_works+set}" = set; then
14943 $as_echo_n "(cached) " >&6
14946 am_save_LIBS="$LIBS"
14947 if test $am_cv_lib_iconv = yes; then
14948 LIBS="$LIBS $LIBICONV"
14950 if test "$cross_compiling" = yes; then
14952 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
14953 *) am_cv_func_iconv_works="guessing yes" ;;
14956 cat >conftest.$ac_ext <<_ACEOF
14959 cat confdefs.h >>conftest.$ac_ext
14960 cat >>conftest.$ac_ext <<_ACEOF
14961 /* end confdefs.h. */
14964 #include <string.h>
14967 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
14970 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
14971 if (cd_utf8_to_88591 != (iconv_t)(-1))
14973 static const char input[] = "\342\202\254"; /* EURO SIGN */
14975 const char *inptr = input;
14976 size_t inbytesleft = strlen (input);
14977 char *outptr = buf;
14978 size_t outbytesleft = sizeof (buf);
14979 size_t res = iconv (cd_utf8_to_88591,
14980 (char **) &inptr, &inbytesleft,
14981 &outptr, &outbytesleft);
14986 #if 0 /* This bug could be worked around by the caller. */
14987 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
14989 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
14990 if (cd_88591_to_utf8 != (iconv_t)(-1))
14992 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
14994 const char *inptr = input;
14995 size_t inbytesleft = strlen (input);
14996 char *outptr = buf;
14997 size_t outbytesleft = sizeof (buf);
14998 size_t res = iconv (cd_88591_to_utf8,
14999 (char **) &inptr, &inbytesleft,
15000 &outptr, &outbytesleft);
15006 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
15008 if (/* Try standardized names. */
15009 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
15010 /* Try IRIX, OSF/1 names. */
15011 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
15012 /* Try AIX names. */
15013 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
15014 /* Try HP-UX names. */
15015 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
15020 rm -f conftest$ac_exeext
15021 if { (ac_try="$ac_link"
15022 case "(($ac_try" in
15023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15024 *) ac_try_echo=$ac_try;;
15026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15027 $as_echo "$ac_try_echo") >&5
15028 (eval "$ac_link") 2>&5
15030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15032 { (case "(($ac_try" in
15033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15034 *) ac_try_echo=$ac_try;;
15036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15037 $as_echo "$ac_try_echo") >&5
15038 (eval "$ac_try") 2>&5
15040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041 (exit $ac_status); }; }; then
15042 am_cv_func_iconv_works=yes
15044 $as_echo "$as_me: program exited with status $ac_status" >&5
15045 $as_echo "$as_me: failed program was:" >&5
15046 sed 's/^/| /' conftest.$ac_ext >&5
15048 ( exit $ac_status )
15049 am_cv_func_iconv_works=no
15051 rm -rf conftest.dSYM
15052 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15056 LIBS="$am_save_LIBS"
15059 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
15060 $as_echo "$am_cv_func_iconv_works" >&6; }
15061 case "$am_cv_func_iconv_works" in
15062 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
15063 *) am_func_iconv=yes ;;
15066 am_func_iconv=no am_cv_lib_iconv=no
15068 if test "$am_func_iconv" = yes; then
15070 cat >>confdefs.h <<\_ACEOF
15071 #define HAVE_ICONV 1
15075 if test "$am_cv_lib_iconv" = yes; then
15076 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
15077 $as_echo_n "checking how to link with libiconv... " >&6; }
15078 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
15079 $as_echo "$LIBICONV" >&6; }
15081 CPPFLAGS="$am_save_CPPFLAGS"
15095 acl_save_prefix="$prefix"
15096 prefix="$acl_final_prefix"
15097 acl_save_exec_prefix="$exec_prefix"
15098 exec_prefix="$acl_final_exec_prefix"
15100 eval additional_includedir=\"$includedir\"
15101 eval additional_libdir=\"$libdir\"
15103 exec_prefix="$acl_save_exec_prefix"
15104 prefix="$acl_save_prefix"
15107 # Check whether --with-libintl-prefix was given.
15108 if test "${with_libintl_prefix+set}" = set; then
15109 withval=$with_libintl_prefix;
15110 if test "X$withval" = "Xno"; then
15113 if test "X$withval" = "X"; then
15115 acl_save_prefix="$prefix"
15116 prefix="$acl_final_prefix"
15117 acl_save_exec_prefix="$exec_prefix"
15118 exec_prefix="$acl_final_exec_prefix"
15120 eval additional_includedir=\"$includedir\"
15121 eval additional_libdir=\"$libdir\"
15123 exec_prefix="$acl_save_exec_prefix"
15124 prefix="$acl_save_prefix"
15127 additional_includedir="$withval/include"
15128 additional_libdir="$withval/$acl_libdirstem"
15140 names_already_handled=
15141 names_next_round='intl '
15142 while test -n "$names_next_round"; do
15143 names_this_round="$names_next_round"
15145 for name in $names_this_round; do
15147 for n in $names_already_handled; do
15148 if test "$n" = "$name"; then
15149 already_handled=yes
15153 if test -z "$already_handled"; then
15154 names_already_handled="$names_already_handled $name"
15155 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15156 eval value=\"\$HAVE_LIB$uppername\"
15157 if test -n "$value"; then
15158 if test "$value" = yes; then
15159 eval value=\"\$LIB$uppername\"
15160 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
15161 eval value=\"\$LTLIB$uppername\"
15162 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
15171 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
15172 if test -n "$acl_shlibext"; then
15173 shrext=".$acl_shlibext" # typically: shrext=.so
15177 if test $use_additional = yes; then
15178 dir="$additional_libdir"
15179 if test -n "$acl_shlibext"; then
15180 if test -f "$dir/$libname$shrext"; then
15182 found_so="$dir/$libname$shrext"
15184 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15185 ver=`(cd "$dir" && \
15186 for f in "$libname$shrext".*; do echo "$f"; done \
15187 | sed -e "s,^$libname$shrext\\\\.,," \
15188 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15189 | sed 1q ) 2>/dev/null`
15190 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15192 found_so="$dir/$libname$shrext.$ver"
15195 eval library_names=\"$acl_library_names_spec\"
15196 for f in $library_names; do
15197 if test -f "$dir/$f"; then
15206 if test "X$found_dir" = "X"; then
15207 if test -f "$dir/$libname.$acl_libext"; then
15209 found_a="$dir/$libname.$acl_libext"
15212 if test "X$found_dir" != "X"; then
15213 if test -f "$dir/$libname.la"; then
15214 found_la="$dir/$libname.la"
15218 if test "X$found_dir" = "X"; then
15219 for x in $LDFLAGS $LTLIBINTL; do
15221 acl_save_prefix="$prefix"
15222 prefix="$acl_final_prefix"
15223 acl_save_exec_prefix="$exec_prefix"
15224 exec_prefix="$acl_final_exec_prefix"
15226 exec_prefix="$acl_save_exec_prefix"
15227 prefix="$acl_save_prefix"
15231 dir=`echo "X$x" | sed -e 's/^X-L//'`
15232 if test -n "$acl_shlibext"; then
15233 if test -f "$dir/$libname$shrext"; then
15235 found_so="$dir/$libname$shrext"
15237 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15238 ver=`(cd "$dir" && \
15239 for f in "$libname$shrext".*; do echo "$f"; done \
15240 | sed -e "s,^$libname$shrext\\\\.,," \
15241 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15242 | sed 1q ) 2>/dev/null`
15243 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15245 found_so="$dir/$libname$shrext.$ver"
15248 eval library_names=\"$acl_library_names_spec\"
15249 for f in $library_names; do
15250 if test -f "$dir/$f"; then
15259 if test "X$found_dir" = "X"; then
15260 if test -f "$dir/$libname.$acl_libext"; then
15262 found_a="$dir/$libname.$acl_libext"
15265 if test "X$found_dir" != "X"; then
15266 if test -f "$dir/$libname.la"; then
15267 found_la="$dir/$libname.la"
15272 if test "X$found_dir" != "X"; then
15277 if test "X$found_dir" != "X"; then
15278 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
15279 if test "X$found_so" != "X"; then
15280 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
15281 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15284 for x in $ltrpathdirs; do
15285 if test "X$x" = "X$found_dir"; then
15290 if test -z "$haveit"; then
15291 ltrpathdirs="$ltrpathdirs $found_dir"
15293 if test "$acl_hardcode_direct" = yes; then
15294 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15296 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
15297 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15299 for x in $rpathdirs; do
15300 if test "X$x" = "X$found_dir"; then
15305 if test -z "$haveit"; then
15306 rpathdirs="$rpathdirs $found_dir"
15310 for x in $LDFLAGS $LIBINTL; do
15312 acl_save_prefix="$prefix"
15313 prefix="$acl_final_prefix"
15314 acl_save_exec_prefix="$exec_prefix"
15315 exec_prefix="$acl_final_exec_prefix"
15317 exec_prefix="$acl_save_exec_prefix"
15318 prefix="$acl_save_prefix"
15320 if test "X$x" = "X-L$found_dir"; then
15325 if test -z "$haveit"; then
15326 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
15328 if test "$acl_hardcode_minus_L" != no; then
15329 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15331 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15337 if test "X$found_a" != "X"; then
15338 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
15340 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
15343 additional_includedir=
15344 case "$found_dir" in
15345 */$acl_libdirstem | */$acl_libdirstem/)
15346 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15347 LIBINTL_PREFIX="$basedir"
15348 additional_includedir="$basedir/include"
15351 if test "X$additional_includedir" != "X"; then
15352 if test "X$additional_includedir" != "X/usr/include"; then
15354 if test "X$additional_includedir" = "X/usr/local/include"; then
15355 if test -n "$GCC"; then
15357 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15361 if test -z "$haveit"; then
15362 for x in $CPPFLAGS $INCINTL; do
15364 acl_save_prefix="$prefix"
15365 prefix="$acl_final_prefix"
15366 acl_save_exec_prefix="$exec_prefix"
15367 exec_prefix="$acl_final_exec_prefix"
15369 exec_prefix="$acl_save_exec_prefix"
15370 prefix="$acl_save_prefix"
15372 if test "X$x" = "X-I$additional_includedir"; then
15377 if test -z "$haveit"; then
15378 if test -d "$additional_includedir"; then
15379 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
15385 if test -n "$found_la"; then
15386 save_libdir="$libdir"
15387 case "$found_la" in
15388 */* | *\\*) . "$found_la" ;;
15389 *) . "./$found_la" ;;
15391 libdir="$save_libdir"
15392 for dep in $dependency_libs; do
15395 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15396 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
15398 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
15399 if test -n "$GCC"; then
15401 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15405 if test -z "$haveit"; then
15407 for x in $LDFLAGS $LIBINTL; do
15409 acl_save_prefix="$prefix"
15410 prefix="$acl_final_prefix"
15411 acl_save_exec_prefix="$exec_prefix"
15412 exec_prefix="$acl_final_exec_prefix"
15414 exec_prefix="$acl_save_exec_prefix"
15415 prefix="$acl_save_prefix"
15417 if test "X$x" = "X-L$additional_libdir"; then
15422 if test -z "$haveit"; then
15423 if test -d "$additional_libdir"; then
15424 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
15428 for x in $LDFLAGS $LTLIBINTL; do
15430 acl_save_prefix="$prefix"
15431 prefix="$acl_final_prefix"
15432 acl_save_exec_prefix="$exec_prefix"
15433 exec_prefix="$acl_final_exec_prefix"
15435 exec_prefix="$acl_save_exec_prefix"
15436 prefix="$acl_save_prefix"
15438 if test "X$x" = "X-L$additional_libdir"; then
15443 if test -z "$haveit"; then
15444 if test -d "$additional_libdir"; then
15445 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
15452 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15453 if test "$enable_rpath" != no; then
15455 for x in $rpathdirs; do
15456 if test "X$x" = "X$dir"; then
15461 if test -z "$haveit"; then
15462 rpathdirs="$rpathdirs $dir"
15465 for x in $ltrpathdirs; do
15466 if test "X$x" = "X$dir"; then
15471 if test -z "$haveit"; then
15472 ltrpathdirs="$ltrpathdirs $dir"
15477 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15480 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15483 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
15484 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
15490 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15491 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
15497 if test "X$rpathdirs" != "X"; then
15498 if test -n "$acl_hardcode_libdir_separator"; then
15500 for found_dir in $rpathdirs; do
15501 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15503 acl_save_libdir="$libdir"
15505 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15506 libdir="$acl_save_libdir"
15507 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15509 for found_dir in $rpathdirs; do
15510 acl_save_libdir="$libdir"
15511 libdir="$found_dir"
15512 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15513 libdir="$acl_save_libdir"
15514 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15518 if test "X$ltrpathdirs" != "X"; then
15519 for found_dir in $ltrpathdirs; do
15520 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
15524 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
15525 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
15526 if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
15527 $as_echo_n "(cached) " >&6
15529 gt_save_CPPFLAGS="$CPPFLAGS"
15530 CPPFLAGS="$CPPFLAGS $INCINTL"
15531 gt_save_LIBS="$LIBS"
15532 LIBS="$LIBS $LIBINTL"
15533 cat >conftest.$ac_ext <<_ACEOF
15536 cat confdefs.h >>conftest.$ac_ext
15537 cat >>conftest.$ac_ext <<_ACEOF
15538 /* end confdefs.h. */
15539 #include <libintl.h>
15540 $gt_revision_test_code
15541 extern int _nl_msg_cat_cntr;
15546 const char *_nl_expand_alias (const char *);
15550 bindtextdomain ("", "");
15551 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15556 rm -f conftest.$ac_objext conftest$ac_exeext
15557 if { (ac_try="$ac_link"
15558 case "(($ac_try" in
15559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15560 *) ac_try_echo=$ac_try;;
15562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15563 $as_echo "$ac_try_echo") >&5
15564 (eval "$ac_link") 2>conftest.er1
15566 grep -v '^ *+' conftest.er1 >conftest.err
15568 cat conftest.err >&5
15569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570 (exit $ac_status); } && {
15571 test -z "$ac_c_werror_flag" ||
15572 test ! -s conftest.err
15573 } && test -s conftest$ac_exeext && {
15574 test "$cross_compiling" = yes ||
15575 $as_test_x conftest$ac_exeext
15577 eval "$gt_func_gnugettext_libintl=yes"
15579 $as_echo "$as_me: failed program was:" >&5
15580 sed 's/^/| /' conftest.$ac_ext >&5
15582 eval "$gt_func_gnugettext_libintl=no"
15585 rm -rf conftest.dSYM
15586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15587 conftest$ac_exeext conftest.$ac_ext
15588 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
15589 LIBS="$LIBS $LIBICONV"
15590 cat >conftest.$ac_ext <<_ACEOF
15593 cat confdefs.h >>conftest.$ac_ext
15594 cat >>conftest.$ac_ext <<_ACEOF
15595 /* end confdefs.h. */
15596 #include <libintl.h>
15597 $gt_revision_test_code
15598 extern int _nl_msg_cat_cntr;
15603 const char *_nl_expand_alias (const char *);
15607 bindtextdomain ("", "");
15608 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15613 rm -f conftest.$ac_objext conftest$ac_exeext
15614 if { (ac_try="$ac_link"
15615 case "(($ac_try" in
15616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15617 *) ac_try_echo=$ac_try;;
15619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15620 $as_echo "$ac_try_echo") >&5
15621 (eval "$ac_link") 2>conftest.er1
15623 grep -v '^ *+' conftest.er1 >conftest.err
15625 cat conftest.err >&5
15626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627 (exit $ac_status); } && {
15628 test -z "$ac_c_werror_flag" ||
15629 test ! -s conftest.err
15630 } && test -s conftest$ac_exeext && {
15631 test "$cross_compiling" = yes ||
15632 $as_test_x conftest$ac_exeext
15634 LIBINTL="$LIBINTL $LIBICONV"
15635 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
15636 eval "$gt_func_gnugettext_libintl=yes"
15639 $as_echo "$as_me: failed program was:" >&5
15640 sed 's/^/| /' conftest.$ac_ext >&5
15645 rm -rf conftest.dSYM
15646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15647 conftest$ac_exeext conftest.$ac_ext
15649 CPPFLAGS="$gt_save_CPPFLAGS"
15650 LIBS="$gt_save_LIBS"
15652 ac_res=`eval 'as_val=${'$gt_func_gnugettext_libintl'}
15653 $as_echo "$as_val"'`
15654 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15655 $as_echo "$ac_res" >&6; }
15658 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
15659 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
15660 && test "$PACKAGE" != gettext-runtime \
15661 && test "$PACKAGE" != gettext-tools; }; then
15662 gt_use_preinstalled_gnugettext=yes
15671 if test -n "$INTL_MACOSX_LIBS"; then
15672 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15673 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15674 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
15675 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
15679 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15680 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15682 cat >>confdefs.h <<\_ACEOF
15683 #define ENABLE_NLS 1
15691 { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
15692 $as_echo_n "checking whether to use NLS... " >&6; }
15693 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
15694 $as_echo "$USE_NLS" >&6; }
15695 if test "$USE_NLS" = "yes"; then
15696 { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
15697 $as_echo_n "checking where the gettext function comes from... " >&6; }
15698 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15699 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15700 gt_source="external libintl"
15705 gt_source="included intl directory"
15707 { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
15708 $as_echo "$gt_source" >&6; }
15711 if test "$USE_NLS" = "yes"; then
15713 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15714 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15715 { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
15716 $as_echo_n "checking how to link with libintl... " >&6; }
15717 { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
15718 $as_echo "$LIBINTL" >&6; }
15720 for element in $INCINTL; do
15722 for x in $CPPFLAGS; do
15724 acl_save_prefix="$prefix"
15725 prefix="$acl_final_prefix"
15726 acl_save_exec_prefix="$exec_prefix"
15727 exec_prefix="$acl_final_exec_prefix"
15729 exec_prefix="$acl_save_exec_prefix"
15730 prefix="$acl_save_prefix"
15732 if test "X$x" = "X$element"; then
15737 if test -z "$haveit"; then
15738 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15745 cat >>confdefs.h <<\_ACEOF
15746 #define HAVE_GETTEXT 1
15750 cat >>confdefs.h <<\_ACEOF
15751 #define HAVE_DCGETTEXT 1
15761 INTLLIBS="$LIBINTL"
15772 am_save_CPPFLAGS="$CPPFLAGS"
15774 for element in $INCICONV; do
15776 for x in $CPPFLAGS; do
15778 acl_save_prefix="$prefix"
15779 prefix="$acl_final_prefix"
15780 acl_save_exec_prefix="$exec_prefix"
15781 exec_prefix="$acl_final_exec_prefix"
15783 exec_prefix="$acl_save_exec_prefix"
15784 prefix="$acl_save_prefix"
15786 if test "X$x" = "X$element"; then
15791 if test -z "$haveit"; then
15792 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15797 { $as_echo "$as_me:$LINENO: checking for iconv" >&5
15798 $as_echo_n "checking for iconv... " >&6; }
15799 if test "${am_cv_func_iconv+set}" = set; then
15800 $as_echo_n "(cached) " >&6
15803 am_cv_func_iconv="no, consider installing GNU libiconv"
15805 cat >conftest.$ac_ext <<_ACEOF
15808 cat confdefs.h >>conftest.$ac_ext
15809 cat >>conftest.$ac_ext <<_ACEOF
15810 /* end confdefs.h. */
15811 #include <stdlib.h>
15816 iconv_t cd = iconv_open("","");
15817 iconv(cd,NULL,NULL,NULL,NULL);
15823 rm -f conftest.$ac_objext conftest$ac_exeext
15824 if { (ac_try="$ac_link"
15825 case "(($ac_try" in
15826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15827 *) ac_try_echo=$ac_try;;
15829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15830 $as_echo "$ac_try_echo") >&5
15831 (eval "$ac_link") 2>conftest.er1
15833 grep -v '^ *+' conftest.er1 >conftest.err
15835 cat conftest.err >&5
15836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837 (exit $ac_status); } && {
15838 test -z "$ac_c_werror_flag" ||
15839 test ! -s conftest.err
15840 } && test -s conftest$ac_exeext && {
15841 test "$cross_compiling" = yes ||
15842 $as_test_x conftest$ac_exeext
15844 am_cv_func_iconv=yes
15846 $as_echo "$as_me: failed program was:" >&5
15847 sed 's/^/| /' conftest.$ac_ext >&5
15852 rm -rf conftest.dSYM
15853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15854 conftest$ac_exeext conftest.$ac_ext
15855 if test "$am_cv_func_iconv" != yes; then
15856 am_save_LIBS="$LIBS"
15857 LIBS="$LIBS $LIBICONV"
15858 cat >conftest.$ac_ext <<_ACEOF
15861 cat confdefs.h >>conftest.$ac_ext
15862 cat >>conftest.$ac_ext <<_ACEOF
15863 /* end confdefs.h. */
15864 #include <stdlib.h>
15869 iconv_t cd = iconv_open("","");
15870 iconv(cd,NULL,NULL,NULL,NULL);
15876 rm -f conftest.$ac_objext conftest$ac_exeext
15877 if { (ac_try="$ac_link"
15878 case "(($ac_try" in
15879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15880 *) ac_try_echo=$ac_try;;
15882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15883 $as_echo "$ac_try_echo") >&5
15884 (eval "$ac_link") 2>conftest.er1
15886 grep -v '^ *+' conftest.er1 >conftest.err
15888 cat conftest.err >&5
15889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15890 (exit $ac_status); } && {
15891 test -z "$ac_c_werror_flag" ||
15892 test ! -s conftest.err
15893 } && test -s conftest$ac_exeext && {
15894 test "$cross_compiling" = yes ||
15895 $as_test_x conftest$ac_exeext
15897 am_cv_lib_iconv=yes
15898 am_cv_func_iconv=yes
15900 $as_echo "$as_me: failed program was:" >&5
15901 sed 's/^/| /' conftest.$ac_ext >&5
15906 rm -rf conftest.dSYM
15907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15908 conftest$ac_exeext conftest.$ac_ext
15909 LIBS="$am_save_LIBS"
15913 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
15914 $as_echo "$am_cv_func_iconv" >&6; }
15915 if test "$am_cv_func_iconv" = yes; then
15916 { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
15917 $as_echo_n "checking for working iconv... " >&6; }
15918 if test "${am_cv_func_iconv_works+set}" = set; then
15919 $as_echo_n "(cached) " >&6
15922 am_save_LIBS="$LIBS"
15923 if test $am_cv_lib_iconv = yes; then
15924 LIBS="$LIBS $LIBICONV"
15926 if test "$cross_compiling" = yes; then
15928 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
15929 *) am_cv_func_iconv_works="guessing yes" ;;
15932 cat >conftest.$ac_ext <<_ACEOF
15935 cat confdefs.h >>conftest.$ac_ext
15936 cat >>conftest.$ac_ext <<_ACEOF
15937 /* end confdefs.h. */
15940 #include <string.h>
15943 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
15946 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
15947 if (cd_utf8_to_88591 != (iconv_t)(-1))
15949 static const char input[] = "\342\202\254"; /* EURO SIGN */
15951 const char *inptr = input;
15952 size_t inbytesleft = strlen (input);
15953 char *outptr = buf;
15954 size_t outbytesleft = sizeof (buf);
15955 size_t res = iconv (cd_utf8_to_88591,
15956 (char **) &inptr, &inbytesleft,
15957 &outptr, &outbytesleft);
15962 #if 0 /* This bug could be worked around by the caller. */
15963 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
15965 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
15966 if (cd_88591_to_utf8 != (iconv_t)(-1))
15968 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
15970 const char *inptr = input;
15971 size_t inbytesleft = strlen (input);
15972 char *outptr = buf;
15973 size_t outbytesleft = sizeof (buf);
15974 size_t res = iconv (cd_88591_to_utf8,
15975 (char **) &inptr, &inbytesleft,
15976 &outptr, &outbytesleft);
15982 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
15984 if (/* Try standardized names. */
15985 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
15986 /* Try IRIX, OSF/1 names. */
15987 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
15988 /* Try AIX names. */
15989 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
15990 /* Try HP-UX names. */
15991 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
15996 rm -f conftest$ac_exeext
15997 if { (ac_try="$ac_link"
15998 case "(($ac_try" in
15999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16000 *) ac_try_echo=$ac_try;;
16002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16003 $as_echo "$ac_try_echo") >&5
16004 (eval "$ac_link") 2>&5
16006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16008 { (case "(($ac_try" in
16009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16010 *) ac_try_echo=$ac_try;;
16012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16013 $as_echo "$ac_try_echo") >&5
16014 (eval "$ac_try") 2>&5
16016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017 (exit $ac_status); }; }; then
16018 am_cv_func_iconv_works=yes
16020 $as_echo "$as_me: program exited with status $ac_status" >&5
16021 $as_echo "$as_me: failed program was:" >&5
16022 sed 's/^/| /' conftest.$ac_ext >&5
16024 ( exit $ac_status )
16025 am_cv_func_iconv_works=no
16027 rm -rf conftest.dSYM
16028 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16032 LIBS="$am_save_LIBS"
16035 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
16036 $as_echo "$am_cv_func_iconv_works" >&6; }
16037 case "$am_cv_func_iconv_works" in
16038 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
16039 *) am_func_iconv=yes ;;
16042 am_func_iconv=no am_cv_lib_iconv=no
16044 if test "$am_func_iconv" = yes; then
16046 cat >>confdefs.h <<\_ACEOF
16047 #define HAVE_ICONV 1
16051 if test "$am_cv_lib_iconv" = yes; then
16052 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
16053 $as_echo_n "checking how to link with libiconv... " >&6; }
16054 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
16055 $as_echo "$LIBICONV" >&6; }
16057 CPPFLAGS="$am_save_CPPFLAGS"
16065 popt_sysconfdir="${sysconfdir}"
16066 eval "popt_sysconfdir=\"${popt_sysconfdir}\"" # expand contained ${prefix}
16068 cat >>confdefs.h <<_ACEOF
16069 #define POPT_SYSCONFDIR "$popt_sysconfdir"
16074 # Define a (hope) portable Libs pkgconfig directive that
16075 # - Don't harm if the default library search path include ${libdir}
16076 # (https://bugzilla.novell.com/show_bug.cgi?id=529921)
16077 # - Don't require a not upstream patch to pkgconfig
16078 # (https://bugs.freedesktop.org/show_bug.cgi?id=16095)
16079 popt_pkgconfig_libs='-L${libdir} -lpopt'
16082 case "${libdir}" in
16083 /usr/lib|/usr/lib64|/lib|/lib64)
16084 popt_pkgconfig_libs='-lpopt'
16087 popt_pkgconfig_libs='-L${libdir} -lpopt'
16092 case "${libdir}" in
16093 /usr/lib|/usr/lib64|/lib|/lib64)
16094 popt_pkgconfig_libs='-lpopt'
16097 popt_pkgconfig_libs='-L${libdir} -lpopt'
16102 POPT_PKGCONFIG_LIBS="$popt_pkgconfig_libs"
16105 POPT_SOURCE_PATH="`pwd`"
16107 cat >>confdefs.h <<_ACEOF
16108 #define POPT_SOURCE_PATH "$POPT_SOURCE_PATH"
16115 subdirs="$subdirs "
16117 ac_config_files="$ac_config_files po/Makefile.in m4/Makefile Doxyfile Makefile popt.pc popt.spec test-poptrc auto/Makefile auto/desc auto/types"
16119 cat >confcache <<\_ACEOF
16120 # This file is a shell script that caches the results of configure
16121 # tests run on this system so they can be shared between configure
16122 # scripts and configure runs, see configure's option --config-cache.
16123 # It is not useful on other systems. If it contains results you don't
16124 # want to keep, you may remove or edit it.
16126 # config.status only pays attention to the cache file if you give it
16127 # the --recheck option to rerun configure.
16129 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16130 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16131 # following values.
16135 # The following way of writing the cache mishandles newlines in values,
16136 # but we know of no workaround that is simple, portable, and efficient.
16137 # So, we kill variables containing newlines.
16138 # Ultrix sh set writes to stderr and can't be redirected directly,
16139 # and sets the high bit in the cache file unless we assign to the vars.
16141 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16142 eval ac_val=\$$ac_var
16146 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
16147 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16150 _ | IFS | as_nl) ;; #(
16151 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16152 *) $as_unset $ac_var ;;
16158 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16159 *${as_nl}ac_space=\ *)
16160 # `set' does not quote correctly, so add quotes (double-quote
16161 # substitution turns \\\\ into \\, and sed turns \\ into \).
16164 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16167 # `set' quotes correctly as required by POSIX, so do not add quotes.
16168 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16177 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16179 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16181 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16182 if test -w "$cache_file"; then
16183 test "x$cache_file" != "x/dev/null" &&
16184 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
16185 $as_echo "$as_me: updating cache $cache_file" >&6;}
16186 cat confcache >$cache_file
16188 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
16189 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16194 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16195 # Let make expand exec_prefix.
16196 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16198 DEFS=-DHAVE_CONFIG_H
16202 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16203 # 1. Remove the extension, and $U if already installed.
16204 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16205 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16206 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16207 # will be set to the directory where LIBOBJS objects are built.
16208 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16209 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
16211 LIBOBJS=$ac_libobjs
16213 LTLIBOBJS=$ac_ltlibobjs
16216 if test -n "$EXEEXT"; then
16218 am__EXEEXT_FALSE='#'
16220 am__EXEEXT_TRUE='#'
16224 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16225 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16226 Usually this means the macro was only invoked conditionally." >&5
16227 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16228 Usually this means the macro was only invoked conditionally." >&2;}
16229 { (exit 1); exit 1; }; }
16231 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16232 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16233 Usually this means the macro was only invoked conditionally." >&5
16234 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
16235 Usually this means the macro was only invoked conditionally." >&2;}
16236 { (exit 1); exit 1; }; }
16238 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16239 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16240 Usually this means the macro was only invoked conditionally." >&5
16241 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16242 Usually this means the macro was only invoked conditionally." >&2;}
16243 { (exit 1); exit 1; }; }
16245 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16246 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16247 Usually this means the macro was only invoked conditionally." >&5
16248 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16249 Usually this means the macro was only invoked conditionally." >&2;}
16250 { (exit 1); exit 1; }; }
16252 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
16253 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
16254 Usually this means the macro was only invoked conditionally." >&5
16255 $as_echo "$as_me: error: conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
16256 Usually this means the macro was only invoked conditionally." >&2;}
16257 { (exit 1); exit 1; }; }
16260 : ${CONFIG_STATUS=./config.status}
16262 ac_clean_files_save=$ac_clean_files
16263 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16264 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16265 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16266 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16268 # Generated by $as_me.
16269 # Run this file to recreate the current configuration.
16270 # Compiler output produced by configure, useful for debugging
16271 # configure, is in config.log if it exists.
16274 ac_cs_recheck=false
16276 SHELL=\${CONFIG_SHELL-$SHELL}
16279 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16280 ## --------------------- ##
16281 ## M4sh Initialization. ##
16282 ## --------------------- ##
16284 # Be more Bourne compatible
16285 DUALCASE=1; export DUALCASE # for MKS sh
16286 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16289 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16290 # is contrary to our usage. Disable this feature.
16291 alias -g '${1+"$@"}'='"$@"'
16292 setopt NO_GLOB_SUBST
16294 case `(set -o) 2>/dev/null` in
16295 *posix*) set -o posix ;;
16304 # Avoid depending upon Character Ranges.
16305 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16306 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16307 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16308 as_cr_digits='0123456789'
16309 as_cr_alnum=$as_cr_Letters$as_cr_digits
16314 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16315 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16316 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16317 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16318 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16319 as_echo='printf %s\n'
16320 as_echo_n='printf %s'
16322 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16323 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16324 as_echo_n='/usr/ucb/echo -n'
16326 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16327 as_echo_n_body='eval
16331 expr "X$arg" : "X\\(.*\\)$as_nl";
16332 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16334 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16336 export as_echo_n_body
16337 as_echo_n='sh -c $as_echo_n_body as_echo'
16339 export as_echo_body
16340 as_echo='sh -c $as_echo_body as_echo'
16343 # The user is always right.
16344 if test "${PATH_SEPARATOR+set}" != set; then
16346 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16347 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16352 # Support unset when possible.
16353 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16361 # We need space, tab and new line, in precisely that order. Quoting is
16362 # there to prevent editors from complaining about space-tab.
16363 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16364 # splitting by setting IFS to empty value.)
16367 # Find who we are. Look in the path if we contain no directory separator.
16369 *[\\/]* ) as_myself=$0 ;;
16370 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16371 for as_dir in $PATH
16374 test -z "$as_dir" && as_dir=.
16375 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16381 # We did not find ourselves, most probably we were run as `sh COMMAND'
16382 # in which case we are not to be found in the path.
16383 if test "x$as_myself" = x; then
16386 if test ! -f "$as_myself"; then
16387 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16388 { (exit 1); exit 1; }
16391 # Work around bugs in pre-3.0 UWIN ksh.
16392 for as_var in ENV MAIL MAILPATH
16393 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16405 # Required to use basename.
16406 if expr a : '\(a\)' >/dev/null 2>&1 &&
16407 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16413 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16414 as_basename=basename
16420 # Name of the executable.
16421 as_me=`$as_basename -- "$0" ||
16422 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16423 X"$0" : 'X\(//\)$' \| \
16424 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16426 sed '/^.*\/\([^/][^/]*\)\/*$/{
16445 as_lineno_1=$LINENO
16446 as_lineno_2=$LINENO
16447 test "x$as_lineno_1" != "x$as_lineno_2" &&
16448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
16450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16451 # uniformly replaced by the line number. The first 'sed' inserts a
16452 # line-number line after each line using $LINENO; the second 'sed'
16453 # does the real work. The second script uses 'N' to pair each
16454 # line-number line with the line containing $LINENO, and appends
16455 # trailing '-' during substitution so that $LINENO is not a special
16456 # case at line end.
16457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16458 # scripts with optimization help from Paolo Bonzini. Blame Lee
16459 # E. McMahon (1931-1989) for sed's syntax. :-)
16471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
16474 ' >$as_me.lineno &&
16475 chmod +x "$as_me.lineno" ||
16476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
16477 { (exit 1); exit 1; }; }
16479 # Don't try to exec as it changes $[0], causing all sort of problems
16480 # (the dirname of $[0] is not the place where we might find the
16481 # original and so on. Autoconf is especially sensitive to this).
16482 . "./$as_me.lineno"
16483 # Exit status is that of the last command.
16488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16494 ECHO_C= ECHO_N= ECHO_T=
16495 case `echo -n x` in
16497 case `echo 'x\c'` in
16498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16504 if expr a : '\(a\)' >/dev/null 2>&1 &&
16505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16511 rm -f conf$$ conf$$.exe conf$$.file
16512 if test -d conf$$.dir; then
16513 rm -f conf$$.dir/conf$$.file
16516 mkdir conf$$.dir 2>/dev/null
16518 if (echo >conf$$.file) 2>/dev/null; then
16519 if ln -s conf$$.file conf$$ 2>/dev/null; then
16521 # ... but there are two gotchas:
16522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16524 # In both cases, we have to default to `cp -p'.
16525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16527 elif ln conf$$.file conf$$ 2>/dev/null; then
16535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16536 rmdir conf$$.dir 2>/dev/null
16538 if mkdir -p . 2>/dev/null; then
16541 test -d ./-p && rmdir ./-p
16545 if test -x / >/dev/null 2>&1; then
16546 as_test_x='test -x'
16548 if ls -dL / >/dev/null 2>&1; then
16555 if test -d "$1"; then
16561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
16562 ???[sx]*):;;*)false;;esac;fi
16566 as_executable_p=$as_test_x
16568 # Sed expression to map a string onto a valid CPP name.
16569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16571 # Sed expression to map a string onto a valid variable name.
16572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16577 # Save the log message, to keep $[0] and so on meaningful, and to
16578 # report actual input values of CONFIG_FILES etc. instead of their
16579 # values after options handling.
16581 This file was extended by popt $as_me 1.16, which was
16582 generated by GNU Autoconf 2.63. Invocation command line was
16584 CONFIG_FILES = $CONFIG_FILES
16585 CONFIG_HEADERS = $CONFIG_HEADERS
16586 CONFIG_LINKS = $CONFIG_LINKS
16587 CONFIG_COMMANDS = $CONFIG_COMMANDS
16590 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16595 case $ac_config_files in *"
16596 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16599 case $ac_config_headers in *"
16600 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16604 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16605 # Files that config.status was made for.
16606 config_files="$ac_config_files"
16607 config_headers="$ac_config_headers"
16608 config_commands="$ac_config_commands"
16612 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16614 \`$as_me' instantiates files from templates according to the
16615 current configuration.
16617 Usage: $0 [OPTION]... [FILE]...
16619 -h, --help print this help, then exit
16620 -V, --version print version number and configuration settings, then exit
16621 -q, --quiet, --silent
16622 do not print progress messages
16623 -d, --debug don't remove temporary files
16624 --recheck update $as_me by reconfiguring in the same conditions
16625 --file=FILE[:TEMPLATE]
16626 instantiate the configuration file FILE
16627 --header=FILE[:TEMPLATE]
16628 instantiate the configuration header FILE
16630 Configuration files:
16633 Configuration headers:
16636 Configuration commands:
16639 Report bugs to <bug-autoconf@gnu.org>."
16642 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16644 popt config.status 1.16
16645 configured by $0, generated by GNU Autoconf 2.63,
16646 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16648 Copyright (C) 2008 Free Software Foundation, Inc.
16649 This config.status script is free software; the Free Software Foundation
16650 gives unlimited permission to copy, distribute and modify it."
16657 test -n "\$AWK" || AWK=awk
16660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16661 # The default lists apply if the user does not specify any file.
16667 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16668 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16679 # Handling of the options.
16680 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16682 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16683 $as_echo "$ac_cs_version"; exit ;;
16684 --debug | --debu | --deb | --de | --d | -d )
16686 --file | --fil | --fi | --f )
16689 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16691 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
16692 ac_need_defaults=false;;
16693 --header | --heade | --head | --hea )
16696 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16698 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
16699 ac_need_defaults=false;;
16701 # Conflict between --help and --header
16702 { $as_echo "$as_me: error: ambiguous option: $1
16703 Try \`$0 --help' for more information." >&2
16704 { (exit 1); exit 1; }; };;
16705 --help | --hel | -h )
16706 $as_echo "$ac_cs_usage"; exit ;;
16707 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16708 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16711 # This is an error.
16712 -*) { $as_echo "$as_me: error: unrecognized option: $1
16713 Try \`$0 --help' for more information." >&2
16714 { (exit 1); exit 1; }; } ;;
16716 *) ac_config_targets="$ac_config_targets $1"
16717 ac_need_defaults=false ;;
16723 ac_configure_extra_args=
16725 if $ac_cs_silent; then
16727 ac_configure_extra_args="$ac_configure_extra_args --silent"
16731 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16732 if \$ac_cs_recheck; then
16733 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16735 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16736 CONFIG_SHELL='$SHELL'
16737 export CONFIG_SHELL
16742 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16746 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16747 ## Running $as_me. ##
16753 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16757 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16760 # The HP-UX ksh and POSIX shell print the target directory to stdout
16761 # if CDPATH is set.
16762 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16764 sed_quote_subst='$sed_quote_subst'
16765 double_quote_subst='$double_quote_subst'
16766 delay_variable_subst='$delay_variable_subst'
16767 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16768 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16769 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16770 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16771 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16772 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16773 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16774 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16775 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16776 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16777 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16778 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16779 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16780 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16781 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16782 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16783 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16784 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16785 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16786 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16787 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16788 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16789 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16790 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16791 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16792 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16793 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16794 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16795 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
16796 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16797 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16798 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16799 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16800 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16801 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16802 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16803 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16804 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16805 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16806 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16807 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16808 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16809 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16810 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16811 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
16812 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16813 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16814 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16815 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16816 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16817 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16818 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16819 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16820 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16821 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16822 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16823 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16824 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16825 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
16826 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16827 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
16828 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16829 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16830 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16831 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16832 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16833 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16834 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16835 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16836 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16837 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16838 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16839 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16840 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16841 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16842 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16843 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16844 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16845 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16846 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16847 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16848 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16849 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16850 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16851 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16852 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16853 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16854 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16855 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16856 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16857 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16858 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16859 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16860 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16861 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16862 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16863 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16864 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16865 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16866 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16867 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16868 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16869 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16870 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16871 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16872 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16873 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16874 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16875 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16876 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16877 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16878 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16879 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16880 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16881 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16882 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16883 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16884 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16887 LTCFLAGS='$LTCFLAGS'
16888 compiler='$compiler_DEFAULT'
16890 # Quote evaled strings.
16902 deplibs_check_method \
16911 lt_cv_sys_global_symbol_pipe \
16912 lt_cv_sys_global_symbol_to_cdecl \
16913 lt_cv_sys_global_symbol_to_c_name_address \
16914 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16917 lt_prog_compiler_no_builtin_flag \
16918 lt_prog_compiler_wl \
16919 lt_prog_compiler_pic \
16920 lt_prog_compiler_static \
16921 lt_cv_prog_compiler_c_o \
16929 export_dynamic_flag_spec \
16930 whole_archive_flag_spec \
16931 compiler_needs_object \
16933 allow_undefined_flag \
16934 no_undefined_flag \
16935 hardcode_libdir_flag_spec \
16936 hardcode_libdir_flag_spec_ld \
16937 hardcode_libdir_separator \
16942 variables_saved_for_relink \
16944 library_names_spec \
16949 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16950 *[\\\\\\\`\\"\\\$]*)
16951 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16954 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16959 # Double-quote double-evaled strings.
16960 for var in reload_cmds \
16961 old_postinstall_cmds \
16962 old_postuninstall_cmds \
16964 extract_expsyms_cmds \
16965 old_archive_from_new_cmds \
16966 old_archive_from_expsyms_cmds \
16968 archive_expsym_cmds \
16970 module_expsym_cmds \
16971 export_symbols_cmds \
16974 postuninstall_cmds \
16976 sys_lib_search_path_spec \
16977 sys_lib_dlsearch_path_spec; do
16978 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16979 *[\\\\\\\`\\"\\\$]*)
16980 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16983 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16988 # Fix-up fallback echo if it was mangled by the above quoting rules.
16990 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16994 ac_aux_dir='$ac_aux_dir'
16995 xsi_shell='$xsi_shell'
16996 lt_shell_append='$lt_shell_append'
16998 # See if we are running on zsh, and set the options which allow our
16999 # commands through without removal of \ escapes INIT.
17000 if test -n "\${ZSH_VERSION+set}" ; then
17001 setopt NO_GLOB_SUBST
17007 TIMESTAMP='$TIMESTAMP'
17013 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17014 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
17015 # from automake < 1.5.
17016 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17017 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17018 LINGUAS="${LINGUAS-%UNSET%}"
17023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17025 # Handling of arguments.
17026 for ac_config_target in $ac_config_targets
17028 case $ac_config_target in
17029 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17030 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17031 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17032 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
17033 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
17034 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
17035 "Doxyfile") CONFIG_FILES="$CONFIG_FILES Doxyfile" ;;
17036 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17037 "popt.pc") CONFIG_FILES="$CONFIG_FILES popt.pc" ;;
17038 "popt.spec") CONFIG_FILES="$CONFIG_FILES popt.spec" ;;
17039 "test-poptrc") CONFIG_FILES="$CONFIG_FILES test-poptrc" ;;
17040 "auto/Makefile") CONFIG_FILES="$CONFIG_FILES auto/Makefile" ;;
17041 "auto/desc") CONFIG_FILES="$CONFIG_FILES auto/desc" ;;
17042 "auto/types") CONFIG_FILES="$CONFIG_FILES auto/types" ;;
17044 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17045 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17046 { (exit 1); exit 1; }; };;
17051 # If the user did not use the arguments to specify the items to instantiate,
17052 # then the envvar interface is used. Set only those that are not.
17053 # We use the long form for the default assignment because of an extremely
17054 # bizarre bug on SunOS 4.1.3.
17055 if $ac_need_defaults; then
17056 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17057 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17058 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17061 # Have a temporary directory for convenience. Make it in the build tree
17062 # simply because there is no reason against having it here, and in addition,
17063 # creating and moving files from /tmp can sometimes cause problems.
17064 # Hook for its removal unless debugging.
17065 # Note that there is a small window in which the directory will not be cleaned:
17066 # after its creation but before its name has been assigned to `$tmp'.
17070 trap 'exit_status=$?
17071 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17073 trap '{ (exit 1); exit 1; }' 1 2 13 15
17075 # Create a (secure) tmp directory for tmp files.
17078 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17079 test -n "$tmp" && test -d "$tmp"
17082 tmp=./conf$$-$RANDOM
17083 (umask 077 && mkdir "$tmp")
17086 $as_echo "$as_me: cannot create a temporary directory in ." >&2
17087 { (exit 1); exit 1; }
17090 # Set up the scripts for CONFIG_FILES section.
17091 # No need to generate them if there are no CONFIG_FILES.
17092 # This happens for instance with `./config.status config.h'.
17093 if test -n "$CONFIG_FILES"; then
17097 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17098 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17101 ac_cs_awk_cr=$ac_cr
17104 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17109 echo "cat >conf$$subs.awk <<_ACEOF" &&
17110 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17112 } >conf$$subs.sh ||
17113 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17114 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17115 { (exit 1); exit 1; }; }
17116 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17118 for ac_last_try in false false false false false :; do
17119 . ./conf$$subs.sh ||
17120 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17121 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17122 { (exit 1); exit 1; }; }
17124 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17125 if test $ac_delim_n = $ac_delim_num; then
17127 elif $ac_last_try; then
17128 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17129 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17130 { (exit 1); exit 1; }; }
17132 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17135 rm -f conf$$subs.sh
17137 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17138 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17142 s/^/S["/; s/!.*/"]=/
17152 s/\(.\{148\}\).*/\1/
17154 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17159 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17166 s/\(.\{148\}\).*/\1/
17168 s/["\\]/\\&/g; s/^/"/; s/$/"/
17172 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17177 ' <conf$$subs.awk | sed '
17182 ' >>$CONFIG_STATUS || ac_write_fail=1
17183 rm -f conf$$subs.awk
17184 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17186 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17187 for (key in S) S_is_set[key] = 1
17193 nfields = split(line, field, "@")
17195 len = length(field[1])
17196 for (i = 2; i < nfields; i++) {
17198 keylen = length(key)
17199 if (S_is_set[key]) {
17201 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17202 len += length(value) + length(field[++i])
17213 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17214 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17215 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17218 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17219 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
17220 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
17221 { (exit 1); exit 1; }; }
17224 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17225 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17226 # trailing colons and then remove the whole line if VPATH becomes empty
17227 # (actually we leave an empty line to preserve line numbers).
17228 if test "x$srcdir" = x.; then
17229 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17230 s/:*\$(srcdir):*/:/
17231 s/:*\${srcdir}:*/:/
17233 s/^\([^=]*=[ ]*\):*/\1/
17239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17240 fi # test -n "$CONFIG_FILES"
17242 # Set up the scripts for CONFIG_HEADERS section.
17243 # No need to generate them if there are no CONFIG_HEADERS.
17244 # This happens for instance with `./config.status Makefile'.
17245 if test -n "$CONFIG_HEADERS"; then
17246 cat >"$tmp/defines.awk" <<\_ACAWK ||
17250 # Transform confdefs.h into an awk script `defines.awk', embedded as
17251 # here-document in config.status, that substitutes the proper values into
17252 # config.h.in to produce config.h.
17254 # Create a delimiter string that does not exist in confdefs.h, to ease
17255 # handling of long lines.
17257 for ac_last_try in false false :; do
17258 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17259 if test -z "$ac_t"; then
17261 elif $ac_last_try; then
17262 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
17263 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
17264 { (exit 1); exit 1; }; }
17266 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17270 # For the awk script, D is an array of macro values keyed by name,
17271 # likewise P contains macro parameters if any. Preserve backslash
17272 # newline sequences.
17274 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17276 s/.\{148\}/&'"$ac_delim"'/g
17279 s/^[ ]*#[ ]*define[ ][ ]*/ /
17286 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17288 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17292 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17293 D["\1"]=" \3\\\\\\n"\\/p
17295 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17300 s/.\{148\}/&'"$ac_delim"'/g
17305 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17308 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17310 ' <confdefs.h | sed '
17311 s/'"$ac_delim"'/"\\\
17312 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17314 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17315 for (key in D) D_is_set[key] = 1
17318 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17320 split(line, arg, " ")
17321 if (arg[1] == "#") {
17325 defundef = substr(arg[1], 2)
17328 split(mac1, mac2, "(") #)
17330 prefix = substr(line, 1, index(line, defundef) - 1)
17331 if (D_is_set[macro]) {
17332 # Preserve the white space surrounding the "#".
17333 print prefix "define", macro P[macro] D[macro]
17336 # Replace #undef with comments. This is necessary, for example,
17337 # in the case of _POSIX_SOURCE, which is predefined and required
17338 # on some systems where configure will not decide to define it.
17339 if (defundef == "undef") {
17340 print "/*", prefix defundef, macro, "*/"
17348 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17349 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
17350 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
17351 { (exit 1); exit 1; }; }
17352 fi # test -n "$CONFIG_HEADERS"
17355 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17360 :[FHLC]) ac_mode=$ac_tag; continue;;
17362 case $ac_mode$ac_tag in
17364 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
17365 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
17366 { (exit 1); exit 1; }; };;
17367 :[FH]-) ac_tag=-:-;;
17368 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17385 -) ac_f="$tmp/stdin";;
17386 *) # Look for the file first in the build tree, then in the source tree
17387 # (if the path is not absolute). The absolute path cannot be DOS-style,
17388 # because $ac_f cannot contain `:'.
17392 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17394 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
17395 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
17396 { (exit 1); exit 1; }; };;
17398 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17399 ac_file_inputs="$ac_file_inputs '$ac_f'"
17402 # Let's still pretend it is `configure' which instantiates (i.e., don't
17403 # use $as_me), people would be surprised to read:
17404 # /* config.h. Generated by config.status. */
17405 configure_input='Generated from '`
17406 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17408 if test x"$ac_file" != x-; then
17409 configure_input="$ac_file. $configure_input"
17410 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
17411 $as_echo "$as_me: creating $ac_file" >&6;}
17413 # Neutralize special characters interpreted by sed in replacement strings.
17414 case $configure_input in #(
17415 *\&* | *\|* | *\\* )
17416 ac_sed_conf_input=`$as_echo "$configure_input" |
17417 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17418 *) ac_sed_conf_input=$configure_input;;
17422 *:-:* | *:-) cat >"$tmp/stdin" \
17423 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17424 $as_echo "$as_me: error: could not create $ac_file" >&2;}
17425 { (exit 1); exit 1; }; } ;;
17430 ac_dir=`$as_dirname -- "$ac_file" ||
17431 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17432 X"$ac_file" : 'X\(//\)[^/]' \| \
17433 X"$ac_file" : 'X\(//\)$' \| \
17434 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17435 $as_echo X"$ac_file" |
17436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17440 /^X\(\/\/\)[^/].*/{
17455 -*) as_dir=./$as_dir;;
17457 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17461 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17462 *) as_qdir=$as_dir;;
17464 as_dirs="'$as_qdir' $as_dirs"
17465 as_dir=`$as_dirname -- "$as_dir" ||
17466 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17467 X"$as_dir" : 'X\(//\)[^/]' \| \
17468 X"$as_dir" : 'X\(//\)$' \| \
17469 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17470 $as_echo X"$as_dir" |
17471 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17475 /^X\(\/\/\)[^/].*/{
17488 test -d "$as_dir" && break
17490 test -z "$as_dirs" || eval "mkdir $as_dirs"
17491 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17492 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
17493 { (exit 1); exit 1; }; }; }
17497 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17499 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17500 # A ".." for each directory in $ac_dir_suffix.
17501 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17502 case $ac_top_builddir_sub in
17503 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17504 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17507 ac_abs_top_builddir=$ac_pwd
17508 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17509 # for backward compatibility:
17510 ac_top_builddir=$ac_top_build_prefix
17513 .) # We are building in place.
17515 ac_top_srcdir=$ac_top_builddir_sub
17516 ac_abs_top_srcdir=$ac_pwd ;;
17517 [\\/]* | ?:[\\/]* ) # Absolute name.
17518 ac_srcdir=$srcdir$ac_dir_suffix;
17519 ac_top_srcdir=$srcdir
17520 ac_abs_top_srcdir=$srcdir ;;
17521 *) # Relative name.
17522 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17523 ac_top_srcdir=$ac_top_build_prefix$srcdir
17524 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17526 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17536 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17537 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17539 ac_MKDIR_P=$MKDIR_P
17541 [\\/$]* | ?:[\\/]* ) ;;
17542 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17546 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17547 # If the template does not know about datarootdir, expand it.
17548 # FIXME: This hack should be removed a few years after 2.60.
17549 ac_datarootdir_hack=; ac_datarootdir_seen=
17562 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17563 *datarootdir*) ac_datarootdir_seen=yes;;
17564 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17565 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17566 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17568 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17569 ac_datarootdir_hack='
17570 s&@datadir@&$datadir&g
17571 s&@docdir@&$docdir&g
17572 s&@infodir@&$infodir&g
17573 s&@localedir@&$localedir&g
17574 s&@mandir@&$mandir&g
17575 s&\\\${datarootdir}&$datarootdir&g' ;;
17579 # Neutralize VPATH when `$srcdir' = `.'.
17580 # Shell code in configure.ac might set extrasub.
17581 # FIXME: do we really want to maintain this feature?
17582 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17583 ac_sed_extra="$ac_vpsub
17586 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17588 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17589 s|@configure_input@|$ac_sed_conf_input|;t t
17590 s&@top_builddir@&$ac_top_builddir_sub&;t t
17591 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17592 s&@srcdir@&$ac_srcdir&;t t
17593 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17594 s&@top_srcdir@&$ac_top_srcdir&;t t
17595 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17596 s&@builddir@&$ac_builddir&;t t
17597 s&@abs_builddir@&$ac_abs_builddir&;t t
17598 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17599 s&@INSTALL@&$ac_INSTALL&;t t
17600 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17601 $ac_datarootdir_hack
17603 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17604 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17605 $as_echo "$as_me: error: could not create $ac_file" >&2;}
17606 { (exit 1); exit 1; }; }
17608 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17609 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17610 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17611 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17612 which seems to be undefined. Please make sure it is defined." >&5
17613 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17614 which seems to be undefined. Please make sure it is defined." >&2;}
17618 -) cat "$tmp/out" && rm -f "$tmp/out";;
17619 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17621 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17622 $as_echo "$as_me: error: could not create $ac_file" >&2;}
17623 { (exit 1); exit 1; }; }
17629 if test x"$ac_file" != x-; then
17631 $as_echo "/* $configure_input */" \
17632 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17633 } >"$tmp/config.h" \
17634 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17635 $as_echo "$as_me: error: could not create $ac_file" >&2;}
17636 { (exit 1); exit 1; }; }
17637 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17638 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17639 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17642 mv "$tmp/config.h" "$ac_file" \
17643 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17644 $as_echo "$as_me: error: could not create $ac_file" >&2;}
17645 { (exit 1); exit 1; }; }
17648 $as_echo "/* $configure_input */" \
17649 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17650 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
17651 $as_echo "$as_me: error: could not create -" >&2;}
17652 { (exit 1); exit 1; }; }
17654 # Compute "$ac_file"'s index in $config_headers.
17657 for _am_header in $config_headers :; do
17658 case $_am_header in
17659 $_am_arg | $_am_arg:* )
17662 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17665 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17666 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17667 X"$_am_arg" : 'X\(//\)[^/]' \| \
17668 X"$_am_arg" : 'X\(//\)$' \| \
17669 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17670 $as_echo X"$_am_arg" |
17671 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17675 /^X\(\/\/\)[^/].*/{
17687 s/.*/./; q'`/stamp-h$_am_stamp_count
17690 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
17691 $as_echo "$as_me: executing $ac_file commands" >&6;}
17696 case $ac_file$ac_mode in
17697 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17698 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17699 # are listed without --file. Let's play safe and only enable the eval
17700 # if we detect the quoting.
17701 case $CONFIG_FILES in
17702 *\'*) eval set x "$CONFIG_FILES" ;;
17703 *) set x $CONFIG_FILES ;;
17708 # Strip MF so we end up with the name of the file.
17709 mf=`echo "$mf" | sed -e 's/:.*$//'`
17710 # Check whether this is an Automake generated Makefile or not.
17711 # We used to match only the files named `Makefile.in', but
17712 # some people rename them; so instead we look at the file content.
17713 # Grep'ing the first line is not enough: some people post-process
17714 # each Makefile.in and add a new line on top of each file to say so.
17715 # Grep'ing the whole file is not good either: AIX grep has a line
17716 # limit of 2048, but all sed's we know have understand at least 4000.
17717 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17718 dirpart=`$as_dirname -- "$mf" ||
17719 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17720 X"$mf" : 'X\(//\)[^/]' \| \
17721 X"$mf" : 'X\(//\)$' \| \
17722 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17724 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17728 /^X\(\/\/\)[^/].*/{
17744 # Extract the definition of DEPDIR, am__include, and am__quote
17745 # from the Makefile without running `make'.
17746 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17747 test -z "$DEPDIR" && continue
17748 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17749 test -z "am__include" && continue
17750 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17751 # When using ansi2knr, U may be empty or an underscore; expand it
17752 U=`sed -n 's/^U = //p' < "$mf"`
17753 # Find all dependency output files, they are included files with
17754 # $(DEPDIR) in their names. We invoke sed twice because it is the
17755 # simplest approach to changing $(DEPDIR) to its actual value in the
17757 for file in `sed -n "
17758 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17759 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17760 # Make sure the directory exists.
17761 test -f "$dirpart/$file" && continue
17762 fdir=`$as_dirname -- "$file" ||
17763 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17764 X"$file" : 'X\(//\)[^/]' \| \
17765 X"$file" : 'X\(//\)$' \| \
17766 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17767 $as_echo X"$file" |
17768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17772 /^X\(\/\/\)[^/].*/{
17785 { as_dir=$dirpart/$fdir
17787 -*) as_dir=./$as_dir;;
17789 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17793 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17794 *) as_qdir=$as_dir;;
17796 as_dirs="'$as_qdir' $as_dirs"
17797 as_dir=`$as_dirname -- "$as_dir" ||
17798 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17799 X"$as_dir" : 'X\(//\)[^/]' \| \
17800 X"$as_dir" : 'X\(//\)$' \| \
17801 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17802 $as_echo X"$as_dir" |
17803 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17807 /^X\(\/\/\)[^/].*/{
17820 test -d "$as_dir" && break
17822 test -z "$as_dirs" || eval "mkdir $as_dirs"
17823 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17824 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
17825 { (exit 1); exit 1; }; }; }
17826 # echo "creating $dirpart/$file"
17827 echo '# dummy' > "$dirpart/$file"
17834 # See if we are running on zsh, and set the options which allow our
17835 # commands through without removal of \ escapes.
17836 if test -n "${ZSH_VERSION+set}" ; then
17837 setopt NO_GLOB_SUBST
17840 cfgfile="${ofile}T"
17841 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17844 cat <<_LT_EOF >> "$cfgfile"
17847 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17848 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17849 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17850 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17852 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17853 # 2006, 2007, 2008 Free Software Foundation, Inc.
17854 # Written by Gordon Matzigkeit, 1996
17856 # This file is part of GNU Libtool.
17858 # GNU Libtool is free software; you can redistribute it and/or
17859 # modify it under the terms of the GNU General Public License as
17860 # published by the Free Software Foundation; either version 2 of
17861 # the License, or (at your option) any later version.
17863 # As a special exception to the GNU General Public License,
17864 # if you distribute this file as part of a program or library that
17865 # is built using GNU Libtool, you may include this file under the
17866 # same distribution terms that you use for the rest of that program.
17868 # GNU Libtool is distributed in the hope that it will be useful,
17869 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17870 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17871 # GNU General Public License for more details.
17873 # You should have received a copy of the GNU General Public License
17874 # along with GNU Libtool; see the file COPYING. If not, a copy
17875 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17876 # obtained by writing to the Free Software Foundation, Inc.,
17877 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17880 # The names of the tagged configurations supported by this script.
17883 # ### BEGIN LIBTOOL CONFIG
17885 # Which release of libtool.m4 was used?
17886 macro_version=$macro_version
17887 macro_revision=$macro_revision
17889 # Whether or not to build shared libraries.
17890 build_libtool_libs=$enable_shared
17892 # Whether or not to build static libraries.
17893 build_old_libs=$enable_static
17895 # What type of objects to build.
17898 # Whether or not to optimize for fast installation.
17899 fast_install=$enable_fast_install
17902 host_alias=$host_alias
17906 # The build system.
17907 build_alias=$build_alias
17911 # A sed program that does not truncate output.
17914 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17915 Xsed="\$SED -e 1s/^X//"
17917 # A grep program that handles long lines.
17923 # A literal string matcher.
17926 # A BSD- or MS-compatible name lister.
17929 # Whether we need soft or hard links.
17932 # What is the maximum length of a command?
17933 max_cmd_len=$max_cmd_len
17935 # Object file suffix (normally "o").
17938 # Executable file suffix (normally "").
17941 # whether the shell understands "unset".
17944 # turn spaces into newlines.
17947 # turn newlines into spaces.
17950 # How to create reloadable object files.
17951 reload_flag=$lt_reload_flag
17952 reload_cmds=$lt_reload_cmds
17954 # An object symbol dumper.
17955 OBJDUMP=$lt_OBJDUMP
17957 # Method to check whether dependent libraries are shared objects.
17958 deplibs_check_method=$lt_deplibs_check_method
17960 # Command to use when deplibs_check_method == "file_magic".
17961 file_magic_cmd=$lt_file_magic_cmd
17965 AR_FLAGS=$lt_AR_FLAGS
17967 # A symbol stripping program.
17970 # Commands used to install an old-style archive.
17972 old_postinstall_cmds=$lt_old_postinstall_cmds
17973 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17978 # LTCC compiler flags.
17979 LTCFLAGS=$lt_CFLAGS
17981 # Take the output of nm and produce a listing of raw symbols and C names.
17982 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17984 # Transform the output of nm in a proper C declaration.
17985 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17987 # Transform the output of nm in a C name address pair.
17988 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17990 # Transform the output of nm in a C name address pair when lib prefix is needed.
17991 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17993 # The name of the directory that contains temporary libtool files.
17996 # Shell to use when invoking shell scripts.
17999 # An echo program that does not interpret backslashes.
18002 # Used to examine libraries when file_magic_cmd begins with "file".
18003 MAGIC_CMD=$MAGIC_CMD
18005 # Must we lock files when doing compilation?
18006 need_locks=$lt_need_locks
18008 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18009 DSYMUTIL=$lt_DSYMUTIL
18011 # Tool to change global to local symbols on Mac OS X.
18014 # Tool to manipulate fat objects and archives on Mac OS X.
18017 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18020 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18021 OTOOL64=$lt_OTOOL64
18023 # Old archive suffix (normally "a").
18026 # Shared library suffix (normally ".so").
18027 shrext_cmds=$lt_shrext_cmds
18029 # The commands to extract the exported symbol list from a shared archive.
18030 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18032 # Variables whose values should be saved in libtool wrapper scripts and
18033 # restored at link time.
18034 variables_saved_for_relink=$lt_variables_saved_for_relink
18036 # Do we need the "lib" prefix for modules?
18037 need_lib_prefix=$need_lib_prefix
18039 # Do we need a version for libraries?
18040 need_version=$need_version
18042 # Library versioning type.
18043 version_type=$version_type
18045 # Shared library runtime path variable.
18046 runpath_var=$runpath_var
18048 # Shared library path variable.
18049 shlibpath_var=$shlibpath_var
18051 # Is shlibpath searched before the hard-coded library search path?
18052 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18054 # Format of library name prefix.
18055 libname_spec=$lt_libname_spec
18057 # List of archive names. First name is the real one, the rest are links.
18058 # The last name is the one that the linker finds with -lNAME
18059 library_names_spec=$lt_library_names_spec
18061 # The coded name of the library, if different from the real name.
18062 soname_spec=$lt_soname_spec
18064 # Command to use after installation of a shared archive.
18065 postinstall_cmds=$lt_postinstall_cmds
18067 # Command to use after uninstallation of a shared archive.
18068 postuninstall_cmds=$lt_postuninstall_cmds
18070 # Commands used to finish a libtool library installation in a directory.
18071 finish_cmds=$lt_finish_cmds
18073 # As "finish_cmds", except a single script fragment to be evaled but
18075 finish_eval=$lt_finish_eval
18077 # Whether we should hardcode library paths into libraries.
18078 hardcode_into_libs=$hardcode_into_libs
18080 # Compile-time system search path for libraries.
18081 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18083 # Run-time system search path for libraries.
18084 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18086 # Whether dlopen is supported.
18087 dlopen_support=$enable_dlopen
18089 # Whether dlopen of programs is supported.
18090 dlopen_self=$enable_dlopen_self
18092 # Whether dlopen of statically linked programs is supported.
18093 dlopen_self_static=$enable_dlopen_self_static
18095 # Commands to strip libraries.
18096 old_striplib=$lt_old_striplib
18097 striplib=$lt_striplib
18100 # The linker used to build libraries.
18103 # Commands used to build an old-style archive.
18104 old_archive_cmds=$lt_old_archive_cmds
18106 # A language specific compiler.
18109 # Is the compiler the GNU compiler?
18112 # Compiler flag to turn off builtin functions.
18113 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18115 # How to pass a linker flag through the compiler.
18116 wl=$lt_lt_prog_compiler_wl
18118 # Additional compiler flags for building library objects.
18119 pic_flag=$lt_lt_prog_compiler_pic
18121 # Compiler flag to prevent dynamic linking.
18122 link_static_flag=$lt_lt_prog_compiler_static
18124 # Does compiler simultaneously support -c and -o options?
18125 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18127 # Whether or not to add -lc for building shared libraries.
18128 build_libtool_need_lc=$archive_cmds_need_lc
18130 # Whether or not to disallow shared libs when runtime libs are static.
18131 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18133 # Compiler flag to allow reflexive dlopens.
18134 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18136 # Compiler flag to generate shared objects directly from archives.
18137 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18139 # Whether the compiler copes with passing no objects directly.
18140 compiler_needs_object=$lt_compiler_needs_object
18142 # Create an old-style archive from a shared archive.
18143 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18145 # Create a temporary old-style archive to link instead of a shared archive.
18146 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18148 # Commands used to build a shared archive.
18149 archive_cmds=$lt_archive_cmds
18150 archive_expsym_cmds=$lt_archive_expsym_cmds
18152 # Commands used to build a loadable module if different from building
18153 # a shared archive.
18154 module_cmds=$lt_module_cmds
18155 module_expsym_cmds=$lt_module_expsym_cmds
18157 # Whether we are building with GNU ld or not.
18158 with_gnu_ld=$lt_with_gnu_ld
18160 # Flag that allows shared libraries with undefined symbols to be built.
18161 allow_undefined_flag=$lt_allow_undefined_flag
18163 # Flag that enforces no undefined symbols.
18164 no_undefined_flag=$lt_no_undefined_flag
18166 # Flag to hardcode \$libdir into a binary during linking.
18167 # This must work even if \$libdir does not exist
18168 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18170 # If ld is used when linking, flag to hardcode \$libdir into a binary
18171 # during linking. This must work even if \$libdir does not exist.
18172 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18174 # Whether we need a single "-rpath" flag with a separated argument.
18175 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18177 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18178 # DIR into the resulting binary.
18179 hardcode_direct=$hardcode_direct
18181 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18182 # DIR into the resulting binary and the resulting library dependency is
18183 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18184 # library is relocated.
18185 hardcode_direct_absolute=$hardcode_direct_absolute
18187 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18188 # into the resulting binary.
18189 hardcode_minus_L=$hardcode_minus_L
18191 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18192 # into the resulting binary.
18193 hardcode_shlibpath_var=$hardcode_shlibpath_var
18195 # Set to "yes" if building a shared library automatically hardcodes DIR
18196 # into the library and all subsequent libraries and executables linked
18198 hardcode_automatic=$hardcode_automatic
18200 # Set to yes if linker adds runtime paths of dependent libraries
18201 # to runtime path list.
18202 inherit_rpath=$inherit_rpath
18204 # Whether libtool must link a program against all its dependency libraries.
18205 link_all_deplibs=$link_all_deplibs
18207 # Fix the shell variable \$srcfile for the compiler.
18208 fix_srcfile_path=$lt_fix_srcfile_path
18210 # Set to "yes" if exported symbols are required.
18211 always_export_symbols=$always_export_symbols
18213 # The commands to list exported symbols.
18214 export_symbols_cmds=$lt_export_symbols_cmds
18216 # Symbols that should not be listed in the preloaded symbols.
18217 exclude_expsyms=$lt_exclude_expsyms
18219 # Symbols that must always be exported.
18220 include_expsyms=$lt_include_expsyms
18222 # Commands necessary for linking programs (against libraries) with templates.
18223 prelink_cmds=$lt_prelink_cmds
18225 # Specify filename containing input files.
18226 file_list_spec=$lt_file_list_spec
18228 # How to hardcode a shared library path into an executable.
18229 hardcode_action=$hardcode_action
18231 # ### END LIBTOOL CONFIG
18237 cat <<\_LT_EOF >> "$cfgfile"
18238 # AIX sometimes has problems with the GCC collect2 program. For some
18239 # reason, if we set the COLLECT_NAMES environment variable, the problems
18240 # vanish in a puff of smoke.
18241 if test "X${COLLECT_NAMES+set}" != Xset; then
18243 export COLLECT_NAMES
18250 ltmain="$ac_aux_dir/ltmain.sh"
18253 # We use sed instead of cat because bash on DJGPP gets confused if
18254 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18255 # text mode, it properly converts lines to CR/LF. This bash problem
18256 # is reportedly fixed, but why not run on old versions too?
18257 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18258 || (rm -f "$cfgfile"; exit 1)
18262 cat << \_LT_EOF >> "$cfgfile"
18264 # func_dirname file append nondir_replacement
18265 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18266 # otherwise set result to NONDIR_REPLACEMENT.
18270 */*) func_dirname_result="${1%/*}${2}" ;;
18271 * ) func_dirname_result="${3}" ;;
18275 # func_basename file
18278 func_basename_result="${1##*/}"
18281 # func_dirname_and_basename file append nondir_replacement
18282 # perform func_basename and func_dirname in a single function
18284 # dirname: Compute the dirname of FILE. If nonempty,
18285 # add APPEND to the result, otherwise set result
18286 # to NONDIR_REPLACEMENT.
18287 # value returned in "$func_dirname_result"
18288 # basename: Compute filename of FILE.
18289 # value retuned in "$func_basename_result"
18290 # Implementation must be kept synchronized with func_dirname
18291 # and func_basename. For efficiency, we do not delegate to
18292 # those functions but instead duplicate the functionality here.
18293 func_dirname_and_basename ()
18296 */*) func_dirname_result="${1%/*}${2}" ;;
18297 * ) func_dirname_result="${3}" ;;
18299 func_basename_result="${1##*/}"
18302 # func_stripname prefix suffix name
18303 # strip PREFIX and SUFFIX off of NAME.
18304 # PREFIX and SUFFIX must not contain globbing or regex special
18305 # characters, hashes, percent signs, but SUFFIX may contain a leading
18306 # dot (in which case that matches only a dot).
18309 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18310 # positional parameters, so assign one to ordinary parameter first.
18311 func_stripname_result=${3}
18312 func_stripname_result=${func_stripname_result#"${1}"}
18313 func_stripname_result=${func_stripname_result%"${2}"}
18319 func_opt_split_opt=${1%%=*}
18320 func_opt_split_arg=${1#*=}
18327 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18328 *) func_lo2o_result=${1} ;;
18332 # func_xform libobj-or-source
18335 func_xform_result=${1%.*}.lo
18338 # func_arith arithmetic-term...
18341 func_arith_result=$(( $* ))
18345 # STRING may not start with a hyphen.
18348 func_len_result=${#1}
18353 *) # Bourne compatible functions.
18354 cat << \_LT_EOF >> "$cfgfile"
18356 # func_dirname file append nondir_replacement
18357 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18358 # otherwise set result to NONDIR_REPLACEMENT.
18361 # Extract subdirectory from the argument.
18362 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18363 if test "X$func_dirname_result" = "X${1}"; then
18364 func_dirname_result="${3}"
18366 func_dirname_result="$func_dirname_result${2}"
18370 # func_basename file
18373 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18377 # func_stripname prefix suffix name
18378 # strip PREFIX and SUFFIX off of NAME.
18379 # PREFIX and SUFFIX must not contain globbing or regex special
18380 # characters, hashes, percent signs, but SUFFIX may contain a leading
18381 # dot (in which case that matches only a dot).
18382 # func_strip_suffix prefix name
18386 .*) func_stripname_result=`$ECHO "X${3}" \
18387 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18388 *) func_stripname_result=`$ECHO "X${3}" \
18389 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18394 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18395 my_sed_long_arg='1s/^-[^=]*=//'
18400 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18401 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18407 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18410 # func_xform libobj-or-source
18413 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
18416 # func_arith arithmetic-term...
18419 func_arith_result=`expr "$@"`
18423 # STRING may not start with a hyphen.
18426 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18432 case $lt_shell_append in
18434 cat << \_LT_EOF >> "$cfgfile"
18436 # func_append var value
18437 # Append VALUE to the end of shell variable VAR.
18445 cat << \_LT_EOF >> "$cfgfile"
18447 # func_append var value
18448 # Append VALUE to the end of shell variable VAR.
18459 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18460 || (rm -f "$cfgfile"; exit 1)
18462 mv -f "$cfgfile" "$ofile" ||
18463 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18467 "po-directories":C)
18468 for ac_file in $CONFIG_FILES; do
18469 # Support "outfile[:infile[:infile...]]"
18471 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18473 # PO directories have a Makefile.in generated from Makefile.in.in.
18474 case "$ac_file" in */Makefile.in)
18475 # Adjust a relative srcdir.
18476 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18477 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
18478 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18479 # In autoconf-2.13 it is called $ac_given_srcdir.
18480 # In autoconf-2.50 it is called $srcdir.
18481 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18482 case "$ac_given_srcdir" in
18483 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18484 /*) top_srcdir="$ac_given_srcdir" ;;
18485 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
18487 # Treat a directory as a PO directory if and only if it has a
18488 # POTFILES.in file. This allows packages to have multiple PO
18489 # directories under different names or in different locations.
18490 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18491 rm -f "$ac_dir/POTFILES"
18492 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18493 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
18494 POMAKEFILEDEPS="POTFILES.in"
18495 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
18496 # on $ac_dir but don't depend on user-specified configuration
18498 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18499 # The LINGUAS file contains the set of available languages.
18500 if test -n "$OBSOLETE_ALL_LINGUAS"; then
18501 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
18503 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18504 # Hide the ALL_LINGUAS assigment from automake < 1.5.
18505 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18506 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
18508 # The set of available languages was given in configure.in.
18509 # Hide the ALL_LINGUAS assigment from automake < 1.5.
18510 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
18513 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
18514 # Compute UPDATEPOFILES
18515 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
18516 # Compute DUMMYPOFILES
18517 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
18519 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
18520 case "$ac_given_srcdir" in
18522 *) srcdirpre='$(srcdir)/' ;;
18528 for lang in $ALL_LINGUAS; do
18529 POFILES="$POFILES $srcdirpre$lang.po"
18530 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
18531 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
18532 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18534 # CATALOGS depends on both $ac_dir and the user's LINGUAS
18535 # environment variable.
18537 if test -n "$ALL_LINGUAS"; then
18538 for presentlang in $ALL_LINGUAS; do
18540 if test "%UNSET%" != "$LINGUAS"; then
18541 desiredlanguages="$LINGUAS"
18543 desiredlanguages="$ALL_LINGUAS"
18545 for desiredlang in $desiredlanguages; do
18546 # Use the presentlang catalog if desiredlang is
18547 # a. equal to presentlang, or
18548 # b. a variant of presentlang (because in this case,
18549 # presentlang can be used as a fallback for messages
18550 # which are not translated in the desiredlang catalog).
18551 case "$desiredlang" in
18552 "$presentlang"*) useit=yes;;
18555 if test $useit = yes; then
18556 INST_LINGUAS="$INST_LINGUAS $presentlang"
18561 if test -n "$INST_LINGUAS"; then
18562 for lang in $INST_LINGUAS; do
18563 CATALOGS="$CATALOGS $lang.gmo"
18566 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18567 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
18568 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18569 if test -f "$f"; then
18571 *.orig | *.bak | *~) ;;
18572 *) cat "$f" >> "$ac_dir/Makefile" ;;
18585 { (exit 0); exit 0; }
18587 chmod +x $CONFIG_STATUS
18588 ac_clean_files=$ac_clean_files_save
18590 test $ac_write_fail = 0 ||
18591 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
18592 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
18593 { (exit 1); exit 1; }; }
18596 # configure is writing to config.log, and then calls config.status.
18597 # config.status does its own redirection, appending to config.log.
18598 # Unfortunately, on DOS this fails, as config.log is still kept open
18599 # by configure, so config.status won't be able to write to it; its
18600 # output is simply discarded. So we exec the FD to /dev/null,
18601 # effectively closing config.log, so it can be properly (re)opened and
18602 # appended to by config.status. When coming back to configure, we
18603 # need to make the FD available again.
18604 if test "$no_create" != yes; then
18606 ac_config_status_args=
18607 test "$silent" = yes &&
18608 ac_config_status_args="$ac_config_status_args --quiet"
18610 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18612 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18613 # would make configure fail if this is the last instruction.
18614 $ac_cs_success || { (exit 1); exit 1; }
18618 # CONFIG_SUBDIRS section.
18620 if test "$no_recursion" != yes; then
18622 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
18623 # so they do not pile up.
18624 ac_sub_configure_args=
18626 eval "set x $ac_configure_args"
18630 if test -n "$ac_prev"; then
18635 -cache-file | --cache-file | --cache-fil | --cache-fi \
18636 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18637 ac_prev=cache_file ;;
18638 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18639 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18642 --config-cache | -C)
18644 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18646 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18648 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18650 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18652 --disable-option-checking)
18656 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18658 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
18662 # Always prepend --prefix to ensure using the same prefix
18663 # in subdir configurations.
18664 ac_arg="--prefix=$prefix"
18666 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18668 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
18671 if test "$silent" = yes; then
18672 ac_sub_configure_args="--silent $ac_sub_configure_args"
18675 # Always prepend --disable-option-checking to silence warnings, since
18676 # different subdirs can have different --enable and --with options.
18677 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
18680 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18682 # Do not complain, so a configure script can configure whichever
18683 # parts of a large source tree are present.
18684 test -d "$srcdir/$ac_dir" || continue
18686 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
18687 $as_echo "$as_me:$LINENO: $ac_msg" >&5
18688 $as_echo "$ac_msg" >&6
18691 -*) as_dir=./$as_dir;;
18693 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
18697 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18698 *) as_qdir=$as_dir;;
18700 as_dirs="'$as_qdir' $as_dirs"
18701 as_dir=`$as_dirname -- "$as_dir" ||
18702 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18703 X"$as_dir" : 'X\(//\)[^/]' \| \
18704 X"$as_dir" : 'X\(//\)$' \| \
18705 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18706 $as_echo X"$as_dir" |
18707 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18711 /^X\(\/\/\)[^/].*/{
18724 test -d "$as_dir" && break
18726 test -z "$as_dirs" || eval "mkdir $as_dirs"
18727 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18728 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
18729 { (exit 1); exit 1; }; }; }
18733 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18735 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18736 # A ".." for each directory in $ac_dir_suffix.
18737 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18738 case $ac_top_builddir_sub in
18739 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18740 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18743 ac_abs_top_builddir=$ac_pwd
18744 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18745 # for backward compatibility:
18746 ac_top_builddir=$ac_top_build_prefix
18749 .) # We are building in place.
18751 ac_top_srcdir=$ac_top_builddir_sub
18752 ac_abs_top_srcdir=$ac_pwd ;;
18753 [\\/]* | ?:[\\/]* ) # Absolute name.
18754 ac_srcdir=$srcdir$ac_dir_suffix;
18755 ac_top_srcdir=$srcdir
18756 ac_abs_top_srcdir=$srcdir ;;
18757 *) # Relative name.
18758 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18759 ac_top_srcdir=$ac_top_build_prefix$srcdir
18760 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18762 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18767 # Check for guested configure; otherwise get Cygnus style configure.
18768 if test -f "$ac_srcdir/configure.gnu"; then
18769 ac_sub_configure=$ac_srcdir/configure.gnu
18770 elif test -f "$ac_srcdir/configure"; then
18771 ac_sub_configure=$ac_srcdir/configure
18772 elif test -f "$ac_srcdir/configure.in"; then
18773 # This should be Cygnus configure.
18774 ac_sub_configure=$ac_aux_dir/configure
18776 { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
18777 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18781 # The recursion is here.
18782 if test -n "$ac_sub_configure"; then
18783 # Make the cache file name correct relative to the subdirectory.
18784 case $cache_file in
18785 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
18786 *) # Relative name.
18787 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
18790 { $as_echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
18791 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18792 # The eval makes quoting arguments work.
18793 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
18794 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
18795 { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
18796 $as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
18797 { (exit 1); exit 1; }; }
18803 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18804 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18805 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}