2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for scim-hangul 0.3.2.
5 # Report bugs to <choe.hwanjing@gmail.com>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 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 # Zsh 3.x and 4.x performs 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
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
72 # Find who we are. Look in the path if we contain no directory separator.
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
163 if test $as_have_required = yes && (eval ":
173 as_func_ret_success () {
176 as_func_ret_failure () {
181 if as_func_success; then
185 echo as_func_success failed.
188 if as_func_failure; then
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 test -z "$as_dir" && as_dir=.
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
260 CONFIG_SHELL=$as_shell
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
288 as_func_ret_success () {
291 as_func_ret_failure () {
296 if as_func_success; then
300 echo as_func_success failed.
303 if as_func_failure; then
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
377 as_func_ret_success () {
380 as_func_ret_failure () {
385 if as_func_success; then
389 echo as_func_success failed.
392 if as_func_failure; then
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413 echo positional parameters were not saved.
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
463 # Exit status is that of the last command.
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
474 ECHO_C= ECHO_N= ECHO_T=
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 elif ln conf$$.file conf$$ 2>/dev/null; then
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
516 if mkdir -p . 2>/dev/null; then
519 test -d ./-p && rmdir ./-p
523 if test -x / >/dev/null 2>&1; then
526 if ls -dL / >/dev/null 2>&1; then
533 if test -d "$1"; then
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
544 as_executable_p=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
566 if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
569 elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
580 if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599 echo_test_string=`eval $cmd` &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
616 # So, first we look for a working echo in the user's PATH.
618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619 for dir in $PATH /usr/ucb; do
621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
631 if test "X$echo" = Xecho; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X/bin/ksh; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL=/bin/ksh
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
660 SHELL="$CONFIG_SHELL"
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
669 # maybe with a smaller string...
672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
685 # Oops. We lost completely, so just stick with echo.
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
704 tagnames=${tagnames+${tagnames},}CXX
706 tagnames=${tagnames+${tagnames},}F77
708 exec 7<&0 </dev/null 6>&1
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
718 ac_default_prefix=/usr/local
720 ac_config_libobj_dir=.
726 SHELL=${CONFIG_SHELL-/bin/sh}
728 # Identity of this package.
729 PACKAGE_NAME='scim-hangul'
730 PACKAGE_TARNAME='scim-hangul'
731 PACKAGE_VERSION='0.3.2'
732 PACKAGE_STRING='scim-hangul 0.3.2'
733 PACKAGE_BUGREPORT='choe.hwanjing@gmail.com'
735 ac_unique_file="src/scim_hangul_imengine.h"
736 # Factoring default headers for most tests.
737 ac_includes_default="\
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
749 # ifdef HAVE_STDLIB_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
781 program_transform_name
809 SCIM_HANGUL_MAJOR_VERSION
810 SCIM_HANGUL_MINOR_VERSION
811 SCIM_HANGUL_MICRO_VERSION
826 INSTALL_STRIP_PROGRAM
888 BUILD_INCLUDED_LIBINTL
895 INTL_LIBTOOL_SUFFIX_PREFIX
918 CONVENIENCE_LTDL_TRUE
919 CONVENIENCE_LTDL_FALSE
930 SCIM_BUILD_SETUP_TRUE
931 SCIM_BUILD_SETUP_FALSE
934 LIBTOOL_EXPORT_OPTIONS
935 SCIM_BUILD_SKIM_SETUP_TRUE
936 SCIM_BUILD_SKIM_SETUP_FALSE
947 SCIM_HANGUL_ENABLE_SKIM_SUPPORT_TRUE
948 SCIM_HANGUL_ENABLE_SKIM_SUPPORT_FALSE
949 SCIM_HANGUL_ENABLE_SKIM_SUPPORT
953 ac_precious_vars='build_alias
979 ac_subdirs_all='skim'
981 # Initialize some variables set by options.
983 ac_init_version=false
984 # The variables have the same names as the options, with
985 # dashes changed to underlines.
993 program_transform_name=s,x,x,
1001 # Installation directory options.
1002 # These are left unexpanded so users can "make install exec_prefix=/foo"
1003 # and all the variables that are supposed to be based on exec_prefix
1004 # by default will actually change.
1005 # Use braces instead of parens because sh, perl, etc. also accept them.
1006 # (The list follows the same order as the GNU Coding Standards.)
1007 bindir='${exec_prefix}/bin'
1008 sbindir='${exec_prefix}/sbin'
1009 libexecdir='${exec_prefix}/libexec'
1010 datarootdir='${prefix}/share'
1011 datadir='${datarootdir}'
1012 sysconfdir='${prefix}/etc'
1013 sharedstatedir='${prefix}/com'
1014 localstatedir='${prefix}/var'
1015 includedir='${prefix}/include'
1016 oldincludedir='/usr/include'
1017 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1018 infodir='${datarootdir}/info'
1023 libdir='${exec_prefix}/lib'
1024 localedir='${datarootdir}/locale'
1025 mandir='${datarootdir}/man'
1031 # If the previous option needs an argument, assign it.
1032 if test -n "$ac_prev"; then
1033 eval $ac_prev=\$ac_option
1039 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1043 # Accept the important Cygnus configure options, so we can diagnose typos.
1045 case $ac_dashdash$ac_option in
1049 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1051 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1052 bindir=$ac_optarg ;;
1054 -build | --build | --buil | --bui | --bu)
1055 ac_prev=build_alias ;;
1056 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1057 build_alias=$ac_optarg ;;
1059 -cache-file | --cache-file | --cache-fil | --cache-fi \
1060 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1061 ac_prev=cache_file ;;
1062 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1063 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1064 cache_file=$ac_optarg ;;
1066 --config-cache | -C)
1067 cache_file=config.cache ;;
1069 -datadir | --datadir | --datadi | --datad)
1071 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1072 datadir=$ac_optarg ;;
1074 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1075 | --dataroo | --dataro | --datar)
1076 ac_prev=datarootdir ;;
1077 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1078 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1079 datarootdir=$ac_optarg ;;
1081 -disable-* | --disable-*)
1082 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1083 # Reject names that are not valid shell variable names.
1084 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1085 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1086 { (exit 1); exit 1; }; }
1087 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1088 eval enable_$ac_feature=no ;;
1090 -docdir | --docdir | --docdi | --doc | --do)
1092 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1093 docdir=$ac_optarg ;;
1095 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1097 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1098 dvidir=$ac_optarg ;;
1100 -enable-* | --enable-*)
1101 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1102 # Reject names that are not valid shell variable names.
1103 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1104 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1105 { (exit 1); exit 1; }; }
1106 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1107 eval enable_$ac_feature=\$ac_optarg ;;
1109 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1110 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1111 | --exec | --exe | --ex)
1112 ac_prev=exec_prefix ;;
1113 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1114 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1115 | --exec=* | --exe=* | --ex=*)
1116 exec_prefix=$ac_optarg ;;
1118 -gas | --gas | --ga | --g)
1119 # Obsolete; use --with-gas.
1122 -help | --help | --hel | --he | -h)
1123 ac_init_help=long ;;
1124 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1125 ac_init_help=recursive ;;
1126 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1127 ac_init_help=short ;;
1129 -host | --host | --hos | --ho)
1130 ac_prev=host_alias ;;
1131 -host=* | --host=* | --hos=* | --ho=*)
1132 host_alias=$ac_optarg ;;
1134 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1136 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1138 htmldir=$ac_optarg ;;
1140 -includedir | --includedir | --includedi | --included | --include \
1141 | --includ | --inclu | --incl | --inc)
1142 ac_prev=includedir ;;
1143 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1144 | --includ=* | --inclu=* | --incl=* | --inc=*)
1145 includedir=$ac_optarg ;;
1147 -infodir | --infodir | --infodi | --infod | --info | --inf)
1149 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1150 infodir=$ac_optarg ;;
1152 -libdir | --libdir | --libdi | --libd)
1154 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1155 libdir=$ac_optarg ;;
1157 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1158 | --libexe | --libex | --libe)
1159 ac_prev=libexecdir ;;
1160 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1161 | --libexe=* | --libex=* | --libe=*)
1162 libexecdir=$ac_optarg ;;
1164 -localedir | --localedir | --localedi | --localed | --locale)
1165 ac_prev=localedir ;;
1166 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1167 localedir=$ac_optarg ;;
1169 -localstatedir | --localstatedir | --localstatedi | --localstated \
1170 | --localstate | --localstat | --localsta | --localst | --locals)
1171 ac_prev=localstatedir ;;
1172 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1173 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1174 localstatedir=$ac_optarg ;;
1176 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1178 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1179 mandir=$ac_optarg ;;
1181 -nfp | --nfp | --nf)
1182 # Obsolete; use --without-fp.
1185 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1186 | --no-cr | --no-c | -n)
1189 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1190 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1193 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1194 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1195 | --oldin | --oldi | --old | --ol | --o)
1196 ac_prev=oldincludedir ;;
1197 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1198 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1199 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1200 oldincludedir=$ac_optarg ;;
1202 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1204 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1205 prefix=$ac_optarg ;;
1207 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1208 | --program-pre | --program-pr | --program-p)
1209 ac_prev=program_prefix ;;
1210 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1211 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1212 program_prefix=$ac_optarg ;;
1214 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1215 | --program-suf | --program-su | --program-s)
1216 ac_prev=program_suffix ;;
1217 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1218 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1219 program_suffix=$ac_optarg ;;
1221 -program-transform-name | --program-transform-name \
1222 | --program-transform-nam | --program-transform-na \
1223 | --program-transform-n | --program-transform- \
1224 | --program-transform | --program-transfor \
1225 | --program-transfo | --program-transf \
1226 | --program-trans | --program-tran \
1227 | --progr-tra | --program-tr | --program-t)
1228 ac_prev=program_transform_name ;;
1229 -program-transform-name=* | --program-transform-name=* \
1230 | --program-transform-nam=* | --program-transform-na=* \
1231 | --program-transform-n=* | --program-transform-=* \
1232 | --program-transform=* | --program-transfor=* \
1233 | --program-transfo=* | --program-transf=* \
1234 | --program-trans=* | --program-tran=* \
1235 | --progr-tra=* | --program-tr=* | --program-t=*)
1236 program_transform_name=$ac_optarg ;;
1238 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1240 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1241 pdfdir=$ac_optarg ;;
1243 -psdir | --psdir | --psdi | --psd | --ps)
1245 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1248 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1249 | -silent | --silent | --silen | --sile | --sil)
1252 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1254 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1256 sbindir=$ac_optarg ;;
1258 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1259 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1260 | --sharedst | --shareds | --shared | --share | --shar \
1262 ac_prev=sharedstatedir ;;
1263 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1264 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1265 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1267 sharedstatedir=$ac_optarg ;;
1269 -site | --site | --sit)
1271 -site=* | --site=* | --sit=*)
1274 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1276 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1277 srcdir=$ac_optarg ;;
1279 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1280 | --syscon | --sysco | --sysc | --sys | --sy)
1281 ac_prev=sysconfdir ;;
1282 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1283 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1284 sysconfdir=$ac_optarg ;;
1286 -target | --target | --targe | --targ | --tar | --ta | --t)
1287 ac_prev=target_alias ;;
1288 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1289 target_alias=$ac_optarg ;;
1291 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1294 -version | --version | --versio | --versi | --vers | -V)
1295 ac_init_version=: ;;
1298 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1299 # Reject names that are not valid shell variable names.
1300 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1301 { echo "$as_me: error: invalid package name: $ac_package" >&2
1302 { (exit 1); exit 1; }; }
1303 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1304 eval with_$ac_package=\$ac_optarg ;;
1306 -without-* | --without-*)
1307 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1308 # Reject names that are not valid shell variable names.
1309 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1310 { echo "$as_me: error: invalid package name: $ac_package" >&2
1311 { (exit 1); exit 1; }; }
1312 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1313 eval with_$ac_package=no ;;
1316 # Obsolete; use --with-x.
1319 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1320 | --x-incl | --x-inc | --x-in | --x-i)
1321 ac_prev=x_includes ;;
1322 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1323 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1324 x_includes=$ac_optarg ;;
1326 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1327 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1328 ac_prev=x_libraries ;;
1329 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1330 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1331 x_libraries=$ac_optarg ;;
1333 -*) { echo "$as_me: error: unrecognized option: $ac_option
1334 Try \`$0 --help' for more information." >&2
1335 { (exit 1); exit 1; }; }
1339 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1340 # Reject names that are not valid shell variable names.
1341 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1342 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1343 { (exit 1); exit 1; }; }
1344 eval $ac_envvar=\$ac_optarg
1345 export $ac_envvar ;;
1348 # FIXME: should be removed in autoconf 3.0.
1349 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1350 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1351 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1352 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1358 if test -n "$ac_prev"; then
1359 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1360 { echo "$as_me: error: missing argument to $ac_option" >&2
1361 { (exit 1); exit 1; }; }
1364 # Be sure to have absolute directory names.
1365 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1366 datadir sysconfdir sharedstatedir localstatedir includedir \
1367 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1368 libdir localedir mandir
1370 eval ac_val=\$$ac_var
1372 [\\/$]* | ?:[\\/]* ) continue;;
1373 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1375 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1376 { (exit 1); exit 1; }; }
1379 # There might be people who depend on the old broken behavior: `$host'
1380 # used to hold the argument of --host etc.
1381 # FIXME: To remove some day.
1384 target=$target_alias
1386 # FIXME: To remove some day.
1387 if test "x$host_alias" != x; then
1388 if test "x$build_alias" = x; then
1389 cross_compiling=maybe
1390 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1391 If a cross compiler is detected then cross compile mode will be used." >&2
1392 elif test "x$build_alias" != "x$host_alias"; then
1398 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1400 test "$silent" = yes && exec 6>/dev/null
1403 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1404 ac_ls_di=`ls -di .` &&
1405 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1406 { echo "$as_me: error: Working directory cannot be determined" >&2
1407 { (exit 1); exit 1; }; }
1408 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1409 { echo "$as_me: error: pwd does not report name of working directory" >&2
1410 { (exit 1); exit 1; }; }
1413 # Find the source files, if location was not specified.
1414 if test -z "$srcdir"; then
1415 ac_srcdir_defaulted=yes
1416 # Try the directory containing this script, then the parent directory.
1417 ac_confdir=`$as_dirname -- "$0" ||
1418 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1419 X"$0" : 'X\(//\)[^/]' \| \
1420 X"$0" : 'X\(//\)$' \| \
1421 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1441 if test ! -r "$srcdir/$ac_unique_file"; then
1445 ac_srcdir_defaulted=no
1447 if test ! -r "$srcdir/$ac_unique_file"; then
1448 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1449 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1450 { (exit 1); exit 1; }; }
1452 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1454 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1455 { (exit 1); exit 1; }; }
1457 # When building in place, set srcdir=.
1458 if test "$ac_abs_confdir" = "$ac_pwd"; then
1461 # Remove unnecessary trailing slashes from srcdir.
1462 # Double slashes in file names in object file debugging info
1463 # mess up M-x gdb in Emacs.
1465 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1467 for ac_var in $ac_precious_vars; do
1468 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1469 eval ac_env_${ac_var}_value=\$${ac_var}
1470 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1471 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1475 # Report the --help message.
1477 if test "$ac_init_help" = "long"; then
1478 # Omit some internal or obsolete options to make the list less imposing.
1479 # This message is too long to be a string in the A/UX 3.1 sh.
1481 \`configure' configures scim-hangul 0.3.2 to adapt to many kinds of systems.
1483 Usage: $0 [OPTION]... [VAR=VALUE]...
1485 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1486 VAR=VALUE. See below for descriptions of some of the useful variables.
1488 Defaults for the options are specified in brackets.
1491 -h, --help display this help and exit
1492 --help=short display options specific to this package
1493 --help=recursive display the short help of all the included packages
1494 -V, --version display version information and exit
1495 -q, --quiet, --silent do not print \`checking...' messages
1496 --cache-file=FILE cache test results in FILE [disabled]
1497 -C, --config-cache alias for \`--cache-file=config.cache'
1498 -n, --no-create do not create output files
1499 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1501 Installation directories:
1502 --prefix=PREFIX install architecture-independent files in PREFIX
1503 [$ac_default_prefix]
1504 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1507 By default, \`make install' will install all the files in
1508 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1509 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1510 for instance \`--prefix=\$HOME'.
1512 For better control, use the options below.
1514 Fine tuning of the installation directories:
1515 --bindir=DIR user executables [EPREFIX/bin]
1516 --sbindir=DIR system admin executables [EPREFIX/sbin]
1517 --libexecdir=DIR program executables [EPREFIX/libexec]
1518 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1519 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1520 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1521 --libdir=DIR object code libraries [EPREFIX/lib]
1522 --includedir=DIR C header files [PREFIX/include]
1523 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1524 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1525 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1526 --infodir=DIR info documentation [DATAROOTDIR/info]
1527 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1528 --mandir=DIR man documentation [DATAROOTDIR/man]
1529 --docdir=DIR documentation root [DATAROOTDIR/doc/scim-hangul]
1530 --htmldir=DIR html documentation [DOCDIR]
1531 --dvidir=DIR dvi documentation [DOCDIR]
1532 --pdfdir=DIR pdf documentation [DOCDIR]
1533 --psdir=DIR ps documentation [DOCDIR]
1539 --program-prefix=PREFIX prepend PREFIX to installed program names
1540 --program-suffix=SUFFIX append SUFFIX to installed program names
1541 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1544 --build=BUILD configure for building on BUILD [guessed]
1545 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1549 if test -n "$ac_init_help"; then
1550 case $ac_init_help in
1551 short | recursive ) echo "Configuration of scim-hangul 0.3.2:";;
1556 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1557 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1558 --disable-nls do not use Native Language Support
1559 --disable-dependency-tracking speeds up one-time build
1560 --enable-dependency-tracking do not reject slow dependency extractors
1561 --enable-threads={posix|solaris|pth|win32}
1562 specify multithreading API
1563 --disable-threads build without multithread safety
1564 --disable-rpath do not hardcode runtime library paths
1565 --enable-static[=PKGS] build static libraries [default=no]
1566 --enable-shared[=PKGS] build shared libraries [default=yes]
1567 --enable-fast-install[=PKGS]
1568 optimize for fast installation [default=yes]
1569 --disable-libtool-lock avoid locking (might break parallel builds)
1570 --enable-ltdl-install install libltdl
1571 --enable-debug Turn on debugging
1572 --disable-skim-support Enable skim Setup UI
1575 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1576 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1577 --with-gnu-ld assume the C compiler uses GNU ld default=no
1578 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1579 --without-libpth-prefix don't search for libpth in includedir and libdir
1580 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1581 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1582 --with-included-gettext use the GNU gettext library included here
1583 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1584 --without-libintl-prefix don't search for libintl in includedir and libdir
1585 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1586 --with-pic try to use only PIC/non-PIC objects [default=use
1588 --with-tags[=TAGS] include additional configurations [automatic]
1590 Some influential environment variables:
1591 CC C compiler command
1592 CFLAGS C compiler flags
1593 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1594 nonstandard directory <lib dir>
1595 LIBS libraries to pass to the linker, e.g. -l<library>
1596 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1597 you have headers in a nonstandard directory <include dir>
1599 CXX C++ compiler command
1600 CXXFLAGS C++ compiler flags
1601 CXXCPP C++ preprocessor
1602 F77 Fortran 77 compiler command
1603 FFLAGS Fortran 77 compiler flags
1604 PKG_CONFIG path to pkg-config utility
1606 C compiler flags for LIBHANGUL, overriding pkg-config
1608 linker flags for LIBHANGUL, overriding pkg-config
1609 SCIM_CFLAGS C compiler flags for SCIM, overriding pkg-config
1610 SCIM_LIBS linker flags for SCIM, overriding pkg-config
1611 SCIM_GTKUTILS_CFLAGS
1612 C compiler flags for SCIM_GTKUTILS, overriding pkg-config
1614 linker flags for SCIM_GTKUTILS, overriding pkg-config
1615 SKIM_CFLAGS C compiler flags for SKIM, overriding pkg-config
1616 SKIM_LIBS linker flags for SKIM, overriding pkg-config
1617 SCIM_KDEUTILS_CFLAGS
1618 C compiler flags for SCIM_KDEUTILS, overriding pkg-config
1620 linker flags for SCIM_KDEUTILS, overriding pkg-config
1622 Use these variables to override the choices made by `configure' or to help
1623 it to find libraries and programs with nonstandard names/locations.
1625 Report bugs to <choe.hwanjing@gmail.com>.
1630 if test "$ac_init_help" = "recursive"; then
1631 # If there are subdirs, report their specific --help.
1632 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1633 test -d "$ac_dir" || continue
1637 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1639 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1640 # A ".." for each directory in $ac_dir_suffix.
1641 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1642 case $ac_top_builddir_sub in
1643 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1644 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1647 ac_abs_top_builddir=$ac_pwd
1648 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1649 # for backward compatibility:
1650 ac_top_builddir=$ac_top_build_prefix
1653 .) # We are building in place.
1655 ac_top_srcdir=$ac_top_builddir_sub
1656 ac_abs_top_srcdir=$ac_pwd ;;
1657 [\\/]* | ?:[\\/]* ) # Absolute name.
1658 ac_srcdir=$srcdir$ac_dir_suffix;
1659 ac_top_srcdir=$srcdir
1660 ac_abs_top_srcdir=$srcdir ;;
1662 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1663 ac_top_srcdir=$ac_top_build_prefix$srcdir
1664 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1666 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1668 cd "$ac_dir" || { ac_status=$?; continue; }
1669 # Check for guested configure.
1670 if test -f "$ac_srcdir/configure.gnu"; then
1672 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1673 elif test -f "$ac_srcdir/configure"; then
1675 $SHELL "$ac_srcdir/configure" --help=recursive
1677 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1679 cd "$ac_pwd" || { ac_status=$?; break; }
1683 test -n "$ac_init_help" && exit $ac_status
1684 if $ac_init_version; then
1686 scim-hangul configure 0.3.2
1687 generated by GNU Autoconf 2.61
1689 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1690 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1691 This configure script is free software; the Free Software Foundation
1692 gives unlimited permission to copy, distribute and modify it.
1696 cat >config.log <<_ACEOF
1697 This file contains any messages produced by compilers while
1698 running configure, to aid debugging if configure makes a mistake.
1700 It was created by scim-hangul $as_me 0.3.2, which was
1701 generated by GNU Autoconf 2.61. Invocation command line was
1713 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1714 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1715 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1716 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1717 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1719 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1720 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1722 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1723 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1724 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1725 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1726 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1727 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1728 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1736 test -z "$as_dir" && as_dir=.
1737 echo "PATH: $as_dir"
1753 # Keep a trace of the command line.
1754 # Strip out --no-create and --no-recursion so they do not pile up.
1755 # Strip out --silent because we don't want to record it for future runs.
1756 # Also quote any args containing shell meta-characters.
1757 # Make two passes to allow for proper duplicate-argument suppression.
1761 ac_must_keep_next=false
1767 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1768 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1769 | -silent | --silent | --silen | --sile | --sil)
1772 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1775 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1777 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1778 if test $ac_must_keep_next = true; then
1779 ac_must_keep_next=false # Got value, back to normal.
1782 *=* | --config-cache | -C | -disable-* | --disable-* \
1783 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1784 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1785 | -with-* | --with-* | -without-* | --without-* | --x)
1786 case "$ac_configure_args0 " in
1787 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1790 -* ) ac_must_keep_next=true ;;
1793 ac_configure_args="$ac_configure_args '$ac_arg'"
1798 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1799 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1801 # When interrupted or exit'd, cleanup temporary files, and complete
1802 # config.log. We remove comments because anyway the quotes in there
1803 # would cause problems or look ugly.
1804 # WARNING: Use '\'' to represent an apostrophe within the trap.
1805 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1806 trap 'exit_status=$?
1807 # Save into config.log some information that might help in debugging.
1812 ## ---------------- ##
1813 ## Cache variables. ##
1814 ## ---------------- ##
1817 # The following way of writing the cache mishandles newlines in values,
1819 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1820 eval ac_val=\$$ac_var
1824 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1825 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1828 _ | IFS | as_nl) ;; #(
1829 *) $as_unset $ac_var ;;
1834 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1835 *${as_nl}ac_space=\ *)
1837 "s/'\''/'\''\\\\'\'''\''/g;
1838 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1841 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1849 ## ----------------- ##
1850 ## Output variables. ##
1851 ## ----------------- ##
1854 for ac_var in $ac_subst_vars
1856 eval ac_val=\$$ac_var
1858 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1860 echo "$ac_var='\''$ac_val'\''"
1864 if test -n "$ac_subst_files"; then
1866 ## ------------------- ##
1867 ## File substitutions. ##
1868 ## ------------------- ##
1871 for ac_var in $ac_subst_files
1873 eval ac_val=\$$ac_var
1875 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1877 echo "$ac_var='\''$ac_val'\''"
1882 if test -s confdefs.h; then
1892 test "$ac_signal" != 0 &&
1893 echo "$as_me: caught signal $ac_signal"
1894 echo "$as_me: exit $exit_status"
1896 rm -f core *.core core.conftest.* &&
1897 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1900 for ac_signal in 1 2 13 15; do
1901 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1905 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1906 rm -f -r conftest* confdefs.h
1908 # Predefined preprocessor variables.
1910 cat >>confdefs.h <<_ACEOF
1911 #define PACKAGE_NAME "$PACKAGE_NAME"
1915 cat >>confdefs.h <<_ACEOF
1916 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1920 cat >>confdefs.h <<_ACEOF
1921 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1925 cat >>confdefs.h <<_ACEOF
1926 #define PACKAGE_STRING "$PACKAGE_STRING"
1930 cat >>confdefs.h <<_ACEOF
1931 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1935 # Let the site file select an alternate cache file if it wants to.
1936 # Prefer explicitly selected file to automatically selected ones.
1937 if test -n "$CONFIG_SITE"; then
1938 set x "$CONFIG_SITE"
1939 elif test "x$prefix" != xNONE; then
1940 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1942 set x "$ac_default_prefix/share/config.site" \
1943 "$ac_default_prefix/etc/config.site"
1948 if test -r "$ac_site_file"; then
1949 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1950 echo "$as_me: loading site script $ac_site_file" >&6;}
1951 sed 's/^/| /' "$ac_site_file" >&5
1956 if test -r "$cache_file"; then
1957 # Some versions of bash will fail to source /dev/null (special
1958 # files actually), so we avoid doing that.
1959 if test -f "$cache_file"; then
1960 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1961 echo "$as_me: loading cache $cache_file" >&6;}
1963 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1964 *) . "./$cache_file";;
1968 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1969 echo "$as_me: creating cache $cache_file" >&6;}
1973 # Check that the precious variables saved in the cache have kept the same
1975 ac_cache_corrupted=false
1976 for ac_var in $ac_precious_vars; do
1977 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1978 eval ac_new_set=\$ac_env_${ac_var}_set
1979 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1980 eval ac_new_val=\$ac_env_${ac_var}_value
1981 case $ac_old_set,$ac_new_set in
1983 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1984 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1985 ac_cache_corrupted=: ;;
1987 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1988 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1989 ac_cache_corrupted=: ;;
1992 if test "x$ac_old_val" != "x$ac_new_val"; then
1993 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1994 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1995 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1996 echo "$as_me: former value: $ac_old_val" >&2;}
1997 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1998 echo "$as_me: current value: $ac_new_val" >&2;}
1999 ac_cache_corrupted=:
2002 # Pass precious variables to config.status.
2003 if test "$ac_new_set" = set; then
2005 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2006 *) ac_arg=$ac_var=$ac_new_val ;;
2008 case " $ac_configure_args " in
2009 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2010 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2014 if $ac_cache_corrupted; then
2015 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2016 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2017 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2018 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2019 { (exit 1); exit 1; }; }
2047 ac_cpp='$CPP $CPPFLAGS'
2048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2052 #do not forget to update skim/configure.in.in
2055 # Save this value here, since automake will set cflags and cxxflags later
2056 cflags_set=${CFLAGS+set}
2057 cppflags_set=${CPPFLAGS+set}
2059 SCIM_HANGUL_MAJOR_VERSION=0
2060 SCIM_HANGUL_MINOR_VERSION=3
2061 SCIM_HANGUL_MICRO_VERSION=2
2063 SCIM_HANGUL_VERSION=$SCIM_HANGUL_MAJOR_VERSION.$SCIM_HANGUL_MINOR_VERSION.$SCIM_HANGUL_MICRO_VERSION
2070 # Init automake stuff
2071 am__api_version="1.9"
2073 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2074 if test -f "$ac_dir/install-sh"; then
2076 ac_install_sh="$ac_aux_dir/install-sh -c"
2078 elif test -f "$ac_dir/install.sh"; then
2080 ac_install_sh="$ac_aux_dir/install.sh -c"
2082 elif test -f "$ac_dir/shtool"; then
2084 ac_install_sh="$ac_aux_dir/shtool install -c"
2088 if test -z "$ac_aux_dir"; then
2089 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2090 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2091 { (exit 1); exit 1; }; }
2094 # These three variables are undocumented and unsupported,
2095 # and are intended to be withdrawn in a future Autoconf release.
2096 # They can cause serious problems if a builder's source tree is in a directory
2097 # whose full name contains unusual characters.
2098 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2099 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2100 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2103 # Find a good install program. We prefer a C program (faster),
2104 # so one script is as good as another. But avoid the broken or
2105 # incompatible versions:
2106 # SysV /etc/install, /usr/sbin/install
2107 # SunOS /usr/etc/install
2108 # IRIX /sbin/install
2110 # AmigaOS /C/install, which installs bootblocks on floppy discs
2111 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2112 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2113 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2114 # OS/2's system install, which has a completely different semantic
2115 # ./install, which can be erroneously created by make from ./install.sh.
2116 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2117 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2118 if test -z "$INSTALL"; then
2119 if test "${ac_cv_path_install+set}" = set; then
2120 echo $ECHO_N "(cached) $ECHO_C" >&6
2122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2126 test -z "$as_dir" && as_dir=.
2127 # Account for people who put trailing slashes in PATH elements.
2129 ./ | .// | /cC/* | \
2130 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2131 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2134 # OSF1 and SCO ODT 3.0 have their own names for install.
2135 # Don't use installbsd from OSF since it installs stuff as root
2137 for ac_prog in ginstall scoinst install; do
2138 for ac_exec_ext in '' $ac_executable_extensions; do
2139 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2140 if test $ac_prog = install &&
2141 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2142 # AIX install. It has an incompatible calling convention.
2144 elif test $ac_prog = install &&
2145 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2146 # program-specific install script used by HP pwplus--don't use.
2149 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2162 if test "${ac_cv_path_install+set}" = set; then
2163 INSTALL=$ac_cv_path_install
2165 # As a last resort, use the slow shell script. Don't cache a
2166 # value for INSTALL within a source directory, because that will
2167 # break other packages using the cache if that directory is
2168 # removed, or if the value is a relative name.
2169 INSTALL=$ac_install_sh
2172 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2173 echo "${ECHO_T}$INSTALL" >&6; }
2175 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2176 # It thinks the first close brace ends the variable substitution.
2177 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2179 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2181 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2183 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2184 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2187 echo timestamp > conftest.file
2188 # Do `set' in a subshell so we don't clobber the current shell's
2189 # arguments. Must try -L first in case configure is actually a
2190 # symlink; some systems play weird games with the mod time of symlinks
2191 # (eg FreeBSD returns the mod time of the symlink's containing
2194 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2195 if test "$*" = "X"; then
2197 set X `ls -t $srcdir/configure conftest.file`
2200 if test "$*" != "X $srcdir/configure conftest.file" \
2201 && test "$*" != "X conftest.file $srcdir/configure"; then
2203 # If neither matched, then we have a broken ls. This can happen
2204 # if, for instance, CONFIG_SHELL is bash and it inherits a
2205 # broken ls alias from the environment. This has actually
2206 # happened. Such a system could not be considered "sane".
2207 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2208 alias in your environment" >&5
2209 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2210 alias in your environment" >&2;}
2211 { (exit 1); exit 1; }; }
2214 test "$2" = conftest.file
2220 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2221 Check your system clock" >&5
2222 echo "$as_me: error: newly created file is older than distributed files!
2223 Check your system clock" >&2;}
2224 { (exit 1); exit 1; }; }
2226 { echo "$as_me:$LINENO: result: yes" >&5
2227 echo "${ECHO_T}yes" >&6; }
2228 test "$program_prefix" != NONE &&
2229 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2230 # Use a double $ so make ignores it.
2231 test "$program_suffix" != NONE &&
2232 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2233 # Double any \ or $. echo might interpret backslashes.
2234 # By default was `s,x,x', remove it if useless.
2235 cat <<\_ACEOF >conftest.sed
2236 s/[\\$]/&&/g;s/;s,x,x,$//
2238 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2241 # expand $ac_aux_dir to an absolute path
2242 am_aux_dir=`cd $ac_aux_dir && pwd`
2244 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2245 # Use eval to expand $SHELL
2246 if eval "$MISSING --run true"; then
2247 am_missing_run="$MISSING --run "
2250 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2251 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2254 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2255 # We used to keeping the `.' as first argument, in order to
2256 # allow $(mkdir_p) to be used without argument. As in
2257 # $(mkdir_p) $(somedir)
2258 # where $(somedir) is conditionally defined. However this is wrong
2260 # 1. if the package is installed by a user who cannot write `.'
2261 # make install will fail,
2262 # 2. the above comment should most certainly read
2263 # $(mkdir_p) $(DESTDIR)$(somedir)
2264 # so it does not work when $(somedir) is undefined and
2265 # $(DESTDIR) is not.
2266 # To support the latter case, we have to write
2267 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2268 # so the `.' trick is pointless.
2269 mkdir_p='mkdir -p --'
2271 # On NextStep and OpenStep, the `mkdir' command does not
2272 # recognize any option. It will interpret all options as
2273 # directories to create, and then abort because `.' already
2275 for d in ./-p ./--version;
2277 test -d $d && rmdir $d
2279 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2280 if test -f "$ac_aux_dir/mkinstalldirs"; then
2281 mkdir_p='$(mkinstalldirs)'
2283 mkdir_p='$(install_sh) -d'
2287 for ac_prog in gawk mawk nawk awk
2289 # Extract the first word of "$ac_prog", so it can be a program name with args.
2290 set dummy $ac_prog; ac_word=$2
2291 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2293 if test "${ac_cv_prog_AWK+set}" = set; then
2294 echo $ECHO_N "(cached) $ECHO_C" >&6
2296 if test -n "$AWK"; then
2297 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2303 test -z "$as_dir" && as_dir=.
2304 for ac_exec_ext in '' $ac_executable_extensions; do
2305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2306 ac_cv_prog_AWK="$ac_prog"
2307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2317 if test -n "$AWK"; then
2318 { echo "$as_me:$LINENO: result: $AWK" >&5
2319 echo "${ECHO_T}$AWK" >&6; }
2321 { echo "$as_me:$LINENO: result: no" >&5
2322 echo "${ECHO_T}no" >&6; }
2326 test -n "$AWK" && break
2329 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2330 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2331 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2332 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2333 echo $ECHO_N "(cached) $ECHO_C" >&6
2335 cat >conftest.make <<\_ACEOF
2338 @echo '@@@%%%=$(MAKE)=@@@%%%'
2340 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2341 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2343 eval ac_cv_prog_make_${ac_make}_set=yes;;
2345 eval ac_cv_prog_make_${ac_make}_set=no;;
2349 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2350 { echo "$as_me:$LINENO: result: yes" >&5
2351 echo "${ECHO_T}yes" >&6; }
2354 { echo "$as_me:$LINENO: result: no" >&5
2355 echo "${ECHO_T}no" >&6; }
2356 SET_MAKE="MAKE=${MAKE-make}"
2359 rm -rf .tst 2>/dev/null
2360 mkdir .tst 2>/dev/null
2361 if test -d .tst; then
2366 rmdir .tst 2>/dev/null
2368 # test to see if srcdir already configured
2369 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2370 test -f $srcdir/config.status; then
2371 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2372 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2373 { (exit 1); exit 1; }; }
2376 # test whether we have cygpath
2377 if test -z "$CYGPATH_W"; then
2378 if (cygpath --version) >/dev/null 2>/dev/null; then
2379 CYGPATH_W='cygpath -w'
2386 # Define the identity of the package.
2387 PACKAGE='scim-hangul'
2391 cat >>confdefs.h <<_ACEOF
2392 #define PACKAGE "$PACKAGE"
2396 cat >>confdefs.h <<_ACEOF
2397 #define VERSION "$VERSION"
2400 # Some tools Automake needs.
2402 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2405 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2408 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2411 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2414 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2416 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2418 # Installed binaries are usually stripped using `strip' when the user
2419 # run `make install-strip'. However `strip' might not be the right
2420 # tool to use in cross-compilation environments, therefore Automake
2421 # will honor the `STRIP' environment variable to overrule this program.
2422 if test "$cross_compiling" != no; then
2423 if test -n "$ac_tool_prefix"; then
2424 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2425 set dummy ${ac_tool_prefix}strip; ac_word=$2
2426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2428 if test "${ac_cv_prog_STRIP+set}" = set; then
2429 echo $ECHO_N "(cached) $ECHO_C" >&6
2431 if test -n "$STRIP"; then
2432 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2438 test -z "$as_dir" && as_dir=.
2439 for ac_exec_ext in '' $ac_executable_extensions; do
2440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2441 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2451 STRIP=$ac_cv_prog_STRIP
2452 if test -n "$STRIP"; then
2453 { echo "$as_me:$LINENO: result: $STRIP" >&5
2454 echo "${ECHO_T}$STRIP" >&6; }
2456 { echo "$as_me:$LINENO: result: no" >&5
2457 echo "${ECHO_T}no" >&6; }
2462 if test -z "$ac_cv_prog_STRIP"; then
2464 # Extract the first word of "strip", so it can be a program name with args.
2465 set dummy strip; ac_word=$2
2466 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2468 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2469 echo $ECHO_N "(cached) $ECHO_C" >&6
2471 if test -n "$ac_ct_STRIP"; then
2472 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2478 test -z "$as_dir" && as_dir=.
2479 for ac_exec_ext in '' $ac_executable_extensions; do
2480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2481 ac_cv_prog_ac_ct_STRIP="strip"
2482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2491 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2492 if test -n "$ac_ct_STRIP"; then
2493 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2494 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2496 { echo "$as_me:$LINENO: result: no" >&5
2497 echo "${ECHO_T}no" >&6; }
2500 if test "x$ac_ct_STRIP" = x; then
2503 case $cross_compiling:$ac_tool_warned in
2505 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2506 whose name does not start with the host triplet. If you think this
2507 configuration is useful to you, please write to autoconf@gnu.org." >&5
2508 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2509 whose name does not start with the host triplet. If you think this
2510 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2511 ac_tool_warned=yes ;;
2516 STRIP="$ac_cv_prog_STRIP"
2520 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2522 # We need awk for the "check" target. The system "awk" is bad on
2524 # Always define AMTAR for backward compatibility.
2526 AMTAR=${AMTAR-"${am_missing_run}tar"}
2528 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2534 ac_config_headers="$ac_config_headers config.h"
2538 ALL_LINGUAS="de fr ja ko nl pa zh_CN"
2541 if test -n "$ac_aux_dir"; then
2542 case "$ac_aux_dir" in
2543 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
2544 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
2547 if test -z "$MKINSTALLDIRS"; then
2548 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
2553 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2554 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
2555 # Check whether --enable-nls was given.
2556 if test "${enable_nls+set}" = set; then
2557 enableval=$enable_nls; USE_NLS=$enableval
2562 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
2563 echo "${ECHO_T}$USE_NLS" >&6; }
2570 # Prepare PATH_SEPARATOR.
2571 # The user is always right.
2572 if test "${PATH_SEPARATOR+set}" != set; then
2573 echo "#! /bin/sh" >conf$$.sh
2574 echo "exit 0" >>conf$$.sh
2576 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2584 # Find out how to test for executable files. Don't use a zero-byte file,
2585 # as systems may use methods other than mode bits to determine executability.
2586 cat >conf$$.file <<_ASEOF
2590 chmod +x conf$$.file
2591 if test -x conf$$.file >/dev/null 2>&1; then
2592 ac_executable_p="test -x"
2594 ac_executable_p="test -f"
2598 # Extract the first word of "msgfmt", so it can be a program name with args.
2599 set dummy msgfmt; ac_word=$2
2600 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2602 if test "${ac_cv_path_MSGFMT+set}" = set; then
2603 echo $ECHO_N "(cached) $ECHO_C" >&6
2607 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2610 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2611 for ac_dir in $PATH; do
2613 test -z "$ac_dir" && ac_dir=.
2614 for ac_exec_ext in '' $ac_executable_extensions; do
2615 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2616 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
2617 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2618 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
2625 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2629 MSGFMT="$ac_cv_path_MSGFMT"
2630 if test "$MSGFMT" != ":"; then
2631 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
2632 echo "${ECHO_T}$MSGFMT" >&6; }
2634 { echo "$as_me:$LINENO: result: no" >&5
2635 echo "${ECHO_T}no" >&6; }
2638 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2639 set dummy gmsgfmt; ac_word=$2
2640 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2642 if test "${ac_cv_path_GMSGFMT+set}" = set; then
2643 echo $ECHO_N "(cached) $ECHO_C" >&6
2647 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654 test -z "$as_dir" && as_dir=.
2655 for ac_exec_ext in '' $ac_executable_extensions; do
2656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2657 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
2658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2665 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2669 GMSGFMT=$ac_cv_path_GMSGFMT
2670 if test -n "$GMSGFMT"; then
2671 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
2672 echo "${ECHO_T}$GMSGFMT" >&6; }
2674 { echo "$as_me:$LINENO: result: no" >&5
2675 echo "${ECHO_T}no" >&6; }
2681 # Prepare PATH_SEPARATOR.
2682 # The user is always right.
2683 if test "${PATH_SEPARATOR+set}" != set; then
2684 echo "#! /bin/sh" >conf$$.sh
2685 echo "exit 0" >>conf$$.sh
2687 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2695 # Find out how to test for executable files. Don't use a zero-byte file,
2696 # as systems may use methods other than mode bits to determine executability.
2697 cat >conf$$.file <<_ASEOF
2701 chmod +x conf$$.file
2702 if test -x conf$$.file >/dev/null 2>&1; then
2703 ac_executable_p="test -x"
2705 ac_executable_p="test -f"
2709 # Extract the first word of "xgettext", so it can be a program name with args.
2710 set dummy xgettext; ac_word=$2
2711 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2713 if test "${ac_cv_path_XGETTEXT+set}" = set; then
2714 echo $ECHO_N "(cached) $ECHO_C" >&6
2718 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2721 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2722 for ac_dir in $PATH; do
2724 test -z "$ac_dir" && ac_dir=.
2725 for ac_exec_ext in '' $ac_executable_extensions; do
2726 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2727 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
2728 (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
2729 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
2736 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2740 XGETTEXT="$ac_cv_path_XGETTEXT"
2741 if test "$XGETTEXT" != ":"; then
2742 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
2743 echo "${ECHO_T}$XGETTEXT" >&6; }
2745 { echo "$as_me:$LINENO: result: no" >&5
2746 echo "${ECHO_T}no" >&6; }
2752 # Prepare PATH_SEPARATOR.
2753 # The user is always right.
2754 if test "${PATH_SEPARATOR+set}" != set; then
2755 echo "#! /bin/sh" >conf$$.sh
2756 echo "exit 0" >>conf$$.sh
2758 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2766 # Find out how to test for executable files. Don't use a zero-byte file,
2767 # as systems may use methods other than mode bits to determine executability.
2768 cat >conf$$.file <<_ASEOF
2772 chmod +x conf$$.file
2773 if test -x conf$$.file >/dev/null 2>&1; then
2774 ac_executable_p="test -x"
2776 ac_executable_p="test -f"
2780 # Extract the first word of "msgmerge", so it can be a program name with args.
2781 set dummy msgmerge; ac_word=$2
2782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2784 if test "${ac_cv_path_MSGMERGE+set}" = set; then
2785 echo $ECHO_N "(cached) $ECHO_C" >&6
2789 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
2792 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2793 for ac_dir in $PATH; do
2795 test -z "$ac_dir" && ac_dir=.
2796 for ac_exec_ext in '' $ac_executable_extensions; do
2797 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2798 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
2799 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
2806 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
2810 MSGMERGE="$ac_cv_path_MSGMERGE"
2811 if test "$MSGMERGE" != ":"; then
2812 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
2813 echo "${ECHO_T}$MSGMERGE" >&6; }
2815 { echo "$as_me:$LINENO: result: no" >&5
2816 echo "${ECHO_T}no" >&6; }
2820 if test "$GMSGFMT" != ":"; then
2821 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
2822 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2825 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
2826 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
2827 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
2832 if test "$XGETTEXT" != ":"; then
2833 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
2834 (if $XGETTEXT --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
2837 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
2838 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
2844 ac_config_commands="$ac_config_commands default-1"
2847 DEPDIR="${am__leading_dot}deps"
2849 ac_config_commands="$ac_config_commands depfiles"
2852 am_make=${MAKE-make}
2853 cat > confinc << 'END'
2858 # If we don't find an include directive, just comment out the code.
2859 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2860 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2864 # First try GNU make style include.
2865 echo "include confinc" > confmf
2866 # We grep out `Entering directory' and `Leaving directory'
2867 # messages which can occur if `w' ends up in MAKEFLAGS.
2868 # In particular we don't look at `^make:' because GNU make might
2869 # be invoked under some other name (usually "gmake"), in which
2870 # case it prints its new name instead of `make'.
2871 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2876 # Now try BSD make style include.
2877 if test "$am__include" = "#"; then
2878 echo '.include "confinc"' > confmf
2879 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2880 am__include=.include
2887 { echo "$as_me:$LINENO: result: $_am_result" >&5
2888 echo "${ECHO_T}$_am_result" >&6; }
2889 rm -f confinc confmf
2891 # Check whether --enable-dependency-tracking was given.
2892 if test "${enable_dependency_tracking+set}" = set; then
2893 enableval=$enable_dependency_tracking;
2896 if test "x$enable_dependency_tracking" != xno; then
2897 am_depcomp="$ac_aux_dir/depcomp"
2902 if test "x$enable_dependency_tracking" != xno; then
2913 ac_cpp='$CPP $CPPFLAGS'
2914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2917 if test -n "$ac_tool_prefix"; then
2918 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2919 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2920 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2922 if test "${ac_cv_prog_CC+set}" = set; then
2923 echo $ECHO_N "(cached) $ECHO_C" >&6
2925 if test -n "$CC"; then
2926 ac_cv_prog_CC="$CC" # Let the user override the test.
2928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2932 test -z "$as_dir" && as_dir=.
2933 for ac_exec_ext in '' $ac_executable_extensions; do
2934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2935 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2946 if test -n "$CC"; then
2947 { echo "$as_me:$LINENO: result: $CC" >&5
2948 echo "${ECHO_T}$CC" >&6; }
2950 { echo "$as_me:$LINENO: result: no" >&5
2951 echo "${ECHO_T}no" >&6; }
2956 if test -z "$ac_cv_prog_CC"; then
2958 # Extract the first word of "gcc", so it can be a program name with args.
2959 set dummy gcc; ac_word=$2
2960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2962 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2963 echo $ECHO_N "(cached) $ECHO_C" >&6
2965 if test -n "$ac_ct_CC"; then
2966 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2972 test -z "$as_dir" && as_dir=.
2973 for ac_exec_ext in '' $ac_executable_extensions; do
2974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2975 ac_cv_prog_ac_ct_CC="gcc"
2976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2985 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2986 if test -n "$ac_ct_CC"; then
2987 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2988 echo "${ECHO_T}$ac_ct_CC" >&6; }
2990 { echo "$as_me:$LINENO: result: no" >&5
2991 echo "${ECHO_T}no" >&6; }
2994 if test "x$ac_ct_CC" = x; then
2997 case $cross_compiling:$ac_tool_warned in
2999 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3000 whose name does not start with the host triplet. If you think this
3001 configuration is useful to you, please write to autoconf@gnu.org." >&5
3002 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3003 whose name does not start with the host triplet. If you think this
3004 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3005 ac_tool_warned=yes ;;
3013 if test -z "$CC"; then
3014 if test -n "$ac_tool_prefix"; then
3015 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3016 set dummy ${ac_tool_prefix}cc; ac_word=$2
3017 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3019 if test "${ac_cv_prog_CC+set}" = set; then
3020 echo $ECHO_N "(cached) $ECHO_C" >&6
3022 if test -n "$CC"; then
3023 ac_cv_prog_CC="$CC" # Let the user override the test.
3025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029 test -z "$as_dir" && as_dir=.
3030 for ac_exec_ext in '' $ac_executable_extensions; do
3031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3032 ac_cv_prog_CC="${ac_tool_prefix}cc"
3033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3043 if test -n "$CC"; then
3044 { echo "$as_me:$LINENO: result: $CC" >&5
3045 echo "${ECHO_T}$CC" >&6; }
3047 { echo "$as_me:$LINENO: result: no" >&5
3048 echo "${ECHO_T}no" >&6; }
3054 if test -z "$CC"; then
3055 # Extract the first word of "cc", so it can be a program name with args.
3056 set dummy cc; ac_word=$2
3057 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3059 if test "${ac_cv_prog_CC+set}" = set; then
3060 echo $ECHO_N "(cached) $ECHO_C" >&6
3062 if test -n "$CC"; then
3063 ac_cv_prog_CC="$CC" # Let the user override the test.
3066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070 test -z "$as_dir" && as_dir=.
3071 for ac_exec_ext in '' $ac_executable_extensions; do
3072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3073 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3074 ac_prog_rejected=yes
3078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3085 if test $ac_prog_rejected = yes; then
3086 # We found a bogon in the path, so make sure we never use it.
3087 set dummy $ac_cv_prog_CC
3089 if test $# != 0; then
3090 # We chose a different compiler from the bogus one.
3091 # However, it has the same basename, so the bogon will be chosen
3092 # first if we set CC to just the basename; use the full file name.
3094 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3100 if test -n "$CC"; then
3101 { echo "$as_me:$LINENO: result: $CC" >&5
3102 echo "${ECHO_T}$CC" >&6; }
3104 { echo "$as_me:$LINENO: result: no" >&5
3105 echo "${ECHO_T}no" >&6; }
3110 if test -z "$CC"; then
3111 if test -n "$ac_tool_prefix"; then
3112 for ac_prog in cl.exe
3114 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3115 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3118 if test "${ac_cv_prog_CC+set}" = set; then
3119 echo $ECHO_N "(cached) $ECHO_C" >&6
3121 if test -n "$CC"; then
3122 ac_cv_prog_CC="$CC" # Let the user override the test.
3124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128 test -z "$as_dir" && as_dir=.
3129 for ac_exec_ext in '' $ac_executable_extensions; do
3130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3131 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3142 if test -n "$CC"; then
3143 { echo "$as_me:$LINENO: result: $CC" >&5
3144 echo "${ECHO_T}$CC" >&6; }
3146 { echo "$as_me:$LINENO: result: no" >&5
3147 echo "${ECHO_T}no" >&6; }
3151 test -n "$CC" && break
3154 if test -z "$CC"; then
3156 for ac_prog in cl.exe
3158 # Extract the first word of "$ac_prog", so it can be a program name with args.
3159 set dummy $ac_prog; ac_word=$2
3160 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3162 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3163 echo $ECHO_N "(cached) $ECHO_C" >&6
3165 if test -n "$ac_ct_CC"; then
3166 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172 test -z "$as_dir" && as_dir=.
3173 for ac_exec_ext in '' $ac_executable_extensions; do
3174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3175 ac_cv_prog_ac_ct_CC="$ac_prog"
3176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3185 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3186 if test -n "$ac_ct_CC"; then
3187 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3188 echo "${ECHO_T}$ac_ct_CC" >&6; }
3190 { echo "$as_me:$LINENO: result: no" >&5
3191 echo "${ECHO_T}no" >&6; }
3195 test -n "$ac_ct_CC" && break
3198 if test "x$ac_ct_CC" = x; then
3201 case $cross_compiling:$ac_tool_warned in
3203 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3204 whose name does not start with the host triplet. If you think this
3205 configuration is useful to you, please write to autoconf@gnu.org." >&5
3206 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3207 whose name does not start with the host triplet. If you think this
3208 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3209 ac_tool_warned=yes ;;
3218 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3219 See \`config.log' for more details." >&5
3220 echo "$as_me: error: no acceptable C compiler found in \$PATH
3221 See \`config.log' for more details." >&2;}
3222 { (exit 1); exit 1; }; }
3224 # Provide some information about the compiler.
3225 echo "$as_me:$LINENO: checking for C compiler version" >&5
3226 ac_compiler=`set X $ac_compile; echo $2`
3227 { (ac_try="$ac_compiler --version >&5"
3229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230 *) ac_try_echo=$ac_try;;
3232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3233 (eval "$ac_compiler --version >&5") 2>&5
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); }
3237 { (ac_try="$ac_compiler -v >&5"
3239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240 *) ac_try_echo=$ac_try;;
3242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3243 (eval "$ac_compiler -v >&5") 2>&5
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); }
3247 { (ac_try="$ac_compiler -V >&5"
3249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250 *) ac_try_echo=$ac_try;;
3252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3253 (eval "$ac_compiler -V >&5") 2>&5
3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); }
3258 cat >conftest.$ac_ext <<_ACEOF
3261 cat confdefs.h >>conftest.$ac_ext
3262 cat >>conftest.$ac_ext <<_ACEOF
3263 /* end confdefs.h. */
3273 ac_clean_files_save=$ac_clean_files
3274 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3275 # Try to create an executable without -o first, disregard a.out.
3276 # It will help us diagnose broken compilers, and finding out an intuition
3278 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3279 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3280 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3282 # List of possible output files, starting from the most likely.
3283 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3284 # only as a last resort. b.out is created by i960 compilers.
3285 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3287 # The IRIX 6 linker writes into existing files which may not be
3288 # executable, retaining their permissions. Remove them first so a
3289 # subsequent execution test works.
3291 for ac_file in $ac_files
3294 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3295 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3300 if { (ac_try="$ac_link_default"
3302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3303 *) ac_try_echo=$ac_try;;
3305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3306 (eval "$ac_link_default") 2>&5
3308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309 (exit $ac_status); }; then
3310 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3311 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3312 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3313 # so that the user can short-circuit this test for compilers unknown to
3315 for ac_file in $ac_files ''
3317 test -f "$ac_file" || continue
3319 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3322 # We found the default executable, but exeext='' is most
3326 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3328 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3330 # We set ac_cv_exeext here because the later test for it is not
3331 # safe: cross compilers may not add the suffix if given an `-o'
3332 # argument, so we may need to know it at that point already.
3333 # Even if this section looks crufty: it has the advantage of
3340 test "$ac_cv_exeext" = no && ac_cv_exeext=
3346 { echo "$as_me:$LINENO: result: $ac_file" >&5
3347 echo "${ECHO_T}$ac_file" >&6; }
3348 if test -z "$ac_file"; then
3349 echo "$as_me: failed program was:" >&5
3350 sed 's/^/| /' conftest.$ac_ext >&5
3352 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3353 See \`config.log' for more details." >&5
3354 echo "$as_me: error: C compiler cannot create executables
3355 See \`config.log' for more details." >&2;}
3356 { (exit 77); exit 77; }; }
3359 ac_exeext=$ac_cv_exeext
3361 # Check that the compiler produces executables we can run. If not, either
3362 # the compiler is broken, or we cross compile.
3363 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3364 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3365 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3366 # If not cross compiling, check that we can run a simple program.
3367 if test "$cross_compiling" != yes; then
3368 if { ac_try='./$ac_file'
3369 { (case "(($ac_try" in
3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371 *) ac_try_echo=$ac_try;;
3373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3374 (eval "$ac_try") 2>&5
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); }; }; then
3380 if test "$cross_compiling" = maybe; then
3383 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3384 If you meant to cross compile, use \`--host'.
3385 See \`config.log' for more details." >&5
3386 echo "$as_me: error: cannot run C compiled programs.
3387 If you meant to cross compile, use \`--host'.
3388 See \`config.log' for more details." >&2;}
3389 { (exit 1); exit 1; }; }
3393 { echo "$as_me:$LINENO: result: yes" >&5
3394 echo "${ECHO_T}yes" >&6; }
3396 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3397 ac_clean_files=$ac_clean_files_save
3398 # Check that the compiler produces executables we can run. If not, either
3399 # the compiler is broken, or we cross compile.
3400 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3401 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3402 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3403 echo "${ECHO_T}$cross_compiling" >&6; }
3405 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3406 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3407 if { (ac_try="$ac_link"
3409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410 *) ac_try_echo=$ac_try;;
3412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3413 (eval "$ac_link") 2>&5
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); }; then
3417 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3418 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3419 # work properly (i.e., refer to `conftest.exe'), while it won't with
3421 for ac_file in conftest.exe conftest conftest.*; do
3422 test -f "$ac_file" || continue
3424 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3425 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3431 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3432 See \`config.log' for more details." >&5
3433 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3434 See \`config.log' for more details." >&2;}
3435 { (exit 1); exit 1; }; }
3438 rm -f conftest$ac_cv_exeext
3439 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3440 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3442 rm -f conftest.$ac_ext
3443 EXEEXT=$ac_cv_exeext
3445 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3446 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3447 if test "${ac_cv_objext+set}" = set; then
3448 echo $ECHO_N "(cached) $ECHO_C" >&6
3450 cat >conftest.$ac_ext <<_ACEOF
3453 cat confdefs.h >>conftest.$ac_ext
3454 cat >>conftest.$ac_ext <<_ACEOF
3455 /* end confdefs.h. */
3465 rm -f conftest.o conftest.obj
3466 if { (ac_try="$ac_compile"
3468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3469 *) ac_try_echo=$ac_try;;
3471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3472 (eval "$ac_compile") 2>&5
3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475 (exit $ac_status); }; then
3476 for ac_file in conftest.o conftest.obj conftest.*; do
3477 test -f "$ac_file" || continue;
3479 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3480 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3485 echo "$as_me: failed program was:" >&5
3486 sed 's/^/| /' conftest.$ac_ext >&5
3488 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3489 See \`config.log' for more details." >&5
3490 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3491 See \`config.log' for more details." >&2;}
3492 { (exit 1); exit 1; }; }
3495 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3497 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3498 echo "${ECHO_T}$ac_cv_objext" >&6; }
3499 OBJEXT=$ac_cv_objext
3501 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3502 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3503 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3504 echo $ECHO_N "(cached) $ECHO_C" >&6
3506 cat >conftest.$ac_ext <<_ACEOF
3509 cat confdefs.h >>conftest.$ac_ext
3510 cat >>conftest.$ac_ext <<_ACEOF
3511 /* end confdefs.h. */
3524 rm -f conftest.$ac_objext
3525 if { (ac_try="$ac_compile"
3527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528 *) ac_try_echo=$ac_try;;
3530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3531 (eval "$ac_compile") 2>conftest.er1
3533 grep -v '^ *+' conftest.er1 >conftest.err
3535 cat conftest.err >&5
3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); } && {
3538 test -z "$ac_c_werror_flag" ||
3539 test ! -s conftest.err
3540 } && test -s conftest.$ac_objext; then
3543 echo "$as_me: failed program was:" >&5
3544 sed 's/^/| /' conftest.$ac_ext >&5
3549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3550 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3553 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3554 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3555 GCC=`test $ac_compiler_gnu = yes && echo yes`
3556 ac_test_CFLAGS=${CFLAGS+set}
3557 ac_save_CFLAGS=$CFLAGS
3558 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3559 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3560 if test "${ac_cv_prog_cc_g+set}" = set; then
3561 echo $ECHO_N "(cached) $ECHO_C" >&6
3563 ac_save_c_werror_flag=$ac_c_werror_flag
3564 ac_c_werror_flag=yes
3567 cat >conftest.$ac_ext <<_ACEOF
3570 cat confdefs.h >>conftest.$ac_ext
3571 cat >>conftest.$ac_ext <<_ACEOF
3572 /* end confdefs.h. */
3582 rm -f conftest.$ac_objext
3583 if { (ac_try="$ac_compile"
3585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3586 *) ac_try_echo=$ac_try;;
3588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3589 (eval "$ac_compile") 2>conftest.er1
3591 grep -v '^ *+' conftest.er1 >conftest.err
3593 cat conftest.err >&5
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); } && {
3596 test -z "$ac_c_werror_flag" ||
3597 test ! -s conftest.err
3598 } && test -s conftest.$ac_objext; then
3601 echo "$as_me: failed program was:" >&5
3602 sed 's/^/| /' conftest.$ac_ext >&5
3605 cat >conftest.$ac_ext <<_ACEOF
3608 cat confdefs.h >>conftest.$ac_ext
3609 cat >>conftest.$ac_ext <<_ACEOF
3610 /* end confdefs.h. */
3620 rm -f conftest.$ac_objext
3621 if { (ac_try="$ac_compile"
3623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3624 *) ac_try_echo=$ac_try;;
3626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3627 (eval "$ac_compile") 2>conftest.er1
3629 grep -v '^ *+' conftest.er1 >conftest.err
3631 cat conftest.err >&5
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); } && {
3634 test -z "$ac_c_werror_flag" ||
3635 test ! -s conftest.err
3636 } && test -s conftest.$ac_objext; then
3639 echo "$as_me: failed program was:" >&5
3640 sed 's/^/| /' conftest.$ac_ext >&5
3642 ac_c_werror_flag=$ac_save_c_werror_flag
3644 cat >conftest.$ac_ext <<_ACEOF
3647 cat confdefs.h >>conftest.$ac_ext
3648 cat >>conftest.$ac_ext <<_ACEOF
3649 /* end confdefs.h. */
3659 rm -f conftest.$ac_objext
3660 if { (ac_try="$ac_compile"
3662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3663 *) ac_try_echo=$ac_try;;
3665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3666 (eval "$ac_compile") 2>conftest.er1
3668 grep -v '^ *+' conftest.er1 >conftest.err
3670 cat conftest.err >&5
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); } && {
3673 test -z "$ac_c_werror_flag" ||
3674 test ! -s conftest.err
3675 } && test -s conftest.$ac_objext; then
3678 echo "$as_me: failed program was:" >&5
3679 sed 's/^/| /' conftest.$ac_ext >&5
3684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3691 ac_c_werror_flag=$ac_save_c_werror_flag
3693 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3694 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3695 if test "$ac_test_CFLAGS" = set; then
3696 CFLAGS=$ac_save_CFLAGS
3697 elif test $ac_cv_prog_cc_g = yes; then
3698 if test "$GCC" = yes; then
3704 if test "$GCC" = yes; then
3710 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3711 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3712 if test "${ac_cv_prog_cc_c89+set}" = set; then
3713 echo $ECHO_N "(cached) $ECHO_C" >&6
3715 ac_cv_prog_cc_c89=no
3717 cat >conftest.$ac_ext <<_ACEOF
3720 cat confdefs.h >>conftest.$ac_ext
3721 cat >>conftest.$ac_ext <<_ACEOF
3722 /* end confdefs.h. */
3725 #include <sys/types.h>
3726 #include <sys/stat.h>
3727 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3728 struct buf { int x; };
3729 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3730 static char *e (p, i)
3736 static char *f (char * (*g) (char **, int), char **p, ...)
3741 s = g (p, va_arg (v,int));
3746 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3747 function prototypes and stuff, but not '\xHH' hex character constants.
3748 These don't provoke an error unfortunately, instead are silently treated
3749 as 'x'. The following induces an error, until -std is added to get
3750 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3751 array size at least. It's necessary to write '\x00'==0 to get something
3752 that's true only with -std. */
3753 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3755 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3756 inside strings and character constants. */
3758 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3760 int test (int i, double x);
3761 struct s1 {int (*f) (int a);};
3762 struct s2 {int (*f) (double a);};
3763 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3769 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3774 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3775 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3777 CC="$ac_save_CC $ac_arg"
3778 rm -f conftest.$ac_objext
3779 if { (ac_try="$ac_compile"
3781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3782 *) ac_try_echo=$ac_try;;
3784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3785 (eval "$ac_compile") 2>conftest.er1
3787 grep -v '^ *+' conftest.er1 >conftest.err
3789 cat conftest.err >&5
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); } && {
3792 test -z "$ac_c_werror_flag" ||
3793 test ! -s conftest.err
3794 } && test -s conftest.$ac_objext; then
3795 ac_cv_prog_cc_c89=$ac_arg
3797 echo "$as_me: failed program was:" >&5
3798 sed 's/^/| /' conftest.$ac_ext >&5
3803 rm -f core conftest.err conftest.$ac_objext
3804 test "x$ac_cv_prog_cc_c89" != "xno" && break
3806 rm -f conftest.$ac_ext
3811 case "x$ac_cv_prog_cc_c89" in
3813 { echo "$as_me:$LINENO: result: none needed" >&5
3814 echo "${ECHO_T}none needed" >&6; } ;;
3816 { echo "$as_me:$LINENO: result: unsupported" >&5
3817 echo "${ECHO_T}unsupported" >&6; } ;;
3819 CC="$CC $ac_cv_prog_cc_c89"
3820 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3821 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3826 ac_cpp='$CPP $CPPFLAGS'
3827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3831 depcc="$CC" am_compiler_list=
3833 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3834 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3835 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3836 echo $ECHO_N "(cached) $ECHO_C" >&6
3838 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3839 # We make a subdir and do the tests there. Otherwise we can end up
3840 # making bogus files that we don't know about and never remove. For
3841 # instance it was reported that on HP-UX the gcc test will end up
3842 # making a dummy file named `D' -- because `-MD' means `put the output
3845 # Copy depcomp to subdir because otherwise we won't find it if we're
3846 # using a relative directory.
3847 cp "$am_depcomp" conftest.dir
3849 # We will build objects and dependencies in a subdirectory because
3850 # it helps to detect inapplicable dependency modes. For instance
3851 # both Tru64's cc and ICC support -MD to output dependencies as a
3852 # side effect of compilation, but ICC will put the dependencies in
3853 # the current directory while Tru64 will put them in the object
3857 am_cv_CC_dependencies_compiler_type=none
3858 if test "$am_compiler_list" = ""; then
3859 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3861 for depmode in $am_compiler_list; do
3862 # Setup a source with many dependencies, because some compilers
3863 # like to wrap large dependency lists on column 80 (with \), and
3864 # we should not choose a depcomp mode which is confused by this.
3866 # We need to recreate these files for each test, as the compiler may
3867 # overwrite some of them when testing with obscure command lines.
3868 # This happens at least with the AIX C compiler.
3870 for i in 1 2 3 4 5 6; do
3871 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3872 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3873 # Solaris 8's {/usr,}/bin/sh.
3874 touch sub/conftst$i.h
3876 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3880 # after this tag, mechanisms are not by side-effect, so they'll
3881 # only be used when explicitly requested
3882 if test "x$enable_dependency_tracking" = xyes; then
3890 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3891 # mode. It turns out that the SunPro C++ compiler does not properly
3892 # handle `-M -o', and we need to detect this.
3893 if depmode=$depmode \
3894 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3895 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3896 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3897 >/dev/null 2>conftest.err &&
3898 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3899 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3900 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3901 # icc doesn't choke on unknown options, it will just issue warnings
3902 # or remarks (even with -Werror). So we grep stderr for any message
3903 # that says an option was ignored or not supported.
3904 # When given -MP, icc 7.0 and 7.1 complain thusly:
3905 # icc: Command line warning: ignoring option '-M'; no argument required
3906 # The diagnosis changed in icc 8.0:
3907 # icc: Command line remark: option '-MP' not supported
3908 if (grep 'ignoring option' conftest.err ||
3909 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3910 am_cv_CC_dependencies_compiler_type=$depmode
3919 am_cv_CC_dependencies_compiler_type=none
3923 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3924 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3925 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3930 test "x$enable_dependency_tracking" != xno \
3931 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3933 am__fastdepCC_FALSE='#'
3935 am__fastdepCC_TRUE='#'
3936 am__fastdepCC_FALSE=
3940 # Make sure we can run config.sub.
3941 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3942 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3943 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3944 { (exit 1); exit 1; }; }
3946 { echo "$as_me:$LINENO: checking build system type" >&5
3947 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3948 if test "${ac_cv_build+set}" = set; then
3949 echo $ECHO_N "(cached) $ECHO_C" >&6
3951 ac_build_alias=$build_alias
3952 test "x$ac_build_alias" = x &&
3953 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3954 test "x$ac_build_alias" = x &&
3955 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3956 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3957 { (exit 1); exit 1; }; }
3958 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3959 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3960 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3961 { (exit 1); exit 1; }; }
3964 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3965 echo "${ECHO_T}$ac_cv_build" >&6; }
3966 case $ac_cv_build in
3968 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3969 echo "$as_me: error: invalid value of canonical build" >&2;}
3970 { (exit 1); exit 1; }; };;
3973 ac_save_IFS=$IFS; IFS='-'
3979 # Remember, the first character of IFS is used to create $*,
3980 # except with old shells:
3983 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3986 { echo "$as_me:$LINENO: checking host system type" >&5
3987 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3988 if test "${ac_cv_host+set}" = set; then
3989 echo $ECHO_N "(cached) $ECHO_C" >&6
3991 if test "x$host_alias" = x; then
3992 ac_cv_host=$ac_cv_build
3994 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3995 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3996 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3997 { (exit 1); exit 1; }; }
4001 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4002 echo "${ECHO_T}$ac_cv_host" >&6; }
4005 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4006 echo "$as_me: error: invalid value of canonical host" >&2;}
4007 { (exit 1); exit 1; }; };;
4010 ac_save_IFS=$IFS; IFS='-'
4016 # Remember, the first character of IFS is used to create $*,
4017 # except with old shells:
4020 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4025 ac_cpp='$CPP $CPPFLAGS'
4026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4029 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4030 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4031 # On Suns, sometimes $CPP names a directory.
4032 if test -n "$CPP" && test -d "$CPP"; then
4035 if test -z "$CPP"; then
4036 if test "${ac_cv_prog_CPP+set}" = set; then
4037 echo $ECHO_N "(cached) $ECHO_C" >&6
4039 # Double quotes because CPP needs to be expanded
4040 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4043 for ac_c_preproc_warn_flag in '' yes
4045 # Use a header file that comes with gcc, so configuring glibc
4046 # with a fresh cross-compiler works.
4047 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4048 # <limits.h> exists even on freestanding compilers.
4049 # On the NeXT, cc -E runs the code through the compiler's parser,
4050 # not just through cpp. "Syntax error" is here to catch this case.
4051 cat >conftest.$ac_ext <<_ACEOF
4054 cat confdefs.h >>conftest.$ac_ext
4055 cat >>conftest.$ac_ext <<_ACEOF
4056 /* end confdefs.h. */
4058 # include <limits.h>
4060 # include <assert.h>
4064 if { (ac_try="$ac_cpp conftest.$ac_ext"
4066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4067 *) ac_try_echo=$ac_try;;
4069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4070 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4072 grep -v '^ *+' conftest.er1 >conftest.err
4074 cat conftest.err >&5
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); } >/dev/null && {
4077 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4078 test ! -s conftest.err
4082 echo "$as_me: failed program was:" >&5
4083 sed 's/^/| /' conftest.$ac_ext >&5
4085 # Broken: fails on valid input.
4089 rm -f conftest.err conftest.$ac_ext
4091 # OK, works on sane cases. Now check whether nonexistent headers
4092 # can be detected and how.
4093 cat >conftest.$ac_ext <<_ACEOF
4096 cat confdefs.h >>conftest.$ac_ext
4097 cat >>conftest.$ac_ext <<_ACEOF
4098 /* end confdefs.h. */
4099 #include <ac_nonexistent.h>
4101 if { (ac_try="$ac_cpp conftest.$ac_ext"
4103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4104 *) ac_try_echo=$ac_try;;
4106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4107 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4109 grep -v '^ *+' conftest.er1 >conftest.err
4111 cat conftest.err >&5
4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113 (exit $ac_status); } >/dev/null && {
4114 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4115 test ! -s conftest.err
4117 # Broken: success on invalid input.
4120 echo "$as_me: failed program was:" >&5
4121 sed 's/^/| /' conftest.$ac_ext >&5
4123 # Passes both tests.
4128 rm -f conftest.err conftest.$ac_ext
4131 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4132 rm -f conftest.err conftest.$ac_ext
4133 if $ac_preproc_ok; then
4145 { echo "$as_me:$LINENO: result: $CPP" >&5
4146 echo "${ECHO_T}$CPP" >&6; }
4148 for ac_c_preproc_warn_flag in '' yes
4150 # Use a header file that comes with gcc, so configuring glibc
4151 # with a fresh cross-compiler works.
4152 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4153 # <limits.h> exists even on freestanding compilers.
4154 # On the NeXT, cc -E runs the code through the compiler's parser,
4155 # not just through cpp. "Syntax error" is here to catch this case.
4156 cat >conftest.$ac_ext <<_ACEOF
4159 cat confdefs.h >>conftest.$ac_ext
4160 cat >>conftest.$ac_ext <<_ACEOF
4161 /* end confdefs.h. */
4163 # include <limits.h>
4165 # include <assert.h>
4169 if { (ac_try="$ac_cpp conftest.$ac_ext"
4171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172 *) ac_try_echo=$ac_try;;
4174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4175 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4177 grep -v '^ *+' conftest.er1 >conftest.err
4179 cat conftest.err >&5
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); } >/dev/null && {
4182 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4183 test ! -s conftest.err
4187 echo "$as_me: failed program was:" >&5
4188 sed 's/^/| /' conftest.$ac_ext >&5
4190 # Broken: fails on valid input.
4194 rm -f conftest.err conftest.$ac_ext
4196 # OK, works on sane cases. Now check whether nonexistent headers
4197 # can be detected and how.
4198 cat >conftest.$ac_ext <<_ACEOF
4201 cat confdefs.h >>conftest.$ac_ext
4202 cat >>conftest.$ac_ext <<_ACEOF
4203 /* end confdefs.h. */
4204 #include <ac_nonexistent.h>
4206 if { (ac_try="$ac_cpp conftest.$ac_ext"
4208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4209 *) ac_try_echo=$ac_try;;
4211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4212 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4214 grep -v '^ *+' conftest.er1 >conftest.err
4216 cat conftest.err >&5
4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); } >/dev/null && {
4219 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4220 test ! -s conftest.err
4222 # Broken: success on invalid input.
4225 echo "$as_me: failed program was:" >&5
4226 sed 's/^/| /' conftest.$ac_ext >&5
4228 # Passes both tests.
4233 rm -f conftest.err conftest.$ac_ext
4236 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4237 rm -f conftest.err conftest.$ac_ext
4238 if $ac_preproc_ok; then
4241 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4242 See \`config.log' for more details." >&5
4243 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4244 See \`config.log' for more details." >&2;}
4245 { (exit 1); exit 1; }; }
4249 ac_cpp='$CPP $CPPFLAGS'
4250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4255 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4256 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4257 if test "${ac_cv_path_GREP+set}" = set; then
4258 echo $ECHO_N "(cached) $ECHO_C" >&6
4260 # Extract the first word of "grep ggrep" to use in msg output
4261 if test -z "$GREP"; then
4262 set dummy grep ggrep; ac_prog_name=$2
4263 if test "${ac_cv_path_GREP+set}" = set; then
4264 echo $ECHO_N "(cached) $ECHO_C" >&6
4266 ac_path_GREP_found=false
4267 # Loop through the user's path and test for each of PROGNAME-LIST
4268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4269 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4272 test -z "$as_dir" && as_dir=.
4273 for ac_prog in grep ggrep; do
4274 for ac_exec_ext in '' $ac_executable_extensions; do
4275 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4276 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4277 # Check for GNU ac_path_GREP and select it if it is found.
4278 # Check for GNU $ac_path_GREP
4279 case `"$ac_path_GREP" --version 2>&1` in
4281 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4284 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4287 cat "conftest.in" "conftest.in" >"conftest.tmp"
4288 mv "conftest.tmp" "conftest.in"
4289 cp "conftest.in" "conftest.nl"
4290 echo 'GREP' >> "conftest.nl"
4291 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4292 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4293 ac_count=`expr $ac_count + 1`
4294 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4295 # Best one so far, save it but keep looking for a better one
4296 ac_cv_path_GREP="$ac_path_GREP"
4297 ac_path_GREP_max=$ac_count
4299 # 10*(2^10) chars as input seems more than enough
4300 test $ac_count -gt 10 && break
4302 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4306 $ac_path_GREP_found && break 3
4316 GREP="$ac_cv_path_GREP"
4317 if test -z "$GREP"; then
4318 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4319 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4320 { (exit 1); exit 1; }; }
4324 ac_cv_path_GREP=$GREP
4329 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4330 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4331 GREP="$ac_cv_path_GREP"
4334 { echo "$as_me:$LINENO: checking for egrep" >&5
4335 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4336 if test "${ac_cv_path_EGREP+set}" = set; then
4337 echo $ECHO_N "(cached) $ECHO_C" >&6
4339 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4340 then ac_cv_path_EGREP="$GREP -E"
4342 # Extract the first word of "egrep" to use in msg output
4343 if test -z "$EGREP"; then
4344 set dummy egrep; ac_prog_name=$2
4345 if test "${ac_cv_path_EGREP+set}" = set; then
4346 echo $ECHO_N "(cached) $ECHO_C" >&6
4348 ac_path_EGREP_found=false
4349 # Loop through the user's path and test for each of PROGNAME-LIST
4350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4351 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4354 test -z "$as_dir" && as_dir=.
4355 for ac_prog in egrep; do
4356 for ac_exec_ext in '' $ac_executable_extensions; do
4357 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4358 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4359 # Check for GNU ac_path_EGREP and select it if it is found.
4360 # Check for GNU $ac_path_EGREP
4361 case `"$ac_path_EGREP" --version 2>&1` in
4363 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4366 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4369 cat "conftest.in" "conftest.in" >"conftest.tmp"
4370 mv "conftest.tmp" "conftest.in"
4371 cp "conftest.in" "conftest.nl"
4372 echo 'EGREP' >> "conftest.nl"
4373 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4374 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4375 ac_count=`expr $ac_count + 1`
4376 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4377 # Best one so far, save it but keep looking for a better one
4378 ac_cv_path_EGREP="$ac_path_EGREP"
4379 ac_path_EGREP_max=$ac_count
4381 # 10*(2^10) chars as input seems more than enough
4382 test $ac_count -gt 10 && break
4384 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4388 $ac_path_EGREP_found && break 3
4398 EGREP="$ac_cv_path_EGREP"
4399 if test -z "$EGREP"; then
4400 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4401 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4402 { (exit 1); exit 1; }; }
4406 ac_cv_path_EGREP=$EGREP
4412 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4413 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4414 EGREP="$ac_cv_path_EGREP"
4418 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
4419 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
4420 if test "${ac_cv_gnu_library_2+set}" = set; then
4421 echo $ECHO_N "(cached) $ECHO_C" >&6
4423 cat >conftest.$ac_ext <<_ACEOF
4426 cat confdefs.h >>conftest.$ac_ext
4427 cat >>conftest.$ac_ext <<_ACEOF
4428 /* end confdefs.h. */
4430 #include <features.h>
4431 #ifdef __GNU_LIBRARY__
4432 #if (__GLIBC__ >= 2)
4438 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4439 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
4440 ac_cv_gnu_library_2=yes
4442 ac_cv_gnu_library_2=no
4449 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
4450 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
4452 GLIBC2="$ac_cv_gnu_library_2"
4455 if test -n "$ac_tool_prefix"; then
4456 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4457 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4460 if test "${ac_cv_prog_RANLIB+set}" = set; then
4461 echo $ECHO_N "(cached) $ECHO_C" >&6
4463 if test -n "$RANLIB"; then
4464 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4470 test -z "$as_dir" && as_dir=.
4471 for ac_exec_ext in '' $ac_executable_extensions; do
4472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4473 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4483 RANLIB=$ac_cv_prog_RANLIB
4484 if test -n "$RANLIB"; then
4485 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4486 echo "${ECHO_T}$RANLIB" >&6; }
4488 { echo "$as_me:$LINENO: result: no" >&5
4489 echo "${ECHO_T}no" >&6; }
4494 if test -z "$ac_cv_prog_RANLIB"; then
4495 ac_ct_RANLIB=$RANLIB
4496 # Extract the first word of "ranlib", so it can be a program name with args.
4497 set dummy ranlib; ac_word=$2
4498 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4500 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4501 echo $ECHO_N "(cached) $ECHO_C" >&6
4503 if test -n "$ac_ct_RANLIB"; then
4504 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510 test -z "$as_dir" && as_dir=.
4511 for ac_exec_ext in '' $ac_executable_extensions; do
4512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4513 ac_cv_prog_ac_ct_RANLIB="ranlib"
4514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4523 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4524 if test -n "$ac_ct_RANLIB"; then
4525 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4526 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4528 { echo "$as_me:$LINENO: result: no" >&5
4529 echo "${ECHO_T}no" >&6; }
4532 if test "x$ac_ct_RANLIB" = x; then
4535 case $cross_compiling:$ac_tool_warned in
4537 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4538 whose name does not start with the host triplet. If you think this
4539 configuration is useful to you, please write to autoconf@gnu.org." >&5
4540 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4541 whose name does not start with the host triplet. If you think this
4542 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4543 ac_tool_warned=yes ;;
4545 RANLIB=$ac_ct_RANLIB
4548 RANLIB="$ac_cv_prog_RANLIB"
4555 if test -n "$GCC"; then
4556 { echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
4557 echo $ECHO_N "checking for simple visibility declarations... $ECHO_C" >&6; }
4558 if test "${gl_cv_cc_visibility+set}" = set; then
4559 echo $ECHO_N "(cached) $ECHO_C" >&6
4562 gl_save_CFLAGS="$CFLAGS"
4563 CFLAGS="$CFLAGS -fvisibility=hidden"
4564 cat >conftest.$ac_ext <<_ACEOF
4567 cat confdefs.h >>conftest.$ac_ext
4568 cat >>conftest.$ac_ext <<_ACEOF
4569 /* end confdefs.h. */
4570 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
4571 extern __attribute__((__visibility__("default"))) int exportedvar;
4572 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
4573 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
4582 rm -f conftest.$ac_objext
4583 if { (ac_try="$ac_compile"
4585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4586 *) ac_try_echo=$ac_try;;
4588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4589 (eval "$ac_compile") 2>conftest.er1
4591 grep -v '^ *+' conftest.er1 >conftest.err
4593 cat conftest.err >&5
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); } && {
4596 test -z "$ac_c_werror_flag" ||
4597 test ! -s conftest.err
4598 } && test -s conftest.$ac_objext; then
4599 gl_cv_cc_visibility=yes
4601 echo "$as_me: failed program was:" >&5
4602 sed 's/^/| /' conftest.$ac_ext >&5
4604 gl_cv_cc_visibility=no
4607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4608 CFLAGS="$gl_save_CFLAGS"
4611 { echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
4612 echo "${ECHO_T}$gl_cv_cc_visibility" >&6; }
4613 if test $gl_cv_cc_visibility = yes; then
4614 CFLAG_VISIBILITY="-fvisibility=hidden"
4621 cat >>confdefs.h <<_ACEOF
4622 #define HAVE_VISIBILITY $HAVE_VISIBILITY
4626 { echo "$as_me:$LINENO: checking for inline" >&5
4627 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
4628 if test "${ac_cv_c_inline+set}" = set; then
4629 echo $ECHO_N "(cached) $ECHO_C" >&6
4632 for ac_kw in inline __inline__ __inline; do
4633 cat >conftest.$ac_ext <<_ACEOF
4636 cat confdefs.h >>conftest.$ac_ext
4637 cat >>conftest.$ac_ext <<_ACEOF
4638 /* end confdefs.h. */
4641 static $ac_kw foo_t static_foo () {return 0; }
4642 $ac_kw foo_t foo () {return 0; }
4646 rm -f conftest.$ac_objext
4647 if { (ac_try="$ac_compile"
4649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4650 *) ac_try_echo=$ac_try;;
4652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4653 (eval "$ac_compile") 2>conftest.er1
4655 grep -v '^ *+' conftest.er1 >conftest.err
4657 cat conftest.err >&5
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); } && {
4660 test -z "$ac_c_werror_flag" ||
4661 test ! -s conftest.err
4662 } && test -s conftest.$ac_objext; then
4663 ac_cv_c_inline=$ac_kw
4665 echo "$as_me: failed program was:" >&5
4666 sed 's/^/| /' conftest.$ac_ext >&5
4671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4672 test "$ac_cv_c_inline" != no && break
4676 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4677 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
4680 case $ac_cv_c_inline in
4683 case $ac_cv_c_inline in
4685 *) ac_val=$ac_cv_c_inline;;
4687 cat >>confdefs.h <<_ACEOF
4689 #define inline $ac_val
4695 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4696 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4697 if test "${ac_cv_header_stdc+set}" = set; then
4698 echo $ECHO_N "(cached) $ECHO_C" >&6
4700 cat >conftest.$ac_ext <<_ACEOF
4703 cat confdefs.h >>conftest.$ac_ext
4704 cat >>conftest.$ac_ext <<_ACEOF
4705 /* end confdefs.h. */
4719 rm -f conftest.$ac_objext
4720 if { (ac_try="$ac_compile"
4722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4723 *) ac_try_echo=$ac_try;;
4725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4726 (eval "$ac_compile") 2>conftest.er1
4728 grep -v '^ *+' conftest.er1 >conftest.err
4730 cat conftest.err >&5
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); } && {
4733 test -z "$ac_c_werror_flag" ||
4734 test ! -s conftest.err
4735 } && test -s conftest.$ac_objext; then
4736 ac_cv_header_stdc=yes
4738 echo "$as_me: failed program was:" >&5
4739 sed 's/^/| /' conftest.$ac_ext >&5
4741 ac_cv_header_stdc=no
4744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4746 if test $ac_cv_header_stdc = yes; then
4747 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4748 cat >conftest.$ac_ext <<_ACEOF
4751 cat confdefs.h >>conftest.$ac_ext
4752 cat >>conftest.$ac_ext <<_ACEOF
4753 /* end confdefs.h. */
4757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4758 $EGREP "memchr" >/dev/null 2>&1; then
4761 ac_cv_header_stdc=no
4767 if test $ac_cv_header_stdc = yes; then
4768 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4769 cat >conftest.$ac_ext <<_ACEOF
4772 cat confdefs.h >>conftest.$ac_ext
4773 cat >>conftest.$ac_ext <<_ACEOF
4774 /* end confdefs.h. */
4778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4779 $EGREP "free" >/dev/null 2>&1; then
4782 ac_cv_header_stdc=no
4788 if test $ac_cv_header_stdc = yes; then
4789 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4790 if test "$cross_compiling" = yes; then
4793 cat >conftest.$ac_ext <<_ACEOF
4796 cat confdefs.h >>conftest.$ac_ext
4797 cat >>conftest.$ac_ext <<_ACEOF
4798 /* end confdefs.h. */
4801 #if ((' ' & 0x0FF) == 0x020)
4802 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4803 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4805 # define ISLOWER(c) \
4806 (('a' <= (c) && (c) <= 'i') \
4807 || ('j' <= (c) && (c) <= 'r') \
4808 || ('s' <= (c) && (c) <= 'z'))
4809 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4812 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4817 for (i = 0; i < 256; i++)
4818 if (XOR (islower (i), ISLOWER (i))
4819 || toupper (i) != TOUPPER (i))
4824 rm -f conftest$ac_exeext
4825 if { (ac_try="$ac_link"
4827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4828 *) ac_try_echo=$ac_try;;
4830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4831 (eval "$ac_link") 2>&5
4833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4835 { (case "(($ac_try" in
4836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4837 *) ac_try_echo=$ac_try;;
4839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4840 (eval "$ac_try") 2>&5
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); }; }; then
4846 echo "$as_me: program exited with status $ac_status" >&5
4847 echo "$as_me: failed program was:" >&5
4848 sed 's/^/| /' conftest.$ac_ext >&5
4851 ac_cv_header_stdc=no
4853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4859 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4860 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4861 if test $ac_cv_header_stdc = yes; then
4863 cat >>confdefs.h <<\_ACEOF
4864 #define STDC_HEADERS 1
4869 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4879 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4880 inttypes.h stdint.h unistd.h
4882 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4883 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4886 echo $ECHO_N "(cached) $ECHO_C" >&6
4888 cat >conftest.$ac_ext <<_ACEOF
4891 cat confdefs.h >>conftest.$ac_ext
4892 cat >>conftest.$ac_ext <<_ACEOF
4893 /* end confdefs.h. */
4894 $ac_includes_default
4896 #include <$ac_header>
4898 rm -f conftest.$ac_objext
4899 if { (ac_try="$ac_compile"
4901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4902 *) ac_try_echo=$ac_try;;
4904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4905 (eval "$ac_compile") 2>conftest.er1
4907 grep -v '^ *+' conftest.er1 >conftest.err
4909 cat conftest.err >&5
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); } && {
4912 test -z "$ac_c_werror_flag" ||
4913 test ! -s conftest.err
4914 } && test -s conftest.$ac_objext; then
4915 eval "$as_ac_Header=yes"
4917 echo "$as_me: failed program was:" >&5
4918 sed 's/^/| /' conftest.$ac_ext >&5
4920 eval "$as_ac_Header=no"
4923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4925 ac_res=`eval echo '${'$as_ac_Header'}'`
4926 { echo "$as_me:$LINENO: result: $ac_res" >&5
4927 echo "${ECHO_T}$ac_res" >&6; }
4928 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4929 cat >>confdefs.h <<_ACEOF
4930 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4938 { echo "$as_me:$LINENO: checking for size_t" >&5
4939 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
4940 if test "${ac_cv_type_size_t+set}" = set; then
4941 echo $ECHO_N "(cached) $ECHO_C" >&6
4943 cat >conftest.$ac_ext <<_ACEOF
4946 cat confdefs.h >>conftest.$ac_ext
4947 cat >>conftest.$ac_ext <<_ACEOF
4948 /* end confdefs.h. */
4949 $ac_includes_default
4950 typedef size_t ac__type_new_;
4954 if ((ac__type_new_ *) 0)
4956 if (sizeof (ac__type_new_))
4962 rm -f conftest.$ac_objext
4963 if { (ac_try="$ac_compile"
4965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4966 *) ac_try_echo=$ac_try;;
4968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4969 (eval "$ac_compile") 2>conftest.er1
4971 grep -v '^ *+' conftest.er1 >conftest.err
4973 cat conftest.err >&5
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); } && {
4976 test -z "$ac_c_werror_flag" ||
4977 test ! -s conftest.err
4978 } && test -s conftest.$ac_objext; then
4979 ac_cv_type_size_t=yes
4981 echo "$as_me: failed program was:" >&5
4982 sed 's/^/| /' conftest.$ac_ext >&5
4984 ac_cv_type_size_t=no
4987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4989 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4990 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
4991 if test $ac_cv_type_size_t = yes; then
4995 cat >>confdefs.h <<_ACEOF
4996 #define size_t unsigned int
5002 { echo "$as_me:$LINENO: checking for stdint.h" >&5
5003 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
5004 if test "${gl_cv_header_stdint_h+set}" = set; then
5005 echo $ECHO_N "(cached) $ECHO_C" >&6
5007 cat >conftest.$ac_ext <<_ACEOF
5010 cat confdefs.h >>conftest.$ac_ext
5011 cat >>conftest.$ac_ext <<_ACEOF
5012 /* end confdefs.h. */
5013 #include <sys/types.h>
5018 uintmax_t i = (uintmax_t) -1; return !i;
5023 rm -f conftest.$ac_objext
5024 if { (ac_try="$ac_compile"
5026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5027 *) ac_try_echo=$ac_try;;
5029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5030 (eval "$ac_compile") 2>conftest.er1
5032 grep -v '^ *+' conftest.er1 >conftest.err
5034 cat conftest.err >&5
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); } && {
5037 test -z "$ac_c_werror_flag" ||
5038 test ! -s conftest.err
5039 } && test -s conftest.$ac_objext; then
5040 gl_cv_header_stdint_h=yes
5042 echo "$as_me: failed program was:" >&5
5043 sed 's/^/| /' conftest.$ac_ext >&5
5045 gl_cv_header_stdint_h=no
5048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5050 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
5051 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
5052 if test $gl_cv_header_stdint_h = yes; then
5054 cat >>confdefs.h <<_ACEOF
5055 #define HAVE_STDINT_H_WITH_UINTMAX 1
5060 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5061 # for constant arguments. Useless!
5062 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
5063 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
5064 if test "${ac_cv_working_alloca_h+set}" = set; then
5065 echo $ECHO_N "(cached) $ECHO_C" >&6
5067 cat >conftest.$ac_ext <<_ACEOF
5070 cat confdefs.h >>conftest.$ac_ext
5071 cat >>conftest.$ac_ext <<_ACEOF
5072 /* end confdefs.h. */
5077 char *p = (char *) alloca (2 * sizeof (int));
5083 rm -f conftest.$ac_objext conftest$ac_exeext
5084 if { (ac_try="$ac_link"
5086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5087 *) ac_try_echo=$ac_try;;
5089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5090 (eval "$ac_link") 2>conftest.er1
5092 grep -v '^ *+' conftest.er1 >conftest.err
5094 cat conftest.err >&5
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); } && {
5097 test -z "$ac_c_werror_flag" ||
5098 test ! -s conftest.err
5099 } && test -s conftest$ac_exeext &&
5100 $as_test_x conftest$ac_exeext; then
5101 ac_cv_working_alloca_h=yes
5103 echo "$as_me: failed program was:" >&5
5104 sed 's/^/| /' conftest.$ac_ext >&5
5106 ac_cv_working_alloca_h=no
5109 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5110 conftest$ac_exeext conftest.$ac_ext
5112 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5113 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
5114 if test $ac_cv_working_alloca_h = yes; then
5116 cat >>confdefs.h <<\_ACEOF
5117 #define HAVE_ALLOCA_H 1
5122 { echo "$as_me:$LINENO: checking for alloca" >&5
5123 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
5124 if test "${ac_cv_func_alloca_works+set}" = set; then
5125 echo $ECHO_N "(cached) $ECHO_C" >&6
5127 cat >conftest.$ac_ext <<_ACEOF
5130 cat confdefs.h >>conftest.$ac_ext
5131 cat >>conftest.$ac_ext <<_ACEOF
5132 /* end confdefs.h. */
5134 # define alloca __builtin_alloca
5137 # include <malloc.h>
5138 # define alloca _alloca
5140 # ifdef HAVE_ALLOCA_H
5141 # include <alloca.h>
5146 # ifndef alloca /* predefined by HP cc +Olibcalls */
5157 char *p = (char *) alloca (1);
5163 rm -f conftest.$ac_objext conftest$ac_exeext
5164 if { (ac_try="$ac_link"
5166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5167 *) ac_try_echo=$ac_try;;
5169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5170 (eval "$ac_link") 2>conftest.er1
5172 grep -v '^ *+' conftest.er1 >conftest.err
5174 cat conftest.err >&5
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); } && {
5177 test -z "$ac_c_werror_flag" ||
5178 test ! -s conftest.err
5179 } && test -s conftest$ac_exeext &&
5180 $as_test_x conftest$ac_exeext; then
5181 ac_cv_func_alloca_works=yes
5183 echo "$as_me: failed program was:" >&5
5184 sed 's/^/| /' conftest.$ac_ext >&5
5186 ac_cv_func_alloca_works=no
5189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5190 conftest$ac_exeext conftest.$ac_ext
5192 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5193 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
5195 if test $ac_cv_func_alloca_works = yes; then
5197 cat >>confdefs.h <<\_ACEOF
5198 #define HAVE_ALLOCA 1
5202 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5203 # that cause trouble. Some versions do not even contain alloca or
5204 # contain a buggy version. If you still want to use their alloca,
5205 # use ar to extract alloca.o from them instead of compiling alloca.c.
5207 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5209 cat >>confdefs.h <<\_ACEOF
5214 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5215 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
5216 if test "${ac_cv_os_cray+set}" = set; then
5217 echo $ECHO_N "(cached) $ECHO_C" >&6
5219 cat >conftest.$ac_ext <<_ACEOF
5222 cat confdefs.h >>conftest.$ac_ext
5223 cat >>conftest.$ac_ext <<_ACEOF
5224 /* end confdefs.h. */
5225 #if defined CRAY && ! defined CRAY2
5232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5233 $EGREP "webecray" >/dev/null 2>&1; then
5241 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5242 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
5243 if test $ac_cv_os_cray = yes; then
5244 for ac_func in _getb67 GETB67 getb67; do
5245 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5246 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5247 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5248 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5249 echo $ECHO_N "(cached) $ECHO_C" >&6
5251 cat >conftest.$ac_ext <<_ACEOF
5254 cat confdefs.h >>conftest.$ac_ext
5255 cat >>conftest.$ac_ext <<_ACEOF
5256 /* end confdefs.h. */
5257 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5259 #define $ac_func innocuous_$ac_func
5261 /* System header to define __stub macros and hopefully few prototypes,
5262 which can conflict with char $ac_func (); below.
5263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5264 <limits.h> exists even on freestanding compilers. */
5267 # include <limits.h>
5269 # include <assert.h>
5274 /* Override any GCC internal prototype to avoid an error.
5275 Use char because int might match the return type of a GCC
5276 builtin and then its argument prototype would still apply. */
5281 /* The GNU C library defines this for functions which it implements
5282 to always fail with ENOSYS. Some functions are actually named
5283 something starting with __ and the normal name is an alias. */
5284 #if defined __stub_$ac_func || defined __stub___$ac_func
5296 rm -f conftest.$ac_objext conftest$ac_exeext
5297 if { (ac_try="$ac_link"
5299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5300 *) ac_try_echo=$ac_try;;
5302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5303 (eval "$ac_link") 2>conftest.er1
5305 grep -v '^ *+' conftest.er1 >conftest.err
5307 cat conftest.err >&5
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); } && {
5310 test -z "$ac_c_werror_flag" ||
5311 test ! -s conftest.err
5312 } && test -s conftest$ac_exeext &&
5313 $as_test_x conftest$ac_exeext; then
5314 eval "$as_ac_var=yes"
5316 echo "$as_me: failed program was:" >&5
5317 sed 's/^/| /' conftest.$ac_ext >&5
5319 eval "$as_ac_var=no"
5322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5323 conftest$ac_exeext conftest.$ac_ext
5325 ac_res=`eval echo '${'$as_ac_var'}'`
5326 { echo "$as_me:$LINENO: result: $ac_res" >&5
5327 echo "${ECHO_T}$ac_res" >&6; }
5328 if test `eval echo '${'$as_ac_var'}'` = yes; then
5330 cat >>confdefs.h <<_ACEOF
5331 #define CRAY_STACKSEG_END $ac_func
5340 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5341 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
5342 if test "${ac_cv_c_stack_direction+set}" = set; then
5343 echo $ECHO_N "(cached) $ECHO_C" >&6
5345 if test "$cross_compiling" = yes; then
5346 ac_cv_c_stack_direction=0
5348 cat >conftest.$ac_ext <<_ACEOF
5351 cat confdefs.h >>conftest.$ac_ext
5352 cat >>conftest.$ac_ext <<_ACEOF
5353 /* end confdefs.h. */
5354 $ac_includes_default
5356 find_stack_direction ()
5358 static char *addr = 0;
5363 return find_stack_direction ();
5366 return (&dummy > addr) ? 1 : -1;
5372 return find_stack_direction () < 0;
5375 rm -f conftest$ac_exeext
5376 if { (ac_try="$ac_link"
5378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5379 *) ac_try_echo=$ac_try;;
5381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5382 (eval "$ac_link") 2>&5
5384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5386 { (case "(($ac_try" in
5387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5388 *) ac_try_echo=$ac_try;;
5390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5391 (eval "$ac_try") 2>&5
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); }; }; then
5395 ac_cv_c_stack_direction=1
5397 echo "$as_me: program exited with status $ac_status" >&5
5398 echo "$as_me: failed program was:" >&5
5399 sed 's/^/| /' conftest.$ac_ext >&5
5402 ac_cv_c_stack_direction=-1
5404 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5409 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5410 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
5412 cat >>confdefs.h <<_ACEOF
5413 #define STACK_DIRECTION $ac_cv_c_stack_direction
5421 for ac_header in stdlib.h unistd.h
5423 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5425 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5428 echo $ECHO_N "(cached) $ECHO_C" >&6
5430 ac_res=`eval echo '${'$as_ac_Header'}'`
5431 { echo "$as_me:$LINENO: result: $ac_res" >&5
5432 echo "${ECHO_T}$ac_res" >&6; }
5434 # Is the header compilable?
5435 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5436 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5437 cat >conftest.$ac_ext <<_ACEOF
5440 cat confdefs.h >>conftest.$ac_ext
5441 cat >>conftest.$ac_ext <<_ACEOF
5442 /* end confdefs.h. */
5443 $ac_includes_default
5444 #include <$ac_header>
5446 rm -f conftest.$ac_objext
5447 if { (ac_try="$ac_compile"
5449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5450 *) ac_try_echo=$ac_try;;
5452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5453 (eval "$ac_compile") 2>conftest.er1
5455 grep -v '^ *+' conftest.er1 >conftest.err
5457 cat conftest.err >&5
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); } && {
5460 test -z "$ac_c_werror_flag" ||
5461 test ! -s conftest.err
5462 } && test -s conftest.$ac_objext; then
5463 ac_header_compiler=yes
5465 echo "$as_me: failed program was:" >&5
5466 sed 's/^/| /' conftest.$ac_ext >&5
5468 ac_header_compiler=no
5471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5472 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5473 echo "${ECHO_T}$ac_header_compiler" >&6; }
5475 # Is the header present?
5476 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5477 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5478 cat >conftest.$ac_ext <<_ACEOF
5481 cat confdefs.h >>conftest.$ac_ext
5482 cat >>conftest.$ac_ext <<_ACEOF
5483 /* end confdefs.h. */
5484 #include <$ac_header>
5486 if { (ac_try="$ac_cpp conftest.$ac_ext"
5488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5489 *) ac_try_echo=$ac_try;;
5491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5492 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5494 grep -v '^ *+' conftest.er1 >conftest.err
5496 cat conftest.err >&5
5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); } >/dev/null && {
5499 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5500 test ! -s conftest.err
5502 ac_header_preproc=yes
5504 echo "$as_me: failed program was:" >&5
5505 sed 's/^/| /' conftest.$ac_ext >&5
5507 ac_header_preproc=no
5510 rm -f conftest.err conftest.$ac_ext
5511 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5512 echo "${ECHO_T}$ac_header_preproc" >&6; }
5514 # So? What about this header?
5515 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5517 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5518 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5520 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5521 ac_header_preproc=yes
5524 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5525 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5526 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5527 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5528 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5529 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5530 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5531 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5533 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5534 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5535 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5537 ## -------------------------------------- ##
5538 ## Report this to choe.hwanjing@gmail.com ##
5539 ## -------------------------------------- ##
5541 ) | sed "s/^/$as_me: WARNING: /" >&2
5544 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5547 echo $ECHO_N "(cached) $ECHO_C" >&6
5549 eval "$as_ac_Header=\$ac_header_preproc"
5551 ac_res=`eval echo '${'$as_ac_Header'}'`
5552 { echo "$as_me:$LINENO: result: $ac_res" >&5
5553 echo "${ECHO_T}$ac_res" >&6; }
5556 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5557 cat >>confdefs.h <<_ACEOF
5558 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5566 for ac_func in getpagesize
5568 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5569 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5570 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5571 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5572 echo $ECHO_N "(cached) $ECHO_C" >&6
5574 cat >conftest.$ac_ext <<_ACEOF
5577 cat confdefs.h >>conftest.$ac_ext
5578 cat >>conftest.$ac_ext <<_ACEOF
5579 /* end confdefs.h. */
5580 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5581 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5582 #define $ac_func innocuous_$ac_func
5584 /* System header to define __stub macros and hopefully few prototypes,
5585 which can conflict with char $ac_func (); below.
5586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5587 <limits.h> exists even on freestanding compilers. */
5590 # include <limits.h>
5592 # include <assert.h>
5597 /* Override any GCC internal prototype to avoid an error.
5598 Use char because int might match the return type of a GCC
5599 builtin and then its argument prototype would still apply. */
5604 /* The GNU C library defines this for functions which it implements
5605 to always fail with ENOSYS. Some functions are actually named
5606 something starting with __ and the normal name is an alias. */
5607 #if defined __stub_$ac_func || defined __stub___$ac_func
5619 rm -f conftest.$ac_objext conftest$ac_exeext
5620 if { (ac_try="$ac_link"
5622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5623 *) ac_try_echo=$ac_try;;
5625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5626 (eval "$ac_link") 2>conftest.er1
5628 grep -v '^ *+' conftest.er1 >conftest.err
5630 cat conftest.err >&5
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); } && {
5633 test -z "$ac_c_werror_flag" ||
5634 test ! -s conftest.err
5635 } && test -s conftest$ac_exeext &&
5636 $as_test_x conftest$ac_exeext; then
5637 eval "$as_ac_var=yes"
5639 echo "$as_me: failed program was:" >&5
5640 sed 's/^/| /' conftest.$ac_ext >&5
5642 eval "$as_ac_var=no"
5645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5646 conftest$ac_exeext conftest.$ac_ext
5648 ac_res=`eval echo '${'$as_ac_var'}'`
5649 { echo "$as_me:$LINENO: result: $ac_res" >&5
5650 echo "${ECHO_T}$ac_res" >&6; }
5651 if test `eval echo '${'$as_ac_var'}'` = yes; then
5652 cat >>confdefs.h <<_ACEOF
5653 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5659 { echo "$as_me:$LINENO: checking for working mmap" >&5
5660 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
5661 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5662 echo $ECHO_N "(cached) $ECHO_C" >&6
5664 if test "$cross_compiling" = yes; then
5665 ac_cv_func_mmap_fixed_mapped=no
5667 cat >conftest.$ac_ext <<_ACEOF
5670 cat confdefs.h >>conftest.$ac_ext
5671 cat >>conftest.$ac_ext <<_ACEOF
5672 /* end confdefs.h. */
5673 $ac_includes_default
5674 /* malloc might have been renamed as rpl_malloc. */
5677 /* Thanks to Mike Haertel and Jim Avera for this test.
5678 Here is a matrix of mmap possibilities:
5679 mmap private not fixed
5680 mmap private fixed at somewhere currently unmapped
5681 mmap private fixed at somewhere already mapped
5682 mmap shared not fixed
5683 mmap shared fixed at somewhere currently unmapped
5684 mmap shared fixed at somewhere already mapped
5685 For private mappings, we should verify that changes cannot be read()
5686 back from the file, nor mmap's back from the file at a different
5687 address. (There have been systems where private was not correctly
5688 implemented like the infamous i386 svr4.0, and systems where the
5689 VM page cache was not coherent with the file system buffer cache
5690 like early versions of FreeBSD and possibly contemporary NetBSD.)
5691 For shared mappings, we should conversely verify that changes get
5692 propagated back to all the places they're supposed to be.
5694 Grep wants private fixed already mapped.
5695 The main things grep needs to know about mmap are:
5696 * does it exist and is it safe to write into the mmap'd area
5697 * how to use it (BSD variants) */
5700 #include <sys/mman.h>
5702 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
5706 /* This mess was copied from the GNU getpagesize.h. */
5707 #ifndef HAVE_GETPAGESIZE
5708 /* Assume that all systems that can run configure have sys/param.h. */
5709 # ifndef HAVE_SYS_PARAM_H
5710 # define HAVE_SYS_PARAM_H 1
5713 # ifdef _SC_PAGESIZE
5714 # define getpagesize() sysconf(_SC_PAGESIZE)
5715 # else /* no _SC_PAGESIZE */
5716 # ifdef HAVE_SYS_PARAM_H
5717 # include <sys/param.h>
5718 # ifdef EXEC_PAGESIZE
5719 # define getpagesize() EXEC_PAGESIZE
5720 # else /* no EXEC_PAGESIZE */
5722 # define getpagesize() NBPG * CLSIZE
5725 # endif /* no CLSIZE */
5726 # else /* no NBPG */
5728 # define getpagesize() NBPC
5729 # else /* no NBPC */
5731 # define getpagesize() PAGESIZE
5732 # endif /* PAGESIZE */
5733 # endif /* no NBPC */
5734 # endif /* no NBPG */
5735 # endif /* no EXEC_PAGESIZE */
5736 # else /* no HAVE_SYS_PARAM_H */
5737 # define getpagesize() 8192 /* punt totally */
5738 # endif /* no HAVE_SYS_PARAM_H */
5739 # endif /* no _SC_PAGESIZE */
5741 #endif /* no HAVE_GETPAGESIZE */
5746 char *data, *data2, *data3;
5750 pagesize = getpagesize ();
5752 /* First, make a file with some known garbage in it. */
5753 data = (char *) malloc (pagesize);
5756 for (i = 0; i < pagesize; ++i)
5757 *(data + i) = rand ();
5759 fd = creat ("conftest.mmap", 0600);
5762 if (write (fd, data, pagesize) != pagesize)
5766 /* Next, try to mmap the file at a fixed address which already has
5767 something else allocated at it. If we can, also make sure that
5768 we see the same garbage. */
5769 fd = open ("conftest.mmap", O_RDWR);
5772 data2 = (char *) malloc (2 * pagesize);
5775 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
5776 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5777 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5779 for (i = 0; i < pagesize; ++i)
5780 if (*(data + i) != *(data2 + i))
5783 /* Finally, make sure that changes to the mapped area do not
5784 percolate back to the file as seen by read(). (This is a bug on
5785 some variants of i386 svr4.0.) */
5786 for (i = 0; i < pagesize; ++i)
5787 *(data2 + i) = *(data2 + i) + 1;
5788 data3 = (char *) malloc (pagesize);
5791 if (read (fd, data3, pagesize) != pagesize)
5793 for (i = 0; i < pagesize; ++i)
5794 if (*(data + i) != *(data3 + i))
5800 rm -f conftest$ac_exeext
5801 if { (ac_try="$ac_link"
5803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5804 *) ac_try_echo=$ac_try;;
5806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5807 (eval "$ac_link") 2>&5
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5811 { (case "(($ac_try" in
5812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5813 *) ac_try_echo=$ac_try;;
5815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5816 (eval "$ac_try") 2>&5
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); }; }; then
5820 ac_cv_func_mmap_fixed_mapped=yes
5822 echo "$as_me: program exited with status $ac_status" >&5
5823 echo "$as_me: failed program was:" >&5
5824 sed 's/^/| /' conftest.$ac_ext >&5
5827 ac_cv_func_mmap_fixed_mapped=no
5829 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5834 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5835 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
5836 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5838 cat >>confdefs.h <<\_ACEOF
5847 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
5848 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
5849 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
5850 echo $ECHO_N "(cached) $ECHO_C" >&6
5853 if test "$cross_compiling" = yes; then
5855 # Guess based on the CPU.
5857 alpha* | i3456786 | m68k | s390*)
5858 gt_cv_int_divbyzero_sigfpe="guessing yes";;
5860 gt_cv_int_divbyzero_sigfpe="guessing no";;
5864 cat >conftest.$ac_ext <<_ACEOF
5867 cat confdefs.h >>conftest.$ac_ext
5868 cat >>conftest.$ac_ext <<_ACEOF
5869 /* end confdefs.h. */
5876 sigfpe_handler (int sig)
5878 sigfpe_handler (sig) int sig;
5881 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
5882 exit (sig != SIGFPE);
5892 signal (SIGFPE, sigfpe_handler);
5893 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
5894 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
5895 signal (SIGTRAP, sigfpe_handler);
5897 /* Linux/SPARC yields signal SIGILL. */
5898 #if defined (__sparc__) && defined (__linux__)
5899 signal (SIGILL, sigfpe_handler);
5908 rm -f conftest$ac_exeext
5909 if { (ac_try="$ac_link"
5911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5912 *) ac_try_echo=$ac_try;;
5914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5915 (eval "$ac_link") 2>&5
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5919 { (case "(($ac_try" in
5920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5921 *) ac_try_echo=$ac_try;;
5923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5924 (eval "$ac_try") 2>&5
5926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927 (exit $ac_status); }; }; then
5928 gt_cv_int_divbyzero_sigfpe=yes
5930 echo "$as_me: program exited with status $ac_status" >&5
5931 echo "$as_me: failed program was:" >&5
5932 sed 's/^/| /' conftest.$ac_ext >&5
5935 gt_cv_int_divbyzero_sigfpe=no
5937 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5943 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
5944 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
5945 case "$gt_cv_int_divbyzero_sigfpe" in
5950 cat >>confdefs.h <<_ACEOF
5951 #define INTDIV0_RAISES_SIGFPE $value
5956 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
5957 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
5958 if test "${gl_cv_header_inttypes_h+set}" = set; then
5959 echo $ECHO_N "(cached) $ECHO_C" >&6
5961 cat >conftest.$ac_ext <<_ACEOF
5964 cat confdefs.h >>conftest.$ac_ext
5965 cat >>conftest.$ac_ext <<_ACEOF
5966 /* end confdefs.h. */
5967 #include <sys/types.h>
5968 #include <inttypes.h>
5972 uintmax_t i = (uintmax_t) -1; return !i;
5977 rm -f conftest.$ac_objext
5978 if { (ac_try="$ac_compile"
5980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5981 *) ac_try_echo=$ac_try;;
5983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5984 (eval "$ac_compile") 2>conftest.er1
5986 grep -v '^ *+' conftest.er1 >conftest.err
5988 cat conftest.err >&5
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); } && {
5991 test -z "$ac_c_werror_flag" ||
5992 test ! -s conftest.err
5993 } && test -s conftest.$ac_objext; then
5994 gl_cv_header_inttypes_h=yes
5996 echo "$as_me: failed program was:" >&5
5997 sed 's/^/| /' conftest.$ac_ext >&5
5999 gl_cv_header_inttypes_h=no
6002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6004 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
6005 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
6006 if test $gl_cv_header_inttypes_h = yes; then
6008 cat >>confdefs.h <<_ACEOF
6009 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
6015 { echo "$as_me:$LINENO: checking for unsigned long long int" >&5
6016 echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6; }
6017 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
6018 echo $ECHO_N "(cached) $ECHO_C" >&6
6020 cat >conftest.$ac_ext <<_ACEOF
6023 cat confdefs.h >>conftest.$ac_ext
6024 cat >>conftest.$ac_ext <<_ACEOF
6025 /* end confdefs.h. */
6026 unsigned long long int ull = 18446744073709551615ULL;
6027 typedef int a[(18446744073709551615ULL <= (unsigned long long int) -1
6033 unsigned long long int ullmax = 18446744073709551615ull;
6034 return (ull << 63 | ull >> 63 | ull << i | ull >> i
6035 | ullmax / ull | ullmax % ull);
6040 rm -f conftest.$ac_objext conftest$ac_exeext
6041 if { (ac_try="$ac_link"
6043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6044 *) ac_try_echo=$ac_try;;
6046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6047 (eval "$ac_link") 2>conftest.er1
6049 grep -v '^ *+' conftest.er1 >conftest.err
6051 cat conftest.err >&5
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); } && {
6054 test -z "$ac_c_werror_flag" ||
6055 test ! -s conftest.err
6056 } && test -s conftest$ac_exeext &&
6057 $as_test_x conftest$ac_exeext; then
6058 ac_cv_type_unsigned_long_long_int=yes
6060 echo "$as_me: failed program was:" >&5
6061 sed 's/^/| /' conftest.$ac_ext >&5
6063 ac_cv_type_unsigned_long_long_int=no
6066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6067 conftest$ac_exeext conftest.$ac_ext
6069 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
6070 echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6; }
6071 if test $ac_cv_type_unsigned_long_long_int = yes; then
6073 cat >>confdefs.h <<\_ACEOF
6074 #define HAVE_UNSIGNED_LONG_LONG_INT 1
6081 ac_cv_type_unsigned_long_long=$ac_cv_type_unsigned_long_long_int
6082 if test $ac_cv_type_unsigned_long_long = yes; then
6084 cat >>confdefs.h <<\_ACEOF
6085 #define HAVE_UNSIGNED_LONG_LONG 1
6093 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
6095 test $ac_cv_type_unsigned_long_long = yes \
6096 && ac_type='unsigned long long' \
6097 || ac_type='unsigned long'
6099 cat >>confdefs.h <<_ACEOF
6100 #define uintmax_t $ac_type
6105 cat >>confdefs.h <<\_ACEOF
6106 #define HAVE_UINTMAX_T 1
6112 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
6113 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
6114 if test "${gt_cv_header_inttypes_h+set}" = set; then
6115 echo $ECHO_N "(cached) $ECHO_C" >&6
6118 cat >conftest.$ac_ext <<_ACEOF
6121 cat confdefs.h >>conftest.$ac_ext
6122 cat >>conftest.$ac_ext <<_ACEOF
6123 /* end confdefs.h. */
6124 #include <sys/types.h>
6125 #include <inttypes.h>
6134 rm -f conftest.$ac_objext
6135 if { (ac_try="$ac_compile"
6137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6138 *) ac_try_echo=$ac_try;;
6140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6141 (eval "$ac_compile") 2>conftest.er1
6143 grep -v '^ *+' conftest.er1 >conftest.err
6145 cat conftest.err >&5
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); } && {
6148 test -z "$ac_c_werror_flag" ||
6149 test ! -s conftest.err
6150 } && test -s conftest.$ac_objext; then
6151 gt_cv_header_inttypes_h=yes
6153 echo "$as_me: failed program was:" >&5
6154 sed 's/^/| /' conftest.$ac_ext >&5
6156 gt_cv_header_inttypes_h=no
6159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6162 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
6163 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
6164 if test $gt_cv_header_inttypes_h = yes; then
6166 cat >>confdefs.h <<_ACEOF
6167 #define HAVE_INTTYPES_H 1
6174 if test $gt_cv_header_inttypes_h = yes; then
6175 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
6176 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
6177 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
6178 echo $ECHO_N "(cached) $ECHO_C" >&6
6181 cat >conftest.$ac_ext <<_ACEOF
6184 cat confdefs.h >>conftest.$ac_ext
6185 cat >>conftest.$ac_ext <<_ACEOF
6186 /* end confdefs.h. */
6187 #include <inttypes.h>
6200 rm -f conftest.$ac_objext
6201 if { (ac_try="$ac_compile"
6203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6204 *) ac_try_echo=$ac_try;;
6206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6207 (eval "$ac_compile") 2>conftest.er1
6209 grep -v '^ *+' conftest.er1 >conftest.err
6211 cat conftest.err >&5
6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); } && {
6214 test -z "$ac_c_werror_flag" ||
6215 test ! -s conftest.err
6216 } && test -s conftest.$ac_objext; then
6217 gt_cv_inttypes_pri_broken=no
6219 echo "$as_me: failed program was:" >&5
6220 sed 's/^/| /' conftest.$ac_ext >&5
6222 gt_cv_inttypes_pri_broken=yes
6225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6228 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
6229 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
6231 if test "$gt_cv_inttypes_pri_broken" = yes; then
6233 cat >>confdefs.h <<_ACEOF
6234 #define PRI_MACROS_BROKEN 1
6240 cat >>confdefs.h <<\_ACEOF
6241 #define _GNU_SOURCE 1
6248 # Check whether --enable-threads was given.
6249 if test "${enable_threads+set}" = set; then
6250 enableval=$enable_threads; gl_use_threads=$enableval
6253 osf*) gl_use_threads=no ;;
6254 *) gl_use_threads=yes ;;
6259 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
6260 # For using <pthread.h>:
6263 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
6264 # groks <pthread.h>. cc also understands the flag -pthread, but
6265 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
6266 # 2. putting a flag into CPPFLAGS that has an effect on the linker
6267 # causes the AC_TRY_LINK test below to succeed unexpectedly,
6268 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
6269 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
6272 # Some systems optimize for single-threaded programs by default, and
6273 # need special flags to disable these optimizations. For example, the
6274 # definition of 'errno' in <errno.h>.
6276 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
6277 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
6285 if test "X$prefix" = "XNONE"; then
6286 acl_final_prefix="$ac_default_prefix"
6288 acl_final_prefix="$prefix"
6290 if test "X$exec_prefix" = "XNONE"; then
6291 acl_final_exec_prefix='${prefix}'
6293 acl_final_exec_prefix="$exec_prefix"
6295 acl_save_prefix="$prefix"
6296 prefix="$acl_final_prefix"
6297 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6298 prefix="$acl_save_prefix"
6301 # Check whether --with-gnu-ld was given.
6302 if test "${with_gnu_ld+set}" = set; then
6303 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6308 # Prepare PATH_SEPARATOR.
6309 # The user is always right.
6310 if test "${PATH_SEPARATOR+set}" != set; then
6311 echo "#! /bin/sh" >conf$$.sh
6312 echo "exit 0" >>conf$$.sh
6314 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6322 if test "$GCC" = yes; then
6323 # Check if gcc -print-prog-name=ld gives a path.
6324 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6325 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
6328 # gcc leaves a trailing carriage return which upsets mingw
6329 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6331 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6334 # Accept absolute paths.
6335 [\\/]* | [A-Za-z]:[\\/]*)
6336 re_direlt='/[^/][^/]*/\.\./'
6337 # Canonicalize the path of ld
6338 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6339 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6340 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6342 test -z "$LD" && LD="$ac_prog"
6345 # If it fails, then pretend we aren't using GCC.
6349 # If it is relative, then search for the first ld in PATH.
6353 elif test "$with_gnu_ld" = yes; then
6354 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6355 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6357 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6358 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6360 if test "${acl_cv_path_LD+set}" = set; then
6361 echo $ECHO_N "(cached) $ECHO_C" >&6
6363 if test -z "$LD"; then
6364 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6365 for ac_dir in $PATH; do
6366 test -z "$ac_dir" && ac_dir=.
6367 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6368 acl_cv_path_LD="$ac_dir/$ac_prog"
6369 # Check to see if the program is GNU ld. I'd rather use --version,
6370 # but apparently some GNU ld's only accept -v.
6371 # Break only if it was the GNU/non-GNU ld that we prefer.
6372 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6373 *GNU* | *'with BFD'*)
6374 test "$with_gnu_ld" != no && break ;;
6376 test "$with_gnu_ld" != yes && break ;;
6382 acl_cv_path_LD="$LD" # Let the user override the test with a path.
6386 LD="$acl_cv_path_LD"
6387 if test -n "$LD"; then
6388 { echo "$as_me:$LINENO: result: $LD" >&5
6389 echo "${ECHO_T}$LD" >&6; }
6391 { echo "$as_me:$LINENO: result: no" >&5
6392 echo "${ECHO_T}no" >&6; }
6394 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6395 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6396 { (exit 1); exit 1; }; }
6397 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6398 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6399 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6400 echo $ECHO_N "(cached) $ECHO_C" >&6
6402 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6403 case `$LD -v 2>&1 </dev/null` in
6404 *GNU* | *'with BFD'*)
6405 acl_cv_prog_gnu_ld=yes ;;
6407 acl_cv_prog_gnu_ld=no ;;
6410 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6411 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
6412 with_gnu_ld=$acl_cv_prog_gnu_ld
6416 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6417 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
6418 if test "${acl_cv_rpath+set}" = set; then
6419 echo $ECHO_N "(cached) $ECHO_C" >&6
6422 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6423 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6429 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6430 echo "${ECHO_T}$acl_cv_rpath" >&6; }
6432 libext="$acl_cv_libext"
6433 shlibext="$acl_cv_shlibext"
6434 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6435 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6436 hardcode_direct="$acl_cv_hardcode_direct"
6437 hardcode_minus_L="$acl_cv_hardcode_minus_L"
6438 # Check whether --enable-rpath was given.
6439 if test "${enable_rpath+set}" = set; then
6440 enableval=$enable_rpath; :
6453 if test "$gl_use_threads" != no; then
6454 { echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5
6455 echo $ECHO_N "checking whether imported symbols can be declared weak... $ECHO_C" >&6; }
6457 cat >conftest.$ac_ext <<_ACEOF
6460 cat confdefs.h >>conftest.$ac_ext
6461 cat >>conftest.$ac_ext <<_ACEOF
6462 /* end confdefs.h. */
6463 extern void xyzzy ();
6473 rm -f conftest.$ac_objext conftest$ac_exeext
6474 if { (ac_try="$ac_link"
6476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6477 *) ac_try_echo=$ac_try;;
6479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6480 (eval "$ac_link") 2>conftest.er1
6482 grep -v '^ *+' conftest.er1 >conftest.err
6484 cat conftest.err >&5
6485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486 (exit $ac_status); } && {
6487 test -z "$ac_c_werror_flag" ||
6488 test ! -s conftest.err
6489 } && test -s conftest$ac_exeext &&
6490 $as_test_x conftest$ac_exeext; then
6493 echo "$as_me: failed program was:" >&5
6494 sed 's/^/| /' conftest.$ac_ext >&5
6499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6500 conftest$ac_exeext conftest.$ac_ext
6501 { echo "$as_me:$LINENO: result: $gl_have_weak" >&5
6502 echo "${ECHO_T}$gl_have_weak" >&6; }
6503 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
6504 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
6505 # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
6506 if test "${ac_cv_header_pthread_h+set}" = set; then
6507 { echo "$as_me:$LINENO: checking for pthread.h" >&5
6508 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
6509 if test "${ac_cv_header_pthread_h+set}" = set; then
6510 echo $ECHO_N "(cached) $ECHO_C" >&6
6512 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
6513 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
6515 # Is the header compilable?
6516 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
6517 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
6518 cat >conftest.$ac_ext <<_ACEOF
6521 cat confdefs.h >>conftest.$ac_ext
6522 cat >>conftest.$ac_ext <<_ACEOF
6523 /* end confdefs.h. */
6524 $ac_includes_default
6525 #include <pthread.h>
6527 rm -f conftest.$ac_objext
6528 if { (ac_try="$ac_compile"
6530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6531 *) ac_try_echo=$ac_try;;
6533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6534 (eval "$ac_compile") 2>conftest.er1
6536 grep -v '^ *+' conftest.er1 >conftest.err
6538 cat conftest.err >&5
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); } && {
6541 test -z "$ac_c_werror_flag" ||
6542 test ! -s conftest.err
6543 } && test -s conftest.$ac_objext; then
6544 ac_header_compiler=yes
6546 echo "$as_me: failed program was:" >&5
6547 sed 's/^/| /' conftest.$ac_ext >&5
6549 ac_header_compiler=no
6552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6553 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6554 echo "${ECHO_T}$ac_header_compiler" >&6; }
6556 # Is the header present?
6557 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
6558 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
6559 cat >conftest.$ac_ext <<_ACEOF
6562 cat confdefs.h >>conftest.$ac_ext
6563 cat >>conftest.$ac_ext <<_ACEOF
6564 /* end confdefs.h. */
6565 #include <pthread.h>
6567 if { (ac_try="$ac_cpp conftest.$ac_ext"
6569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6570 *) ac_try_echo=$ac_try;;
6572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6573 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6575 grep -v '^ *+' conftest.er1 >conftest.err
6577 cat conftest.err >&5
6578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579 (exit $ac_status); } >/dev/null && {
6580 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6581 test ! -s conftest.err
6583 ac_header_preproc=yes
6585 echo "$as_me: failed program was:" >&5
6586 sed 's/^/| /' conftest.$ac_ext >&5
6588 ac_header_preproc=no
6591 rm -f conftest.err conftest.$ac_ext
6592 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6593 echo "${ECHO_T}$ac_header_preproc" >&6; }
6595 # So? What about this header?
6596 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6598 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
6599 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6600 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
6601 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
6602 ac_header_preproc=yes
6605 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
6606 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
6607 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
6608 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
6609 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
6610 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
6611 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
6612 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
6613 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
6614 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
6615 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
6616 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
6618 ## -------------------------------------- ##
6619 ## Report this to choe.hwanjing@gmail.com ##
6620 ## -------------------------------------- ##
6622 ) | sed "s/^/$as_me: WARNING: /" >&2
6625 { echo "$as_me:$LINENO: checking for pthread.h" >&5
6626 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
6627 if test "${ac_cv_header_pthread_h+set}" = set; then
6628 echo $ECHO_N "(cached) $ECHO_C" >&6
6630 ac_cv_header_pthread_h=$ac_header_preproc
6632 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
6633 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
6636 if test $ac_cv_header_pthread_h = yes; then
6637 gl_have_pthread_h=yes
6639 gl_have_pthread_h=no
6643 if test "$gl_have_pthread_h" = yes; then
6644 # Other possible tests:
6645 # -lpthreads (FSU threads, PCthreads)
6648 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
6649 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
6650 # the second one only in libpthread, and lock.c needs it.
6651 cat >conftest.$ac_ext <<_ACEOF
6654 cat confdefs.h >>conftest.$ac_ext
6655 cat >>conftest.$ac_ext <<_ACEOF
6656 /* end confdefs.h. */
6657 #include <pthread.h>
6661 pthread_mutex_lock((pthread_mutex_t*)0);
6662 pthread_mutexattr_init((pthread_mutexattr_t*)0);
6667 rm -f conftest.$ac_objext conftest$ac_exeext
6668 if { (ac_try="$ac_link"
6670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6671 *) ac_try_echo=$ac_try;;
6673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6674 (eval "$ac_link") 2>conftest.er1
6676 grep -v '^ *+' conftest.er1 >conftest.err
6678 cat conftest.err >&5
6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); } && {
6681 test -z "$ac_c_werror_flag" ||
6682 test ! -s conftest.err
6683 } && test -s conftest$ac_exeext &&
6684 $as_test_x conftest$ac_exeext; then
6687 echo "$as_me: failed program was:" >&5
6688 sed 's/^/| /' conftest.$ac_ext >&5
6693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6694 conftest$ac_exeext conftest.$ac_ext
6695 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
6696 # since it is defined as a macro on OSF/1.)
6697 if test -n "$gl_have_pthread"; then
6698 # The program links fine without libpthread. But it may actually
6699 # need to link with libpthread in order to create multiple threads.
6700 { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
6701 echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
6702 if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
6703 echo $ECHO_N "(cached) $ECHO_C" >&6
6705 ac_check_lib_save_LIBS=$LIBS
6706 LIBS="-lpthread $LIBS"
6707 cat >conftest.$ac_ext <<_ACEOF
6710 cat confdefs.h >>conftest.$ac_ext
6711 cat >>conftest.$ac_ext <<_ACEOF
6712 /* end confdefs.h. */
6714 /* Override any GCC internal prototype to avoid an error.
6715 Use char because int might match the return type of a GCC
6716 builtin and then its argument prototype would still apply. */
6720 char pthread_kill ();
6724 return pthread_kill ();
6729 rm -f conftest.$ac_objext conftest$ac_exeext
6730 if { (ac_try="$ac_link"
6732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6733 *) ac_try_echo=$ac_try;;
6735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6736 (eval "$ac_link") 2>conftest.er1
6738 grep -v '^ *+' conftest.er1 >conftest.err
6740 cat conftest.err >&5
6741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742 (exit $ac_status); } && {
6743 test -z "$ac_c_werror_flag" ||
6744 test ! -s conftest.err
6745 } && test -s conftest$ac_exeext &&
6746 $as_test_x conftest$ac_exeext; then
6747 ac_cv_lib_pthread_pthread_kill=yes
6749 echo "$as_me: failed program was:" >&5
6750 sed 's/^/| /' conftest.$ac_ext >&5
6752 ac_cv_lib_pthread_pthread_kill=no
6755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6756 conftest$ac_exeext conftest.$ac_ext
6757 LIBS=$ac_check_lib_save_LIBS
6759 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
6760 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
6761 if test $ac_cv_lib_pthread_pthread_kill = yes; then
6762 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
6763 # On Solaris and HP-UX, most pthread functions exist also in libc.
6764 # Therefore pthread_in_use() needs to actually try to create a
6765 # thread: pthread_create from libc will fail, whereas
6766 # pthread_create will actually create a thread.
6770 cat >>confdefs.h <<\_ACEOF
6771 #define PTHREAD_IN_USE_DETECTION_HARD 1
6779 # Some library is needed. Try libpthread and libc_r.
6780 { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
6781 echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
6782 if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
6783 echo $ECHO_N "(cached) $ECHO_C" >&6
6785 ac_check_lib_save_LIBS=$LIBS
6786 LIBS="-lpthread $LIBS"
6787 cat >conftest.$ac_ext <<_ACEOF
6790 cat confdefs.h >>conftest.$ac_ext
6791 cat >>conftest.$ac_ext <<_ACEOF
6792 /* end confdefs.h. */
6794 /* Override any GCC internal prototype to avoid an error.
6795 Use char because int might match the return type of a GCC
6796 builtin and then its argument prototype would still apply. */
6800 char pthread_kill ();
6804 return pthread_kill ();
6809 rm -f conftest.$ac_objext conftest$ac_exeext
6810 if { (ac_try="$ac_link"
6812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6813 *) ac_try_echo=$ac_try;;
6815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6816 (eval "$ac_link") 2>conftest.er1
6818 grep -v '^ *+' conftest.er1 >conftest.err
6820 cat conftest.err >&5
6821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822 (exit $ac_status); } && {
6823 test -z "$ac_c_werror_flag" ||
6824 test ! -s conftest.err
6825 } && test -s conftest$ac_exeext &&
6826 $as_test_x conftest$ac_exeext; then
6827 ac_cv_lib_pthread_pthread_kill=yes
6829 echo "$as_me: failed program was:" >&5
6830 sed 's/^/| /' conftest.$ac_ext >&5
6832 ac_cv_lib_pthread_pthread_kill=no
6835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6836 conftest$ac_exeext conftest.$ac_ext
6837 LIBS=$ac_check_lib_save_LIBS
6839 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
6840 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
6841 if test $ac_cv_lib_pthread_pthread_kill = yes; then
6843 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
6844 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
6847 if test -z "$gl_have_pthread"; then
6849 { echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5
6850 echo $ECHO_N "checking for pthread_kill in -lc_r... $ECHO_C" >&6; }
6851 if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then
6852 echo $ECHO_N "(cached) $ECHO_C" >&6
6854 ac_check_lib_save_LIBS=$LIBS
6856 cat >conftest.$ac_ext <<_ACEOF
6859 cat confdefs.h >>conftest.$ac_ext
6860 cat >>conftest.$ac_ext <<_ACEOF
6861 /* end confdefs.h. */
6863 /* Override any GCC internal prototype to avoid an error.
6864 Use char because int might match the return type of a GCC
6865 builtin and then its argument prototype would still apply. */
6869 char pthread_kill ();
6873 return pthread_kill ();
6878 rm -f conftest.$ac_objext conftest$ac_exeext
6879 if { (ac_try="$ac_link"
6881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6882 *) ac_try_echo=$ac_try;;
6884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6885 (eval "$ac_link") 2>conftest.er1
6887 grep -v '^ *+' conftest.er1 >conftest.err
6889 cat conftest.err >&5
6890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891 (exit $ac_status); } && {
6892 test -z "$ac_c_werror_flag" ||
6893 test ! -s conftest.err
6894 } && test -s conftest$ac_exeext &&
6895 $as_test_x conftest$ac_exeext; then
6896 ac_cv_lib_c_r_pthread_kill=yes
6898 echo "$as_me: failed program was:" >&5
6899 sed 's/^/| /' conftest.$ac_ext >&5
6901 ac_cv_lib_c_r_pthread_kill=no
6904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6905 conftest$ac_exeext conftest.$ac_ext
6906 LIBS=$ac_check_lib_save_LIBS
6908 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5
6909 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_kill" >&6; }
6910 if test $ac_cv_lib_c_r_pthread_kill = yes; then
6912 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
6913 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
6918 if test -n "$gl_have_pthread"; then
6919 gl_threads_api=posix
6921 cat >>confdefs.h <<\_ACEOF
6922 #define USE_POSIX_THREADS 1
6925 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
6926 if test $gl_have_weak = yes; then
6928 cat >>confdefs.h <<\_ACEOF
6929 #define USE_POSIX_THREADS_WEAK 1
6936 # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
6937 # pthread_rwlock_* functions.
6938 { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
6939 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
6940 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
6941 echo $ECHO_N "(cached) $ECHO_C" >&6
6943 cat >conftest.$ac_ext <<_ACEOF
6946 cat confdefs.h >>conftest.$ac_ext
6947 cat >>conftest.$ac_ext <<_ACEOF
6948 /* end confdefs.h. */
6949 #include <pthread.h>
6951 typedef pthread_rwlock_t ac__type_new_;
6955 if ((ac__type_new_ *) 0)
6957 if (sizeof (ac__type_new_))
6963 rm -f conftest.$ac_objext
6964 if { (ac_try="$ac_compile"
6966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6967 *) ac_try_echo=$ac_try;;
6969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6970 (eval "$ac_compile") 2>conftest.er1
6972 grep -v '^ *+' conftest.er1 >conftest.err
6974 cat conftest.err >&5
6975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976 (exit $ac_status); } && {
6977 test -z "$ac_c_werror_flag" ||
6978 test ! -s conftest.err
6979 } && test -s conftest.$ac_objext; then
6980 ac_cv_type_pthread_rwlock_t=yes
6982 echo "$as_me: failed program was:" >&5
6983 sed 's/^/| /' conftest.$ac_ext >&5
6985 ac_cv_type_pthread_rwlock_t=no
6988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6990 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
6991 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
6992 if test $ac_cv_type_pthread_rwlock_t = yes; then
6994 cat >>confdefs.h <<\_ACEOF
6995 #define HAVE_PTHREAD_RWLOCK 1
7000 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
7001 cat >conftest.$ac_ext <<_ACEOF
7004 cat confdefs.h >>conftest.$ac_ext
7005 cat >>conftest.$ac_ext <<_ACEOF
7006 /* end confdefs.h. */
7007 #include <pthread.h>
7011 #if __FreeBSD__ == 4
7012 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
7014 int x = (int)PTHREAD_MUTEX_RECURSIVE;
7021 rm -f conftest.$ac_objext
7022 if { (ac_try="$ac_compile"
7024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7025 *) ac_try_echo=$ac_try;;
7027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7028 (eval "$ac_compile") 2>conftest.er1
7030 grep -v '^ *+' conftest.er1 >conftest.err
7032 cat conftest.err >&5
7033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7034 (exit $ac_status); } && {
7035 test -z "$ac_c_werror_flag" ||
7036 test ! -s conftest.err
7037 } && test -s conftest.$ac_objext; then
7039 cat >>confdefs.h <<\_ACEOF
7040 #define HAVE_PTHREAD_MUTEX_RECURSIVE 1
7044 echo "$as_me: failed program was:" >&5
7045 sed 's/^/| /' conftest.$ac_ext >&5
7050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7054 if test -z "$gl_have_pthread"; then
7055 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
7056 gl_have_solaristhread=
7057 gl_save_LIBS="$LIBS"
7058 LIBS="$LIBS -lthread"
7059 cat >conftest.$ac_ext <<_ACEOF
7062 cat confdefs.h >>conftest.$ac_ext
7063 cat >>conftest.$ac_ext <<_ACEOF
7064 /* end confdefs.h. */
7075 rm -f conftest.$ac_objext conftest$ac_exeext
7076 if { (ac_try="$ac_link"
7078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7079 *) ac_try_echo=$ac_try;;
7081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7082 (eval "$ac_link") 2>conftest.er1
7084 grep -v '^ *+' conftest.er1 >conftest.err
7086 cat conftest.err >&5
7087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088 (exit $ac_status); } && {
7089 test -z "$ac_c_werror_flag" ||
7090 test ! -s conftest.err
7091 } && test -s conftest$ac_exeext &&
7092 $as_test_x conftest$ac_exeext; then
7093 gl_have_solaristhread=yes
7095 echo "$as_me: failed program was:" >&5
7096 sed 's/^/| /' conftest.$ac_ext >&5
7101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7102 conftest$ac_exeext conftest.$ac_ext
7103 LIBS="$gl_save_LIBS"
7104 if test -n "$gl_have_solaristhread"; then
7105 gl_threads_api=solaris
7107 LTLIBTHREAD=-lthread
7108 LIBMULTITHREAD="$LIBTHREAD"
7109 LTLIBMULTITHREAD="$LTLIBTHREAD"
7111 cat >>confdefs.h <<\_ACEOF
7112 #define USE_SOLARIS_THREADS 1
7115 if test $gl_have_weak = yes; then
7117 cat >>confdefs.h <<\_ACEOF
7118 #define USE_SOLARIS_THREADS_WEAK 1
7127 if test "$gl_use_threads" = pth; then
7128 gl_save_CPPFLAGS="$CPPFLAGS"
7134 { echo "$as_me:$LINENO: checking how to link with libpth" >&5
7135 echo $ECHO_N "checking how to link with libpth... $ECHO_C" >&6; }
7136 if test "${ac_cv_libpth_libs+set}" = set; then
7137 echo $ECHO_N "(cached) $ECHO_C" >&6
7144 acl_save_prefix="$prefix"
7145 prefix="$acl_final_prefix"
7146 acl_save_exec_prefix="$exec_prefix"
7147 exec_prefix="$acl_final_exec_prefix"
7149 eval additional_includedir=\"$includedir\"
7150 eval additional_libdir=\"$libdir\"
7152 exec_prefix="$acl_save_exec_prefix"
7153 prefix="$acl_save_prefix"
7156 # Check whether --with-libpth-prefix was given.
7157 if test "${with_libpth_prefix+set}" = set; then
7158 withval=$with_libpth_prefix;
7159 if test "X$withval" = "Xno"; then
7162 if test "X$withval" = "X"; then
7164 acl_save_prefix="$prefix"
7165 prefix="$acl_final_prefix"
7166 acl_save_exec_prefix="$exec_prefix"
7167 exec_prefix="$acl_final_exec_prefix"
7169 eval additional_includedir=\"$includedir\"
7170 eval additional_libdir=\"$libdir\"
7172 exec_prefix="$acl_save_exec_prefix"
7173 prefix="$acl_save_prefix"
7176 additional_includedir="$withval/include"
7177 additional_libdir="$withval/lib"
7188 names_already_handled=
7189 names_next_round='pth '
7190 while test -n "$names_next_round"; do
7191 names_this_round="$names_next_round"
7193 for name in $names_this_round; do
7195 for n in $names_already_handled; do
7196 if test "$n" = "$name"; then
7201 if test -z "$already_handled"; then
7202 names_already_handled="$names_already_handled $name"
7203 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7204 eval value=\"\$HAVE_LIB$uppername\"
7205 if test -n "$value"; then
7206 if test "$value" = yes; then
7207 eval value=\"\$LIB$uppername\"
7208 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
7209 eval value=\"\$LTLIB$uppername\"
7210 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
7219 if test $use_additional = yes; then
7220 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7221 found_dir="$additional_libdir"
7222 found_so="$additional_libdir/lib$name.$shlibext"
7223 if test -f "$additional_libdir/lib$name.la"; then
7224 found_la="$additional_libdir/lib$name.la"
7227 if test -f "$additional_libdir/lib$name.$libext"; then
7228 found_dir="$additional_libdir"
7229 found_a="$additional_libdir/lib$name.$libext"
7230 if test -f "$additional_libdir/lib$name.la"; then
7231 found_la="$additional_libdir/lib$name.la"
7236 if test "X$found_dir" = "X"; then
7237 for x in $LDFLAGS $LTLIBPTH; do
7239 acl_save_prefix="$prefix"
7240 prefix="$acl_final_prefix"
7241 acl_save_exec_prefix="$exec_prefix"
7242 exec_prefix="$acl_final_exec_prefix"
7244 exec_prefix="$acl_save_exec_prefix"
7245 prefix="$acl_save_prefix"
7249 dir=`echo "X$x" | sed -e 's/^X-L//'`
7250 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7252 found_so="$dir/lib$name.$shlibext"
7253 if test -f "$dir/lib$name.la"; then
7254 found_la="$dir/lib$name.la"
7257 if test -f "$dir/lib$name.$libext"; then
7259 found_a="$dir/lib$name.$libext"
7260 if test -f "$dir/lib$name.la"; then
7261 found_la="$dir/lib$name.la"
7267 if test "X$found_dir" != "X"; then
7272 if test "X$found_dir" != "X"; then
7273 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
7274 if test "X$found_so" != "X"; then
7275 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7276 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
7279 for x in $ltrpathdirs; do
7280 if test "X$x" = "X$found_dir"; then
7285 if test -z "$haveit"; then
7286 ltrpathdirs="$ltrpathdirs $found_dir"
7288 if test "$hardcode_direct" = yes; then
7289 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
7291 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7292 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
7294 for x in $rpathdirs; do
7295 if test "X$x" = "X$found_dir"; then
7300 if test -z "$haveit"; then
7301 rpathdirs="$rpathdirs $found_dir"
7305 for x in $LDFLAGS $LIBPTH; do
7307 acl_save_prefix="$prefix"
7308 prefix="$acl_final_prefix"
7309 acl_save_exec_prefix="$exec_prefix"
7310 exec_prefix="$acl_final_exec_prefix"
7312 exec_prefix="$acl_save_exec_prefix"
7313 prefix="$acl_save_prefix"
7315 if test "X$x" = "X-L$found_dir"; then
7320 if test -z "$haveit"; then
7321 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
7323 if test "$hardcode_minus_L" != no; then
7324 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
7326 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
7332 if test "X$found_a" != "X"; then
7333 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
7335 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
7338 additional_includedir=
7339 case "$found_dir" in
7341 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7342 additional_includedir="$basedir/include"
7345 if test "X$additional_includedir" != "X"; then
7346 if test "X$additional_includedir" != "X/usr/include"; then
7348 if test "X$additional_includedir" = "X/usr/local/include"; then
7349 if test -n "$GCC"; then
7351 linux*) haveit=yes;;
7355 if test -z "$haveit"; then
7356 for x in $CPPFLAGS $INCPTH; do
7358 acl_save_prefix="$prefix"
7359 prefix="$acl_final_prefix"
7360 acl_save_exec_prefix="$exec_prefix"
7361 exec_prefix="$acl_final_exec_prefix"
7363 exec_prefix="$acl_save_exec_prefix"
7364 prefix="$acl_save_prefix"
7366 if test "X$x" = "X-I$additional_includedir"; then
7371 if test -z "$haveit"; then
7372 if test -d "$additional_includedir"; then
7373 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
7379 if test -n "$found_la"; then
7380 save_libdir="$libdir"
7382 */* | *\\*) . "$found_la" ;;
7383 *) . "./$found_la" ;;
7385 libdir="$save_libdir"
7386 for dep in $dependency_libs; do
7389 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7390 if test "X$additional_libdir" != "X/usr/lib"; then
7392 if test "X$additional_libdir" = "X/usr/local/lib"; then
7393 if test -n "$GCC"; then
7395 linux*) haveit=yes;;
7399 if test -z "$haveit"; then
7401 for x in $LDFLAGS $LIBPTH; do
7403 acl_save_prefix="$prefix"
7404 prefix="$acl_final_prefix"
7405 acl_save_exec_prefix="$exec_prefix"
7406 exec_prefix="$acl_final_exec_prefix"
7408 exec_prefix="$acl_save_exec_prefix"
7409 prefix="$acl_save_prefix"
7411 if test "X$x" = "X-L$additional_libdir"; then
7416 if test -z "$haveit"; then
7417 if test -d "$additional_libdir"; then
7418 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
7422 for x in $LDFLAGS $LTLIBPTH; do
7424 acl_save_prefix="$prefix"
7425 prefix="$acl_final_prefix"
7426 acl_save_exec_prefix="$exec_prefix"
7427 exec_prefix="$acl_final_exec_prefix"
7429 exec_prefix="$acl_save_exec_prefix"
7430 prefix="$acl_save_prefix"
7432 if test "X$x" = "X-L$additional_libdir"; then
7437 if test -z "$haveit"; then
7438 if test -d "$additional_libdir"; then
7439 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
7446 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7447 if test "$enable_rpath" != no; then
7449 for x in $rpathdirs; do
7450 if test "X$x" = "X$dir"; then
7455 if test -z "$haveit"; then
7456 rpathdirs="$rpathdirs $dir"
7459 for x in $ltrpathdirs; do
7460 if test "X$x" = "X$dir"; then
7465 if test -z "$haveit"; then
7466 ltrpathdirs="$ltrpathdirs $dir"
7471 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7474 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7477 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
7478 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
7484 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
7485 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
7491 if test "X$rpathdirs" != "X"; then
7492 if test -n "$hardcode_libdir_separator"; then
7494 for found_dir in $rpathdirs; do
7495 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7497 acl_save_libdir="$libdir"
7499 eval flag=\"$hardcode_libdir_flag_spec\"
7500 libdir="$acl_save_libdir"
7501 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
7503 for found_dir in $rpathdirs; do
7504 acl_save_libdir="$libdir"
7506 eval flag=\"$hardcode_libdir_flag_spec\"
7507 libdir="$acl_save_libdir"
7508 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
7512 if test "X$ltrpathdirs" != "X"; then
7513 for found_dir in $ltrpathdirs; do
7514 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
7518 ac_cv_libpth_libs="$LIBPTH"
7519 ac_cv_libpth_ltlibs="$LTLIBPTH"
7520 ac_cv_libpth_cppflags="$INCPTH"
7523 { echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5
7524 echo "${ECHO_T}$ac_cv_libpth_libs" >&6; }
7525 LIBPTH="$ac_cv_libpth_libs"
7526 LTLIBPTH="$ac_cv_libpth_ltlibs"
7527 INCPTH="$ac_cv_libpth_cppflags"
7529 for element in $INCPTH; do
7531 for x in $CPPFLAGS; do
7533 acl_save_prefix="$prefix"
7534 prefix="$acl_final_prefix"
7535 acl_save_exec_prefix="$exec_prefix"
7536 exec_prefix="$acl_final_exec_prefix"
7538 exec_prefix="$acl_save_exec_prefix"
7539 prefix="$acl_save_prefix"
7541 if test "X$x" = "X$element"; then
7546 if test -z "$haveit"; then
7547 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7558 gl_save_LIBS="$LIBS"
7560 cat >conftest.$ac_ext <<_ACEOF
7563 cat confdefs.h >>conftest.$ac_ext
7564 cat >>conftest.$ac_ext <<_ACEOF
7565 /* end confdefs.h. */
7575 rm -f conftest.$ac_objext conftest$ac_exeext
7576 if { (ac_try="$ac_link"
7578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7579 *) ac_try_echo=$ac_try;;
7581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7582 (eval "$ac_link") 2>conftest.er1
7584 grep -v '^ *+' conftest.er1 >conftest.err
7586 cat conftest.err >&5
7587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588 (exit $ac_status); } && {
7589 test -z "$ac_c_werror_flag" ||
7590 test ! -s conftest.err
7591 } && test -s conftest$ac_exeext &&
7592 $as_test_x conftest$ac_exeext; then
7595 echo "$as_me: failed program was:" >&5
7596 sed 's/^/| /' conftest.$ac_ext >&5
7601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7602 conftest$ac_exeext conftest.$ac_ext
7603 LIBS="$gl_save_LIBS"
7604 if test -n "$gl_have_pth"; then
7607 LTLIBTHREAD="$LTLIBPTH"
7608 LIBMULTITHREAD="$LIBTHREAD"
7609 LTLIBMULTITHREAD="$LTLIBTHREAD"
7611 cat >>confdefs.h <<\_ACEOF
7612 #define USE_PTH_THREADS 1
7615 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
7616 if test $gl_have_weak = yes; then
7618 cat >>confdefs.h <<\_ACEOF
7619 #define USE_PTH_THREADS_WEAK 1
7627 CPPFLAGS="$gl_save_CPPFLAGS"
7630 if test -z "$gl_have_pthread"; then
7631 if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
7632 if { case "$host_os" in
7637 gl_threads_api=win32
7639 cat >>confdefs.h <<\_ACEOF
7640 #define USE_WIN32_THREADS 1
7647 { echo "$as_me:$LINENO: checking for multithread API to use" >&5
7648 echo $ECHO_N "checking for multithread API to use... $ECHO_C" >&6; }
7649 { echo "$as_me:$LINENO: result: $gl_threads_api" >&5
7650 echo "${ECHO_T}$gl_threads_api" >&6; }
7671 acl_save_prefix="$prefix"
7672 prefix="$acl_final_prefix"
7673 acl_save_exec_prefix="$exec_prefix"
7674 exec_prefix="$acl_final_exec_prefix"
7676 eval additional_includedir=\"$includedir\"
7677 eval additional_libdir=\"$libdir\"
7679 exec_prefix="$acl_save_exec_prefix"
7680 prefix="$acl_save_prefix"
7683 # Check whether --with-libiconv-prefix was given.
7684 if test "${with_libiconv_prefix+set}" = set; then
7685 withval=$with_libiconv_prefix;
7686 if test "X$withval" = "Xno"; then
7689 if test "X$withval" = "X"; then
7691 acl_save_prefix="$prefix"
7692 prefix="$acl_final_prefix"
7693 acl_save_exec_prefix="$exec_prefix"
7694 exec_prefix="$acl_final_exec_prefix"
7696 eval additional_includedir=\"$includedir\"
7697 eval additional_libdir=\"$libdir\"
7699 exec_prefix="$acl_save_exec_prefix"
7700 prefix="$acl_save_prefix"
7703 additional_includedir="$withval/include"
7704 additional_libdir="$withval/lib"
7715 names_already_handled=
7716 names_next_round='iconv '
7717 while test -n "$names_next_round"; do
7718 names_this_round="$names_next_round"
7720 for name in $names_this_round; do
7722 for n in $names_already_handled; do
7723 if test "$n" = "$name"; then
7728 if test -z "$already_handled"; then
7729 names_already_handled="$names_already_handled $name"
7730 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7731 eval value=\"\$HAVE_LIB$uppername\"
7732 if test -n "$value"; then
7733 if test "$value" = yes; then
7734 eval value=\"\$LIB$uppername\"
7735 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7736 eval value=\"\$LTLIB$uppername\"
7737 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7746 if test $use_additional = yes; then
7747 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7748 found_dir="$additional_libdir"
7749 found_so="$additional_libdir/lib$name.$shlibext"
7750 if test -f "$additional_libdir/lib$name.la"; then
7751 found_la="$additional_libdir/lib$name.la"
7754 if test -f "$additional_libdir/lib$name.$libext"; then
7755 found_dir="$additional_libdir"
7756 found_a="$additional_libdir/lib$name.$libext"
7757 if test -f "$additional_libdir/lib$name.la"; then
7758 found_la="$additional_libdir/lib$name.la"
7763 if test "X$found_dir" = "X"; then
7764 for x in $LDFLAGS $LTLIBICONV; do
7766 acl_save_prefix="$prefix"
7767 prefix="$acl_final_prefix"
7768 acl_save_exec_prefix="$exec_prefix"
7769 exec_prefix="$acl_final_exec_prefix"
7771 exec_prefix="$acl_save_exec_prefix"
7772 prefix="$acl_save_prefix"
7776 dir=`echo "X$x" | sed -e 's/^X-L//'`
7777 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7779 found_so="$dir/lib$name.$shlibext"
7780 if test -f "$dir/lib$name.la"; then
7781 found_la="$dir/lib$name.la"
7784 if test -f "$dir/lib$name.$libext"; then
7786 found_a="$dir/lib$name.$libext"
7787 if test -f "$dir/lib$name.la"; then
7788 found_la="$dir/lib$name.la"
7794 if test "X$found_dir" != "X"; then
7799 if test "X$found_dir" != "X"; then
7800 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7801 if test "X$found_so" != "X"; then
7802 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7803 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7806 for x in $ltrpathdirs; do
7807 if test "X$x" = "X$found_dir"; then
7812 if test -z "$haveit"; then
7813 ltrpathdirs="$ltrpathdirs $found_dir"
7815 if test "$hardcode_direct" = yes; then
7816 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7818 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7819 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7821 for x in $rpathdirs; do
7822 if test "X$x" = "X$found_dir"; then
7827 if test -z "$haveit"; then
7828 rpathdirs="$rpathdirs $found_dir"
7832 for x in $LDFLAGS $LIBICONV; do
7834 acl_save_prefix="$prefix"
7835 prefix="$acl_final_prefix"
7836 acl_save_exec_prefix="$exec_prefix"
7837 exec_prefix="$acl_final_exec_prefix"
7839 exec_prefix="$acl_save_exec_prefix"
7840 prefix="$acl_save_prefix"
7842 if test "X$x" = "X-L$found_dir"; then
7847 if test -z "$haveit"; then
7848 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7850 if test "$hardcode_minus_L" != no; then
7851 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7853 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7859 if test "X$found_a" != "X"; then
7860 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7862 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7865 additional_includedir=
7866 case "$found_dir" in
7868 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7869 additional_includedir="$basedir/include"
7872 if test "X$additional_includedir" != "X"; then
7873 if test "X$additional_includedir" != "X/usr/include"; then
7875 if test "X$additional_includedir" = "X/usr/local/include"; then
7876 if test -n "$GCC"; then
7878 linux*) haveit=yes;;
7882 if test -z "$haveit"; then
7883 for x in $CPPFLAGS $INCICONV; do
7885 acl_save_prefix="$prefix"
7886 prefix="$acl_final_prefix"
7887 acl_save_exec_prefix="$exec_prefix"
7888 exec_prefix="$acl_final_exec_prefix"
7890 exec_prefix="$acl_save_exec_prefix"
7891 prefix="$acl_save_prefix"
7893 if test "X$x" = "X-I$additional_includedir"; then
7898 if test -z "$haveit"; then
7899 if test -d "$additional_includedir"; then
7900 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7906 if test -n "$found_la"; then
7907 save_libdir="$libdir"
7909 */* | *\\*) . "$found_la" ;;
7910 *) . "./$found_la" ;;
7912 libdir="$save_libdir"
7913 for dep in $dependency_libs; do
7916 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7917 if test "X$additional_libdir" != "X/usr/lib"; then
7919 if test "X$additional_libdir" = "X/usr/local/lib"; then
7920 if test -n "$GCC"; then
7922 linux*) haveit=yes;;
7926 if test -z "$haveit"; then
7928 for x in $LDFLAGS $LIBICONV; do
7930 acl_save_prefix="$prefix"
7931 prefix="$acl_final_prefix"
7932 acl_save_exec_prefix="$exec_prefix"
7933 exec_prefix="$acl_final_exec_prefix"
7935 exec_prefix="$acl_save_exec_prefix"
7936 prefix="$acl_save_prefix"
7938 if test "X$x" = "X-L$additional_libdir"; then
7943 if test -z "$haveit"; then
7944 if test -d "$additional_libdir"; then
7945 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7949 for x in $LDFLAGS $LTLIBICONV; do
7951 acl_save_prefix="$prefix"
7952 prefix="$acl_final_prefix"
7953 acl_save_exec_prefix="$exec_prefix"
7954 exec_prefix="$acl_final_exec_prefix"
7956 exec_prefix="$acl_save_exec_prefix"
7957 prefix="$acl_save_prefix"
7959 if test "X$x" = "X-L$additional_libdir"; then
7964 if test -z "$haveit"; then
7965 if test -d "$additional_libdir"; then
7966 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7973 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7974 if test "$enable_rpath" != no; then
7976 for x in $rpathdirs; do
7977 if test "X$x" = "X$dir"; then
7982 if test -z "$haveit"; then
7983 rpathdirs="$rpathdirs $dir"
7986 for x in $ltrpathdirs; do
7987 if test "X$x" = "X$dir"; then
7992 if test -z "$haveit"; then
7993 ltrpathdirs="$ltrpathdirs $dir"
7998 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8001 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8004 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8005 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8011 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8012 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8018 if test "X$rpathdirs" != "X"; then
8019 if test -n "$hardcode_libdir_separator"; then
8021 for found_dir in $rpathdirs; do
8022 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8024 acl_save_libdir="$libdir"
8026 eval flag=\"$hardcode_libdir_flag_spec\"
8027 libdir="$acl_save_libdir"
8028 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8030 for found_dir in $rpathdirs; do
8031 acl_save_libdir="$libdir"
8033 eval flag=\"$hardcode_libdir_flag_spec\"
8034 libdir="$acl_save_libdir"
8035 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8039 if test "X$ltrpathdirs" != "X"; then
8040 for found_dir in $ltrpathdirs; do
8041 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8049 cat >conftest.$ac_ext <<_ACEOF
8052 cat confdefs.h >>conftest.$ac_ext
8053 cat >>conftest.$ac_ext <<_ACEOF
8054 /* end confdefs.h. */
8055 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
8064 rm -f conftest.$ac_objext conftest$ac_exeext
8065 if { (ac_try="$ac_link"
8067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8068 *) ac_try_echo=$ac_try;;
8070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8071 (eval "$ac_link") 2>conftest.er1
8073 grep -v '^ *+' conftest.er1 >conftest.err
8075 cat conftest.err >&5
8076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077 (exit $ac_status); } && {
8078 test -z "$ac_c_werror_flag" ||
8079 test ! -s conftest.err
8080 } && test -s conftest$ac_exeext &&
8081 $as_test_x conftest$ac_exeext; then
8083 cat >>confdefs.h <<\_ACEOF
8084 #define HAVE_BUILTIN_EXPECT 1
8088 echo "$as_me: failed program was:" >&5
8089 sed 's/^/| /' conftest.$ac_ext >&5
8094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8095 conftest$ac_exeext conftest.$ac_ext
8102 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
8104 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8106 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8109 echo $ECHO_N "(cached) $ECHO_C" >&6
8111 ac_res=`eval echo '${'$as_ac_Header'}'`
8112 { echo "$as_me:$LINENO: result: $ac_res" >&5
8113 echo "${ECHO_T}$ac_res" >&6; }
8115 # Is the header compilable?
8116 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8117 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8118 cat >conftest.$ac_ext <<_ACEOF
8121 cat confdefs.h >>conftest.$ac_ext
8122 cat >>conftest.$ac_ext <<_ACEOF
8123 /* end confdefs.h. */
8124 $ac_includes_default
8125 #include <$ac_header>
8127 rm -f conftest.$ac_objext
8128 if { (ac_try="$ac_compile"
8130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8131 *) ac_try_echo=$ac_try;;
8133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8134 (eval "$ac_compile") 2>conftest.er1
8136 grep -v '^ *+' conftest.er1 >conftest.err
8138 cat conftest.err >&5
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); } && {
8141 test -z "$ac_c_werror_flag" ||
8142 test ! -s conftest.err
8143 } && test -s conftest.$ac_objext; then
8144 ac_header_compiler=yes
8146 echo "$as_me: failed program was:" >&5
8147 sed 's/^/| /' conftest.$ac_ext >&5
8149 ac_header_compiler=no
8152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8153 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8154 echo "${ECHO_T}$ac_header_compiler" >&6; }
8156 # Is the header present?
8157 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8158 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8159 cat >conftest.$ac_ext <<_ACEOF
8162 cat confdefs.h >>conftest.$ac_ext
8163 cat >>conftest.$ac_ext <<_ACEOF
8164 /* end confdefs.h. */
8165 #include <$ac_header>
8167 if { (ac_try="$ac_cpp conftest.$ac_ext"
8169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8170 *) ac_try_echo=$ac_try;;
8172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8173 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8175 grep -v '^ *+' conftest.er1 >conftest.err
8177 cat conftest.err >&5
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); } >/dev/null && {
8180 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8181 test ! -s conftest.err
8183 ac_header_preproc=yes
8185 echo "$as_me: failed program was:" >&5
8186 sed 's/^/| /' conftest.$ac_ext >&5
8188 ac_header_preproc=no
8191 rm -f conftest.err conftest.$ac_ext
8192 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8193 echo "${ECHO_T}$ac_header_preproc" >&6; }
8195 # So? What about this header?
8196 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8198 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8199 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8201 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8202 ac_header_preproc=yes
8205 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8206 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8207 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8208 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8209 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8210 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8211 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8212 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8214 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8215 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8216 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8218 ## -------------------------------------- ##
8219 ## Report this to choe.hwanjing@gmail.com ##
8220 ## -------------------------------------- ##
8222 ) | sed "s/^/$as_me: WARNING: /" >&2
8225 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8228 echo $ECHO_N "(cached) $ECHO_C" >&6
8230 eval "$as_ac_Header=\$ac_header_preproc"
8232 ac_res=`eval echo '${'$as_ac_Header'}'`
8233 { echo "$as_me:$LINENO: result: $ac_res" >&5
8234 echo "${ECHO_T}$ac_res" >&6; }
8237 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8238 cat >>confdefs.h <<_ACEOF
8239 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8262 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
8263 stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
8264 argz_next __fsetlocking
8266 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8267 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8268 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8269 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8270 echo $ECHO_N "(cached) $ECHO_C" >&6
8272 cat >conftest.$ac_ext <<_ACEOF
8275 cat confdefs.h >>conftest.$ac_ext
8276 cat >>conftest.$ac_ext <<_ACEOF
8277 /* end confdefs.h. */
8278 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8279 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8280 #define $ac_func innocuous_$ac_func
8282 /* System header to define __stub macros and hopefully few prototypes,
8283 which can conflict with char $ac_func (); below.
8284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8285 <limits.h> exists even on freestanding compilers. */
8288 # include <limits.h>
8290 # include <assert.h>
8295 /* Override any GCC internal prototype to avoid an error.
8296 Use char because int might match the return type of a GCC
8297 builtin and then its argument prototype would still apply. */
8302 /* The GNU C library defines this for functions which it implements
8303 to always fail with ENOSYS. Some functions are actually named
8304 something starting with __ and the normal name is an alias. */
8305 #if defined __stub_$ac_func || defined __stub___$ac_func
8317 rm -f conftest.$ac_objext conftest$ac_exeext
8318 if { (ac_try="$ac_link"
8320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8321 *) ac_try_echo=$ac_try;;
8323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8324 (eval "$ac_link") 2>conftest.er1
8326 grep -v '^ *+' conftest.er1 >conftest.err
8328 cat conftest.err >&5
8329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330 (exit $ac_status); } && {
8331 test -z "$ac_c_werror_flag" ||
8332 test ! -s conftest.err
8333 } && test -s conftest$ac_exeext &&
8334 $as_test_x conftest$ac_exeext; then
8335 eval "$as_ac_var=yes"
8337 echo "$as_me: failed program was:" >&5
8338 sed 's/^/| /' conftest.$ac_ext >&5
8340 eval "$as_ac_var=no"
8343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8344 conftest$ac_exeext conftest.$ac_ext
8346 ac_res=`eval echo '${'$as_ac_var'}'`
8347 { echo "$as_me:$LINENO: result: $ac_res" >&5
8348 echo "${ECHO_T}$ac_res" >&6; }
8349 if test `eval echo '${'$as_ac_var'}'` = yes; then
8350 cat >>confdefs.h <<_ACEOF
8351 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8359 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
8360 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
8361 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
8362 echo $ECHO_N "(cached) $ECHO_C" >&6
8364 cat >conftest.$ac_ext <<_ACEOF
8367 cat confdefs.h >>conftest.$ac_ext
8368 cat >>conftest.$ac_ext <<_ACEOF
8369 /* end confdefs.h. */
8375 #ifndef feof_unlocked
8376 char *p = (char *) feof_unlocked;
8383 rm -f conftest.$ac_objext
8384 if { (ac_try="$ac_compile"
8386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8387 *) ac_try_echo=$ac_try;;
8389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8390 (eval "$ac_compile") 2>conftest.er1
8392 grep -v '^ *+' conftest.er1 >conftest.err
8394 cat conftest.err >&5
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); } && {
8397 test -z "$ac_c_werror_flag" ||
8398 test ! -s conftest.err
8399 } && test -s conftest.$ac_objext; then
8400 ac_cv_have_decl_feof_unlocked=yes
8402 echo "$as_me: failed program was:" >&5
8403 sed 's/^/| /' conftest.$ac_ext >&5
8405 ac_cv_have_decl_feof_unlocked=no
8408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8410 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
8411 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
8412 if test $ac_cv_have_decl_feof_unlocked = yes; then
8418 cat >>confdefs.h <<_ACEOF
8419 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
8424 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
8425 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
8426 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
8427 echo $ECHO_N "(cached) $ECHO_C" >&6
8429 cat >conftest.$ac_ext <<_ACEOF
8432 cat confdefs.h >>conftest.$ac_ext
8433 cat >>conftest.$ac_ext <<_ACEOF
8434 /* end confdefs.h. */
8440 #ifndef fgets_unlocked
8441 char *p = (char *) fgets_unlocked;
8448 rm -f conftest.$ac_objext
8449 if { (ac_try="$ac_compile"
8451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8452 *) ac_try_echo=$ac_try;;
8454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8455 (eval "$ac_compile") 2>conftest.er1
8457 grep -v '^ *+' conftest.er1 >conftest.err
8459 cat conftest.err >&5
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); } && {
8462 test -z "$ac_c_werror_flag" ||
8463 test ! -s conftest.err
8464 } && test -s conftest.$ac_objext; then
8465 ac_cv_have_decl_fgets_unlocked=yes
8467 echo "$as_me: failed program was:" >&5
8468 sed 's/^/| /' conftest.$ac_ext >&5
8470 ac_cv_have_decl_fgets_unlocked=no
8473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8475 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
8476 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
8477 if test $ac_cv_have_decl_fgets_unlocked = yes; then
8483 cat >>confdefs.h <<_ACEOF
8484 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
8494 am_save_CPPFLAGS="$CPPFLAGS"
8496 for element in $INCICONV; do
8498 for x in $CPPFLAGS; do
8500 acl_save_prefix="$prefix"
8501 prefix="$acl_final_prefix"
8502 acl_save_exec_prefix="$exec_prefix"
8503 exec_prefix="$acl_final_exec_prefix"
8505 exec_prefix="$acl_save_exec_prefix"
8506 prefix="$acl_save_prefix"
8508 if test "X$x" = "X$element"; then
8513 if test -z "$haveit"; then
8514 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8519 { echo "$as_me:$LINENO: checking for iconv" >&5
8520 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
8521 if test "${am_cv_func_iconv+set}" = set; then
8522 echo $ECHO_N "(cached) $ECHO_C" >&6
8525 am_cv_func_iconv="no, consider installing GNU libiconv"
8527 cat >conftest.$ac_ext <<_ACEOF
8530 cat confdefs.h >>conftest.$ac_ext
8531 cat >>conftest.$ac_ext <<_ACEOF
8532 /* end confdefs.h. */
8538 iconv_t cd = iconv_open("","");
8539 iconv(cd,NULL,NULL,NULL,NULL);
8545 rm -f conftest.$ac_objext conftest$ac_exeext
8546 if { (ac_try="$ac_link"
8548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8549 *) ac_try_echo=$ac_try;;
8551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8552 (eval "$ac_link") 2>conftest.er1
8554 grep -v '^ *+' conftest.er1 >conftest.err
8556 cat conftest.err >&5
8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); } && {
8559 test -z "$ac_c_werror_flag" ||
8560 test ! -s conftest.err
8561 } && test -s conftest$ac_exeext &&
8562 $as_test_x conftest$ac_exeext; then
8563 am_cv_func_iconv=yes
8565 echo "$as_me: failed program was:" >&5
8566 sed 's/^/| /' conftest.$ac_ext >&5
8571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8572 conftest$ac_exeext conftest.$ac_ext
8573 if test "$am_cv_func_iconv" != yes; then
8574 am_save_LIBS="$LIBS"
8575 LIBS="$LIBS $LIBICONV"
8576 cat >conftest.$ac_ext <<_ACEOF
8579 cat confdefs.h >>conftest.$ac_ext
8580 cat >>conftest.$ac_ext <<_ACEOF
8581 /* end confdefs.h. */
8587 iconv_t cd = iconv_open("","");
8588 iconv(cd,NULL,NULL,NULL,NULL);
8594 rm -f conftest.$ac_objext conftest$ac_exeext
8595 if { (ac_try="$ac_link"
8597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8598 *) ac_try_echo=$ac_try;;
8600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8601 (eval "$ac_link") 2>conftest.er1
8603 grep -v '^ *+' conftest.er1 >conftest.err
8605 cat conftest.err >&5
8606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607 (exit $ac_status); } && {
8608 test -z "$ac_c_werror_flag" ||
8609 test ! -s conftest.err
8610 } && test -s conftest$ac_exeext &&
8611 $as_test_x conftest$ac_exeext; then
8613 am_cv_func_iconv=yes
8615 echo "$as_me: failed program was:" >&5
8616 sed 's/^/| /' conftest.$ac_ext >&5
8621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8622 conftest$ac_exeext conftest.$ac_ext
8623 LIBS="$am_save_LIBS"
8627 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8628 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
8629 if test "$am_cv_func_iconv" = yes; then
8631 cat >>confdefs.h <<\_ACEOF
8632 #define HAVE_ICONV 1
8636 if test "$am_cv_lib_iconv" = yes; then
8637 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
8638 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
8639 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
8640 echo "${ECHO_T}$LIBICONV" >&6; }
8642 CPPFLAGS="$am_save_CPPFLAGS"
8649 if test "$am_cv_func_iconv" = yes; then
8650 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
8651 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
8652 if test "${am_cv_proto_iconv+set}" = set; then
8653 echo $ECHO_N "(cached) $ECHO_C" >&6
8656 cat >conftest.$ac_ext <<_ACEOF
8659 cat confdefs.h >>conftest.$ac_ext
8660 cat >>conftest.$ac_ext <<_ACEOF
8661 /* end confdefs.h. */
8669 #if defined(__STDC__) || defined(__cplusplus)
8670 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8683 rm -f conftest.$ac_objext
8684 if { (ac_try="$ac_compile"
8686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8687 *) ac_try_echo=$ac_try;;
8689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8690 (eval "$ac_compile") 2>conftest.er1
8692 grep -v '^ *+' conftest.er1 >conftest.err
8694 cat conftest.err >&5
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); } && {
8697 test -z "$ac_c_werror_flag" ||
8698 test ! -s conftest.err
8699 } && test -s conftest.$ac_objext; then
8700 am_cv_proto_iconv_arg1=""
8702 echo "$as_me: failed program was:" >&5
8703 sed 's/^/| /' conftest.$ac_ext >&5
8705 am_cv_proto_iconv_arg1="const"
8708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8709 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
8712 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8713 { echo "$as_me:$LINENO: result: ${ac_t:-
8714 }$am_cv_proto_iconv" >&5
8715 echo "${ECHO_T}${ac_t:-
8716 }$am_cv_proto_iconv" >&6; }
8718 cat >>confdefs.h <<_ACEOF
8719 #define ICONV_CONST $am_cv_proto_iconv_arg1
8725 { echo "$as_me:$LINENO: checking for NL_LOCALE_NAME macro" >&5
8726 echo $ECHO_N "checking for NL_LOCALE_NAME macro... $ECHO_C" >&6; }
8727 if test "${gt_cv_nl_locale_name+set}" = set; then
8728 echo $ECHO_N "(cached) $ECHO_C" >&6
8730 cat >conftest.$ac_ext <<_ACEOF
8733 cat confdefs.h >>conftest.$ac_ext
8734 cat >>conftest.$ac_ext <<_ACEOF
8735 /* end confdefs.h. */
8736 #include <langinfo.h>
8741 char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
8746 rm -f conftest.$ac_objext conftest$ac_exeext
8747 if { (ac_try="$ac_link"
8749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8750 *) ac_try_echo=$ac_try;;
8752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8753 (eval "$ac_link") 2>conftest.er1
8755 grep -v '^ *+' conftest.er1 >conftest.err
8757 cat conftest.err >&5
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); } && {
8760 test -z "$ac_c_werror_flag" ||
8761 test ! -s conftest.err
8762 } && test -s conftest$ac_exeext &&
8763 $as_test_x conftest$ac_exeext; then
8764 gt_cv_nl_locale_name=yes
8766 echo "$as_me: failed program was:" >&5
8767 sed 's/^/| /' conftest.$ac_ext >&5
8769 gt_cv_nl_locale_name=no
8772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8773 conftest$ac_exeext conftest.$ac_ext
8776 { echo "$as_me:$LINENO: result: $gt_cv_nl_locale_name" >&5
8777 echo "${ECHO_T}$gt_cv_nl_locale_name" >&6; }
8778 if test $gt_cv_nl_locale_name = yes; then
8780 cat >>confdefs.h <<\_ACEOF
8781 #define HAVE_NL_LOCALE_NAME 1
8786 for ac_prog in bison
8788 # Extract the first word of "$ac_prog", so it can be a program name with args.
8789 set dummy $ac_prog; ac_word=$2
8790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8792 if test "${ac_cv_prog_INTLBISON+set}" = set; then
8793 echo $ECHO_N "(cached) $ECHO_C" >&6
8795 if test -n "$INTLBISON"; then
8796 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8802 test -z "$as_dir" && as_dir=.
8803 for ac_exec_ext in '' $ac_executable_extensions; do
8804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8805 ac_cv_prog_INTLBISON="$ac_prog"
8806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8815 INTLBISON=$ac_cv_prog_INTLBISON
8816 if test -n "$INTLBISON"; then
8817 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
8818 echo "${ECHO_T}$INTLBISON" >&6; }
8820 { echo "$as_me:$LINENO: result: no" >&5
8821 echo "${ECHO_T}no" >&6; }
8825 test -n "$INTLBISON" && break
8828 if test -z "$INTLBISON"; then
8831 { echo "$as_me:$LINENO: checking version of bison" >&5
8832 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
8833 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8834 case $ac_prog_version in
8835 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8836 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8837 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8838 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8840 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
8841 echo "${ECHO_T}$ac_prog_version" >&6; }
8843 if test $ac_verc_fail = yes; then
8848 { echo "$as_me:$LINENO: checking for long long int" >&5
8849 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
8850 if test "${ac_cv_type_long_long_int+set}" = set; then
8851 echo $ECHO_N "(cached) $ECHO_C" >&6
8853 cat >conftest.$ac_ext <<_ACEOF
8856 cat confdefs.h >>conftest.$ac_ext
8857 cat >>conftest.$ac_ext <<_ACEOF
8858 /* end confdefs.h. */
8859 long long int ll = 9223372036854775807ll;
8860 long long int nll = -9223372036854775807LL;
8861 typedef int a[((-9223372036854775807LL < 0
8862 && 0 < 9223372036854775807ll)
8868 long long int llmax = 9223372036854775807ll;
8869 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
8870 | (llmax / ll) | (llmax % ll));
8875 rm -f conftest.$ac_objext conftest$ac_exeext
8876 if { (ac_try="$ac_link"
8878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8879 *) ac_try_echo=$ac_try;;
8881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8882 (eval "$ac_link") 2>conftest.er1
8884 grep -v '^ *+' conftest.er1 >conftest.err
8886 cat conftest.err >&5
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 (exit $ac_status); } && {
8889 test -z "$ac_c_werror_flag" ||
8890 test ! -s conftest.err
8891 } && test -s conftest$ac_exeext &&
8892 $as_test_x conftest$ac_exeext; then
8893 ac_cv_type_long_long_int=yes
8895 echo "$as_me: failed program was:" >&5
8896 sed 's/^/| /' conftest.$ac_ext >&5
8898 ac_cv_type_long_long_int=no
8901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8902 conftest$ac_exeext conftest.$ac_ext
8904 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
8905 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
8906 if test $ac_cv_type_long_long_int = yes; then
8908 cat >>confdefs.h <<\_ACEOF
8909 #define HAVE_LONG_LONG_INT 1
8915 { echo "$as_me:$LINENO: checking for long double" >&5
8916 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
8917 if test "${gt_cv_c_long_double+set}" = set; then
8918 echo $ECHO_N "(cached) $ECHO_C" >&6
8920 if test "$GCC" = yes; then
8921 gt_cv_c_long_double=yes
8923 cat >conftest.$ac_ext <<_ACEOF
8926 cat confdefs.h >>conftest.$ac_ext
8927 cat >>conftest.$ac_ext <<_ACEOF
8928 /* end confdefs.h. */
8930 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
8931 long double foo = 0.0;
8932 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
8933 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8943 rm -f conftest.$ac_objext
8944 if { (ac_try="$ac_compile"
8946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8947 *) ac_try_echo=$ac_try;;
8949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8950 (eval "$ac_compile") 2>conftest.er1
8952 grep -v '^ *+' conftest.er1 >conftest.err
8954 cat conftest.err >&5
8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956 (exit $ac_status); } && {
8957 test -z "$ac_c_werror_flag" ||
8958 test ! -s conftest.err
8959 } && test -s conftest.$ac_objext; then
8960 gt_cv_c_long_double=yes
8962 echo "$as_me: failed program was:" >&5
8963 sed 's/^/| /' conftest.$ac_ext >&5
8965 gt_cv_c_long_double=no
8968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8971 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
8972 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
8973 if test $gt_cv_c_long_double = yes; then
8975 cat >>confdefs.h <<\_ACEOF
8976 #define HAVE_LONG_DOUBLE 1
8982 { echo "$as_me:$LINENO: checking for wchar_t" >&5
8983 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
8984 if test "${gt_cv_c_wchar_t+set}" = set; then
8985 echo $ECHO_N "(cached) $ECHO_C" >&6
8987 cat >conftest.$ac_ext <<_ACEOF
8990 cat confdefs.h >>conftest.$ac_ext
8991 cat >>conftest.$ac_ext <<_ACEOF
8992 /* end confdefs.h. */
8994 wchar_t foo = (wchar_t)'\0';
9003 rm -f conftest.$ac_objext
9004 if { (ac_try="$ac_compile"
9006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9007 *) ac_try_echo=$ac_try;;
9009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9010 (eval "$ac_compile") 2>conftest.er1
9012 grep -v '^ *+' conftest.er1 >conftest.err
9014 cat conftest.err >&5
9015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016 (exit $ac_status); } && {
9017 test -z "$ac_c_werror_flag" ||
9018 test ! -s conftest.err
9019 } && test -s conftest.$ac_objext; then
9022 echo "$as_me: failed program was:" >&5
9023 sed 's/^/| /' conftest.$ac_ext >&5
9028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9030 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
9031 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
9032 if test $gt_cv_c_wchar_t = yes; then
9034 cat >>confdefs.h <<\_ACEOF
9035 #define HAVE_WCHAR_T 1
9041 { echo "$as_me:$LINENO: checking for wint_t" >&5
9042 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
9043 if test "${gt_cv_c_wint_t+set}" = set; then
9044 echo $ECHO_N "(cached) $ECHO_C" >&6
9046 cat >conftest.$ac_ext <<_ACEOF
9049 cat confdefs.h >>conftest.$ac_ext
9050 cat >>conftest.$ac_ext <<_ACEOF
9051 /* end confdefs.h. */
9053 wint_t foo = (wchar_t)'\0';
9062 rm -f conftest.$ac_objext
9063 if { (ac_try="$ac_compile"
9065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9066 *) ac_try_echo=$ac_try;;
9068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9069 (eval "$ac_compile") 2>conftest.er1
9071 grep -v '^ *+' conftest.er1 >conftest.err
9073 cat conftest.err >&5
9074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075 (exit $ac_status); } && {
9076 test -z "$ac_c_werror_flag" ||
9077 test ! -s conftest.err
9078 } && test -s conftest.$ac_objext; then
9081 echo "$as_me: failed program was:" >&5
9082 sed 's/^/| /' conftest.$ac_ext >&5
9087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9089 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
9090 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
9091 if test $gt_cv_c_wint_t = yes; then
9093 cat >>confdefs.h <<\_ACEOF
9094 #define HAVE_WINT_T 1
9100 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
9101 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
9102 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
9103 echo $ECHO_N "(cached) $ECHO_C" >&6
9105 cat >conftest.$ac_ext <<_ACEOF
9108 cat confdefs.h >>conftest.$ac_ext
9109 cat >>conftest.$ac_ext <<_ACEOF
9110 /* end confdefs.h. */
9111 #include <sys/types.h>
9112 #include <inttypes.h>
9116 uintmax_t i = (uintmax_t) -1;
9121 rm -f conftest.$ac_objext
9122 if { (ac_try="$ac_compile"
9124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9125 *) ac_try_echo=$ac_try;;
9127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9128 (eval "$ac_compile") 2>conftest.er1
9130 grep -v '^ *+' conftest.er1 >conftest.err
9132 cat conftest.err >&5
9133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134 (exit $ac_status); } && {
9135 test -z "$ac_c_werror_flag" ||
9136 test ! -s conftest.err
9137 } && test -s conftest.$ac_objext; then
9138 jm_ac_cv_header_inttypes_h=yes
9140 echo "$as_me: failed program was:" >&5
9141 sed 's/^/| /' conftest.$ac_ext >&5
9143 jm_ac_cv_header_inttypes_h=no
9146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9148 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
9149 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
9150 if test $jm_ac_cv_header_inttypes_h = yes; then
9152 cat >>confdefs.h <<_ACEOF
9153 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
9159 { echo "$as_me:$LINENO: checking for stdint.h" >&5
9160 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
9161 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
9162 echo $ECHO_N "(cached) $ECHO_C" >&6
9164 cat >conftest.$ac_ext <<_ACEOF
9167 cat confdefs.h >>conftest.$ac_ext
9168 cat >>conftest.$ac_ext <<_ACEOF
9169 /* end confdefs.h. */
9170 #include <sys/types.h>
9175 uintmax_t i = (uintmax_t) -1;
9180 rm -f conftest.$ac_objext
9181 if { (ac_try="$ac_compile"
9183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9184 *) ac_try_echo=$ac_try;;
9186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9187 (eval "$ac_compile") 2>conftest.er1
9189 grep -v '^ *+' conftest.er1 >conftest.err
9191 cat conftest.err >&5
9192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193 (exit $ac_status); } && {
9194 test -z "$ac_c_werror_flag" ||
9195 test ! -s conftest.err
9196 } && test -s conftest.$ac_objext; then
9197 jm_ac_cv_header_stdint_h=yes
9199 echo "$as_me: failed program was:" >&5
9200 sed 's/^/| /' conftest.$ac_ext >&5
9202 jm_ac_cv_header_stdint_h=no
9205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9207 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
9208 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
9209 if test $jm_ac_cv_header_stdint_h = yes; then
9211 cat >>confdefs.h <<_ACEOF
9212 #define HAVE_STDINT_H_WITH_UINTMAX 1
9220 { echo "$as_me:$LINENO: checking for intmax_t" >&5
9221 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
9222 if test "${gt_cv_c_intmax_t+set}" = set; then
9223 echo $ECHO_N "(cached) $ECHO_C" >&6
9225 cat >conftest.$ac_ext <<_ACEOF
9228 cat confdefs.h >>conftest.$ac_ext
9229 cat >>conftest.$ac_ext <<_ACEOF
9230 /* end confdefs.h. */
9234 #if HAVE_STDINT_H_WITH_UINTMAX
9237 #if HAVE_INTTYPES_H_WITH_UINTMAX
9238 #include <inttypes.h>
9249 rm -f conftest.$ac_objext
9250 if { (ac_try="$ac_compile"
9252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9253 *) ac_try_echo=$ac_try;;
9255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9256 (eval "$ac_compile") 2>conftest.er1
9258 grep -v '^ *+' conftest.er1 >conftest.err
9260 cat conftest.err >&5
9261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262 (exit $ac_status); } && {
9263 test -z "$ac_c_werror_flag" ||
9264 test ! -s conftest.err
9265 } && test -s conftest.$ac_objext; then
9266 gt_cv_c_intmax_t=yes
9268 echo "$as_me: failed program was:" >&5
9269 sed 's/^/| /' conftest.$ac_ext >&5
9274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9276 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
9277 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
9278 if test $gt_cv_c_intmax_t = yes; then
9280 cat >>confdefs.h <<\_ACEOF
9281 #define HAVE_INTMAX_T 1
9288 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
9289 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
9290 if test "${gt_cv_func_printf_posix+set}" = set; then
9291 echo $ECHO_N "(cached) $ECHO_C" >&6
9294 if test "$cross_compiling" = yes; then
9296 cat >conftest.$ac_ext <<_ACEOF
9299 cat confdefs.h >>conftest.$ac_ext
9300 cat >>conftest.$ac_ext <<_ACEOF
9301 /* end confdefs.h. */
9303 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9309 $EGREP "notposix" >/dev/null 2>&1; then
9310 gt_cv_func_printf_posix="guessing no"
9312 gt_cv_func_printf_posix="guessing yes"
9318 cat >conftest.$ac_ext <<_ACEOF
9321 cat confdefs.h >>conftest.$ac_ext
9322 cat >>conftest.$ac_ext <<_ACEOF
9323 /* end confdefs.h. */
9327 /* The string "%2$d %1$d", with dollar characters protected from the shell's
9328 dollar expansion (possibly an autoconf bug). */
9329 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9330 static char buf[100];
9333 sprintf (buf, format, 33, 55);
9334 return (strcmp (buf, "55 33") != 0);
9337 rm -f conftest$ac_exeext
9338 if { (ac_try="$ac_link"
9340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9341 *) ac_try_echo=$ac_try;;
9343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9344 (eval "$ac_link") 2>&5
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9348 { (case "(($ac_try" in
9349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9350 *) ac_try_echo=$ac_try;;
9352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9353 (eval "$ac_try") 2>&5
9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356 (exit $ac_status); }; }; then
9357 gt_cv_func_printf_posix=yes
9359 echo "$as_me: program exited with status $ac_status" >&5
9360 echo "$as_me: failed program was:" >&5
9361 sed 's/^/| /' conftest.$ac_ext >&5
9364 gt_cv_func_printf_posix=no
9366 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9372 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
9373 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
9374 case $gt_cv_func_printf_posix in
9377 cat >>confdefs.h <<\_ACEOF
9378 #define HAVE_POSIX_PRINTF 1
9385 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
9386 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
9387 if test "${ac_cv_gnu_library_2_1+set}" = set; then
9388 echo $ECHO_N "(cached) $ECHO_C" >&6
9390 cat >conftest.$ac_ext <<_ACEOF
9393 cat confdefs.h >>conftest.$ac_ext
9394 cat >>conftest.$ac_ext <<_ACEOF
9395 /* end confdefs.h. */
9397 #include <features.h>
9398 #ifdef __GNU_LIBRARY__
9399 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9406 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
9407 ac_cv_gnu_library_2_1=yes
9409 ac_cv_gnu_library_2_1=no
9416 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
9417 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
9419 GLIBC21="$ac_cv_gnu_library_2_1"
9424 for ac_header in stdint.h
9426 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9428 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9431 echo $ECHO_N "(cached) $ECHO_C" >&6
9433 ac_res=`eval echo '${'$as_ac_Header'}'`
9434 { echo "$as_me:$LINENO: result: $ac_res" >&5
9435 echo "${ECHO_T}$ac_res" >&6; }
9437 # Is the header compilable?
9438 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9439 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9440 cat >conftest.$ac_ext <<_ACEOF
9443 cat confdefs.h >>conftest.$ac_ext
9444 cat >>conftest.$ac_ext <<_ACEOF
9445 /* end confdefs.h. */
9446 $ac_includes_default
9447 #include <$ac_header>
9449 rm -f conftest.$ac_objext
9450 if { (ac_try="$ac_compile"
9452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9453 *) ac_try_echo=$ac_try;;
9455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9456 (eval "$ac_compile") 2>conftest.er1
9458 grep -v '^ *+' conftest.er1 >conftest.err
9460 cat conftest.err >&5
9461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462 (exit $ac_status); } && {
9463 test -z "$ac_c_werror_flag" ||
9464 test ! -s conftest.err
9465 } && test -s conftest.$ac_objext; then
9466 ac_header_compiler=yes
9468 echo "$as_me: failed program was:" >&5
9469 sed 's/^/| /' conftest.$ac_ext >&5
9471 ac_header_compiler=no
9474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9475 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9476 echo "${ECHO_T}$ac_header_compiler" >&6; }
9478 # Is the header present?
9479 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9480 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9481 cat >conftest.$ac_ext <<_ACEOF
9484 cat confdefs.h >>conftest.$ac_ext
9485 cat >>conftest.$ac_ext <<_ACEOF
9486 /* end confdefs.h. */
9487 #include <$ac_header>
9489 if { (ac_try="$ac_cpp conftest.$ac_ext"
9491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9492 *) ac_try_echo=$ac_try;;
9494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9497 grep -v '^ *+' conftest.er1 >conftest.err
9499 cat conftest.err >&5
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); } >/dev/null && {
9502 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9503 test ! -s conftest.err
9505 ac_header_preproc=yes
9507 echo "$as_me: failed program was:" >&5
9508 sed 's/^/| /' conftest.$ac_ext >&5
9510 ac_header_preproc=no
9513 rm -f conftest.err conftest.$ac_ext
9514 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9515 echo "${ECHO_T}$ac_header_preproc" >&6; }
9517 # So? What about this header?
9518 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9520 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9521 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9522 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9523 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9524 ac_header_preproc=yes
9527 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9528 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9529 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9530 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9531 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9532 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9533 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9534 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9535 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9536 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9537 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9538 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9540 ## -------------------------------------- ##
9541 ## Report this to choe.hwanjing@gmail.com ##
9542 ## -------------------------------------- ##
9544 ) | sed "s/^/$as_me: WARNING: /" >&2
9547 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9550 echo $ECHO_N "(cached) $ECHO_C" >&6
9552 eval "$as_ac_Header=\$ac_header_preproc"
9554 ac_res=`eval echo '${'$as_ac_Header'}'`
9555 { echo "$as_me:$LINENO: result: $ac_res" >&5
9556 echo "${ECHO_T}$ac_res" >&6; }
9559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9560 cat >>confdefs.h <<_ACEOF
9561 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9568 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
9569 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
9571 cat >conftest.$ac_ext <<_ACEOF
9574 cat confdefs.h >>conftest.$ac_ext
9575 cat >>conftest.$ac_ext <<_ACEOF
9576 /* end confdefs.h. */
9587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9588 $EGREP "Found it" >/dev/null 2>&1; then
9593 if test -z "$result"; then
9594 if test "$cross_compiling" = yes; then
9595 # Depending upon the size, compute the lo and hi bounds.
9596 cat >conftest.$ac_ext <<_ACEOF
9599 cat confdefs.h >>conftest.$ac_ext
9600 cat >>conftest.$ac_ext <<_ACEOF
9601 /* end confdefs.h. */
9606 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
9613 rm -f conftest.$ac_objext
9614 if { (ac_try="$ac_compile"
9616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9617 *) ac_try_echo=$ac_try;;
9619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9620 (eval "$ac_compile") 2>conftest.er1
9622 grep -v '^ *+' conftest.er1 >conftest.err
9624 cat conftest.err >&5
9625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626 (exit $ac_status); } && {
9627 test -z "$ac_c_werror_flag" ||
9628 test ! -s conftest.err
9629 } && test -s conftest.$ac_objext; then
9632 cat >conftest.$ac_ext <<_ACEOF
9635 cat confdefs.h >>conftest.$ac_ext
9636 cat >>conftest.$ac_ext <<_ACEOF
9637 /* end confdefs.h. */
9642 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9649 rm -f conftest.$ac_objext
9650 if { (ac_try="$ac_compile"
9652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9653 *) ac_try_echo=$ac_try;;
9655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9656 (eval "$ac_compile") 2>conftest.er1
9658 grep -v '^ *+' conftest.er1 >conftest.err
9660 cat conftest.err >&5
9661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662 (exit $ac_status); } && {
9663 test -z "$ac_c_werror_flag" ||
9664 test ! -s conftest.err
9665 } && test -s conftest.$ac_objext; then
9666 ac_hi=$ac_mid; break
9668 echo "$as_me: failed program was:" >&5
9669 sed 's/^/| /' conftest.$ac_ext >&5
9671 ac_lo=`expr $ac_mid + 1`
9672 if test $ac_lo -le $ac_mid; then
9676 ac_mid=`expr 2 '*' $ac_mid + 1`
9679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9682 echo "$as_me: failed program was:" >&5
9683 sed 's/^/| /' conftest.$ac_ext >&5
9685 cat >conftest.$ac_ext <<_ACEOF
9688 cat confdefs.h >>conftest.$ac_ext
9689 cat >>conftest.$ac_ext <<_ACEOF
9690 /* end confdefs.h. */
9695 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
9702 rm -f conftest.$ac_objext
9703 if { (ac_try="$ac_compile"
9705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9706 *) ac_try_echo=$ac_try;;
9708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9709 (eval "$ac_compile") 2>conftest.er1
9711 grep -v '^ *+' conftest.er1 >conftest.err
9713 cat conftest.err >&5
9714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715 (exit $ac_status); } && {
9716 test -z "$ac_c_werror_flag" ||
9717 test ! -s conftest.err
9718 } && test -s conftest.$ac_objext; then
9721 cat >conftest.$ac_ext <<_ACEOF
9724 cat confdefs.h >>conftest.$ac_ext
9725 cat >>conftest.$ac_ext <<_ACEOF
9726 /* end confdefs.h. */
9731 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
9738 rm -f conftest.$ac_objext
9739 if { (ac_try="$ac_compile"
9741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9742 *) ac_try_echo=$ac_try;;
9744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9745 (eval "$ac_compile") 2>conftest.er1
9747 grep -v '^ *+' conftest.er1 >conftest.err
9749 cat conftest.err >&5
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); } && {
9752 test -z "$ac_c_werror_flag" ||
9753 test ! -s conftest.err
9754 } && test -s conftest.$ac_objext; then
9755 ac_lo=$ac_mid; break
9757 echo "$as_me: failed program was:" >&5
9758 sed 's/^/| /' conftest.$ac_ext >&5
9760 ac_hi=`expr '(' $ac_mid ')' - 1`
9761 if test $ac_mid -le $ac_hi; then
9765 ac_mid=`expr 2 '*' $ac_mid`
9768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9771 echo "$as_me: failed program was:" >&5
9772 sed 's/^/| /' conftest.$ac_ext >&5
9777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9781 # Binary search between lo and hi bounds.
9782 while test "x$ac_lo" != "x$ac_hi"; do
9783 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9784 cat >conftest.$ac_ext <<_ACEOF
9787 cat confdefs.h >>conftest.$ac_ext
9788 cat >>conftest.$ac_ext <<_ACEOF
9789 /* end confdefs.h. */
9794 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9801 rm -f conftest.$ac_objext
9802 if { (ac_try="$ac_compile"
9804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9805 *) ac_try_echo=$ac_try;;
9807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9808 (eval "$ac_compile") 2>conftest.er1
9810 grep -v '^ *+' conftest.er1 >conftest.err
9812 cat conftest.err >&5
9813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814 (exit $ac_status); } && {
9815 test -z "$ac_c_werror_flag" ||
9816 test ! -s conftest.err
9817 } && test -s conftest.$ac_objext; then
9820 echo "$as_me: failed program was:" >&5
9821 sed 's/^/| /' conftest.$ac_ext >&5
9823 ac_lo=`expr '(' $ac_mid ')' + 1`
9826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9833 cat >conftest.$ac_ext <<_ACEOF
9836 cat confdefs.h >>conftest.$ac_ext
9837 cat >>conftest.$ac_ext <<_ACEOF
9838 /* end confdefs.h. */
9840 static long int longval () { return ~(size_t)0 / 10; }
9841 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
9848 FILE *f = fopen ("conftest.val", "w");
9851 if ((~(size_t)0 / 10) < 0)
9853 long int i = longval ();
9854 if (i != (~(size_t)0 / 10))
9856 fprintf (f, "%ld\n", i);
9860 unsigned long int i = ulongval ();
9861 if (i != (~(size_t)0 / 10))
9863 fprintf (f, "%lu\n", i);
9865 return ferror (f) || fclose (f) != 0;
9871 rm -f conftest$ac_exeext
9872 if { (ac_try="$ac_link"
9874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9875 *) ac_try_echo=$ac_try;;
9877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9878 (eval "$ac_link") 2>&5
9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9882 { (case "(($ac_try" in
9883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9884 *) ac_try_echo=$ac_try;;
9886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9887 (eval "$ac_try") 2>&5
9889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890 (exit $ac_status); }; }; then
9891 res_hi=`cat conftest.val`
9893 echo "$as_me: program exited with status $ac_status" >&5
9894 echo "$as_me: failed program was:" >&5
9895 sed 's/^/| /' conftest.$ac_ext >&5
9900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9904 if test "$cross_compiling" = yes; then
9905 # Depending upon the size, compute the lo and hi bounds.
9906 cat >conftest.$ac_ext <<_ACEOF
9909 cat confdefs.h >>conftest.$ac_ext
9910 cat >>conftest.$ac_ext <<_ACEOF
9911 /* end confdefs.h. */
9916 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
9923 rm -f conftest.$ac_objext
9924 if { (ac_try="$ac_compile"
9926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9927 *) ac_try_echo=$ac_try;;
9929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9930 (eval "$ac_compile") 2>conftest.er1
9932 grep -v '^ *+' conftest.er1 >conftest.err
9934 cat conftest.err >&5
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); } && {
9937 test -z "$ac_c_werror_flag" ||
9938 test ! -s conftest.err
9939 } && test -s conftest.$ac_objext; then
9942 cat >conftest.$ac_ext <<_ACEOF
9945 cat confdefs.h >>conftest.$ac_ext
9946 cat >>conftest.$ac_ext <<_ACEOF
9947 /* end confdefs.h. */
9952 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
9959 rm -f conftest.$ac_objext
9960 if { (ac_try="$ac_compile"
9962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9963 *) ac_try_echo=$ac_try;;
9965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9966 (eval "$ac_compile") 2>conftest.er1
9968 grep -v '^ *+' conftest.er1 >conftest.err
9970 cat conftest.err >&5
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); } && {
9973 test -z "$ac_c_werror_flag" ||
9974 test ! -s conftest.err
9975 } && test -s conftest.$ac_objext; then
9976 ac_hi=$ac_mid; break
9978 echo "$as_me: failed program was:" >&5
9979 sed 's/^/| /' conftest.$ac_ext >&5
9981 ac_lo=`expr $ac_mid + 1`
9982 if test $ac_lo -le $ac_mid; then
9986 ac_mid=`expr 2 '*' $ac_mid + 1`
9989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9992 echo "$as_me: failed program was:" >&5
9993 sed 's/^/| /' conftest.$ac_ext >&5
9995 cat >conftest.$ac_ext <<_ACEOF
9998 cat confdefs.h >>conftest.$ac_ext
9999 cat >>conftest.$ac_ext <<_ACEOF
10000 /* end confdefs.h. */
10001 #include <stddef.h>
10005 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
10012 rm -f conftest.$ac_objext
10013 if { (ac_try="$ac_compile"
10014 case "(($ac_try" in
10015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10016 *) ac_try_echo=$ac_try;;
10018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10019 (eval "$ac_compile") 2>conftest.er1
10021 grep -v '^ *+' conftest.er1 >conftest.err
10023 cat conftest.err >&5
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); } && {
10026 test -z "$ac_c_werror_flag" ||
10027 test ! -s conftest.err
10028 } && test -s conftest.$ac_objext; then
10031 cat >conftest.$ac_ext <<_ACEOF
10034 cat confdefs.h >>conftest.$ac_ext
10035 cat >>conftest.$ac_ext <<_ACEOF
10036 /* end confdefs.h. */
10037 #include <stddef.h>
10041 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
10048 rm -f conftest.$ac_objext
10049 if { (ac_try="$ac_compile"
10050 case "(($ac_try" in
10051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10052 *) ac_try_echo=$ac_try;;
10054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10055 (eval "$ac_compile") 2>conftest.er1
10057 grep -v '^ *+' conftest.er1 >conftest.err
10059 cat conftest.err >&5
10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 (exit $ac_status); } && {
10062 test -z "$ac_c_werror_flag" ||
10063 test ! -s conftest.err
10064 } && test -s conftest.$ac_objext; then
10065 ac_lo=$ac_mid; break
10067 echo "$as_me: failed program was:" >&5
10068 sed 's/^/| /' conftest.$ac_ext >&5
10070 ac_hi=`expr '(' $ac_mid ')' - 1`
10071 if test $ac_mid -le $ac_hi; then
10075 ac_mid=`expr 2 '*' $ac_mid`
10078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10081 echo "$as_me: failed program was:" >&5
10082 sed 's/^/| /' conftest.$ac_ext >&5
10087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10091 # Binary search between lo and hi bounds.
10092 while test "x$ac_lo" != "x$ac_hi"; do
10093 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10094 cat >conftest.$ac_ext <<_ACEOF
10097 cat confdefs.h >>conftest.$ac_ext
10098 cat >>conftest.$ac_ext <<_ACEOF
10099 /* end confdefs.h. */
10100 #include <stddef.h>
10104 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10111 rm -f conftest.$ac_objext
10112 if { (ac_try="$ac_compile"
10113 case "(($ac_try" in
10114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10115 *) ac_try_echo=$ac_try;;
10117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10118 (eval "$ac_compile") 2>conftest.er1
10120 grep -v '^ *+' conftest.er1 >conftest.err
10122 cat conftest.err >&5
10123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10124 (exit $ac_status); } && {
10125 test -z "$ac_c_werror_flag" ||
10126 test ! -s conftest.err
10127 } && test -s conftest.$ac_objext; then
10130 echo "$as_me: failed program was:" >&5
10131 sed 's/^/| /' conftest.$ac_ext >&5
10133 ac_lo=`expr '(' $ac_mid ')' + 1`
10136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10139 ?*) res_lo=$ac_lo;;
10143 cat >conftest.$ac_ext <<_ACEOF
10146 cat confdefs.h >>conftest.$ac_ext
10147 cat >>conftest.$ac_ext <<_ACEOF
10148 /* end confdefs.h. */
10149 #include <stddef.h>
10150 static long int longval () { return ~(size_t)0 % 10; }
10151 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
10153 #include <stdlib.h>
10158 FILE *f = fopen ("conftest.val", "w");
10161 if ((~(size_t)0 % 10) < 0)
10163 long int i = longval ();
10164 if (i != (~(size_t)0 % 10))
10166 fprintf (f, "%ld\n", i);
10170 unsigned long int i = ulongval ();
10171 if (i != (~(size_t)0 % 10))
10173 fprintf (f, "%lu\n", i);
10175 return ferror (f) || fclose (f) != 0;
10181 rm -f conftest$ac_exeext
10182 if { (ac_try="$ac_link"
10183 case "(($ac_try" in
10184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10185 *) ac_try_echo=$ac_try;;
10187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10188 (eval "$ac_link") 2>&5
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10192 { (case "(($ac_try" in
10193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10194 *) ac_try_echo=$ac_try;;
10196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10197 (eval "$ac_try") 2>&5
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); }; }; then
10201 res_lo=`cat conftest.val`
10203 echo "$as_me: program exited with status $ac_status" >&5
10204 echo "$as_me: failed program was:" >&5
10205 sed 's/^/| /' conftest.$ac_ext >&5
10207 ( exit $ac_status )
10210 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10214 if test "$cross_compiling" = yes; then
10215 # Depending upon the size, compute the lo and hi bounds.
10216 cat >conftest.$ac_ext <<_ACEOF
10219 cat confdefs.h >>conftest.$ac_ext
10220 cat >>conftest.$ac_ext <<_ACEOF
10221 /* end confdefs.h. */
10222 #include <stddef.h>
10226 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10233 rm -f conftest.$ac_objext
10234 if { (ac_try="$ac_compile"
10235 case "(($ac_try" in
10236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10237 *) ac_try_echo=$ac_try;;
10239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10240 (eval "$ac_compile") 2>conftest.er1
10242 grep -v '^ *+' conftest.er1 >conftest.err
10244 cat conftest.err >&5
10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); } && {
10247 test -z "$ac_c_werror_flag" ||
10248 test ! -s conftest.err
10249 } && test -s conftest.$ac_objext; then
10252 cat >conftest.$ac_ext <<_ACEOF
10255 cat confdefs.h >>conftest.$ac_ext
10256 cat >>conftest.$ac_ext <<_ACEOF
10257 /* end confdefs.h. */
10258 #include <stddef.h>
10262 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10269 rm -f conftest.$ac_objext
10270 if { (ac_try="$ac_compile"
10271 case "(($ac_try" in
10272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10273 *) ac_try_echo=$ac_try;;
10275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10276 (eval "$ac_compile") 2>conftest.er1
10278 grep -v '^ *+' conftest.er1 >conftest.err
10280 cat conftest.err >&5
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); } && {
10283 test -z "$ac_c_werror_flag" ||
10284 test ! -s conftest.err
10285 } && test -s conftest.$ac_objext; then
10286 ac_hi=$ac_mid; break
10288 echo "$as_me: failed program was:" >&5
10289 sed 's/^/| /' conftest.$ac_ext >&5
10291 ac_lo=`expr $ac_mid + 1`
10292 if test $ac_lo -le $ac_mid; then
10296 ac_mid=`expr 2 '*' $ac_mid + 1`
10299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10302 echo "$as_me: failed program was:" >&5
10303 sed 's/^/| /' conftest.$ac_ext >&5
10305 cat >conftest.$ac_ext <<_ACEOF
10308 cat confdefs.h >>conftest.$ac_ext
10309 cat >>conftest.$ac_ext <<_ACEOF
10310 /* end confdefs.h. */
10311 #include <stddef.h>
10315 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10322 rm -f conftest.$ac_objext
10323 if { (ac_try="$ac_compile"
10324 case "(($ac_try" in
10325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10326 *) ac_try_echo=$ac_try;;
10328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10329 (eval "$ac_compile") 2>conftest.er1
10331 grep -v '^ *+' conftest.er1 >conftest.err
10333 cat conftest.err >&5
10334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335 (exit $ac_status); } && {
10336 test -z "$ac_c_werror_flag" ||
10337 test ! -s conftest.err
10338 } && test -s conftest.$ac_objext; then
10341 cat >conftest.$ac_ext <<_ACEOF
10344 cat confdefs.h >>conftest.$ac_ext
10345 cat >>conftest.$ac_ext <<_ACEOF
10346 /* end confdefs.h. */
10347 #include <stddef.h>
10351 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
10358 rm -f conftest.$ac_objext
10359 if { (ac_try="$ac_compile"
10360 case "(($ac_try" in
10361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10362 *) ac_try_echo=$ac_try;;
10364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10365 (eval "$ac_compile") 2>conftest.er1
10367 grep -v '^ *+' conftest.er1 >conftest.err
10369 cat conftest.err >&5
10370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371 (exit $ac_status); } && {
10372 test -z "$ac_c_werror_flag" ||
10373 test ! -s conftest.err
10374 } && test -s conftest.$ac_objext; then
10375 ac_lo=$ac_mid; break
10377 echo "$as_me: failed program was:" >&5
10378 sed 's/^/| /' conftest.$ac_ext >&5
10380 ac_hi=`expr '(' $ac_mid ')' - 1`
10381 if test $ac_mid -le $ac_hi; then
10385 ac_mid=`expr 2 '*' $ac_mid`
10388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10391 echo "$as_me: failed program was:" >&5
10392 sed 's/^/| /' conftest.$ac_ext >&5
10397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10401 # Binary search between lo and hi bounds.
10402 while test "x$ac_lo" != "x$ac_hi"; do
10403 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10404 cat >conftest.$ac_ext <<_ACEOF
10407 cat confdefs.h >>conftest.$ac_ext
10408 cat >>conftest.$ac_ext <<_ACEOF
10409 /* end confdefs.h. */
10410 #include <stddef.h>
10414 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10421 rm -f conftest.$ac_objext
10422 if { (ac_try="$ac_compile"
10423 case "(($ac_try" in
10424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10425 *) ac_try_echo=$ac_try;;
10427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10428 (eval "$ac_compile") 2>conftest.er1
10430 grep -v '^ *+' conftest.er1 >conftest.err
10432 cat conftest.err >&5
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); } && {
10435 test -z "$ac_c_werror_flag" ||
10436 test ! -s conftest.err
10437 } && test -s conftest.$ac_objext; then
10440 echo "$as_me: failed program was:" >&5
10441 sed 's/^/| /' conftest.$ac_ext >&5
10443 ac_lo=`expr '(' $ac_mid ')' + 1`
10446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10449 ?*) fits_in_uint=$ac_lo;;
10453 cat >conftest.$ac_ext <<_ACEOF
10456 cat confdefs.h >>conftest.$ac_ext
10457 cat >>conftest.$ac_ext <<_ACEOF
10458 /* end confdefs.h. */
10459 #include <stddef.h>
10460 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
10461 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
10463 #include <stdlib.h>
10468 FILE *f = fopen ("conftest.val", "w");
10471 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
10473 long int i = longval ();
10474 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10476 fprintf (f, "%ld\n", i);
10480 unsigned long int i = ulongval ();
10481 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10483 fprintf (f, "%lu\n", i);
10485 return ferror (f) || fclose (f) != 0;
10491 rm -f conftest$ac_exeext
10492 if { (ac_try="$ac_link"
10493 case "(($ac_try" in
10494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10495 *) ac_try_echo=$ac_try;;
10497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10498 (eval "$ac_link") 2>&5
10500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10502 { (case "(($ac_try" in
10503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10504 *) ac_try_echo=$ac_try;;
10506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10507 (eval "$ac_try") 2>&5
10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510 (exit $ac_status); }; }; then
10511 fits_in_uint=`cat conftest.val`
10513 echo "$as_me: program exited with status $ac_status" >&5
10514 echo "$as_me: failed program was:" >&5
10515 sed 's/^/| /' conftest.$ac_ext >&5
10517 ( exit $ac_status )
10520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10524 if test "$fits_in_uint" = 1; then
10525 cat >conftest.$ac_ext <<_ACEOF
10528 cat confdefs.h >>conftest.$ac_ext
10529 cat >>conftest.$ac_ext <<_ACEOF
10530 /* end confdefs.h. */
10531 #include <stddef.h>
10533 extern unsigned long foo;
10543 rm -f conftest.$ac_objext
10544 if { (ac_try="$ac_compile"
10545 case "(($ac_try" in
10546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10547 *) ac_try_echo=$ac_try;;
10549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10550 (eval "$ac_compile") 2>conftest.er1
10552 grep -v '^ *+' conftest.er1 >conftest.err
10554 cat conftest.err >&5
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); } && {
10557 test -z "$ac_c_werror_flag" ||
10558 test ! -s conftest.err
10559 } && test -s conftest.$ac_objext; then
10562 echo "$as_me: failed program was:" >&5
10563 sed 's/^/| /' conftest.$ac_ext >&5
10568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10570 if test -z "$result"; then
10571 if test "$fits_in_uint" = 1; then
10572 result="$res_hi$res_lo"U
10574 result="$res_hi$res_lo"UL
10577 result='~(size_t)0'
10580 { echo "$as_me:$LINENO: result: $result" >&5
10581 echo "${ECHO_T}$result" >&6; }
10582 if test "$result" != yes; then
10584 cat >>confdefs.h <<_ACEOF
10585 #define SIZE_MAX $result
10593 for ac_header in stdint.h
10595 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10600 echo $ECHO_N "(cached) $ECHO_C" >&6
10602 ac_res=`eval echo '${'$as_ac_Header'}'`
10603 { echo "$as_me:$LINENO: result: $ac_res" >&5
10604 echo "${ECHO_T}$ac_res" >&6; }
10606 # Is the header compilable?
10607 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10608 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10609 cat >conftest.$ac_ext <<_ACEOF
10612 cat confdefs.h >>conftest.$ac_ext
10613 cat >>conftest.$ac_ext <<_ACEOF
10614 /* end confdefs.h. */
10615 $ac_includes_default
10616 #include <$ac_header>
10618 rm -f conftest.$ac_objext
10619 if { (ac_try="$ac_compile"
10620 case "(($ac_try" in
10621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10622 *) ac_try_echo=$ac_try;;
10624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10625 (eval "$ac_compile") 2>conftest.er1
10627 grep -v '^ *+' conftest.er1 >conftest.err
10629 cat conftest.err >&5
10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); } && {
10632 test -z "$ac_c_werror_flag" ||
10633 test ! -s conftest.err
10634 } && test -s conftest.$ac_objext; then
10635 ac_header_compiler=yes
10637 echo "$as_me: failed program was:" >&5
10638 sed 's/^/| /' conftest.$ac_ext >&5
10640 ac_header_compiler=no
10643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10644 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10645 echo "${ECHO_T}$ac_header_compiler" >&6; }
10647 # Is the header present?
10648 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10649 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10650 cat >conftest.$ac_ext <<_ACEOF
10653 cat confdefs.h >>conftest.$ac_ext
10654 cat >>conftest.$ac_ext <<_ACEOF
10655 /* end confdefs.h. */
10656 #include <$ac_header>
10658 if { (ac_try="$ac_cpp conftest.$ac_ext"
10659 case "(($ac_try" in
10660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10661 *) ac_try_echo=$ac_try;;
10663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10666 grep -v '^ *+' conftest.er1 >conftest.err
10668 cat conftest.err >&5
10669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670 (exit $ac_status); } >/dev/null && {
10671 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10672 test ! -s conftest.err
10674 ac_header_preproc=yes
10676 echo "$as_me: failed program was:" >&5
10677 sed 's/^/| /' conftest.$ac_ext >&5
10679 ac_header_preproc=no
10682 rm -f conftest.err conftest.$ac_ext
10683 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10684 echo "${ECHO_T}$ac_header_preproc" >&6; }
10686 # So? What about this header?
10687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10689 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10690 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10692 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10693 ac_header_preproc=yes
10696 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10697 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10698 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10699 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10700 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10701 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10702 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10703 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10705 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10706 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10707 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10709 ## -------------------------------------- ##
10710 ## Report this to choe.hwanjing@gmail.com ##
10711 ## -------------------------------------- ##
10713 ) | sed "s/^/$as_me: WARNING: /" >&2
10716 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10719 echo $ECHO_N "(cached) $ECHO_C" >&6
10721 eval "$as_ac_Header=\$ac_header_preproc"
10723 ac_res=`eval echo '${'$as_ac_Header'}'`
10724 { echo "$as_me:$LINENO: result: $ac_res" >&5
10725 echo "${ECHO_T}$ac_res" >&6; }
10728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10729 cat >>confdefs.h <<_ACEOF
10730 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10739 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
10740 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
10741 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
10742 echo $ECHO_N "(cached) $ECHO_C" >&6
10744 gt_save_LIBS="$LIBS"
10745 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10746 cat >conftest.$ac_ext <<_ACEOF
10749 cat confdefs.h >>conftest.$ac_ext
10750 cat >>conftest.$ac_ext <<_ACEOF
10751 /* end confdefs.h. */
10752 #include <CoreFoundation/CFPreferences.h>
10756 CFPreferencesCopyAppValue(NULL, NULL)
10761 rm -f conftest.$ac_objext conftest$ac_exeext
10762 if { (ac_try="$ac_link"
10763 case "(($ac_try" in
10764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10765 *) ac_try_echo=$ac_try;;
10767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10768 (eval "$ac_link") 2>conftest.er1
10770 grep -v '^ *+' conftest.er1 >conftest.err
10772 cat conftest.err >&5
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); } && {
10775 test -z "$ac_c_werror_flag" ||
10776 test ! -s conftest.err
10777 } && test -s conftest$ac_exeext &&
10778 $as_test_x conftest$ac_exeext; then
10779 gt_cv_func_CFPreferencesCopyAppValue=yes
10781 echo "$as_me: failed program was:" >&5
10782 sed 's/^/| /' conftest.$ac_ext >&5
10784 gt_cv_func_CFPreferencesCopyAppValue=no
10787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10788 conftest$ac_exeext conftest.$ac_ext
10789 LIBS="$gt_save_LIBS"
10791 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10792 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10793 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10795 cat >>confdefs.h <<\_ACEOF
10796 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
10800 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
10801 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
10802 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
10803 echo $ECHO_N "(cached) $ECHO_C" >&6
10805 gt_save_LIBS="$LIBS"
10806 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10807 cat >conftest.$ac_ext <<_ACEOF
10810 cat confdefs.h >>conftest.$ac_ext
10811 cat >>conftest.$ac_ext <<_ACEOF
10812 /* end confdefs.h. */
10813 #include <CoreFoundation/CFLocale.h>
10817 CFLocaleCopyCurrent();
10822 rm -f conftest.$ac_objext conftest$ac_exeext
10823 if { (ac_try="$ac_link"
10824 case "(($ac_try" in
10825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10826 *) ac_try_echo=$ac_try;;
10828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10829 (eval "$ac_link") 2>conftest.er1
10831 grep -v '^ *+' conftest.er1 >conftest.err
10833 cat conftest.err >&5
10834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835 (exit $ac_status); } && {
10836 test -z "$ac_c_werror_flag" ||
10837 test ! -s conftest.err
10838 } && test -s conftest$ac_exeext &&
10839 $as_test_x conftest$ac_exeext; then
10840 gt_cv_func_CFLocaleCopyCurrent=yes
10842 echo "$as_me: failed program was:" >&5
10843 sed 's/^/| /' conftest.$ac_ext >&5
10845 gt_cv_func_CFLocaleCopyCurrent=no
10848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10849 conftest$ac_exeext conftest.$ac_ext
10850 LIBS="$gt_save_LIBS"
10852 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10853 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10854 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10856 cat >>confdefs.h <<\_ACEOF
10857 #define HAVE_CFLOCALECOPYCURRENT 1
10862 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10863 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10872 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10873 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
10874 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10875 echo $ECHO_N "(cached) $ECHO_C" >&6
10877 cat >conftest.$ac_ext <<_ACEOF
10880 cat confdefs.h >>conftest.$ac_ext
10881 cat >>conftest.$ac_ext <<_ACEOF
10882 /* end confdefs.h. */
10883 $ac_includes_default
10884 typedef ptrdiff_t ac__type_new_;
10888 if ((ac__type_new_ *) 0)
10890 if (sizeof (ac__type_new_))
10896 rm -f conftest.$ac_objext
10897 if { (ac_try="$ac_compile"
10898 case "(($ac_try" in
10899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10900 *) ac_try_echo=$ac_try;;
10902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10903 (eval "$ac_compile") 2>conftest.er1
10905 grep -v '^ *+' conftest.er1 >conftest.err
10907 cat conftest.err >&5
10908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909 (exit $ac_status); } && {
10910 test -z "$ac_c_werror_flag" ||
10911 test ! -s conftest.err
10912 } && test -s conftest.$ac_objext; then
10913 ac_cv_type_ptrdiff_t=yes
10915 echo "$as_me: failed program was:" >&5
10916 sed 's/^/| /' conftest.$ac_ext >&5
10918 ac_cv_type_ptrdiff_t=no
10921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10923 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10924 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
10925 if test $ac_cv_type_ptrdiff_t = yes; then
10929 cat >>confdefs.h <<\_ACEOF
10930 #define ptrdiff_t long
10939 for ac_header in stddef.h stdlib.h string.h
10941 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10943 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10946 echo $ECHO_N "(cached) $ECHO_C" >&6
10948 ac_res=`eval echo '${'$as_ac_Header'}'`
10949 { echo "$as_me:$LINENO: result: $ac_res" >&5
10950 echo "${ECHO_T}$ac_res" >&6; }
10952 # Is the header compilable?
10953 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10954 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10955 cat >conftest.$ac_ext <<_ACEOF
10958 cat confdefs.h >>conftest.$ac_ext
10959 cat >>conftest.$ac_ext <<_ACEOF
10960 /* end confdefs.h. */
10961 $ac_includes_default
10962 #include <$ac_header>
10964 rm -f conftest.$ac_objext
10965 if { (ac_try="$ac_compile"
10966 case "(($ac_try" in
10967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10968 *) ac_try_echo=$ac_try;;
10970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10971 (eval "$ac_compile") 2>conftest.er1
10973 grep -v '^ *+' conftest.er1 >conftest.err
10975 cat conftest.err >&5
10976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977 (exit $ac_status); } && {
10978 test -z "$ac_c_werror_flag" ||
10979 test ! -s conftest.err
10980 } && test -s conftest.$ac_objext; then
10981 ac_header_compiler=yes
10983 echo "$as_me: failed program was:" >&5
10984 sed 's/^/| /' conftest.$ac_ext >&5
10986 ac_header_compiler=no
10989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10990 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10991 echo "${ECHO_T}$ac_header_compiler" >&6; }
10993 # Is the header present?
10994 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10995 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10996 cat >conftest.$ac_ext <<_ACEOF
10999 cat confdefs.h >>conftest.$ac_ext
11000 cat >>conftest.$ac_ext <<_ACEOF
11001 /* end confdefs.h. */
11002 #include <$ac_header>
11004 if { (ac_try="$ac_cpp conftest.$ac_ext"
11005 case "(($ac_try" in
11006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11007 *) ac_try_echo=$ac_try;;
11009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11012 grep -v '^ *+' conftest.er1 >conftest.err
11014 cat conftest.err >&5
11015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016 (exit $ac_status); } >/dev/null && {
11017 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11018 test ! -s conftest.err
11020 ac_header_preproc=yes
11022 echo "$as_me: failed program was:" >&5
11023 sed 's/^/| /' conftest.$ac_ext >&5
11025 ac_header_preproc=no
11028 rm -f conftest.err conftest.$ac_ext
11029 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11030 echo "${ECHO_T}$ac_header_preproc" >&6; }
11032 # So? What about this header?
11033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11035 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11036 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11038 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11039 ac_header_preproc=yes
11042 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11043 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11044 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11045 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11046 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11047 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11048 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11049 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11052 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11053 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11055 ## -------------------------------------- ##
11056 ## Report this to choe.hwanjing@gmail.com ##
11057 ## -------------------------------------- ##
11059 ) | sed "s/^/$as_me: WARNING: /" >&2
11062 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11065 echo $ECHO_N "(cached) $ECHO_C" >&6
11067 eval "$as_ac_Header=\$ac_header_preproc"
11069 ac_res=`eval echo '${'$as_ac_Header'}'`
11070 { echo "$as_me:$LINENO: result: $ac_res" >&5
11071 echo "${ECHO_T}$ac_res" >&6; }
11074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11075 cat >>confdefs.h <<_ACEOF
11076 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11090 for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
11092 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11093 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11094 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11095 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11096 echo $ECHO_N "(cached) $ECHO_C" >&6
11098 cat >conftest.$ac_ext <<_ACEOF
11101 cat confdefs.h >>conftest.$ac_ext
11102 cat >>conftest.$ac_ext <<_ACEOF
11103 /* end confdefs.h. */
11104 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11105 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11106 #define $ac_func innocuous_$ac_func
11108 /* System header to define __stub macros and hopefully few prototypes,
11109 which can conflict with char $ac_func (); below.
11110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11111 <limits.h> exists even on freestanding compilers. */
11114 # include <limits.h>
11116 # include <assert.h>
11121 /* Override any GCC internal prototype to avoid an error.
11122 Use char because int might match the return type of a GCC
11123 builtin and then its argument prototype would still apply. */
11128 /* The GNU C library defines this for functions which it implements
11129 to always fail with ENOSYS. Some functions are actually named
11130 something starting with __ and the normal name is an alias. */
11131 #if defined __stub_$ac_func || defined __stub___$ac_func
11138 return $ac_func ();
11143 rm -f conftest.$ac_objext conftest$ac_exeext
11144 if { (ac_try="$ac_link"
11145 case "(($ac_try" in
11146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11147 *) ac_try_echo=$ac_try;;
11149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11150 (eval "$ac_link") 2>conftest.er1
11152 grep -v '^ *+' conftest.er1 >conftest.err
11154 cat conftest.err >&5
11155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156 (exit $ac_status); } && {
11157 test -z "$ac_c_werror_flag" ||
11158 test ! -s conftest.err
11159 } && test -s conftest$ac_exeext &&
11160 $as_test_x conftest$ac_exeext; then
11161 eval "$as_ac_var=yes"
11163 echo "$as_me: failed program was:" >&5
11164 sed 's/^/| /' conftest.$ac_ext >&5
11166 eval "$as_ac_var=no"
11169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11170 conftest$ac_exeext conftest.$ac_ext
11172 ac_res=`eval echo '${'$as_ac_var'}'`
11173 { echo "$as_me:$LINENO: result: $ac_res" >&5
11174 echo "${ECHO_T}$ac_res" >&6; }
11175 if test `eval echo '${'$as_ac_var'}'` = yes; then
11176 cat >>confdefs.h <<_ACEOF
11177 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11185 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
11186 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
11187 if test "${ac_cv_have_decl__snprintf+set}" = set; then
11188 echo $ECHO_N "(cached) $ECHO_C" >&6
11190 cat >conftest.$ac_ext <<_ACEOF
11193 cat confdefs.h >>conftest.$ac_ext
11194 cat >>conftest.$ac_ext <<_ACEOF
11195 /* end confdefs.h. */
11202 char *p = (char *) _snprintf;
11209 rm -f conftest.$ac_objext
11210 if { (ac_try="$ac_compile"
11211 case "(($ac_try" in
11212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11213 *) ac_try_echo=$ac_try;;
11215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11216 (eval "$ac_compile") 2>conftest.er1
11218 grep -v '^ *+' conftest.er1 >conftest.err
11220 cat conftest.err >&5
11221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11222 (exit $ac_status); } && {
11223 test -z "$ac_c_werror_flag" ||
11224 test ! -s conftest.err
11225 } && test -s conftest.$ac_objext; then
11226 ac_cv_have_decl__snprintf=yes
11228 echo "$as_me: failed program was:" >&5
11229 sed 's/^/| /' conftest.$ac_ext >&5
11231 ac_cv_have_decl__snprintf=no
11234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11236 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11237 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
11238 if test $ac_cv_have_decl__snprintf = yes; then
11244 cat >>confdefs.h <<_ACEOF
11245 #define HAVE_DECL__SNPRINTF $gt_value
11250 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11251 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
11252 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11253 echo $ECHO_N "(cached) $ECHO_C" >&6
11255 cat >conftest.$ac_ext <<_ACEOF
11258 cat confdefs.h >>conftest.$ac_ext
11259 cat >>conftest.$ac_ext <<_ACEOF
11260 /* end confdefs.h. */
11267 char *p = (char *) _snwprintf;
11274 rm -f conftest.$ac_objext
11275 if { (ac_try="$ac_compile"
11276 case "(($ac_try" in
11277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11278 *) ac_try_echo=$ac_try;;
11280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11281 (eval "$ac_compile") 2>conftest.er1
11283 grep -v '^ *+' conftest.er1 >conftest.err
11285 cat conftest.err >&5
11286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 (exit $ac_status); } && {
11288 test -z "$ac_c_werror_flag" ||
11289 test ! -s conftest.err
11290 } && test -s conftest.$ac_objext; then
11291 ac_cv_have_decl__snwprintf=yes
11293 echo "$as_me: failed program was:" >&5
11294 sed 's/^/| /' conftest.$ac_ext >&5
11296 ac_cv_have_decl__snwprintf=no
11299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11301 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11302 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
11303 if test $ac_cv_have_decl__snwprintf = yes; then
11309 cat >>confdefs.h <<_ACEOF
11310 #define HAVE_DECL__SNWPRINTF $gt_value
11316 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
11317 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
11318 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
11319 echo $ECHO_N "(cached) $ECHO_C" >&6
11321 cat >conftest.$ac_ext <<_ACEOF
11324 cat confdefs.h >>conftest.$ac_ext
11325 cat >>conftest.$ac_ext <<_ACEOF
11326 /* end confdefs.h. */
11332 #ifndef getc_unlocked
11333 char *p = (char *) getc_unlocked;
11340 rm -f conftest.$ac_objext
11341 if { (ac_try="$ac_compile"
11342 case "(($ac_try" in
11343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11344 *) ac_try_echo=$ac_try;;
11346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11347 (eval "$ac_compile") 2>conftest.er1
11349 grep -v '^ *+' conftest.er1 >conftest.err
11351 cat conftest.err >&5
11352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353 (exit $ac_status); } && {
11354 test -z "$ac_c_werror_flag" ||
11355 test ! -s conftest.err
11356 } && test -s conftest.$ac_objext; then
11357 ac_cv_have_decl_getc_unlocked=yes
11359 echo "$as_me: failed program was:" >&5
11360 sed 's/^/| /' conftest.$ac_ext >&5
11362 ac_cv_have_decl_getc_unlocked=no
11365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11367 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
11368 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
11369 if test $ac_cv_have_decl_getc_unlocked = yes; then
11375 cat >>confdefs.h <<_ACEOF
11376 #define HAVE_DECL_GETC_UNLOCKED $gt_value
11381 case $gt_cv_func_printf_posix in
11382 *yes) HAVE_POSIX_PRINTF=1 ;;
11383 *) HAVE_POSIX_PRINTF=0 ;;
11386 if test "$ac_cv_func_asprintf" = yes; then
11392 if test "$ac_cv_func_snprintf" = yes; then
11398 if test "$ac_cv_func_wprintf" = yes; then
11406 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11407 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
11408 if test "${am_cv_langinfo_codeset+set}" = set; then
11409 echo $ECHO_N "(cached) $ECHO_C" >&6
11411 cat >conftest.$ac_ext <<_ACEOF
11414 cat confdefs.h >>conftest.$ac_ext
11415 cat >>conftest.$ac_ext <<_ACEOF
11416 /* end confdefs.h. */
11417 #include <langinfo.h>
11421 char* cs = nl_langinfo(CODESET);
11426 rm -f conftest.$ac_objext conftest$ac_exeext
11427 if { (ac_try="$ac_link"
11428 case "(($ac_try" in
11429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11430 *) ac_try_echo=$ac_try;;
11432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11433 (eval "$ac_link") 2>conftest.er1
11435 grep -v '^ *+' conftest.er1 >conftest.err
11437 cat conftest.err >&5
11438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439 (exit $ac_status); } && {
11440 test -z "$ac_c_werror_flag" ||
11441 test ! -s conftest.err
11442 } && test -s conftest$ac_exeext &&
11443 $as_test_x conftest$ac_exeext; then
11444 am_cv_langinfo_codeset=yes
11446 echo "$as_me: failed program was:" >&5
11447 sed 's/^/| /' conftest.$ac_ext >&5
11449 am_cv_langinfo_codeset=no
11452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11453 conftest$ac_exeext conftest.$ac_ext
11456 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11457 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
11458 if test $am_cv_langinfo_codeset = yes; then
11460 cat >>confdefs.h <<\_ACEOF
11461 #define HAVE_LANGINFO_CODESET 1
11467 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11468 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
11469 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
11470 echo $ECHO_N "(cached) $ECHO_C" >&6
11472 cat >conftest.$ac_ext <<_ACEOF
11475 cat confdefs.h >>conftest.$ac_ext
11476 cat >>conftest.$ac_ext <<_ACEOF
11477 /* end confdefs.h. */
11478 #include <locale.h>
11487 rm -f conftest.$ac_objext conftest$ac_exeext
11488 if { (ac_try="$ac_link"
11489 case "(($ac_try" in
11490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11491 *) ac_try_echo=$ac_try;;
11493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11494 (eval "$ac_link") 2>conftest.er1
11496 grep -v '^ *+' conftest.er1 >conftest.err
11498 cat conftest.err >&5
11499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500 (exit $ac_status); } && {
11501 test -z "$ac_c_werror_flag" ||
11502 test ! -s conftest.err
11503 } && test -s conftest$ac_exeext &&
11504 $as_test_x conftest$ac_exeext; then
11505 gt_cv_val_LC_MESSAGES=yes
11507 echo "$as_me: failed program was:" >&5
11508 sed 's/^/| /' conftest.$ac_ext >&5
11510 gt_cv_val_LC_MESSAGES=no
11513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11514 conftest$ac_exeext conftest.$ac_ext
11516 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
11517 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
11518 if test $gt_cv_val_LC_MESSAGES = yes; then
11520 cat >>confdefs.h <<\_ACEOF
11521 #define HAVE_LC_MESSAGES 1
11527 if test "$enable_shared" = yes; then
11529 cygwin*) is_woe32dll=yes ;;
11530 *) is_woe32dll=no ;;
11535 WOE32DLL=$is_woe32dll
11556 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11557 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
11558 # Check whether --enable-nls was given.
11559 if test "${enable_nls+set}" = set; then
11560 enableval=$enable_nls; USE_NLS=$enableval
11565 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
11566 echo "${ECHO_T}$USE_NLS" >&6; }
11571 BUILD_INCLUDED_LIBINTL=no
11572 USE_INCLUDED_LIBINTL=no
11578 if test "$USE_NLS" = "yes"; then
11579 gt_use_preinstalled_gnugettext=no
11581 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
11582 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
11584 # Check whether --with-included-gettext was given.
11585 if test "${with_included_gettext+set}" = set; then
11586 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
11588 nls_cv_force_use_gnu_gettext=no
11591 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
11592 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
11594 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
11595 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
11602 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
11603 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
11604 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
11605 echo $ECHO_N "(cached) $ECHO_C" >&6
11607 cat >conftest.$ac_ext <<_ACEOF
11610 cat confdefs.h >>conftest.$ac_ext
11611 cat >>conftest.$ac_ext <<_ACEOF
11612 /* end confdefs.h. */
11613 #include <libintl.h>
11614 extern int _nl_msg_cat_cntr;
11615 extern int *_nl_domain_bindings;
11619 bindtextdomain ("", "");
11620 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
11625 rm -f conftest.$ac_objext conftest$ac_exeext
11626 if { (ac_try="$ac_link"
11627 case "(($ac_try" in
11628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11629 *) ac_try_echo=$ac_try;;
11631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11632 (eval "$ac_link") 2>conftest.er1
11634 grep -v '^ *+' conftest.er1 >conftest.err
11636 cat conftest.err >&5
11637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638 (exit $ac_status); } && {
11639 test -z "$ac_c_werror_flag" ||
11640 test ! -s conftest.err
11641 } && test -s conftest$ac_exeext &&
11642 $as_test_x conftest$ac_exeext; then
11643 gt_cv_func_gnugettext1_libc=yes
11645 echo "$as_me: failed program was:" >&5
11646 sed 's/^/| /' conftest.$ac_ext >&5
11648 gt_cv_func_gnugettext1_libc=no
11651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11652 conftest$ac_exeext conftest.$ac_ext
11654 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
11655 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
11657 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
11663 acl_save_prefix="$prefix"
11664 prefix="$acl_final_prefix"
11665 acl_save_exec_prefix="$exec_prefix"
11666 exec_prefix="$acl_final_exec_prefix"
11668 eval additional_includedir=\"$includedir\"
11669 eval additional_libdir=\"$libdir\"
11671 exec_prefix="$acl_save_exec_prefix"
11672 prefix="$acl_save_prefix"
11675 # Check whether --with-libintl-prefix was given.
11676 if test "${with_libintl_prefix+set}" = set; then
11677 withval=$with_libintl_prefix;
11678 if test "X$withval" = "Xno"; then
11681 if test "X$withval" = "X"; then
11683 acl_save_prefix="$prefix"
11684 prefix="$acl_final_prefix"
11685 acl_save_exec_prefix="$exec_prefix"
11686 exec_prefix="$acl_final_exec_prefix"
11688 eval additional_includedir=\"$includedir\"
11689 eval additional_libdir=\"$libdir\"
11691 exec_prefix="$acl_save_exec_prefix"
11692 prefix="$acl_save_prefix"
11695 additional_includedir="$withval/include"
11696 additional_libdir="$withval/lib"
11707 names_already_handled=
11708 names_next_round='intl '
11709 while test -n "$names_next_round"; do
11710 names_this_round="$names_next_round"
11712 for name in $names_this_round; do
11714 for n in $names_already_handled; do
11715 if test "$n" = "$name"; then
11716 already_handled=yes
11720 if test -z "$already_handled"; then
11721 names_already_handled="$names_already_handled $name"
11722 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11723 eval value=\"\$HAVE_LIB$uppername\"
11724 if test -n "$value"; then
11725 if test "$value" = yes; then
11726 eval value=\"\$LIB$uppername\"
11727 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
11728 eval value=\"\$LTLIB$uppername\"
11729 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
11738 if test $use_additional = yes; then
11739 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11740 found_dir="$additional_libdir"
11741 found_so="$additional_libdir/lib$name.$shlibext"
11742 if test -f "$additional_libdir/lib$name.la"; then
11743 found_la="$additional_libdir/lib$name.la"
11746 if test -f "$additional_libdir/lib$name.$libext"; then
11747 found_dir="$additional_libdir"
11748 found_a="$additional_libdir/lib$name.$libext"
11749 if test -f "$additional_libdir/lib$name.la"; then
11750 found_la="$additional_libdir/lib$name.la"
11755 if test "X$found_dir" = "X"; then
11756 for x in $LDFLAGS $LTLIBINTL; do
11758 acl_save_prefix="$prefix"
11759 prefix="$acl_final_prefix"
11760 acl_save_exec_prefix="$exec_prefix"
11761 exec_prefix="$acl_final_exec_prefix"
11763 exec_prefix="$acl_save_exec_prefix"
11764 prefix="$acl_save_prefix"
11768 dir=`echo "X$x" | sed -e 's/^X-L//'`
11769 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11771 found_so="$dir/lib$name.$shlibext"
11772 if test -f "$dir/lib$name.la"; then
11773 found_la="$dir/lib$name.la"
11776 if test -f "$dir/lib$name.$libext"; then
11778 found_a="$dir/lib$name.$libext"
11779 if test -f "$dir/lib$name.la"; then
11780 found_la="$dir/lib$name.la"
11786 if test "X$found_dir" != "X"; then
11791 if test "X$found_dir" != "X"; then
11792 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11793 if test "X$found_so" != "X"; then
11794 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11795 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11798 for x in $ltrpathdirs; do
11799 if test "X$x" = "X$found_dir"; then
11804 if test -z "$haveit"; then
11805 ltrpathdirs="$ltrpathdirs $found_dir"
11807 if test "$hardcode_direct" = yes; then
11808 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11810 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11811 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11813 for x in $rpathdirs; do
11814 if test "X$x" = "X$found_dir"; then
11819 if test -z "$haveit"; then
11820 rpathdirs="$rpathdirs $found_dir"
11824 for x in $LDFLAGS $LIBINTL; do
11826 acl_save_prefix="$prefix"
11827 prefix="$acl_final_prefix"
11828 acl_save_exec_prefix="$exec_prefix"
11829 exec_prefix="$acl_final_exec_prefix"
11831 exec_prefix="$acl_save_exec_prefix"
11832 prefix="$acl_save_prefix"
11834 if test "X$x" = "X-L$found_dir"; then
11839 if test -z "$haveit"; then
11840 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11842 if test "$hardcode_minus_L" != no; then
11843 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11845 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11851 if test "X$found_a" != "X"; then
11852 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11854 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11857 additional_includedir=
11858 case "$found_dir" in
11860 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11861 additional_includedir="$basedir/include"
11864 if test "X$additional_includedir" != "X"; then
11865 if test "X$additional_includedir" != "X/usr/include"; then
11867 if test "X$additional_includedir" = "X/usr/local/include"; then
11868 if test -n "$GCC"; then
11870 linux*) haveit=yes;;
11874 if test -z "$haveit"; then
11875 for x in $CPPFLAGS $INCINTL; do
11877 acl_save_prefix="$prefix"
11878 prefix="$acl_final_prefix"
11879 acl_save_exec_prefix="$exec_prefix"
11880 exec_prefix="$acl_final_exec_prefix"
11882 exec_prefix="$acl_save_exec_prefix"
11883 prefix="$acl_save_prefix"
11885 if test "X$x" = "X-I$additional_includedir"; then
11890 if test -z "$haveit"; then
11891 if test -d "$additional_includedir"; then
11892 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11898 if test -n "$found_la"; then
11899 save_libdir="$libdir"
11900 case "$found_la" in
11901 */* | *\\*) . "$found_la" ;;
11902 *) . "./$found_la" ;;
11904 libdir="$save_libdir"
11905 for dep in $dependency_libs; do
11908 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11909 if test "X$additional_libdir" != "X/usr/lib"; then
11911 if test "X$additional_libdir" = "X/usr/local/lib"; then
11912 if test -n "$GCC"; then
11914 linux*) haveit=yes;;
11918 if test -z "$haveit"; then
11920 for x in $LDFLAGS $LIBINTL; do
11922 acl_save_prefix="$prefix"
11923 prefix="$acl_final_prefix"
11924 acl_save_exec_prefix="$exec_prefix"
11925 exec_prefix="$acl_final_exec_prefix"
11927 exec_prefix="$acl_save_exec_prefix"
11928 prefix="$acl_save_prefix"
11930 if test "X$x" = "X-L$additional_libdir"; then
11935 if test -z "$haveit"; then
11936 if test -d "$additional_libdir"; then
11937 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11941 for x in $LDFLAGS $LTLIBINTL; do
11943 acl_save_prefix="$prefix"
11944 prefix="$acl_final_prefix"
11945 acl_save_exec_prefix="$exec_prefix"
11946 exec_prefix="$acl_final_exec_prefix"
11948 exec_prefix="$acl_save_exec_prefix"
11949 prefix="$acl_save_prefix"
11951 if test "X$x" = "X-L$additional_libdir"; then
11956 if test -z "$haveit"; then
11957 if test -d "$additional_libdir"; then
11958 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11965 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11966 if test "$enable_rpath" != no; then
11968 for x in $rpathdirs; do
11969 if test "X$x" = "X$dir"; then
11974 if test -z "$haveit"; then
11975 rpathdirs="$rpathdirs $dir"
11978 for x in $ltrpathdirs; do
11979 if test "X$x" = "X$dir"; then
11984 if test -z "$haveit"; then
11985 ltrpathdirs="$ltrpathdirs $dir"
11990 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11993 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11996 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11997 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
12003 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12004 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
12010 if test "X$rpathdirs" != "X"; then
12011 if test -n "$hardcode_libdir_separator"; then
12013 for found_dir in $rpathdirs; do
12014 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12016 acl_save_libdir="$libdir"
12018 eval flag=\"$hardcode_libdir_flag_spec\"
12019 libdir="$acl_save_libdir"
12020 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12022 for found_dir in $rpathdirs; do
12023 acl_save_libdir="$libdir"
12024 libdir="$found_dir"
12025 eval flag=\"$hardcode_libdir_flag_spec\"
12026 libdir="$acl_save_libdir"
12027 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12031 if test "X$ltrpathdirs" != "X"; then
12032 for found_dir in $ltrpathdirs; do
12033 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
12037 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
12038 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
12039 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
12040 echo $ECHO_N "(cached) $ECHO_C" >&6
12042 gt_save_CPPFLAGS="$CPPFLAGS"
12043 CPPFLAGS="$CPPFLAGS $INCINTL"
12044 gt_save_LIBS="$LIBS"
12045 LIBS="$LIBS $LIBINTL"
12046 cat >conftest.$ac_ext <<_ACEOF
12049 cat confdefs.h >>conftest.$ac_ext
12050 cat >>conftest.$ac_ext <<_ACEOF
12051 /* end confdefs.h. */
12052 #include <libintl.h>
12053 extern int _nl_msg_cat_cntr;
12058 const char *_nl_expand_alias ();
12062 bindtextdomain ("", "");
12063 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
12068 rm -f conftest.$ac_objext conftest$ac_exeext
12069 if { (ac_try="$ac_link"
12070 case "(($ac_try" in
12071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12072 *) ac_try_echo=$ac_try;;
12074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12075 (eval "$ac_link") 2>conftest.er1
12077 grep -v '^ *+' conftest.er1 >conftest.err
12079 cat conftest.err >&5
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); } && {
12082 test -z "$ac_c_werror_flag" ||
12083 test ! -s conftest.err
12084 } && test -s conftest$ac_exeext &&
12085 $as_test_x conftest$ac_exeext; then
12086 gt_cv_func_gnugettext1_libintl=yes
12088 echo "$as_me: failed program was:" >&5
12089 sed 's/^/| /' conftest.$ac_ext >&5
12091 gt_cv_func_gnugettext1_libintl=no
12094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12095 conftest$ac_exeext conftest.$ac_ext
12096 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
12097 LIBS="$LIBS $LIBICONV"
12098 cat >conftest.$ac_ext <<_ACEOF
12101 cat confdefs.h >>conftest.$ac_ext
12102 cat >>conftest.$ac_ext <<_ACEOF
12103 /* end confdefs.h. */
12104 #include <libintl.h>
12105 extern int _nl_msg_cat_cntr;
12110 const char *_nl_expand_alias ();
12114 bindtextdomain ("", "");
12115 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
12120 rm -f conftest.$ac_objext conftest$ac_exeext
12121 if { (ac_try="$ac_link"
12122 case "(($ac_try" in
12123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12124 *) ac_try_echo=$ac_try;;
12126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12127 (eval "$ac_link") 2>conftest.er1
12129 grep -v '^ *+' conftest.er1 >conftest.err
12131 cat conftest.err >&5
12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 (exit $ac_status); } && {
12134 test -z "$ac_c_werror_flag" ||
12135 test ! -s conftest.err
12136 } && test -s conftest$ac_exeext &&
12137 $as_test_x conftest$ac_exeext; then
12138 LIBINTL="$LIBINTL $LIBICONV"
12139 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
12140 gt_cv_func_gnugettext1_libintl=yes
12143 echo "$as_me: failed program was:" >&5
12144 sed 's/^/| /' conftest.$ac_ext >&5
12149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12150 conftest$ac_exeext conftest.$ac_ext
12152 CPPFLAGS="$gt_save_CPPFLAGS"
12153 LIBS="$gt_save_LIBS"
12155 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
12156 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
12159 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
12160 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
12161 && test "$PACKAGE" != gettext-runtime \
12162 && test "$PACKAGE" != gettext-tools; }; then
12163 gt_use_preinstalled_gnugettext=yes
12171 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
12172 nls_cv_use_gnu_gettext=yes
12176 if test "$nls_cv_use_gnu_gettext" = "yes"; then
12177 BUILD_INCLUDED_LIBINTL=yes
12178 USE_INCLUDED_LIBINTL=yes
12179 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
12180 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
12181 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
12184 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12185 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12190 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12191 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12193 cat >>confdefs.h <<\_ACEOF
12194 #define ENABLE_NLS 1
12202 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
12203 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
12204 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
12205 echo "${ECHO_T}$USE_NLS" >&6; }
12206 if test "$USE_NLS" = "yes"; then
12207 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
12208 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
12209 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12210 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12211 gt_source="external libintl"
12216 gt_source="included intl directory"
12218 { echo "$as_me:$LINENO: result: $gt_source" >&5
12219 echo "${ECHO_T}$gt_source" >&6; }
12222 if test "$USE_NLS" = "yes"; then
12224 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12225 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12226 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
12227 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
12228 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
12229 echo "${ECHO_T}$LIBINTL" >&6; }
12231 for element in $INCINTL; do
12233 for x in $CPPFLAGS; do
12235 acl_save_prefix="$prefix"
12236 prefix="$acl_final_prefix"
12237 acl_save_exec_prefix="$exec_prefix"
12238 exec_prefix="$acl_final_exec_prefix"
12240 exec_prefix="$acl_save_exec_prefix"
12241 prefix="$acl_save_prefix"
12243 if test "X$x" = "X$element"; then
12248 if test -z "$haveit"; then
12249 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12256 cat >>confdefs.h <<\_ACEOF
12257 #define HAVE_GETTEXT 1
12261 cat >>confdefs.h <<\_ACEOF
12262 #define HAVE_DCGETTEXT 1
12271 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
12272 BUILD_INCLUDED_LIBINTL=yes
12279 nls_cv_header_intl=
12280 nls_cv_header_libgt=
12291 if test "$USE_INCLUDED_LIBINTL" = yes; then
12292 INTLOBJS="\$(GETTOBJS)"
12296 INTL_LIBTOOL_SUFFIX_PREFIX=
12300 INTLLIBS="$LIBINTL"
12309 if test -n "$ac_aux_dir"; then
12310 case "$ac_aux_dir" in
12311 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12312 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12315 if test -z "$MKINSTALLDIRS"; then
12316 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12321 GETTEXT_PACKAGE=scim-hangul
12324 cat >>confdefs.h <<_ACEOF
12325 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
12330 # Check whether --enable-static was given.
12331 if test "${enable_static+set}" = set; then
12332 enableval=$enable_static; p=${PACKAGE-default}
12334 yes) enable_static=yes ;;
12335 no) enable_static=no ;;
12338 # Look at the argument we got. We use all the common list separators.
12339 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12340 for pkg in $enableval; do
12342 if test "X$pkg" = "X$p"; then
12357 # Check whether --enable-static was given.
12358 if test "${enable_static+set}" = set; then
12359 enableval=$enable_static; p=${PACKAGE-default}
12361 yes) enable_static=yes ;;
12362 no) enable_static=no ;;
12365 # Look at the argument we got. We use all the common list separators.
12366 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12367 for pkg in $enableval; do
12369 if test "X$pkg" = "X$p"; then
12382 # Check whether --enable-shared was given.
12383 if test "${enable_shared+set}" = set; then
12384 enableval=$enable_shared; p=${PACKAGE-default}
12386 yes) enable_shared=yes ;;
12387 no) enable_shared=no ;;
12390 # Look at the argument we got. We use all the common list separators.
12391 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12392 for pkg in $enableval; do
12394 if test "X$pkg" = "X$p"; then
12406 # Check whether --enable-fast-install was given.
12407 if test "${enable_fast_install+set}" = set; then
12408 enableval=$enable_fast_install; p=${PACKAGE-default}
12410 yes) enable_fast_install=yes ;;
12411 no) enable_fast_install=no ;;
12413 enable_fast_install=no
12414 # Look at the argument we got. We use all the common list separators.
12415 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12416 for pkg in $enableval; do
12418 if test "X$pkg" = "X$p"; then
12419 enable_fast_install=yes
12426 enable_fast_install=yes
12430 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12431 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12432 if test "${lt_cv_path_SED+set}" = set; then
12433 echo $ECHO_N "(cached) $ECHO_C" >&6
12435 # Loop through the user's path and test for sed and gsed.
12436 # Then use that list of sed's as ones to test for truncation.
12437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12438 for as_dir in $PATH
12441 test -z "$as_dir" && as_dir=.
12442 for lt_ac_prog in sed gsed; do
12443 for ac_exec_ext in '' $ac_executable_extensions; do
12444 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
12445 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12453 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12454 # along with /bin/sed that truncates output.
12455 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12456 test ! -f $lt_ac_sed && continue
12457 cat /dev/null > conftest.in
12459 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12460 # Check for GNU sed and select it if it is found.
12461 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12462 lt_cv_path_SED=$lt_ac_sed
12466 cat conftest.in conftest.in >conftest.tmp
12467 mv conftest.tmp conftest.in
12468 cp conftest.in conftest.nl
12470 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12471 cmp -s conftest.out conftest.nl || break
12472 # 10000 chars as input seems more than enough
12473 test $lt_ac_count -gt 10 && break
12474 lt_ac_count=`expr $lt_ac_count + 1`
12475 if test $lt_ac_count -gt $lt_ac_max; then
12476 lt_ac_max=$lt_ac_count
12477 lt_cv_path_SED=$lt_ac_sed
12484 SED=$lt_cv_path_SED
12486 { echo "$as_me:$LINENO: result: $SED" >&5
12487 echo "${ECHO_T}$SED" >&6; }
12490 # Check whether --with-gnu-ld was given.
12491 if test "${with_gnu_ld+set}" = set; then
12492 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12498 if test "$GCC" = yes; then
12499 # Check if gcc -print-prog-name=ld gives a path.
12500 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12501 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12504 # gcc leaves a trailing carriage return which upsets mingw
12505 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12507 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12510 # Accept absolute paths.
12512 re_direlt='/[^/][^/]*/\.\./'
12513 # Canonicalize the pathname of ld
12514 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12515 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12516 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12518 test -z "$LD" && LD="$ac_prog"
12521 # If it fails, then pretend we aren't using GCC.
12525 # If it is relative, then search for the first ld in PATH.
12526 with_gnu_ld=unknown
12529 elif test "$with_gnu_ld" = yes; then
12530 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12531 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12533 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12534 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12536 if test "${lt_cv_path_LD+set}" = set; then
12537 echo $ECHO_N "(cached) $ECHO_C" >&6
12539 if test -z "$LD"; then
12540 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12541 for ac_dir in $PATH; do
12543 test -z "$ac_dir" && ac_dir=.
12544 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12545 lt_cv_path_LD="$ac_dir/$ac_prog"
12546 # Check to see if the program is GNU ld. I'd rather use --version,
12547 # but apparently some variants of GNU ld only accept -v.
12548 # Break only if it was the GNU/non-GNU ld that we prefer.
12549 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12550 *GNU* | *'with BFD'*)
12551 test "$with_gnu_ld" != no && break
12554 test "$with_gnu_ld" != yes && break
12561 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12565 LD="$lt_cv_path_LD"
12566 if test -n "$LD"; then
12567 { echo "$as_me:$LINENO: result: $LD" >&5
12568 echo "${ECHO_T}$LD" >&6; }
12570 { echo "$as_me:$LINENO: result: no" >&5
12571 echo "${ECHO_T}no" >&6; }
12573 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12574 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12575 { (exit 1); exit 1; }; }
12576 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12577 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12578 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12579 echo $ECHO_N "(cached) $ECHO_C" >&6
12581 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12582 case `$LD -v 2>&1 </dev/null` in
12583 *GNU* | *'with BFD'*)
12584 lt_cv_prog_gnu_ld=yes
12587 lt_cv_prog_gnu_ld=no
12591 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12592 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12593 with_gnu_ld=$lt_cv_prog_gnu_ld
12596 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12597 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12598 if test "${lt_cv_ld_reload_flag+set}" = set; then
12599 echo $ECHO_N "(cached) $ECHO_C" >&6
12601 lt_cv_ld_reload_flag='-r'
12603 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12604 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12605 reload_flag=$lt_cv_ld_reload_flag
12606 case $reload_flag in
12608 *) reload_flag=" $reload_flag" ;;
12610 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12613 if test "$GCC" = yes; then
12614 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12616 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12621 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
12622 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
12623 if test "${lt_cv_path_NM+set}" = set; then
12624 echo $ECHO_N "(cached) $ECHO_C" >&6
12626 if test -n "$NM"; then
12627 # Let the user override the test.
12628 lt_cv_path_NM="$NM"
12630 lt_nm_to_check="${ac_tool_prefix}nm"
12631 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12632 lt_nm_to_check="$lt_nm_to_check nm"
12634 for lt_tmp_nm in $lt_nm_to_check; do
12635 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12636 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12638 test -z "$ac_dir" && ac_dir=.
12639 tmp_nm="$ac_dir/$lt_tmp_nm"
12640 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12641 # Check to see if the nm accepts a BSD-compat flag.
12642 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12643 # nm: unknown option "B" ignored
12644 # Tru64's nm complains that /dev/null is an invalid object file
12645 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12646 */dev/null* | *'Invalid file or object type'*)
12647 lt_cv_path_NM="$tmp_nm -B"
12651 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12653 lt_cv_path_NM="$tmp_nm -p"
12657 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12658 continue # so that we can try to find one that supports BSD flags
12667 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
12670 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
12671 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
12672 NM="$lt_cv_path_NM"
12674 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
12675 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
12677 if test "$LN_S" = "ln -s"; then
12678 { echo "$as_me:$LINENO: result: yes" >&5
12679 echo "${ECHO_T}yes" >&6; }
12681 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12682 echo "${ECHO_T}no, using $LN_S" >&6; }
12685 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
12686 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
12687 if test "${lt_cv_deplibs_check_method+set}" = set; then
12688 echo $ECHO_N "(cached) $ECHO_C" >&6
12690 lt_cv_file_magic_cmd='$MAGIC_CMD'
12691 lt_cv_file_magic_test_file=
12692 lt_cv_deplibs_check_method='unknown'
12693 # Need to set the preceding variable on all platforms that support
12694 # interlibrary dependencies.
12695 # 'none' -- dependencies not supported.
12696 # `unknown' -- same as none, but documents that we really don't know.
12697 # 'pass_all' -- all dependencies passed with no checks.
12698 # 'test_compile' -- check by making test program.
12699 # 'file_magic [[regex]]' -- check by looking for files in library path
12700 # which responds to the $file_magic_cmd with a given extended regex.
12701 # If you have `file' or equivalent on your system and you're not sure
12702 # whether `pass_all' will *always* work, you probably want this one.
12706 lt_cv_deplibs_check_method=pass_all
12710 lt_cv_deplibs_check_method=pass_all
12714 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12715 lt_cv_file_magic_cmd='/usr/bin/file -L'
12716 lt_cv_file_magic_test_file=/shlib/libc.so
12720 # func_win32_libid is a shell function defined in ltmain.sh
12721 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12722 lt_cv_file_magic_cmd='func_win32_libid'
12726 # Base MSYS/MinGW do not provide the 'file' command needed by
12727 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12728 # unless we find 'file', for example because we are cross-compiling.
12729 if ( file / ) >/dev/null 2>&1; then
12730 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12731 lt_cv_file_magic_cmd='func_win32_libid'
12733 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12734 lt_cv_file_magic_cmd='$OBJDUMP -f'
12738 darwin* | rhapsody*)
12739 lt_cv_deplibs_check_method=pass_all
12742 freebsd* | dragonfly*)
12743 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12746 # Not sure whether the presence of OpenBSD here was a mistake.
12747 # Let's accept both of them until this is cleared up.
12748 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12749 lt_cv_file_magic_cmd=/usr/bin/file
12750 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12754 lt_cv_deplibs_check_method=pass_all
12759 lt_cv_deplibs_check_method=pass_all
12762 hpux10.20* | hpux11*)
12763 lt_cv_file_magic_cmd=/usr/bin/file
12766 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12767 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12770 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]'
12771 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12774 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12775 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12781 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12782 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12785 irix5* | irix6* | nonstopux*)
12787 *-32|*"-32 ") libmagic=32-bit;;
12788 *-n32|*"-n32 ") libmagic=N32;;
12789 *-64|*"-64 ") libmagic=64-bit;;
12790 *) libmagic=never-match;;
12792 lt_cv_deplibs_check_method=pass_all
12795 # This must be Linux ELF.
12796 linux* | k*bsd*-gnu)
12797 lt_cv_deplibs_check_method=pass_all
12800 netbsd* | netbsdelf*-gnu)
12801 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12802 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12804 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12809 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12810 lt_cv_file_magic_cmd=/usr/bin/file
12811 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12815 lt_cv_deplibs_check_method=unknown
12819 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12820 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12822 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12826 osf3* | osf4* | osf5*)
12827 lt_cv_deplibs_check_method=pass_all
12831 lt_cv_deplibs_check_method=pass_all
12835 lt_cv_deplibs_check_method=pass_all
12839 case $host_vendor in
12841 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]'
12842 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12845 lt_cv_deplibs_check_method=pass_all
12848 lt_cv_file_magic_cmd='/bin/file'
12849 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12852 lt_cv_file_magic_cmd='/bin/file'
12853 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12854 lt_cv_file_magic_test_file=/lib/libc.so
12857 lt_cv_deplibs_check_method=pass_all
12860 lt_cv_deplibs_check_method=pass_all
12865 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12866 lt_cv_deplibs_check_method=pass_all
12871 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12872 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12873 file_magic_cmd=$lt_cv_file_magic_cmd
12874 deplibs_check_method=$lt_cv_deplibs_check_method
12875 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12880 # If no C compiler was specified, use CC.
12883 # If no C compiler flags were specified, use CFLAGS.
12884 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12886 # Allow CC to be a program name with arguments.
12889 # Check whether --enable-libtool-lock was given.
12890 if test "${enable_libtool_lock+set}" = set; then
12891 enableval=$enable_libtool_lock;
12894 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12896 # Some flags need to be propagated to the compiler or linker for good
12900 # Find out which ABI we are using.
12901 echo 'int i;' > conftest.$ac_ext
12902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12903 (eval $ac_compile) 2>&5
12905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906 (exit $ac_status); }; then
12907 case `/usr/bin/file conftest.$ac_objext` in
12909 HPUX_IA64_MODE="32"
12912 HPUX_IA64_MODE="64"
12919 # Find out which ABI we are using.
12920 echo '#line 12920 "configure"' > conftest.$ac_ext
12921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12922 (eval $ac_compile) 2>&5
12924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925 (exit $ac_status); }; then
12926 if test "$lt_cv_prog_gnu_ld" = yes; then
12927 case `/usr/bin/file conftest.$ac_objext` in
12929 LD="${LD-ld} -melf32bsmip"
12932 LD="${LD-ld} -melf32bmipn32"
12935 LD="${LD-ld} -melf64bmip"
12939 case `/usr/bin/file conftest.$ac_objext` in
12955 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12956 s390*-*linux*|sparc*-*linux*)
12957 # Find out which ABI we are using.
12958 echo 'int i;' > conftest.$ac_ext
12959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12960 (eval $ac_compile) 2>&5
12962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963 (exit $ac_status); }; then
12964 case `/usr/bin/file conftest.o` in
12967 x86_64-*kfreebsd*-gnu)
12968 LD="${LD-ld} -m elf_i386_fbsd"
12971 LD="${LD-ld} -m elf_i386"
12973 ppc64-*linux*|powerpc64-*linux*)
12974 LD="${LD-ld} -m elf32ppclinux"
12977 LD="${LD-ld} -m elf_s390"
12980 LD="${LD-ld} -m elf32_sparc"
12986 x86_64-*kfreebsd*-gnu)
12987 LD="${LD-ld} -m elf_x86_64_fbsd"
12990 LD="${LD-ld} -m elf_x86_64"
12992 ppc*-*linux*|powerpc*-*linux*)
12993 LD="${LD-ld} -m elf64ppc"
12996 LD="${LD-ld} -m elf64_s390"
12999 LD="${LD-ld} -m elf64_sparc"
13009 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13010 SAVE_CFLAGS="$CFLAGS"
13011 CFLAGS="$CFLAGS -belf"
13012 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13013 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
13014 if test "${lt_cv_cc_needs_belf+set}" = set; then
13015 echo $ECHO_N "(cached) $ECHO_C" >&6
13018 ac_cpp='$CPP $CPPFLAGS'
13019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13023 cat >conftest.$ac_ext <<_ACEOF
13026 cat confdefs.h >>conftest.$ac_ext
13027 cat >>conftest.$ac_ext <<_ACEOF
13028 /* end confdefs.h. */
13038 rm -f conftest.$ac_objext conftest$ac_exeext
13039 if { (ac_try="$ac_link"
13040 case "(($ac_try" in
13041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13042 *) ac_try_echo=$ac_try;;
13044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13045 (eval "$ac_link") 2>conftest.er1
13047 grep -v '^ *+' conftest.er1 >conftest.err
13049 cat conftest.err >&5
13050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051 (exit $ac_status); } && {
13052 test -z "$ac_c_werror_flag" ||
13053 test ! -s conftest.err
13054 } && test -s conftest$ac_exeext &&
13055 $as_test_x conftest$ac_exeext; then
13056 lt_cv_cc_needs_belf=yes
13058 echo "$as_me: failed program was:" >&5
13059 sed 's/^/| /' conftest.$ac_ext >&5
13061 lt_cv_cc_needs_belf=no
13064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13065 conftest$ac_exeext conftest.$ac_ext
13067 ac_cpp='$CPP $CPPFLAGS'
13068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13073 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13074 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
13075 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13076 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13077 CFLAGS="$SAVE_CFLAGS"
13081 # Find out which ABI we are using.
13082 echo 'int i;' > conftest.$ac_ext
13083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13084 (eval $ac_compile) 2>&5
13086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13087 (exit $ac_status); }; then
13088 case `/usr/bin/file conftest.o` in
13090 case $lt_cv_prog_gnu_ld in
13091 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13092 *) LD="${LD-ld} -64" ;;
13103 need_locks="$enable_libtool_lock"
13107 for ac_header in dlfcn.h
13109 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13111 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13114 echo $ECHO_N "(cached) $ECHO_C" >&6
13116 ac_res=`eval echo '${'$as_ac_Header'}'`
13117 { echo "$as_me:$LINENO: result: $ac_res" >&5
13118 echo "${ECHO_T}$ac_res" >&6; }
13120 # Is the header compilable?
13121 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13122 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13123 cat >conftest.$ac_ext <<_ACEOF
13126 cat confdefs.h >>conftest.$ac_ext
13127 cat >>conftest.$ac_ext <<_ACEOF
13128 /* end confdefs.h. */
13129 $ac_includes_default
13130 #include <$ac_header>
13132 rm -f conftest.$ac_objext
13133 if { (ac_try="$ac_compile"
13134 case "(($ac_try" in
13135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13136 *) ac_try_echo=$ac_try;;
13138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13139 (eval "$ac_compile") 2>conftest.er1
13141 grep -v '^ *+' conftest.er1 >conftest.err
13143 cat conftest.err >&5
13144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145 (exit $ac_status); } && {
13146 test -z "$ac_c_werror_flag" ||
13147 test ! -s conftest.err
13148 } && test -s conftest.$ac_objext; then
13149 ac_header_compiler=yes
13151 echo "$as_me: failed program was:" >&5
13152 sed 's/^/| /' conftest.$ac_ext >&5
13154 ac_header_compiler=no
13157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13158 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13159 echo "${ECHO_T}$ac_header_compiler" >&6; }
13161 # Is the header present?
13162 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13163 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13164 cat >conftest.$ac_ext <<_ACEOF
13167 cat confdefs.h >>conftest.$ac_ext
13168 cat >>conftest.$ac_ext <<_ACEOF
13169 /* end confdefs.h. */
13170 #include <$ac_header>
13172 if { (ac_try="$ac_cpp conftest.$ac_ext"
13173 case "(($ac_try" in
13174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13175 *) ac_try_echo=$ac_try;;
13177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13178 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13180 grep -v '^ *+' conftest.er1 >conftest.err
13182 cat conftest.err >&5
13183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184 (exit $ac_status); } >/dev/null && {
13185 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13186 test ! -s conftest.err
13188 ac_header_preproc=yes
13190 echo "$as_me: failed program was:" >&5
13191 sed 's/^/| /' conftest.$ac_ext >&5
13193 ac_header_preproc=no
13196 rm -f conftest.err conftest.$ac_ext
13197 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13198 echo "${ECHO_T}$ac_header_preproc" >&6; }
13200 # So? What about this header?
13201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13203 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13204 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13206 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13207 ac_header_preproc=yes
13210 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13211 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13212 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13213 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13214 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13215 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13216 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13217 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13219 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13220 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13221 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13223 ## -------------------------------------- ##
13224 ## Report this to choe.hwanjing@gmail.com ##
13225 ## -------------------------------------- ##
13227 ) | sed "s/^/$as_me: WARNING: /" >&2
13230 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13233 echo $ECHO_N "(cached) $ECHO_C" >&6
13235 eval "$as_ac_Header=\$ac_header_preproc"
13237 ac_res=`eval echo '${'$as_ac_Header'}'`
13238 { echo "$as_me:$LINENO: result: $ac_res" >&5
13239 echo "${ECHO_T}$ac_res" >&6; }
13242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13243 cat >>confdefs.h <<_ACEOF
13244 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13252 ac_cpp='$CXXCPP $CPPFLAGS'
13253 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13254 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13255 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13256 if test -z "$CXX"; then
13257 if test -n "$CCC"; then
13260 if test -n "$ac_tool_prefix"; then
13261 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13263 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13264 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13265 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13267 if test "${ac_cv_prog_CXX+set}" = set; then
13268 echo $ECHO_N "(cached) $ECHO_C" >&6
13270 if test -n "$CXX"; then
13271 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13274 for as_dir in $PATH
13277 test -z "$as_dir" && as_dir=.
13278 for ac_exec_ext in '' $ac_executable_extensions; do
13279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13280 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13290 CXX=$ac_cv_prog_CXX
13291 if test -n "$CXX"; then
13292 { echo "$as_me:$LINENO: result: $CXX" >&5
13293 echo "${ECHO_T}$CXX" >&6; }
13295 { echo "$as_me:$LINENO: result: no" >&5
13296 echo "${ECHO_T}no" >&6; }
13300 test -n "$CXX" && break
13303 if test -z "$CXX"; then
13305 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13307 # Extract the first word of "$ac_prog", so it can be a program name with args.
13308 set dummy $ac_prog; ac_word=$2
13309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13311 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
13312 echo $ECHO_N "(cached) $ECHO_C" >&6
13314 if test -n "$ac_ct_CXX"; then
13315 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13318 for as_dir in $PATH
13321 test -z "$as_dir" && as_dir=.
13322 for ac_exec_ext in '' $ac_executable_extensions; do
13323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13324 ac_cv_prog_ac_ct_CXX="$ac_prog"
13325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13334 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13335 if test -n "$ac_ct_CXX"; then
13336 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
13337 echo "${ECHO_T}$ac_ct_CXX" >&6; }
13339 { echo "$as_me:$LINENO: result: no" >&5
13340 echo "${ECHO_T}no" >&6; }
13344 test -n "$ac_ct_CXX" && break
13347 if test "x$ac_ct_CXX" = x; then
13350 case $cross_compiling:$ac_tool_warned in
13352 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13353 whose name does not start with the host triplet. If you think this
13354 configuration is useful to you, please write to autoconf@gnu.org." >&5
13355 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13356 whose name does not start with the host triplet. If you think this
13357 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13358 ac_tool_warned=yes ;;
13366 # Provide some information about the compiler.
13367 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
13368 ac_compiler=`set X $ac_compile; echo $2`
13369 { (ac_try="$ac_compiler --version >&5"
13370 case "(($ac_try" in
13371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13372 *) ac_try_echo=$ac_try;;
13374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13375 (eval "$ac_compiler --version >&5") 2>&5
13377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378 (exit $ac_status); }
13379 { (ac_try="$ac_compiler -v >&5"
13380 case "(($ac_try" in
13381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13382 *) ac_try_echo=$ac_try;;
13384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13385 (eval "$ac_compiler -v >&5") 2>&5
13387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388 (exit $ac_status); }
13389 { (ac_try="$ac_compiler -V >&5"
13390 case "(($ac_try" in
13391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13392 *) ac_try_echo=$ac_try;;
13394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13395 (eval "$ac_compiler -V >&5") 2>&5
13397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398 (exit $ac_status); }
13400 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
13401 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
13402 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
13403 echo $ECHO_N "(cached) $ECHO_C" >&6
13405 cat >conftest.$ac_ext <<_ACEOF
13408 cat confdefs.h >>conftest.$ac_ext
13409 cat >>conftest.$ac_ext <<_ACEOF
13410 /* end confdefs.h. */
13423 rm -f conftest.$ac_objext
13424 if { (ac_try="$ac_compile"
13425 case "(($ac_try" in
13426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13427 *) ac_try_echo=$ac_try;;
13429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13430 (eval "$ac_compile") 2>conftest.er1
13432 grep -v '^ *+' conftest.er1 >conftest.err
13434 cat conftest.err >&5
13435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436 (exit $ac_status); } && {
13437 test -z "$ac_cxx_werror_flag" ||
13438 test ! -s conftest.err
13439 } && test -s conftest.$ac_objext; then
13440 ac_compiler_gnu=yes
13442 echo "$as_me: failed program was:" >&5
13443 sed 's/^/| /' conftest.$ac_ext >&5
13448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13449 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13452 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
13453 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
13454 GXX=`test $ac_compiler_gnu = yes && echo yes`
13455 ac_test_CXXFLAGS=${CXXFLAGS+set}
13456 ac_save_CXXFLAGS=$CXXFLAGS
13457 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
13458 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
13459 if test "${ac_cv_prog_cxx_g+set}" = set; then
13460 echo $ECHO_N "(cached) $ECHO_C" >&6
13462 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13463 ac_cxx_werror_flag=yes
13464 ac_cv_prog_cxx_g=no
13466 cat >conftest.$ac_ext <<_ACEOF
13469 cat confdefs.h >>conftest.$ac_ext
13470 cat >>conftest.$ac_ext <<_ACEOF
13471 /* end confdefs.h. */
13481 rm -f conftest.$ac_objext
13482 if { (ac_try="$ac_compile"
13483 case "(($ac_try" in
13484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13485 *) ac_try_echo=$ac_try;;
13487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13488 (eval "$ac_compile") 2>conftest.er1
13490 grep -v '^ *+' conftest.er1 >conftest.err
13492 cat conftest.err >&5
13493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494 (exit $ac_status); } && {
13495 test -z "$ac_cxx_werror_flag" ||
13496 test ! -s conftest.err
13497 } && test -s conftest.$ac_objext; then
13498 ac_cv_prog_cxx_g=yes
13500 echo "$as_me: failed program was:" >&5
13501 sed 's/^/| /' conftest.$ac_ext >&5
13504 cat >conftest.$ac_ext <<_ACEOF
13507 cat confdefs.h >>conftest.$ac_ext
13508 cat >>conftest.$ac_ext <<_ACEOF
13509 /* end confdefs.h. */
13519 rm -f conftest.$ac_objext
13520 if { (ac_try="$ac_compile"
13521 case "(($ac_try" in
13522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13523 *) ac_try_echo=$ac_try;;
13525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13526 (eval "$ac_compile") 2>conftest.er1
13528 grep -v '^ *+' conftest.er1 >conftest.err
13530 cat conftest.err >&5
13531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532 (exit $ac_status); } && {
13533 test -z "$ac_cxx_werror_flag" ||
13534 test ! -s conftest.err
13535 } && test -s conftest.$ac_objext; then
13538 echo "$as_me: failed program was:" >&5
13539 sed 's/^/| /' conftest.$ac_ext >&5
13541 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13543 cat >conftest.$ac_ext <<_ACEOF
13546 cat confdefs.h >>conftest.$ac_ext
13547 cat >>conftest.$ac_ext <<_ACEOF
13548 /* end confdefs.h. */
13558 rm -f conftest.$ac_objext
13559 if { (ac_try="$ac_compile"
13560 case "(($ac_try" in
13561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13562 *) ac_try_echo=$ac_try;;
13564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13565 (eval "$ac_compile") 2>conftest.er1
13567 grep -v '^ *+' conftest.er1 >conftest.err
13569 cat conftest.err >&5
13570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571 (exit $ac_status); } && {
13572 test -z "$ac_cxx_werror_flag" ||
13573 test ! -s conftest.err
13574 } && test -s conftest.$ac_objext; then
13575 ac_cv_prog_cxx_g=yes
13577 echo "$as_me: failed program was:" >&5
13578 sed 's/^/| /' conftest.$ac_ext >&5
13583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13590 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13592 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13593 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
13594 if test "$ac_test_CXXFLAGS" = set; then
13595 CXXFLAGS=$ac_save_CXXFLAGS
13596 elif test $ac_cv_prog_cxx_g = yes; then
13597 if test "$GXX" = yes; then
13603 if test "$GXX" = yes; then
13610 ac_cpp='$CXXCPP $CPPFLAGS'
13611 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13612 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13613 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13615 depcc="$CXX" am_compiler_list=
13617 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
13618 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
13619 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
13620 echo $ECHO_N "(cached) $ECHO_C" >&6
13622 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13623 # We make a subdir and do the tests there. Otherwise we can end up
13624 # making bogus files that we don't know about and never remove. For
13625 # instance it was reported that on HP-UX the gcc test will end up
13626 # making a dummy file named `D' -- because `-MD' means `put the output
13629 # Copy depcomp to subdir because otherwise we won't find it if we're
13630 # using a relative directory.
13631 cp "$am_depcomp" conftest.dir
13633 # We will build objects and dependencies in a subdirectory because
13634 # it helps to detect inapplicable dependency modes. For instance
13635 # both Tru64's cc and ICC support -MD to output dependencies as a
13636 # side effect of compilation, but ICC will put the dependencies in
13637 # the current directory while Tru64 will put them in the object
13641 am_cv_CXX_dependencies_compiler_type=none
13642 if test "$am_compiler_list" = ""; then
13643 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13645 for depmode in $am_compiler_list; do
13646 # Setup a source with many dependencies, because some compilers
13647 # like to wrap large dependency lists on column 80 (with \), and
13648 # we should not choose a depcomp mode which is confused by this.
13650 # We need to recreate these files for each test, as the compiler may
13651 # overwrite some of them when testing with obscure command lines.
13652 # This happens at least with the AIX C compiler.
13654 for i in 1 2 3 4 5 6; do
13655 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13656 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13657 # Solaris 8's {/usr,}/bin/sh.
13658 touch sub/conftst$i.h
13660 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13664 # after this tag, mechanisms are not by side-effect, so they'll
13665 # only be used when explicitly requested
13666 if test "x$enable_dependency_tracking" = xyes; then
13674 # We check with `-c' and `-o' for the sake of the "dashmstdout"
13675 # mode. It turns out that the SunPro C++ compiler does not properly
13676 # handle `-M -o', and we need to detect this.
13677 if depmode=$depmode \
13678 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
13679 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13680 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
13681 >/dev/null 2>conftest.err &&
13682 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13683 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
13684 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13685 # icc doesn't choke on unknown options, it will just issue warnings
13686 # or remarks (even with -Werror). So we grep stderr for any message
13687 # that says an option was ignored or not supported.
13688 # When given -MP, icc 7.0 and 7.1 complain thusly:
13689 # icc: Command line warning: ignoring option '-M'; no argument required
13690 # The diagnosis changed in icc 8.0:
13691 # icc: Command line remark: option '-MP' not supported
13692 if (grep 'ignoring option' conftest.err ||
13693 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13694 am_cv_CXX_dependencies_compiler_type=$depmode
13701 rm -rf conftest.dir
13703 am_cv_CXX_dependencies_compiler_type=none
13707 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
13708 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
13709 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13714 test "x$enable_dependency_tracking" != xno \
13715 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13716 am__fastdepCXX_TRUE=
13717 am__fastdepCXX_FALSE='#'
13719 am__fastdepCXX_TRUE='#'
13720 am__fastdepCXX_FALSE=
13726 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13727 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13728 (test "X$CXX" != "Xg++"))) ; then
13730 ac_cpp='$CXXCPP $CPPFLAGS'
13731 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13732 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13733 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13734 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13735 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
13736 if test -z "$CXXCPP"; then
13737 if test "${ac_cv_prog_CXXCPP+set}" = set; then
13738 echo $ECHO_N "(cached) $ECHO_C" >&6
13740 # Double quotes because CXXCPP needs to be expanded
13741 for CXXCPP in "$CXX -E" "/lib/cpp"
13743 ac_preproc_ok=false
13744 for ac_cxx_preproc_warn_flag in '' yes
13746 # Use a header file that comes with gcc, so configuring glibc
13747 # with a fresh cross-compiler works.
13748 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13749 # <limits.h> exists even on freestanding compilers.
13750 # On the NeXT, cc -E runs the code through the compiler's parser,
13751 # not just through cpp. "Syntax error" is here to catch this case.
13752 cat >conftest.$ac_ext <<_ACEOF
13755 cat confdefs.h >>conftest.$ac_ext
13756 cat >>conftest.$ac_ext <<_ACEOF
13757 /* end confdefs.h. */
13759 # include <limits.h>
13761 # include <assert.h>
13765 if { (ac_try="$ac_cpp conftest.$ac_ext"
13766 case "(($ac_try" in
13767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13768 *) ac_try_echo=$ac_try;;
13770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13773 grep -v '^ *+' conftest.er1 >conftest.err
13775 cat conftest.err >&5
13776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777 (exit $ac_status); } >/dev/null && {
13778 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13779 test ! -s conftest.err
13783 echo "$as_me: failed program was:" >&5
13784 sed 's/^/| /' conftest.$ac_ext >&5
13786 # Broken: fails on valid input.
13790 rm -f conftest.err conftest.$ac_ext
13792 # OK, works on sane cases. Now check whether nonexistent headers
13793 # can be detected and how.
13794 cat >conftest.$ac_ext <<_ACEOF
13797 cat confdefs.h >>conftest.$ac_ext
13798 cat >>conftest.$ac_ext <<_ACEOF
13799 /* end confdefs.h. */
13800 #include <ac_nonexistent.h>
13802 if { (ac_try="$ac_cpp conftest.$ac_ext"
13803 case "(($ac_try" in
13804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13805 *) ac_try_echo=$ac_try;;
13807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13810 grep -v '^ *+' conftest.er1 >conftest.err
13812 cat conftest.err >&5
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); } >/dev/null && {
13815 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13816 test ! -s conftest.err
13818 # Broken: success on invalid input.
13821 echo "$as_me: failed program was:" >&5
13822 sed 's/^/| /' conftest.$ac_ext >&5
13824 # Passes both tests.
13829 rm -f conftest.err conftest.$ac_ext
13832 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13833 rm -f conftest.err conftest.$ac_ext
13834 if $ac_preproc_ok; then
13839 ac_cv_prog_CXXCPP=$CXXCPP
13842 CXXCPP=$ac_cv_prog_CXXCPP
13844 ac_cv_prog_CXXCPP=$CXXCPP
13846 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13847 echo "${ECHO_T}$CXXCPP" >&6; }
13848 ac_preproc_ok=false
13849 for ac_cxx_preproc_warn_flag in '' yes
13851 # Use a header file that comes with gcc, so configuring glibc
13852 # with a fresh cross-compiler works.
13853 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13854 # <limits.h> exists even on freestanding compilers.
13855 # On the NeXT, cc -E runs the code through the compiler's parser,
13856 # not just through cpp. "Syntax error" is here to catch this case.
13857 cat >conftest.$ac_ext <<_ACEOF
13860 cat confdefs.h >>conftest.$ac_ext
13861 cat >>conftest.$ac_ext <<_ACEOF
13862 /* end confdefs.h. */
13864 # include <limits.h>
13866 # include <assert.h>
13870 if { (ac_try="$ac_cpp conftest.$ac_ext"
13871 case "(($ac_try" in
13872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13873 *) ac_try_echo=$ac_try;;
13875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13878 grep -v '^ *+' conftest.er1 >conftest.err
13880 cat conftest.err >&5
13881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13882 (exit $ac_status); } >/dev/null && {
13883 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13884 test ! -s conftest.err
13888 echo "$as_me: failed program was:" >&5
13889 sed 's/^/| /' conftest.$ac_ext >&5
13891 # Broken: fails on valid input.
13895 rm -f conftest.err conftest.$ac_ext
13897 # OK, works on sane cases. Now check whether nonexistent headers
13898 # can be detected and how.
13899 cat >conftest.$ac_ext <<_ACEOF
13902 cat confdefs.h >>conftest.$ac_ext
13903 cat >>conftest.$ac_ext <<_ACEOF
13904 /* end confdefs.h. */
13905 #include <ac_nonexistent.h>
13907 if { (ac_try="$ac_cpp conftest.$ac_ext"
13908 case "(($ac_try" in
13909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13910 *) ac_try_echo=$ac_try;;
13912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13915 grep -v '^ *+' conftest.er1 >conftest.err
13917 cat conftest.err >&5
13918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13919 (exit $ac_status); } >/dev/null && {
13920 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13921 test ! -s conftest.err
13923 # Broken: success on invalid input.
13926 echo "$as_me: failed program was:" >&5
13927 sed 's/^/| /' conftest.$ac_ext >&5
13929 # Passes both tests.
13934 rm -f conftest.err conftest.$ac_ext
13937 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13938 rm -f conftest.err conftest.$ac_ext
13939 if $ac_preproc_ok; then
13942 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13943 See \`config.log' for more details." >&5
13944 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13945 See \`config.log' for more details." >&2;}
13946 { (exit 1); exit 1; }; }
13950 ac_cpp='$CXXCPP $CPPFLAGS'
13951 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13952 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13953 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13959 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13960 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13961 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13962 if test -n "$ac_tool_prefix"; then
13963 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
13965 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13966 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13967 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13969 if test "${ac_cv_prog_F77+set}" = set; then
13970 echo $ECHO_N "(cached) $ECHO_C" >&6
13972 if test -n "$F77"; then
13973 ac_cv_prog_F77="$F77" # Let the user override the test.
13975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13976 for as_dir in $PATH
13979 test -z "$as_dir" && as_dir=.
13980 for ac_exec_ext in '' $ac_executable_extensions; do
13981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13982 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13992 F77=$ac_cv_prog_F77
13993 if test -n "$F77"; then
13994 { echo "$as_me:$LINENO: result: $F77" >&5
13995 echo "${ECHO_T}$F77" >&6; }
13997 { echo "$as_me:$LINENO: result: no" >&5
13998 echo "${ECHO_T}no" >&6; }
14002 test -n "$F77" && break
14005 if test -z "$F77"; then
14007 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
14009 # Extract the first word of "$ac_prog", so it can be a program name with args.
14010 set dummy $ac_prog; ac_word=$2
14011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14013 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
14014 echo $ECHO_N "(cached) $ECHO_C" >&6
14016 if test -n "$ac_ct_F77"; then
14017 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
14019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14020 for as_dir in $PATH
14023 test -z "$as_dir" && as_dir=.
14024 for ac_exec_ext in '' $ac_executable_extensions; do
14025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14026 ac_cv_prog_ac_ct_F77="$ac_prog"
14027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14036 ac_ct_F77=$ac_cv_prog_ac_ct_F77
14037 if test -n "$ac_ct_F77"; then
14038 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
14039 echo "${ECHO_T}$ac_ct_F77" >&6; }
14041 { echo "$as_me:$LINENO: result: no" >&5
14042 echo "${ECHO_T}no" >&6; }
14046 test -n "$ac_ct_F77" && break
14049 if test "x$ac_ct_F77" = x; then
14052 case $cross_compiling:$ac_tool_warned in
14054 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14055 whose name does not start with the host triplet. If you think this
14056 configuration is useful to you, please write to autoconf@gnu.org." >&5
14057 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14058 whose name does not start with the host triplet. If you think this
14059 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14060 ac_tool_warned=yes ;;
14067 # Provide some information about the compiler.
14068 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
14069 ac_compiler=`set X $ac_compile; echo $2`
14070 { (ac_try="$ac_compiler --version >&5"
14071 case "(($ac_try" in
14072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14073 *) ac_try_echo=$ac_try;;
14075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14076 (eval "$ac_compiler --version >&5") 2>&5
14078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079 (exit $ac_status); }
14080 { (ac_try="$ac_compiler -v >&5"
14081 case "(($ac_try" in
14082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14083 *) ac_try_echo=$ac_try;;
14085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14086 (eval "$ac_compiler -v >&5") 2>&5
14088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089 (exit $ac_status); }
14090 { (ac_try="$ac_compiler -V >&5"
14091 case "(($ac_try" in
14092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14093 *) ac_try_echo=$ac_try;;
14095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14096 (eval "$ac_compiler -V >&5") 2>&5
14098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099 (exit $ac_status); }
14102 # If we don't use `.F' as extension, the preprocessor is not run on the
14103 # input file. (Note that this only needs to work for GNU compilers.)
14104 ac_save_ext=$ac_ext
14106 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
14107 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
14108 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
14109 echo $ECHO_N "(cached) $ECHO_C" >&6
14111 cat >conftest.$ac_ext <<_ACEOF
14119 rm -f conftest.$ac_objext
14120 if { (ac_try="$ac_compile"
14121 case "(($ac_try" in
14122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14123 *) ac_try_echo=$ac_try;;
14125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14126 (eval "$ac_compile") 2>conftest.er1
14128 grep -v '^ *+' conftest.er1 >conftest.err
14130 cat conftest.err >&5
14131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14132 (exit $ac_status); } && {
14133 test -z "$ac_f77_werror_flag" ||
14134 test ! -s conftest.err
14135 } && test -s conftest.$ac_objext; then
14136 ac_compiler_gnu=yes
14138 echo "$as_me: failed program was:" >&5
14139 sed 's/^/| /' conftest.$ac_ext >&5
14144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14145 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
14148 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
14149 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
14150 ac_ext=$ac_save_ext
14151 ac_test_FFLAGS=${FFLAGS+set}
14152 ac_save_FFLAGS=$FFLAGS
14154 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
14155 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
14156 if test "${ac_cv_prog_f77_g+set}" = set; then
14157 echo $ECHO_N "(cached) $ECHO_C" >&6
14160 cat >conftest.$ac_ext <<_ACEOF
14165 rm -f conftest.$ac_objext
14166 if { (ac_try="$ac_compile"
14167 case "(($ac_try" in
14168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14169 *) ac_try_echo=$ac_try;;
14171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14172 (eval "$ac_compile") 2>conftest.er1
14174 grep -v '^ *+' conftest.er1 >conftest.err
14176 cat conftest.err >&5
14177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178 (exit $ac_status); } && {
14179 test -z "$ac_f77_werror_flag" ||
14180 test ! -s conftest.err
14181 } && test -s conftest.$ac_objext; then
14182 ac_cv_prog_f77_g=yes
14184 echo "$as_me: failed program was:" >&5
14185 sed 's/^/| /' conftest.$ac_ext >&5
14187 ac_cv_prog_f77_g=no
14190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14193 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
14194 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
14195 if test "$ac_test_FFLAGS" = set; then
14196 FFLAGS=$ac_save_FFLAGS
14197 elif test $ac_cv_prog_f77_g = yes; then
14198 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
14204 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
14211 G77=`test $ac_compiler_gnu = yes && echo yes`
14213 ac_cpp='$CPP $CPPFLAGS'
14214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14220 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
14222 # find the maximum length of command line arguments
14223 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
14224 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
14225 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
14226 echo $ECHO_N "(cached) $ECHO_C" >&6
14233 # On DJGPP, this test can blow up pretty badly due to problems in libc
14234 # (any single argument exceeding 2000 bytes causes a buffer overrun
14235 # during glob expansion). Even if it were fixed, the result of this
14236 # check would be larger than it should be.
14237 lt_cv_sys_max_cmd_len=12288; # 12K is about right
14241 # Under GNU Hurd, this test is not required because there is
14242 # no limit to the length of command line arguments.
14243 # Libtool will interpret -1 as no limit whatsoever
14244 lt_cv_sys_max_cmd_len=-1;
14248 # On Win9x/ME, this test blows up -- it succeeds, but takes
14249 # about 5 minutes as the teststring grows exponentially.
14250 # Worse, since 9x/ME are not pre-emptively multitasking,
14251 # you end up with a "frozen" computer, even though with patience
14252 # the test eventually succeeds (with a max line length of 256k).
14253 # Instead, let's just punt: use the minimum linelength reported by
14254 # all of the supported platforms: 8192 (on NT/2K/XP).
14255 lt_cv_sys_max_cmd_len=8192;
14259 # On AmigaOS with pdksh, this test takes hours, literally.
14260 # So we just punt and use a minimum line length of 8192.
14261 lt_cv_sys_max_cmd_len=8192;
14264 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
14265 # This has been around since 386BSD, at least. Likely further.
14266 if test -x /sbin/sysctl; then
14267 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14268 elif test -x /usr/sbin/sysctl; then
14269 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
14271 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
14273 # And add a safety zone
14274 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14275 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14279 # We know the value 262144 and hardcode it with a safety zone (like BSD)
14280 lt_cv_sys_max_cmd_len=196608
14284 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14285 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14286 # nice to cause kernel panics so lets avoid the loop below.
14287 # First set a reasonable default.
14288 lt_cv_sys_max_cmd_len=16384
14290 if test -x /sbin/sysconfig; then
14291 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14292 *1*) lt_cv_sys_max_cmd_len=-1 ;;
14297 lt_cv_sys_max_cmd_len=102400
14299 sysv5* | sco5v6* | sysv4.2uw2*)
14300 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14301 if test -n "$kargmax"; then
14302 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
14304 lt_cv_sys_max_cmd_len=32768
14308 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
14309 if test -n "$lt_cv_sys_max_cmd_len"; then
14310 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14311 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14313 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14314 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
14315 = "XX$teststring") >/dev/null 2>&1 &&
14316 new_result=`expr "X$teststring" : ".*" 2>&1` &&
14317 lt_cv_sys_max_cmd_len=$new_result &&
14318 test $i != 17 # 1/2 MB should be enough
14321 teststring=$teststring$teststring
14324 # Add a significant safety factor because C++ compilers can tack on massive
14325 # amounts of additional arguments before passing them to the linker.
14326 # It appears as though 1/2 is a usable value.
14327 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14334 if test -n $lt_cv_sys_max_cmd_len ; then
14335 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14336 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
14338 { echo "$as_me:$LINENO: result: none" >&5
14339 echo "${ECHO_T}none" >&6; }
14346 # Check for command to grab the raw symbol name followed by C symbol from nm.
14347 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
14348 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
14349 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
14350 echo $ECHO_N "(cached) $ECHO_C" >&6
14353 # These are sane defaults that work on at least a few old systems.
14354 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
14356 # Character class describing NM global symbol codes.
14357 symcode='[BCDEGRST]'
14359 # Regexp to match symbols that can be accessed directly from C.
14360 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14362 # Transform an extracted symbol line into a proper C declaration
14363 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
14365 # Transform an extracted symbol line into symbol name and symbol address
14366 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
14368 # Define system-specific variables.
14373 cygwin* | mingw* | pw32*)
14374 symcode='[ABCDGISTW]'
14376 hpux*) # Its linker distinguishes data from code symbols
14377 if test "$host_cpu" = ia64; then
14378 symcode='[ABCDEGRST]'
14380 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14381 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
14383 linux* | k*bsd*-gnu)
14384 if test "$host_cpu" = ia64; then
14385 symcode='[ABCDGIRSTW]'
14386 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14387 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
14390 irix* | nonstopux*)
14391 symcode='[BCDEGRST]'
14394 symcode='[BCDEGQRST]'
14405 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14413 # Handle CRLF in mingw tool chain
14417 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14421 # If we're using GNU nm, then use its standard symbol codes.
14422 case `$NM -V 2>&1` in
14423 *GNU* | *'with BFD'*)
14424 symcode='[ABCDGIRSTW]' ;;
14427 # Try without a prefix undercore, then with it.
14428 for ac_symprfx in "" "_"; do
14430 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14431 symxfrm="\\1 $ac_symprfx\\2 \\2"
14433 # Write the raw and C identifiers.
14434 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14436 # Check to see that the pipe works correctly.
14440 cat > conftest.$ac_ext <<EOF
14445 void nm_test_func(){}
14449 int main(){nm_test_var='a';nm_test_func();return(0);}
14452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14453 (eval $ac_compile) 2>&5
14455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14456 (exit $ac_status); }; then
14457 # Now try to grab the symbols.
14459 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14460 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463 (exit $ac_status); } && test -s "$nlist"; then
14464 # Try sorting and uniquifying the output.
14465 if sort "$nlist" | uniq > "$nlist"T; then
14466 mv -f "$nlist"T "$nlist"
14471 # Make sure that we snagged all the symbols we need.
14472 if grep ' nm_test_var$' "$nlist" >/dev/null; then
14473 if grep ' nm_test_func$' "$nlist" >/dev/null; then
14474 cat <<EOF > conftest.$ac_ext
14480 # Now generate the symbol file.
14481 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14483 cat <<EOF >> conftest.$ac_ext
14484 #if defined (__STDC__) && __STDC__
14485 # define lt_ptr_t void *
14487 # define lt_ptr_t char *
14491 /* The mapping between symbol names and symbols. */
14496 lt_preloaded_symbols[] =
14499 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14500 cat <<\EOF >> conftest.$ac_ext
14508 # Now try linking the two files.
14509 mv conftest.$ac_objext conftstm.$ac_objext
14510 lt_save_LIBS="$LIBS"
14511 lt_save_CFLAGS="$CFLAGS"
14512 LIBS="conftstm.$ac_objext"
14513 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14515 (eval $ac_link) 2>&5
14517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518 (exit $ac_status); } && test -s conftest${ac_exeext}; then
14521 LIBS="$lt_save_LIBS"
14522 CFLAGS="$lt_save_CFLAGS"
14524 echo "cannot find nm_test_func in $nlist" >&5
14527 echo "cannot find nm_test_var in $nlist" >&5
14530 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14533 echo "$progname: failed program was:" >&5
14534 cat conftest.$ac_ext >&5
14536 rm -f conftest* conftst*
14538 # Do not use the global_symbol_pipe unless it works.
14539 if test "$pipe_works" = yes; then
14542 lt_cv_sys_global_symbol_pipe=
14548 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14549 lt_cv_sys_global_symbol_to_cdecl=
14551 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14552 { echo "$as_me:$LINENO: result: failed" >&5
14553 echo "${ECHO_T}failed" >&6; }
14555 { echo "$as_me:$LINENO: result: ok" >&5
14556 echo "${ECHO_T}ok" >&6; }
14559 { echo "$as_me:$LINENO: checking for objdir" >&5
14560 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
14561 if test "${lt_cv_objdir+set}" = set; then
14562 echo $ECHO_N "(cached) $ECHO_C" >&6
14564 rm -f .libs 2>/dev/null
14565 mkdir .libs 2>/dev/null
14566 if test -d .libs; then
14569 # MS-DOS does not allow filenames that begin with a dot.
14572 rmdir .libs 2>/dev/null
14574 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14575 echo "${ECHO_T}$lt_cv_objdir" >&6; }
14576 objdir=$lt_cv_objdir
14584 # AIX sometimes has problems with the GCC collect2 program. For some
14585 # reason, if we set the COLLECT_NAMES environment variable, the problems
14586 # vanish in a puff of smoke.
14587 if test "X${COLLECT_NAMES+set}" != Xset; then
14589 export COLLECT_NAMES
14594 # Sed substitution that helps us do robust quoting. It backslashifies
14595 # metacharacters that are still active within double-quoted strings.
14596 Xsed='sed -e 1s/^X//'
14597 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14599 # Same as above, but do not quote variable references.
14600 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14602 # Sed substitution to delay expansion of an escaped shell variable in a
14603 # double_quote_subst'ed string.
14604 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14606 # Sed substitution to avoid accidental globbing in evaled expressions
14607 no_glob_subst='s/\*/\\\*/g'
14612 # Global variables:
14613 default_ofile=libtool
14614 can_build_shared=yes
14616 # All known linkers require a `.a' archive for static linking (except MSVC,
14617 # which needs '.lib').
14619 ltmain="$ac_aux_dir/ltmain.sh"
14620 ofile="$default_ofile"
14621 with_gnu_ld="$lt_cv_prog_gnu_ld"
14623 if test -n "$ac_tool_prefix"; then
14624 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14625 set dummy ${ac_tool_prefix}ar; ac_word=$2
14626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14628 if test "${ac_cv_prog_AR+set}" = set; then
14629 echo $ECHO_N "(cached) $ECHO_C" >&6
14631 if test -n "$AR"; then
14632 ac_cv_prog_AR="$AR" # Let the user override the test.
14634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14635 for as_dir in $PATH
14638 test -z "$as_dir" && as_dir=.
14639 for ac_exec_ext in '' $ac_executable_extensions; do
14640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14641 ac_cv_prog_AR="${ac_tool_prefix}ar"
14642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14652 if test -n "$AR"; then
14653 { echo "$as_me:$LINENO: result: $AR" >&5
14654 echo "${ECHO_T}$AR" >&6; }
14656 { echo "$as_me:$LINENO: result: no" >&5
14657 echo "${ECHO_T}no" >&6; }
14662 if test -z "$ac_cv_prog_AR"; then
14664 # Extract the first word of "ar", so it can be a program name with args.
14665 set dummy ar; ac_word=$2
14666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14668 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14669 echo $ECHO_N "(cached) $ECHO_C" >&6
14671 if test -n "$ac_ct_AR"; then
14672 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14675 for as_dir in $PATH
14678 test -z "$as_dir" && as_dir=.
14679 for ac_exec_ext in '' $ac_executable_extensions; do
14680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14681 ac_cv_prog_ac_ct_AR="ar"
14682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14691 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14692 if test -n "$ac_ct_AR"; then
14693 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14694 echo "${ECHO_T}$ac_ct_AR" >&6; }
14696 { echo "$as_me:$LINENO: result: no" >&5
14697 echo "${ECHO_T}no" >&6; }
14700 if test "x$ac_ct_AR" = x; then
14703 case $cross_compiling:$ac_tool_warned in
14705 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14706 whose name does not start with the host triplet. If you think this
14707 configuration is useful to you, please write to autoconf@gnu.org." >&5
14708 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14709 whose name does not start with the host triplet. If you think this
14710 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14711 ac_tool_warned=yes ;;
14716 AR="$ac_cv_prog_AR"
14719 if test -n "$ac_tool_prefix"; then
14720 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14721 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14722 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14724 if test "${ac_cv_prog_RANLIB+set}" = set; then
14725 echo $ECHO_N "(cached) $ECHO_C" >&6
14727 if test -n "$RANLIB"; then
14728 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14731 for as_dir in $PATH
14734 test -z "$as_dir" && as_dir=.
14735 for ac_exec_ext in '' $ac_executable_extensions; do
14736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14737 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14747 RANLIB=$ac_cv_prog_RANLIB
14748 if test -n "$RANLIB"; then
14749 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14750 echo "${ECHO_T}$RANLIB" >&6; }
14752 { echo "$as_me:$LINENO: result: no" >&5
14753 echo "${ECHO_T}no" >&6; }
14758 if test -z "$ac_cv_prog_RANLIB"; then
14759 ac_ct_RANLIB=$RANLIB
14760 # Extract the first word of "ranlib", so it can be a program name with args.
14761 set dummy ranlib; ac_word=$2
14762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14764 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14765 echo $ECHO_N "(cached) $ECHO_C" >&6
14767 if test -n "$ac_ct_RANLIB"; then
14768 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14771 for as_dir in $PATH
14774 test -z "$as_dir" && as_dir=.
14775 for ac_exec_ext in '' $ac_executable_extensions; do
14776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14777 ac_cv_prog_ac_ct_RANLIB="ranlib"
14778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14787 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14788 if test -n "$ac_ct_RANLIB"; then
14789 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14790 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14792 { echo "$as_me:$LINENO: result: no" >&5
14793 echo "${ECHO_T}no" >&6; }
14796 if test "x$ac_ct_RANLIB" = x; then
14799 case $cross_compiling:$ac_tool_warned in
14801 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14802 whose name does not start with the host triplet. If you think this
14803 configuration is useful to you, please write to autoconf@gnu.org." >&5
14804 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14805 whose name does not start with the host triplet. If you think this
14806 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14807 ac_tool_warned=yes ;;
14809 RANLIB=$ac_ct_RANLIB
14812 RANLIB="$ac_cv_prog_RANLIB"
14815 if test -n "$ac_tool_prefix"; then
14816 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14817 set dummy ${ac_tool_prefix}strip; ac_word=$2
14818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14820 if test "${ac_cv_prog_STRIP+set}" = set; then
14821 echo $ECHO_N "(cached) $ECHO_C" >&6
14823 if test -n "$STRIP"; then
14824 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14827 for as_dir in $PATH
14830 test -z "$as_dir" && as_dir=.
14831 for ac_exec_ext in '' $ac_executable_extensions; do
14832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14833 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14843 STRIP=$ac_cv_prog_STRIP
14844 if test -n "$STRIP"; then
14845 { echo "$as_me:$LINENO: result: $STRIP" >&5
14846 echo "${ECHO_T}$STRIP" >&6; }
14848 { echo "$as_me:$LINENO: result: no" >&5
14849 echo "${ECHO_T}no" >&6; }
14854 if test -z "$ac_cv_prog_STRIP"; then
14856 # Extract the first word of "strip", so it can be a program name with args.
14857 set dummy strip; ac_word=$2
14858 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14860 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14861 echo $ECHO_N "(cached) $ECHO_C" >&6
14863 if test -n "$ac_ct_STRIP"; then
14864 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14867 for as_dir in $PATH
14870 test -z "$as_dir" && as_dir=.
14871 for ac_exec_ext in '' $ac_executable_extensions; do
14872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14873 ac_cv_prog_ac_ct_STRIP="strip"
14874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14883 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14884 if test -n "$ac_ct_STRIP"; then
14885 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14886 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14888 { echo "$as_me:$LINENO: result: no" >&5
14889 echo "${ECHO_T}no" >&6; }
14892 if test "x$ac_ct_STRIP" = x; then
14895 case $cross_compiling:$ac_tool_warned in
14897 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14898 whose name does not start with the host triplet. If you think this
14899 configuration is useful to you, please write to autoconf@gnu.org." >&5
14900 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14901 whose name does not start with the host triplet. If you think this
14902 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14903 ac_tool_warned=yes ;;
14908 STRIP="$ac_cv_prog_STRIP"
14913 old_CFLAGS="$CFLAGS"
14915 # Set sane defaults for various variables
14916 test -z "$AR" && AR=ar
14917 test -z "$AR_FLAGS" && AR_FLAGS=cru
14918 test -z "$AS" && AS=as
14919 test -z "$CC" && CC=cc
14920 test -z "$LTCC" && LTCC=$CC
14921 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14922 test -z "$DLLTOOL" && DLLTOOL=dlltool
14923 test -z "$LD" && LD=ld
14924 test -z "$LN_S" && LN_S="ln -s"
14925 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14926 test -z "$NM" && NM=nm
14927 test -z "$SED" && SED=sed
14928 test -z "$OBJDUMP" && OBJDUMP=objdump
14929 test -z "$RANLIB" && RANLIB=:
14930 test -z "$STRIP" && STRIP=:
14931 test -z "$ac_objext" && ac_objext=o
14933 # Determine commands to create old-style static archives.
14934 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
14935 old_postinstall_cmds='chmod 644 $oldlib'
14936 old_postuninstall_cmds=
14938 if test -n "$RANLIB"; then
14941 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14944 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14947 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14950 for cc_temp in $compiler""; do
14952 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14953 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14958 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14961 # Only perform the check for file, if the check method requires it
14962 case $deplibs_check_method in
14964 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14965 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14966 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14967 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14968 echo $ECHO_N "(cached) $ECHO_C" >&6
14972 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14975 lt_save_MAGIC_CMD="$MAGIC_CMD"
14976 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14977 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14978 for ac_dir in $ac_dummy; do
14980 test -z "$ac_dir" && ac_dir=.
14981 if test -f $ac_dir/${ac_tool_prefix}file; then
14982 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14983 if test -n "$file_magic_test_file"; then
14984 case $deplibs_check_method in
14986 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14987 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14988 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14989 $EGREP "$file_magic_regex" > /dev/null; then
14994 *** Warning: the command libtool uses to detect shared libraries,
14995 *** $file_magic_cmd, produces output that libtool cannot recognize.
14996 *** The result is that libtool may fail to recognize shared libraries
14997 *** as such. This will affect the creation of libtool libraries that
14998 *** depend on shared libraries, but programs linked with such libtool
14999 *** libraries will work regardless of this problem. Nevertheless, you
15000 *** may want to report the problem to your system manager and/or to
15001 *** bug-libtool@gnu.org
15011 MAGIC_CMD="$lt_save_MAGIC_CMD"
15016 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15017 if test -n "$MAGIC_CMD"; then
15018 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
15019 echo "${ECHO_T}$MAGIC_CMD" >&6; }
15021 { echo "$as_me:$LINENO: result: no" >&5
15022 echo "${ECHO_T}no" >&6; }
15025 if test -z "$lt_cv_path_MAGIC_CMD"; then
15026 if test -n "$ac_tool_prefix"; then
15027 { echo "$as_me:$LINENO: checking for file" >&5
15028 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
15029 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
15030 echo $ECHO_N "(cached) $ECHO_C" >&6
15034 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15037 lt_save_MAGIC_CMD="$MAGIC_CMD"
15038 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15039 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15040 for ac_dir in $ac_dummy; do
15042 test -z "$ac_dir" && ac_dir=.
15043 if test -f $ac_dir/file; then
15044 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15045 if test -n "$file_magic_test_file"; then
15046 case $deplibs_check_method in
15048 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15049 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15050 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15051 $EGREP "$file_magic_regex" > /dev/null; then
15056 *** Warning: the command libtool uses to detect shared libraries,
15057 *** $file_magic_cmd, produces output that libtool cannot recognize.
15058 *** The result is that libtool may fail to recognize shared libraries
15059 *** as such. This will affect the creation of libtool libraries that
15060 *** depend on shared libraries, but programs linked with such libtool
15061 *** libraries will work regardless of this problem. Nevertheless, you
15062 *** may want to report the problem to your system manager and/or to
15063 *** bug-libtool@gnu.org
15073 MAGIC_CMD="$lt_save_MAGIC_CMD"
15078 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15079 if test -n "$MAGIC_CMD"; then
15080 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
15081 echo "${ECHO_T}$MAGIC_CMD" >&6; }
15083 { echo "$as_me:$LINENO: result: no" >&5
15084 echo "${ECHO_T}no" >&6; }
15097 enable_win32_dll=no
15099 # Check whether --enable-libtool-lock was given.
15100 if test "${enable_libtool_lock+set}" = set; then
15101 enableval=$enable_libtool_lock;
15104 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
15107 # Check whether --with-pic was given.
15108 if test "${with_pic+set}" = set; then
15109 withval=$with_pic; pic_mode="$withval"
15114 test -z "$pic_mode" && pic_mode=default
15116 # Use C for the default configuration in the libtool script
15120 ac_cpp='$CPP $CPPFLAGS'
15121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15126 # Source file extension for C test sources.
15129 # Object file extension for compiled C test sources.
15133 # Code to be used in simple compile tests
15134 lt_simple_compile_test_code="int some_variable = 0;"
15136 # Code to be used in simple link tests
15137 lt_simple_link_test_code='int main(){return(0);}'
15140 # If no C compiler was specified, use CC.
15143 # If no C compiler flags were specified, use CFLAGS.
15144 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15146 # Allow CC to be a program name with arguments.
15150 # save warnings/boilerplate of simple test code
15151 ac_outfile=conftest.$ac_objext
15152 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15153 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15154 _lt_compiler_boilerplate=`cat conftest.err`
15157 ac_outfile=conftest.$ac_objext
15158 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15159 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15160 _lt_linker_boilerplate=`cat conftest.err`
15165 lt_prog_compiler_no_builtin_flag=
15167 if test "$GCC" = yes; then
15168 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
15171 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15172 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
15173 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15174 echo $ECHO_N "(cached) $ECHO_C" >&6
15176 lt_cv_prog_compiler_rtti_exceptions=no
15177 ac_outfile=conftest.$ac_objext
15178 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15179 lt_compiler_flag="-fno-rtti -fno-exceptions"
15180 # Insert the option either (1) after the last *FLAGS variable, or
15181 # (2) before a word containing "conftest.", or (3) at the end.
15182 # Note that $ac_compile itself does not contain backslashes and begins
15183 # with a dollar sign (not a hyphen), so the echo should work correctly.
15184 # The option is referenced via a variable to avoid confusing sed.
15185 lt_compile=`echo "$ac_compile" | $SED \
15186 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15187 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15188 -e 's:$: $lt_compiler_flag:'`
15189 (eval echo "\"\$as_me:15189: $lt_compile\"" >&5)
15190 (eval "$lt_compile" 2>conftest.err)
15192 cat conftest.err >&5
15193 echo "$as_me:15193: \$? = $ac_status" >&5
15194 if (exit $ac_status) && test -s "$ac_outfile"; then
15195 # The compiler can only warn and ignore the option if not recognized
15196 # So say no if there are warnings other than the usual output.
15197 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15198 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15199 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15200 lt_cv_prog_compiler_rtti_exceptions=yes
15206 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15207 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15209 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15210 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15217 lt_prog_compiler_wl=
15218 lt_prog_compiler_pic=
15219 lt_prog_compiler_static=
15221 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15222 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15224 if test "$GCC" = yes; then
15225 lt_prog_compiler_wl='-Wl,'
15226 lt_prog_compiler_static='-static'
15230 # All AIX code is PIC.
15231 if test "$host_cpu" = ia64; then
15232 # AIX 5 now supports IA64 processor
15233 lt_prog_compiler_static='-Bstatic'
15238 # FIXME: we need at least 68020 code to build shared libraries, but
15239 # adding the `-m68020' flag to GCC prevents building anything better,
15241 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15244 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15245 # PIC is the default for these OSes.
15248 mingw* | cygwin* | pw32* | os2*)
15249 # This hack is so that the source file can tell whether it is being
15250 # built for inclusion in a dll (and should export symbols for example).
15251 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15252 # (--disable-auto-import) libraries
15253 lt_prog_compiler_pic='-DDLL_EXPORT'
15256 darwin* | rhapsody*)
15257 # PIC is the default on this platform
15258 # Common symbols not allowed in MH_DYLIB files
15259 lt_prog_compiler_pic='-fno-common'
15263 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15264 # Instead, we relocate shared libraries at runtime.
15268 # Just because we use GCC doesn't mean we suddenly get shared libraries
15269 # on systems that don't support them.
15270 lt_prog_compiler_can_build_shared=no
15275 if test -d /usr/nec; then
15276 lt_prog_compiler_pic=-Kconform_pic
15281 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15282 # not for PA HP-UX.
15288 lt_prog_compiler_pic='-fPIC'
15294 lt_prog_compiler_pic='-fPIC'
15298 # PORTME Check for flag to pass linker flags through the system compiler.
15301 lt_prog_compiler_wl='-Wl,'
15302 if test "$host_cpu" = ia64; then
15303 # AIX 5 now supports IA64 processor
15304 lt_prog_compiler_static='-Bstatic'
15306 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15310 # PIC is the default on this platform
15311 # Common symbols not allowed in MH_DYLIB files
15312 case $cc_basename in
15314 lt_prog_compiler_pic='-qnocommon'
15315 lt_prog_compiler_wl='-Wl,'
15320 mingw* | cygwin* | pw32* | os2*)
15321 # This hack is so that the source file can tell whether it is being
15322 # built for inclusion in a dll (and should export symbols for example).
15323 lt_prog_compiler_pic='-DDLL_EXPORT'
15326 hpux9* | hpux10* | hpux11*)
15327 lt_prog_compiler_wl='-Wl,'
15328 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15329 # not for PA HP-UX.
15335 lt_prog_compiler_pic='+Z'
15338 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15339 lt_prog_compiler_static='${wl}-a ${wl}archive'
15342 irix5* | irix6* | nonstopux*)
15343 lt_prog_compiler_wl='-Wl,'
15344 # PIC (with -KPIC) is the default.
15345 lt_prog_compiler_static='-non_shared'
15349 lt_prog_compiler_pic='-KPIC'
15350 lt_prog_compiler_static='-Bstatic'
15353 linux* | k*bsd*-gnu)
15354 case $cc_basename in
15356 lt_prog_compiler_wl='-Wl,'
15357 lt_prog_compiler_pic='-KPIC'
15358 lt_prog_compiler_static='-static'
15360 pgcc* | pgf77* | pgf90* | pgf95*)
15361 # Portland Group compilers (*not* the Pentium gcc compiler,
15362 # which looks to be a dead project)
15363 lt_prog_compiler_wl='-Wl,'
15364 lt_prog_compiler_pic='-fpic'
15365 lt_prog_compiler_static='-Bstatic'
15368 lt_prog_compiler_wl='-Wl,'
15369 # All Alpha code is PIC.
15370 lt_prog_compiler_static='-non_shared'
15373 case `$CC -V 2>&1 | sed 5q` in
15376 lt_prog_compiler_pic='-KPIC'
15377 lt_prog_compiler_static='-Bstatic'
15378 lt_prog_compiler_wl='-Wl,'
15381 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15382 lt_prog_compiler_pic='-KPIC'
15383 lt_prog_compiler_static='-Bstatic'
15384 lt_prog_compiler_wl=''
15391 osf3* | osf4* | osf5*)
15392 lt_prog_compiler_wl='-Wl,'
15393 # All OSF/1 code is PIC.
15394 lt_prog_compiler_static='-non_shared'
15398 lt_prog_compiler_static='-non_shared'
15402 lt_prog_compiler_pic='-KPIC'
15403 lt_prog_compiler_static='-Bstatic'
15404 case $cc_basename in
15405 f77* | f90* | f95*)
15406 lt_prog_compiler_wl='-Qoption ld ';;
15408 lt_prog_compiler_wl='-Wl,';;
15413 lt_prog_compiler_wl='-Qoption ld '
15414 lt_prog_compiler_pic='-PIC'
15415 lt_prog_compiler_static='-Bstatic'
15418 sysv4 | sysv4.2uw2* | sysv4.3*)
15419 lt_prog_compiler_wl='-Wl,'
15420 lt_prog_compiler_pic='-KPIC'
15421 lt_prog_compiler_static='-Bstatic'
15425 if test -d /usr/nec ;then
15426 lt_prog_compiler_pic='-Kconform_pic'
15427 lt_prog_compiler_static='-Bstatic'
15431 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15432 lt_prog_compiler_wl='-Wl,'
15433 lt_prog_compiler_pic='-KPIC'
15434 lt_prog_compiler_static='-Bstatic'
15438 lt_prog_compiler_wl='-Wl,'
15439 lt_prog_compiler_can_build_shared=no
15443 lt_prog_compiler_pic='-pic'
15444 lt_prog_compiler_static='-Bstatic'
15448 lt_prog_compiler_can_build_shared=no
15453 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15454 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
15457 # Check to make sure the PIC flag actually works.
15459 if test -n "$lt_prog_compiler_pic"; then
15461 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15462 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
15463 if test "${lt_prog_compiler_pic_works+set}" = set; then
15464 echo $ECHO_N "(cached) $ECHO_C" >&6
15466 lt_prog_compiler_pic_works=no
15467 ac_outfile=conftest.$ac_objext
15468 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15469 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15470 # Insert the option either (1) after the last *FLAGS variable, or
15471 # (2) before a word containing "conftest.", or (3) at the end.
15472 # Note that $ac_compile itself does not contain backslashes and begins
15473 # with a dollar sign (not a hyphen), so the echo should work correctly.
15474 # The option is referenced via a variable to avoid confusing sed.
15475 lt_compile=`echo "$ac_compile" | $SED \
15476 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15477 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15478 -e 's:$: $lt_compiler_flag:'`
15479 (eval echo "\"\$as_me:15479: $lt_compile\"" >&5)
15480 (eval "$lt_compile" 2>conftest.err)
15482 cat conftest.err >&5
15483 echo "$as_me:15483: \$? = $ac_status" >&5
15484 if (exit $ac_status) && test -s "$ac_outfile"; then
15485 # The compiler can only warn and ignore the option if not recognized
15486 # So say no if there are warnings other than the usual output.
15487 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15488 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15489 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15490 lt_prog_compiler_pic_works=yes
15496 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15497 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
15499 if test x"$lt_prog_compiler_pic_works" = xyes; then
15500 case $lt_prog_compiler_pic in
15502 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15505 lt_prog_compiler_pic=
15506 lt_prog_compiler_can_build_shared=no
15511 # For platforms which do not support PIC, -DPIC is meaningless:
15513 lt_prog_compiler_pic=
15516 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15521 # Check to make sure the static flag actually works.
15523 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15524 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15525 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15526 if test "${lt_prog_compiler_static_works+set}" = set; then
15527 echo $ECHO_N "(cached) $ECHO_C" >&6
15529 lt_prog_compiler_static_works=no
15530 save_LDFLAGS="$LDFLAGS"
15531 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15532 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15533 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15534 # The linker can only warn and ignore the option if not recognized
15535 # So say no if there are warnings
15536 if test -s conftest.err; then
15537 # Append any errors to the config.log.
15538 cat conftest.err 1>&5
15539 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15540 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15541 if diff conftest.exp conftest.er2 >/dev/null; then
15542 lt_prog_compiler_static_works=yes
15545 lt_prog_compiler_static_works=yes
15549 LDFLAGS="$save_LDFLAGS"
15552 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15553 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15555 if test x"$lt_prog_compiler_static_works" = xyes; then
15558 lt_prog_compiler_static=
15562 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15563 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15564 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15565 echo $ECHO_N "(cached) $ECHO_C" >&6
15567 lt_cv_prog_compiler_c_o=no
15568 $rm -r conftest 2>/dev/null
15572 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15574 lt_compiler_flag="-o out/conftest2.$ac_objext"
15575 # Insert the option either (1) after the last *FLAGS variable, or
15576 # (2) before a word containing "conftest.", or (3) at the end.
15577 # Note that $ac_compile itself does not contain backslashes and begins
15578 # with a dollar sign (not a hyphen), so the echo should work correctly.
15579 lt_compile=`echo "$ac_compile" | $SED \
15580 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15581 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15582 -e 's:$: $lt_compiler_flag:'`
15583 (eval echo "\"\$as_me:15583: $lt_compile\"" >&5)
15584 (eval "$lt_compile" 2>out/conftest.err)
15586 cat out/conftest.err >&5
15587 echo "$as_me:15587: \$? = $ac_status" >&5
15588 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15590 # The compiler can only warn and ignore the option if not recognized
15591 # So say no if there are warnings
15592 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15593 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15594 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15595 lt_cv_prog_compiler_c_o=yes
15600 # SGI C++ compiler will create directory out/ii_files/ for
15601 # template instantiation
15602 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15603 $rm out/* && rmdir out
15609 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15610 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
15613 hard_links="nottested"
15614 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15615 # do not overwrite the value of need_locks provided by the user
15616 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15617 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15620 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15622 ln conftest.a conftest.b 2>&5 || hard_links=no
15623 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15624 { echo "$as_me:$LINENO: result: $hard_links" >&5
15625 echo "${ECHO_T}$hard_links" >&6; }
15626 if test "$hard_links" = no; then
15627 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15628 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15635 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15636 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15639 allow_undefined_flag=
15640 enable_shared_with_static_runtimes=no
15642 archive_expsym_cmds=
15643 old_archive_From_new_cmds=
15644 old_archive_from_expsyms_cmds=
15645 export_dynamic_flag_spec=
15646 whole_archive_flag_spec=
15647 thread_safe_flag_spec=
15648 hardcode_libdir_flag_spec=
15649 hardcode_libdir_flag_spec_ld=
15650 hardcode_libdir_separator=
15652 hardcode_minus_L=no
15653 hardcode_shlibpath_var=unsupported
15654 link_all_deplibs=unknown
15655 hardcode_automatic=no
15657 module_expsym_cmds=
15658 always_export_symbols=no
15659 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15660 # include_expsyms should be a list of space-separated symbols to be *always*
15661 # included in the symbol list
15663 # exclude_expsyms can be an extended regexp of symbols to exclude
15664 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15665 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15666 # as well as any symbol that contains `d'.
15667 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15668 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15669 # platforms (ab)use it in PIC code, but their linkers get confused if
15670 # the symbol is explicitly referenced. Since portable code cannot
15671 # rely on this symbol name, it's probably fine to never include it in
15672 # preloaded symbol tables.
15673 extract_expsyms_cmds=
15674 # Just being paranoid about ensuring that cc_basename is set.
15675 for cc_temp in $compiler""; do
15677 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15678 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15683 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15686 cygwin* | mingw* | pw32*)
15687 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15688 # When not using gcc, we currently assume that we are using
15689 # Microsoft Visual C++.
15690 if test "$GCC" != yes; then
15695 # we just hope/assume this is gcc and not c89 (= MSVC++)
15704 if test "$with_gnu_ld" = yes; then
15705 # If archive_cmds runs LD, not CC, wlarc should be empty
15708 # Set some defaults for GNU ld with shared library support. These
15709 # are reset later if shared libraries are not supported. Putting them
15710 # here allows them to be overridden if necessary.
15711 runpath_var=LD_RUN_PATH
15712 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15713 export_dynamic_flag_spec='${wl}--export-dynamic'
15714 # ancient GNU ld didn't support --whole-archive et. al.
15715 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15716 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15718 whole_archive_flag_spec=
15720 supports_anon_versioning=no
15721 case `$LD -v 2>/dev/null` in
15722 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15723 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15724 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15725 *\ 2.11.*) ;; # other 2.11 versions
15726 *) supports_anon_versioning=yes ;;
15729 # See if GNU ld supports shared libraries.
15731 aix3* | aix4* | aix5*)
15732 # On AIX/PPC, the GNU linker is very broken
15733 if test "$host_cpu" != ia64; then
15737 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15738 *** to be unable to reliably create shared libraries on AIX.
15739 *** Therefore, libtool is disabling shared libraries support. If you
15740 *** really care for shared libraries, you may want to modify your PATH
15741 *** so that a non-GNU linker is found, and then restart.
15748 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)'
15749 hardcode_libdir_flag_spec='-L$libdir'
15750 hardcode_minus_L=yes
15752 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15753 # that the semantics of dynamic libraries on AmigaOS, at least up
15754 # to version 4, is to share data among multiple programs linked
15755 # with the same dynamic library. Since this doesn't match the
15756 # behavior of shared libraries on other platforms, we can't use
15762 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15763 allow_undefined_flag=unsupported
15764 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15765 # support --undefined. This deserves some investigation. FIXME
15766 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15772 cygwin* | mingw* | pw32*)
15773 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15774 # as there is no search path for DLLs.
15775 hardcode_libdir_flag_spec='-L$libdir'
15776 allow_undefined_flag=unsupported
15777 always_export_symbols=no
15778 enable_shared_with_static_runtimes=yes
15779 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15781 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15782 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15783 # If the export-symbols file already is a .def file (1st line
15784 # is EXPORTS), use it as is; otherwise, prepend...
15785 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15786 cp $export_symbols $output_objdir/$soname.def;
15788 echo EXPORTS > $output_objdir/$soname.def;
15789 cat $export_symbols >> $output_objdir/$soname.def;
15791 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15799 hardcode_shlibpath_var=no
15800 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15801 export_dynamic_flag_spec='${wl}-E'
15802 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15803 # Instead, shared libraries are loaded at an image base (0x10000000 by
15804 # default) and relocated if they conflict, which is a slow very memory
15805 # consuming and fragmenting process. To avoid this, we pick a random,
15806 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15807 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15808 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15809 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'
15812 gnu* | linux* | k*bsd*-gnu)
15813 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15815 case $cc_basename,$host_cpu in
15816 pgcc*) # Portland Group C compiler
15817 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'
15818 tmp_addflag=' $pic_flag'
15820 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15821 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'
15822 tmp_addflag=' $pic_flag -Mnomain' ;;
15823 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15824 tmp_addflag=' -i_dynamic' ;;
15825 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15826 tmp_addflag=' -i_dynamic -nofor_main' ;;
15827 ifc* | ifort*) # Intel Fortran compiler
15828 tmp_addflag=' -nofor_main' ;;
15830 case `$CC -V 2>&1 | sed 5q` in
15831 *Sun\ C*) # Sun C 5.9
15832 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'
15833 tmp_sharedflag='-G' ;;
15834 *Sun\ F*) # Sun Fortran 8.3
15835 tmp_sharedflag='-G' ;;
15837 tmp_sharedflag='-shared' ;;
15839 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15841 if test $supports_anon_versioning = yes; then
15842 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15843 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15844 $echo "local: *; };" >> $output_objdir/$libname.ver~
15845 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15847 link_all_deplibs=no
15853 netbsd* | netbsdelf*-gnu)
15854 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15855 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15858 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15859 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15864 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15868 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15869 *** create shared libraries on Solaris systems. Therefore, libtool
15870 *** is disabling shared libraries support. We urge you to upgrade GNU
15871 *** binutils to release 2.9.1 or newer. Another option is to modify
15872 *** your PATH or compiler configuration so that the native linker is
15873 *** used, and then restart.
15876 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15877 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15878 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15884 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15885 case `$LD -v 2>&1` in
15886 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15890 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15891 *** reliably create shared libraries on SCO systems. Therefore, libtool
15892 *** is disabling shared libraries support. We urge you to upgrade GNU
15893 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15894 *** your PATH or compiler configuration so that the native linker is
15895 *** used, and then restart.
15900 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15901 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15902 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15903 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15912 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15914 hardcode_direct=yes
15915 hardcode_shlibpath_var=no
15919 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15920 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15921 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15928 if test "$ld_shlibs" = no; then
15930 hardcode_libdir_flag_spec=
15931 export_dynamic_flag_spec=
15932 whole_archive_flag_spec=
15935 # PORTME fill in a description of your system's linker (not GNU ld)
15938 allow_undefined_flag=unsupported
15939 always_export_symbols=yes
15940 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'
15941 # Note: this linker hardcodes the directories in LIBPATH if there
15942 # are no directories specified by -L.
15943 hardcode_minus_L=yes
15944 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15945 # Neither direct hardcoding nor static linking is supported with a
15947 hardcode_direct=unsupported
15952 if test "$host_cpu" = ia64; then
15953 # On IA64, the linker does run time linking by default, so we don't
15954 # have to do anything special.
15955 aix_use_runtimelinking=no
15956 exp_sym_flag='-Bexport'
15959 # If we're using GNU nm, then we don't want the "-C" option.
15960 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15961 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15962 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'
15964 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'
15966 aix_use_runtimelinking=no
15968 # Test if we are trying to use run time linking or normal
15969 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15970 # need to do runtime linking.
15971 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15972 for ld_flag in $LDFLAGS; do
15973 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15974 aix_use_runtimelinking=yes
15981 exp_sym_flag='-bexport'
15982 no_entry_flag='-bnoentry'
15985 # When large executables or shared objects are built, AIX ld can
15986 # have problems creating the table of contents. If linking a library
15987 # or program results in "error TOC overflow" add -mminimal-toc to
15988 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15989 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15992 hardcode_direct=yes
15993 hardcode_libdir_separator=':'
15994 link_all_deplibs=yes
15996 if test "$GCC" = yes; then
15997 case $host_os in aix4.[012]|aix4.[012].*)
15998 # We only want to do this on AIX 4.2 and lower, the check
15999 # below for broken collect2 doesn't work under 4.3+
16000 collect2name=`${CC} -print-prog-name=collect2`
16001 if test -f "$collect2name" && \
16002 strings "$collect2name" | grep resolve_lib_name >/dev/null
16004 # We have reworked collect2
16007 # We have old collect2
16008 hardcode_direct=unsupported
16009 # It fails to find uninstalled libraries when the uninstalled
16010 # path is not listed in the libpath. Setting hardcode_minus_L
16011 # to unsupported forces relinking
16012 hardcode_minus_L=yes
16013 hardcode_libdir_flag_spec='-L$libdir'
16014 hardcode_libdir_separator=
16018 shared_flag='-shared'
16019 if test "$aix_use_runtimelinking" = yes; then
16020 shared_flag="$shared_flag "'${wl}-G'
16024 if test "$host_cpu" = ia64; then
16025 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16026 # chokes on -Wl,-G. The following line is correct:
16029 if test "$aix_use_runtimelinking" = yes; then
16030 shared_flag='${wl}-G'
16032 shared_flag='${wl}-bM:SRE'
16037 # It seems that -bexpall does not export symbols beginning with
16038 # underscore (_), so it is better to generate a list of symbols to export.
16039 always_export_symbols=yes
16040 if test "$aix_use_runtimelinking" = yes; then
16041 # Warning - without using the other runtime loading flags (-brtl),
16042 # -berok will link without error, but may produce a broken library.
16043 allow_undefined_flag='-berok'
16044 # Determine the default libpath from the value encoded in an empty executable.
16045 cat >conftest.$ac_ext <<_ACEOF
16048 cat confdefs.h >>conftest.$ac_ext
16049 cat >>conftest.$ac_ext <<_ACEOF
16050 /* end confdefs.h. */
16060 rm -f conftest.$ac_objext conftest$ac_exeext
16061 if { (ac_try="$ac_link"
16062 case "(($ac_try" in
16063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16064 *) ac_try_echo=$ac_try;;
16066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16067 (eval "$ac_link") 2>conftest.er1
16069 grep -v '^ *+' conftest.er1 >conftest.err
16071 cat conftest.err >&5
16072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073 (exit $ac_status); } && {
16074 test -z "$ac_c_werror_flag" ||
16075 test ! -s conftest.err
16076 } && test -s conftest$ac_exeext &&
16077 $as_test_x conftest$ac_exeext; then
16079 lt_aix_libpath_sed='
16080 /Import File Strings/,/^$/ {
16086 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16087 # Check for a 64-bit object if we didn't find anything.
16088 if test -z "$aix_libpath"; then
16089 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16092 echo "$as_me: failed program was:" >&5
16093 sed 's/^/| /' conftest.$ac_ext >&5
16098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16099 conftest$ac_exeext conftest.$ac_ext
16100 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16102 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16103 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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16105 if test "$host_cpu" = ia64; then
16106 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16107 allow_undefined_flag="-z nodefs"
16108 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"
16110 # Determine the default libpath from the value encoded in an empty executable.
16111 cat >conftest.$ac_ext <<_ACEOF
16114 cat confdefs.h >>conftest.$ac_ext
16115 cat >>conftest.$ac_ext <<_ACEOF
16116 /* end confdefs.h. */
16126 rm -f conftest.$ac_objext conftest$ac_exeext
16127 if { (ac_try="$ac_link"
16128 case "(($ac_try" in
16129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16130 *) ac_try_echo=$ac_try;;
16132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16133 (eval "$ac_link") 2>conftest.er1
16135 grep -v '^ *+' conftest.er1 >conftest.err
16137 cat conftest.err >&5
16138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16139 (exit $ac_status); } && {
16140 test -z "$ac_c_werror_flag" ||
16141 test ! -s conftest.err
16142 } && test -s conftest$ac_exeext &&
16143 $as_test_x conftest$ac_exeext; then
16145 lt_aix_libpath_sed='
16146 /Import File Strings/,/^$/ {
16152 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16153 # Check for a 64-bit object if we didn't find anything.
16154 if test -z "$aix_libpath"; then
16155 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16158 echo "$as_me: failed program was:" >&5
16159 sed 's/^/| /' conftest.$ac_ext >&5
16164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16165 conftest$ac_exeext conftest.$ac_ext
16166 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16168 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16169 # Warning - without using the other run time loading flags,
16170 # -berok will link without error, but may produce a broken library.
16171 no_undefined_flag=' ${wl}-bernotok'
16172 allow_undefined_flag=' ${wl}-berok'
16173 # Exported symbols can be pulled into shared objects from archives
16174 whole_archive_flag_spec='$convenience'
16175 archive_cmds_need_lc=yes
16176 # This is similar to how AIX traditionally builds its shared libraries.
16177 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'
16183 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)'
16184 hardcode_libdir_flag_spec='-L$libdir'
16185 hardcode_minus_L=yes
16186 # see comment about different semantics on the GNU ld section
16191 export_dynamic_flag_spec=-rdynamic
16194 cygwin* | mingw* | pw32*)
16195 # When not using gcc, we currently assume that we are using
16196 # Microsoft Visual C++.
16197 # hardcode_libdir_flag_spec is actually meaningless, as there is
16198 # no search path for DLLs.
16199 hardcode_libdir_flag_spec=' '
16200 allow_undefined_flag=unsupported
16201 # Tell ltmain to make .lib files, not .a files.
16203 # Tell ltmain to make .dll files, not .so files.
16205 # FIXME: Setting linknames here is a bad hack.
16206 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16207 # The linker will automatically build a .lib file if we build a DLL.
16208 old_archive_From_new_cmds='true'
16209 # FIXME: Should let the user specify the lib program.
16210 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16211 fix_srcfile_path='`cygpath -w "$srcfile"`'
16212 enable_shared_with_static_runtimes=yes
16215 darwin* | rhapsody*)
16217 rhapsody* | darwin1.[012])
16218 allow_undefined_flag='${wl}-undefined ${wl}suppress'
16221 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16222 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16224 case ${MACOSX_DEPLOYMENT_TARGET} in
16226 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16229 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
16235 archive_cmds_need_lc=no
16237 hardcode_automatic=yes
16238 hardcode_shlibpath_var=unsupported
16239 whole_archive_flag_spec=''
16240 link_all_deplibs=yes
16241 if test "$GCC" = yes ; then
16242 output_verbose_link_cmd='echo'
16243 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16244 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16245 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16246 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16247 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16249 case $cc_basename in
16251 output_verbose_link_cmd='echo'
16252 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16253 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16254 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16255 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16256 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16266 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16267 hardcode_libdir_flag_spec='-L$libdir'
16268 hardcode_shlibpath_var=no
16275 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16276 # support. Future versions do this automatically, but an explicit c++rt0.o
16277 # does not break anything, and helps significantly (at the cost of a little
16280 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16281 hardcode_libdir_flag_spec='-R$libdir'
16282 hardcode_direct=yes
16283 hardcode_shlibpath_var=no
16286 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16288 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16289 hardcode_direct=yes
16290 hardcode_minus_L=yes
16291 hardcode_shlibpath_var=no
16294 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16295 freebsd* | dragonfly*)
16296 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16297 hardcode_libdir_flag_spec='-R$libdir'
16298 hardcode_direct=yes
16299 hardcode_shlibpath_var=no
16303 if test "$GCC" = yes; then
16304 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'
16306 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'
16308 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16309 hardcode_libdir_separator=:
16310 hardcode_direct=yes
16312 # hardcode_minus_L: Not really in the search PATH,
16313 # but as the default location of the library.
16314 hardcode_minus_L=yes
16315 export_dynamic_flag_spec='${wl}-E'
16319 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16320 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16322 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16324 if test "$with_gnu_ld" = no; then
16325 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16326 hardcode_libdir_separator=:
16328 hardcode_direct=yes
16329 export_dynamic_flag_spec='${wl}-E'
16331 # hardcode_minus_L: Not really in the search PATH,
16332 # but as the default location of the library.
16333 hardcode_minus_L=yes
16338 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16341 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16344 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16347 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16353 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16356 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16359 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16363 if test "$with_gnu_ld" = no; then
16364 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16365 hardcode_libdir_separator=:
16369 hardcode_libdir_flag_spec_ld='+b $libdir'
16371 hardcode_shlibpath_var=no
16374 hardcode_direct=yes
16375 export_dynamic_flag_spec='${wl}-E'
16377 # hardcode_minus_L: Not really in the search PATH,
16378 # but as the default location of the library.
16379 hardcode_minus_L=yes
16385 irix5* | irix6* | nonstopux*)
16386 if test "$GCC" = yes; then
16387 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16389 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16390 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16392 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16393 hardcode_libdir_separator=:
16394 link_all_deplibs=yes
16397 netbsd* | netbsdelf*-gnu)
16398 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16399 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16401 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16403 hardcode_libdir_flag_spec='-R$libdir'
16404 hardcode_direct=yes
16405 hardcode_shlibpath_var=no
16409 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16410 hardcode_direct=yes
16411 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16412 hardcode_libdir_separator=:
16413 hardcode_shlibpath_var=no
16417 if test -f /usr/libexec/ld.so; then
16418 hardcode_direct=yes
16419 hardcode_shlibpath_var=no
16420 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16421 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16422 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16423 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16424 export_dynamic_flag_spec='${wl}-E'
16427 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16428 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16429 hardcode_libdir_flag_spec='-R$libdir'
16432 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16433 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16443 hardcode_libdir_flag_spec='-L$libdir'
16444 hardcode_minus_L=yes
16445 allow_undefined_flag=unsupported
16446 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'
16447 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16451 if test "$GCC" = yes; then
16452 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16453 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16455 allow_undefined_flag=' -expect_unresolved \*'
16456 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16458 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16459 hardcode_libdir_separator=:
16462 osf4* | osf5*) # as osf3* with the addition of -msym flag
16463 if test "$GCC" = yes; then
16464 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16465 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16466 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16468 allow_undefined_flag=' -expect_unresolved \*'
16469 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16470 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16471 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16473 # Both c and cxx compiler support -rpath directly
16474 hardcode_libdir_flag_spec='-rpath $libdir'
16476 hardcode_libdir_separator=:
16480 no_undefined_flag=' -z text'
16481 if test "$GCC" = yes; then
16483 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16484 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16485 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16488 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16489 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16490 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16492 hardcode_libdir_flag_spec='-R$libdir'
16493 hardcode_shlibpath_var=no
16495 solaris2.[0-5] | solaris2.[0-5].*) ;;
16497 # The compiler driver will combine and reorder linker options,
16498 # but understands `-z linker_flag'. GCC discards it without `$wl',
16499 # but is careful enough not to reorder.
16500 # Supported since Solaris 2.6 (maybe 2.5.1?)
16501 if test "$GCC" = yes; then
16502 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16504 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16508 link_all_deplibs=yes
16512 if test "x$host_vendor" = xsequent; then
16513 # Use $CC to link under sequent, because it throws in some extra .o
16514 # files that make .init and .fini sections work.
16515 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16517 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16519 hardcode_libdir_flag_spec='-L$libdir'
16520 hardcode_direct=yes
16521 hardcode_minus_L=yes
16522 hardcode_shlibpath_var=no
16526 case $host_vendor in
16528 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16529 hardcode_direct=yes # is this really true???
16532 ## LD is ld it makes a PLAMLIB
16533 ## CC just makes a GrossModule.
16534 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16535 reload_cmds='$CC -r -o $output$reload_objs'
16539 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16540 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16543 runpath_var='LD_RUN_PATH'
16544 hardcode_shlibpath_var=no
16548 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16549 hardcode_shlibpath_var=no
16550 export_dynamic_flag_spec='-Bexport'
16554 if test -d /usr/nec; then
16555 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16556 hardcode_shlibpath_var=no
16557 runpath_var=LD_RUN_PATH
16558 hardcode_runpath_var=yes
16563 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16564 no_undefined_flag='${wl}-z,text'
16565 archive_cmds_need_lc=no
16566 hardcode_shlibpath_var=no
16567 runpath_var='LD_RUN_PATH'
16569 if test "$GCC" = yes; then
16570 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16571 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16573 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16574 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16578 sysv5* | sco3.2v5* | sco5v6*)
16579 # Note: We can NOT use -z defs as we might desire, because we do not
16580 # link with -lc, and that would cause any symbols used from libc to
16581 # always be unresolved, which means just about no library would
16582 # ever link correctly. If we're not using GNU ld we use -z text
16583 # though, which does catch some bad symbols but isn't as heavy-handed
16585 no_undefined_flag='${wl}-z,text'
16586 allow_undefined_flag='${wl}-z,nodefs'
16587 archive_cmds_need_lc=no
16588 hardcode_shlibpath_var=no
16589 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16590 hardcode_libdir_separator=':'
16591 link_all_deplibs=yes
16592 export_dynamic_flag_spec='${wl}-Bexport'
16593 runpath_var='LD_RUN_PATH'
16595 if test "$GCC" = yes; then
16596 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16597 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16599 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16600 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16605 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16606 hardcode_libdir_flag_spec='-L$libdir'
16607 hardcode_shlibpath_var=no
16616 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16617 echo "${ECHO_T}$ld_shlibs" >&6; }
16618 test "$ld_shlibs" = no && can_build_shared=no
16621 # Do we need to explicitly link libc?
16623 case "x$archive_cmds_need_lc" in
16625 # Assume -lc should be added
16626 archive_cmds_need_lc=yes
16628 if test "$enable_shared" = yes && test "$GCC" = yes; then
16629 case $archive_cmds in
16631 # FIXME: we may have to deal with multi-command sequences.
16634 # Test whether the compiler implicitly links with -lc since on some
16635 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16636 # to ld, don't add -lc before -lgcc.
16637 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16638 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16640 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16643 (eval $ac_compile) 2>&5
16645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646 (exit $ac_status); } 2>conftest.err; then
16649 libobjs=conftest.$ac_objext
16651 wl=$lt_prog_compiler_wl
16652 pic_flag=$lt_prog_compiler_pic
16658 lt_save_allow_undefined_flag=$allow_undefined_flag
16659 allow_undefined_flag=
16660 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16661 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664 (exit $ac_status); }
16666 archive_cmds_need_lc=no
16668 archive_cmds_need_lc=yes
16670 allow_undefined_flag=$lt_save_allow_undefined_flag
16672 cat conftest.err 1>&5
16675 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16676 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16683 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16684 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16685 library_names_spec=
16686 libname_spec='lib$name'
16690 postuninstall_cmds=
16694 shlibpath_overrides_runpath=unknown
16696 dynamic_linker="$host_os ld.so"
16697 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16699 if test "$GCC" = yes; then
16701 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16702 *) lt_awk_arg="/^libraries:/" ;;
16704 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16705 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
16706 # if the path contains ";" then we assume it to be the separator
16707 # otherwise default to the standard path separator (i.e. ":") - it is
16708 # assumed that no part of a normal pathname contains ";" but that should
16709 # okay in the real world where ";" in dirpaths is itself problematic.
16710 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
16712 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16714 # Ok, now we have the path, separated by spaces, we can step through it
16715 # and add multilib dir if necessary.
16716 lt_tmp_lt_search_path_spec=
16717 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16718 for lt_sys_path in $lt_search_path_spec; do
16719 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16720 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16722 test -d "$lt_sys_path" && \
16723 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16726 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
16727 BEGIN {RS=" "; FS="/|\n";} {
16730 for (lt_i = NF; lt_i > 0; lt_i--) {
16731 if ($lt_i != "" && $lt_i != ".") {
16732 if ($lt_i == "..") {
16735 if (lt_count == 0) {
16736 lt_foo="/" $lt_i lt_foo;
16743 if (lt_foo != "") { lt_freq[lt_foo]++; }
16744 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16746 sys_lib_search_path_spec=`echo $lt_search_path_spec`
16748 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16750 need_lib_prefix=unknown
16751 hardcode_into_libs=no
16753 # when you set need_version to no, make sure it does not cause -set_version
16754 # flags to be left without arguments
16755 need_version=unknown
16760 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16761 shlibpath_var=LIBPATH
16763 # AIX 3 has no versioning support, so we append a major version to the name.
16764 soname_spec='${libname}${release}${shared_ext}$major'
16771 hardcode_into_libs=yes
16772 if test "$host_cpu" = ia64; then
16773 # AIX 5 supports IA64
16774 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16775 shlibpath_var=LD_LIBRARY_PATH
16777 # With GCC up to 2.95.x, collect2 would create an import file
16778 # for dependence libraries. The import file would start with
16779 # the line `#! .'. This would cause the generated library to
16780 # depend on `.', always an invalid library. This was fixed in
16781 # development snapshots of GCC prior to 3.0.
16783 aix4 | aix4.[01] | aix4.[01].*)
16784 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16786 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16789 can_build_shared=no
16793 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16794 # soname into executable. Probably we can add versioning support to
16795 # collect2, so additional links can be useful in future.
16796 if test "$aix_use_runtimelinking" = yes; then
16797 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16798 # instead of lib<name>.a to let people know that these are not
16799 # typical AIX shared libraries.
16800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16802 # We preserve .a as extension for shared libraries through AIX4.2
16803 # and later when we are not doing run time linking.
16804 library_names_spec='${libname}${release}.a $libname.a'
16805 soname_spec='${libname}${release}${shared_ext}$major'
16807 shlibpath_var=LIBPATH
16812 library_names_spec='$libname.ixlibrary $libname.a'
16813 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16814 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'
16818 library_names_spec='${libname}${shared_ext}'
16819 dynamic_linker="$host_os ld.so"
16820 shlibpath_var=LIBRARY_PATH
16826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16827 soname_spec='${libname}${release}${shared_ext}$major'
16828 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16829 shlibpath_var=LD_LIBRARY_PATH
16830 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16831 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16832 # the default ld.so.conf also contains /usr/contrib/lib and
16833 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16834 # libtool to hard-code these into programs
16837 cygwin* | mingw* | pw32*)
16838 version_type=windows
16843 case $GCC,$host_os in
16844 yes,cygwin* | yes,mingw* | yes,pw32*)
16845 library_names_spec='$libname.dll.a'
16846 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16847 postinstall_cmds='base_file=`basename \${file}`~
16848 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16849 dldir=$destdir/`dirname \$dlpath`~
16850 test -d \$dldir || mkdir -p \$dldir~
16851 $install_prog $dir/$dlname \$dldir/$dlname~
16852 chmod a+x \$dldir/$dlname'
16853 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16854 dlpath=$dir/\$dldll~
16856 shlibpath_overrides_runpath=yes
16860 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16861 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16862 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16865 # MinGW DLLs use traditional 'lib' prefix
16866 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16867 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16868 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16869 # It is most probably a Windows format PATH printed by
16870 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16871 # path with ; separators, and with drive letters. We can handle the
16872 # drive letters (cygwin fileutils understands them), so leave them,
16873 # especially as we might pass files found there to a mingw objdump,
16874 # which wouldn't understand a cygwinified path. Ahh.
16875 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16877 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16881 # pw32 DLLs use 'pw' prefix rather than 'lib'
16882 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16888 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16891 dynamic_linker='Win32 ld.exe'
16892 # FIXME: first we should search . and the directory the executable is in
16896 darwin* | rhapsody*)
16897 dynamic_linker="$host_os dyld"
16898 version_type=darwin
16901 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16902 soname_spec='${libname}${release}${major}$shared_ext'
16903 shlibpath_overrides_runpath=yes
16904 shlibpath_var=DYLD_LIBRARY_PATH
16905 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16907 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16908 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16916 soname_spec='${libname}${release}${shared_ext}$major'
16917 shlibpath_var=LD_LIBRARY_PATH
16924 freebsd* | dragonfly*)
16925 # DragonFly does not have aout. When/if they implement a new
16926 # versioning mechanism, adjust this.
16927 if test -x /usr/bin/objformat; then
16928 objformat=`/usr/bin/objformat`
16931 freebsd[123]*) objformat=aout ;;
16932 *) objformat=elf ;;
16935 version_type=freebsd-$objformat
16936 case $version_type in
16938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16943 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16947 shlibpath_var=LD_LIBRARY_PATH
16950 shlibpath_overrides_runpath=yes
16952 freebsd3.[01]* | freebsdelf3.[01]*)
16953 shlibpath_overrides_runpath=yes
16954 hardcode_into_libs=yes
16956 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16957 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16958 shlibpath_overrides_runpath=no
16959 hardcode_into_libs=yes
16961 *) # from 4.6 on, and DragonFly
16962 shlibpath_overrides_runpath=yes
16963 hardcode_into_libs=yes
16972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16973 soname_spec='${libname}${release}${shared_ext}$major'
16974 shlibpath_var=LD_LIBRARY_PATH
16975 hardcode_into_libs=yes
16978 hpux9* | hpux10* | hpux11*)
16979 # Give a soname corresponding to the major version so that dld.sl refuses to
16980 # link against other versions.
16987 hardcode_into_libs=yes
16988 dynamic_linker="$host_os dld.so"
16989 shlibpath_var=LD_LIBRARY_PATH
16990 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16992 soname_spec='${libname}${release}${shared_ext}$major'
16993 if test "X$HPUX_IA64_MODE" = X32; then
16994 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16996 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16998 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17002 hardcode_into_libs=yes
17003 dynamic_linker="$host_os dld.sl"
17004 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17005 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17007 soname_spec='${libname}${release}${shared_ext}$major'
17008 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17009 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17013 dynamic_linker="$host_os dld.sl"
17014 shlibpath_var=SHLIB_PATH
17015 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17017 soname_spec='${libname}${release}${shared_ext}$major'
17020 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17021 postinstall_cmds='chmod 555 $lib'
17028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17029 soname_spec='${libname}${release}${shared_ext}$major'
17030 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17031 shlibpath_var=LD_LIBRARY_PATH
17032 shlibpath_overrides_runpath=no
17033 hardcode_into_libs=yes
17036 irix5* | irix6* | nonstopux*)
17038 nonstopux*) version_type=nonstopux ;;
17040 if test "$lt_cv_prog_gnu_ld" = yes; then
17048 soname_spec='${libname}${release}${shared_ext}$major'
17049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17051 irix5* | nonstopux*)
17052 libsuff= shlibsuff=
17055 case $LD in # libtool.m4 will add one of these switches to LD
17056 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17057 libsuff= shlibsuff= libmagic=32-bit;;
17058 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17059 libsuff=32 shlibsuff=N32 libmagic=N32;;
17060 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17061 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17062 *) libsuff= shlibsuff= libmagic=never-match;;
17066 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17067 shlibpath_overrides_runpath=no
17068 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17069 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17070 hardcode_into_libs=yes
17073 # No shared lib support for Linux oldld, aout, or coff.
17074 linux*oldld* | linux*aout* | linux*coff*)
17078 # This must be Linux ELF.
17079 linux* | k*bsd*-gnu)
17083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17084 soname_spec='${libname}${release}${shared_ext}$major'
17085 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17086 shlibpath_var=LD_LIBRARY_PATH
17087 shlibpath_overrides_runpath=no
17088 # This implies no fast_install, which is unacceptable.
17089 # Some rework will be needed to allow for fast_install
17090 # before this can be enabled.
17091 hardcode_into_libs=yes
17093 # Append ld.so.conf contents to the search path
17094 if test -f /etc/ld.so.conf; then
17095 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' ' '`
17096 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17099 # We used to test for /lib/ld.so.1 and disable shared libraries on
17100 # powerpc, because MkLinux only supported shared libraries with the
17101 # GNU dynamic linker. Since this was broken with cross compilers,
17102 # most powerpc-linux boxes support dynamic linking these days and
17103 # people can always --disable-shared, the test was removed, and we
17104 # assume the GNU/Linux dynamic linker is in use.
17105 dynamic_linker='GNU/Linux ld.so'
17112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17113 soname_spec='${libname}${release}${shared_ext}$major'
17114 shlibpath_var=LD_LIBRARY_PATH
17115 shlibpath_overrides_runpath=no
17116 hardcode_into_libs=yes
17117 dynamic_linker='NetBSD ld.elf_so'
17124 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17126 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17127 dynamic_linker='NetBSD (a.out) ld.so'
17129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17130 soname_spec='${libname}${release}${shared_ext}$major'
17131 dynamic_linker='NetBSD ld.elf_so'
17133 shlibpath_var=LD_LIBRARY_PATH
17134 shlibpath_overrides_runpath=yes
17135 hardcode_into_libs=yes
17140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17141 shlibpath_var=LD_LIBRARY_PATH
17142 shlibpath_overrides_runpath=yes
17149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17150 soname_spec='${libname}${release}${shared_ext}$major'
17151 shlibpath_var=LD_LIBRARY_PATH
17152 shlibpath_overrides_runpath=yes
17157 sys_lib_dlsearch_path_spec="/usr/lib"
17159 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17161 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17162 *) need_version=no ;;
17164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17165 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17166 shlibpath_var=LD_LIBRARY_PATH
17167 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17169 openbsd2.[89] | openbsd2.[89].*)
17170 shlibpath_overrides_runpath=no
17173 shlibpath_overrides_runpath=yes
17177 shlibpath_overrides_runpath=yes
17182 libname_spec='$name'
17185 library_names_spec='$libname${shared_ext} $libname.a'
17186 dynamic_linker='OS/2 ld.exe'
17187 shlibpath_var=LIBPATH
17190 osf3* | osf4* | osf5*)
17194 soname_spec='${libname}${release}${shared_ext}$major'
17195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17196 shlibpath_var=LD_LIBRARY_PATH
17197 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17198 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17210 soname_spec='${libname}${release}${shared_ext}$major'
17211 shlibpath_var=LD_LIBRARY_PATH
17212 shlibpath_overrides_runpath=yes
17213 hardcode_into_libs=yes
17214 # ldd complains unless libraries are executable
17215 postinstall_cmds='chmod +x $lib'
17220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17221 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17222 shlibpath_var=LD_LIBRARY_PATH
17223 shlibpath_overrides_runpath=yes
17224 if test "$with_gnu_ld" = yes; then
17232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17233 soname_spec='${libname}${release}${shared_ext}$major'
17234 shlibpath_var=LD_LIBRARY_PATH
17235 case $host_vendor in
17237 shlibpath_overrides_runpath=no
17239 export_dynamic_flag_spec='${wl}-Blargedynsym'
17240 runpath_var=LD_RUN_PATH
17248 shlibpath_overrides_runpath=no
17249 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17255 if test -d /usr/nec ;then
17257 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17258 soname_spec='$libname${shared_ext}.$major'
17259 shlibpath_var=LD_LIBRARY_PATH
17263 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17264 version_type=freebsd-elf
17267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17268 soname_spec='${libname}${release}${shared_ext}$major'
17269 shlibpath_var=LD_LIBRARY_PATH
17270 hardcode_into_libs=yes
17271 if test "$with_gnu_ld" = yes; then
17272 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17273 shlibpath_overrides_runpath=no
17275 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17276 shlibpath_overrides_runpath=yes
17279 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17283 sys_lib_dlsearch_path_spec='/usr/lib'
17288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17289 soname_spec='${libname}${release}${shared_ext}$major'
17290 shlibpath_var=LD_LIBRARY_PATH
17297 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17298 echo "${ECHO_T}$dynamic_linker" >&6; }
17299 test "$dynamic_linker" = no && can_build_shared=no
17301 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17302 if test "$GCC" = yes; then
17303 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17306 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17307 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17309 if test -n "$hardcode_libdir_flag_spec" || \
17310 test -n "$runpath_var" || \
17311 test "X$hardcode_automatic" = "Xyes" ; then
17313 # We can hardcode non-existant directories.
17314 if test "$hardcode_direct" != no &&
17315 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17316 # have to relink, otherwise we might link with an installed library
17317 # when we should be linking with a yet-to-be-installed one
17318 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
17319 test "$hardcode_minus_L" != no; then
17320 # Linking always hardcodes the temporary library directory.
17321 hardcode_action=relink
17323 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17324 hardcode_action=immediate
17327 # We cannot hardcode anything, or else we can only hardcode existing
17329 hardcode_action=unsupported
17331 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
17332 echo "${ECHO_T}$hardcode_action" >&6; }
17334 if test "$hardcode_action" = relink; then
17335 # Fast installation is not supported
17336 enable_fast_install=no
17337 elif test "$shlibpath_overrides_runpath" = yes ||
17338 test "$enable_shared" = no; then
17339 # Fast installation is not necessary
17340 enable_fast_install=needless
17345 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17346 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
17347 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17348 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17349 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17350 { echo "$as_me:$LINENO: result: yes" >&5
17351 echo "${ECHO_T}yes" >&6; }
17353 # FIXME - insert some real tests, host_os isn't really good enough
17356 if test -n "$STRIP" ; then
17357 striplib="$STRIP -x"
17358 old_striplib="$STRIP -S"
17359 { echo "$as_me:$LINENO: result: yes" >&5
17360 echo "${ECHO_T}yes" >&6; }
17362 { echo "$as_me:$LINENO: result: no" >&5
17363 echo "${ECHO_T}no" >&6; }
17367 { echo "$as_me:$LINENO: result: no" >&5
17368 echo "${ECHO_T}no" >&6; }
17373 if test "x$enable_dlopen" != xyes; then
17374 enable_dlopen=unknown
17375 enable_dlopen_self=unknown
17376 enable_dlopen_self_static=unknown
17383 lt_cv_dlopen="load_add_on"
17385 lt_cv_dlopen_self=yes
17389 lt_cv_dlopen="LoadLibrary"
17394 lt_cv_dlopen="dlopen"
17399 # if libdl is installed we need to link against it
17400 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17401 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17402 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17403 echo $ECHO_N "(cached) $ECHO_C" >&6
17405 ac_check_lib_save_LIBS=$LIBS
17407 cat >conftest.$ac_ext <<_ACEOF
17410 cat confdefs.h >>conftest.$ac_ext
17411 cat >>conftest.$ac_ext <<_ACEOF
17412 /* end confdefs.h. */
17414 /* Override any GCC internal prototype to avoid an error.
17415 Use char because int might match the return type of a GCC
17416 builtin and then its argument prototype would still apply. */
17429 rm -f conftest.$ac_objext conftest$ac_exeext
17430 if { (ac_try="$ac_link"
17431 case "(($ac_try" in
17432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17433 *) ac_try_echo=$ac_try;;
17435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17436 (eval "$ac_link") 2>conftest.er1
17438 grep -v '^ *+' conftest.er1 >conftest.err
17440 cat conftest.err >&5
17441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442 (exit $ac_status); } && {
17443 test -z "$ac_c_werror_flag" ||
17444 test ! -s conftest.err
17445 } && test -s conftest$ac_exeext &&
17446 $as_test_x conftest$ac_exeext; then
17447 ac_cv_lib_dl_dlopen=yes
17449 echo "$as_me: failed program was:" >&5
17450 sed 's/^/| /' conftest.$ac_ext >&5
17452 ac_cv_lib_dl_dlopen=no
17455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17456 conftest$ac_exeext conftest.$ac_ext
17457 LIBS=$ac_check_lib_save_LIBS
17459 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17460 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17461 if test $ac_cv_lib_dl_dlopen = yes; then
17462 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17465 lt_cv_dlopen="dyld"
17467 lt_cv_dlopen_self=yes
17474 { echo "$as_me:$LINENO: checking for shl_load" >&5
17475 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17476 if test "${ac_cv_func_shl_load+set}" = set; then
17477 echo $ECHO_N "(cached) $ECHO_C" >&6
17479 cat >conftest.$ac_ext <<_ACEOF
17482 cat confdefs.h >>conftest.$ac_ext
17483 cat >>conftest.$ac_ext <<_ACEOF
17484 /* end confdefs.h. */
17485 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17486 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17487 #define shl_load innocuous_shl_load
17489 /* System header to define __stub macros and hopefully few prototypes,
17490 which can conflict with char shl_load (); below.
17491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17492 <limits.h> exists even on freestanding compilers. */
17495 # include <limits.h>
17497 # include <assert.h>
17502 /* Override any GCC internal prototype to avoid an error.
17503 Use char because int might match the return type of a GCC
17504 builtin and then its argument prototype would still apply. */
17509 /* The GNU C library defines this for functions which it implements
17510 to always fail with ENOSYS. Some functions are actually named
17511 something starting with __ and the normal name is an alias. */
17512 #if defined __stub_shl_load || defined __stub___shl_load
17519 return shl_load ();
17524 rm -f conftest.$ac_objext conftest$ac_exeext
17525 if { (ac_try="$ac_link"
17526 case "(($ac_try" in
17527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17528 *) ac_try_echo=$ac_try;;
17530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17531 (eval "$ac_link") 2>conftest.er1
17533 grep -v '^ *+' conftest.er1 >conftest.err
17535 cat conftest.err >&5
17536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537 (exit $ac_status); } && {
17538 test -z "$ac_c_werror_flag" ||
17539 test ! -s conftest.err
17540 } && test -s conftest$ac_exeext &&
17541 $as_test_x conftest$ac_exeext; then
17542 ac_cv_func_shl_load=yes
17544 echo "$as_me: failed program was:" >&5
17545 sed 's/^/| /' conftest.$ac_ext >&5
17547 ac_cv_func_shl_load=no
17550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17551 conftest$ac_exeext conftest.$ac_ext
17553 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17554 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17555 if test $ac_cv_func_shl_load = yes; then
17556 lt_cv_dlopen="shl_load"
17558 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17559 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17560 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17561 echo $ECHO_N "(cached) $ECHO_C" >&6
17563 ac_check_lib_save_LIBS=$LIBS
17565 cat >conftest.$ac_ext <<_ACEOF
17568 cat confdefs.h >>conftest.$ac_ext
17569 cat >>conftest.$ac_ext <<_ACEOF
17570 /* end confdefs.h. */
17572 /* Override any GCC internal prototype to avoid an error.
17573 Use char because int might match the return type of a GCC
17574 builtin and then its argument prototype would still apply. */
17582 return shl_load ();
17587 rm -f conftest.$ac_objext conftest$ac_exeext
17588 if { (ac_try="$ac_link"
17589 case "(($ac_try" in
17590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17591 *) ac_try_echo=$ac_try;;
17593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17594 (eval "$ac_link") 2>conftest.er1
17596 grep -v '^ *+' conftest.er1 >conftest.err
17598 cat conftest.err >&5
17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600 (exit $ac_status); } && {
17601 test -z "$ac_c_werror_flag" ||
17602 test ! -s conftest.err
17603 } && test -s conftest$ac_exeext &&
17604 $as_test_x conftest$ac_exeext; then
17605 ac_cv_lib_dld_shl_load=yes
17607 echo "$as_me: failed program was:" >&5
17608 sed 's/^/| /' conftest.$ac_ext >&5
17610 ac_cv_lib_dld_shl_load=no
17613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17614 conftest$ac_exeext conftest.$ac_ext
17615 LIBS=$ac_check_lib_save_LIBS
17617 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17618 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17619 if test $ac_cv_lib_dld_shl_load = yes; then
17620 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17622 { echo "$as_me:$LINENO: checking for dlopen" >&5
17623 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17624 if test "${ac_cv_func_dlopen+set}" = set; then
17625 echo $ECHO_N "(cached) $ECHO_C" >&6
17627 cat >conftest.$ac_ext <<_ACEOF
17630 cat confdefs.h >>conftest.$ac_ext
17631 cat >>conftest.$ac_ext <<_ACEOF
17632 /* end confdefs.h. */
17633 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17634 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17635 #define dlopen innocuous_dlopen
17637 /* System header to define __stub macros and hopefully few prototypes,
17638 which can conflict with char dlopen (); below.
17639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17640 <limits.h> exists even on freestanding compilers. */
17643 # include <limits.h>
17645 # include <assert.h>
17650 /* Override any GCC internal prototype to avoid an error.
17651 Use char because int might match the return type of a GCC
17652 builtin and then its argument prototype would still apply. */
17657 /* The GNU C library defines this for functions which it implements
17658 to always fail with ENOSYS. Some functions are actually named
17659 something starting with __ and the normal name is an alias. */
17660 #if defined __stub_dlopen || defined __stub___dlopen
17672 rm -f conftest.$ac_objext conftest$ac_exeext
17673 if { (ac_try="$ac_link"
17674 case "(($ac_try" in
17675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17676 *) ac_try_echo=$ac_try;;
17678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17679 (eval "$ac_link") 2>conftest.er1
17681 grep -v '^ *+' conftest.er1 >conftest.err
17683 cat conftest.err >&5
17684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685 (exit $ac_status); } && {
17686 test -z "$ac_c_werror_flag" ||
17687 test ! -s conftest.err
17688 } && test -s conftest$ac_exeext &&
17689 $as_test_x conftest$ac_exeext; then
17690 ac_cv_func_dlopen=yes
17692 echo "$as_me: failed program was:" >&5
17693 sed 's/^/| /' conftest.$ac_ext >&5
17695 ac_cv_func_dlopen=no
17698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17699 conftest$ac_exeext conftest.$ac_ext
17701 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17702 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17703 if test $ac_cv_func_dlopen = yes; then
17704 lt_cv_dlopen="dlopen"
17706 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17707 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17708 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17709 echo $ECHO_N "(cached) $ECHO_C" >&6
17711 ac_check_lib_save_LIBS=$LIBS
17713 cat >conftest.$ac_ext <<_ACEOF
17716 cat confdefs.h >>conftest.$ac_ext
17717 cat >>conftest.$ac_ext <<_ACEOF
17718 /* end confdefs.h. */
17720 /* Override any GCC internal prototype to avoid an error.
17721 Use char because int might match the return type of a GCC
17722 builtin and then its argument prototype would still apply. */
17735 rm -f conftest.$ac_objext conftest$ac_exeext
17736 if { (ac_try="$ac_link"
17737 case "(($ac_try" in
17738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17739 *) ac_try_echo=$ac_try;;
17741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17742 (eval "$ac_link") 2>conftest.er1
17744 grep -v '^ *+' conftest.er1 >conftest.err
17746 cat conftest.err >&5
17747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748 (exit $ac_status); } && {
17749 test -z "$ac_c_werror_flag" ||
17750 test ! -s conftest.err
17751 } && test -s conftest$ac_exeext &&
17752 $as_test_x conftest$ac_exeext; then
17753 ac_cv_lib_dl_dlopen=yes
17755 echo "$as_me: failed program was:" >&5
17756 sed 's/^/| /' conftest.$ac_ext >&5
17758 ac_cv_lib_dl_dlopen=no
17761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17762 conftest$ac_exeext conftest.$ac_ext
17763 LIBS=$ac_check_lib_save_LIBS
17765 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17766 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17767 if test $ac_cv_lib_dl_dlopen = yes; then
17768 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17770 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17771 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17772 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17773 echo $ECHO_N "(cached) $ECHO_C" >&6
17775 ac_check_lib_save_LIBS=$LIBS
17776 LIBS="-lsvld $LIBS"
17777 cat >conftest.$ac_ext <<_ACEOF
17780 cat confdefs.h >>conftest.$ac_ext
17781 cat >>conftest.$ac_ext <<_ACEOF
17782 /* end confdefs.h. */
17784 /* Override any GCC internal prototype to avoid an error.
17785 Use char because int might match the return type of a GCC
17786 builtin and then its argument prototype would still apply. */
17799 rm -f conftest.$ac_objext conftest$ac_exeext
17800 if { (ac_try="$ac_link"
17801 case "(($ac_try" in
17802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17803 *) ac_try_echo=$ac_try;;
17805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17806 (eval "$ac_link") 2>conftest.er1
17808 grep -v '^ *+' conftest.er1 >conftest.err
17810 cat conftest.err >&5
17811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812 (exit $ac_status); } && {
17813 test -z "$ac_c_werror_flag" ||
17814 test ! -s conftest.err
17815 } && test -s conftest$ac_exeext &&
17816 $as_test_x conftest$ac_exeext; then
17817 ac_cv_lib_svld_dlopen=yes
17819 echo "$as_me: failed program was:" >&5
17820 sed 's/^/| /' conftest.$ac_ext >&5
17822 ac_cv_lib_svld_dlopen=no
17825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17826 conftest$ac_exeext conftest.$ac_ext
17827 LIBS=$ac_check_lib_save_LIBS
17829 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17830 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17831 if test $ac_cv_lib_svld_dlopen = yes; then
17832 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17834 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17835 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17836 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17837 echo $ECHO_N "(cached) $ECHO_C" >&6
17839 ac_check_lib_save_LIBS=$LIBS
17841 cat >conftest.$ac_ext <<_ACEOF
17844 cat confdefs.h >>conftest.$ac_ext
17845 cat >>conftest.$ac_ext <<_ACEOF
17846 /* end confdefs.h. */
17848 /* Override any GCC internal prototype to avoid an error.
17849 Use char because int might match the return type of a GCC
17850 builtin and then its argument prototype would still apply. */
17858 return dld_link ();
17863 rm -f conftest.$ac_objext conftest$ac_exeext
17864 if { (ac_try="$ac_link"
17865 case "(($ac_try" in
17866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17867 *) ac_try_echo=$ac_try;;
17869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17870 (eval "$ac_link") 2>conftest.er1
17872 grep -v '^ *+' conftest.er1 >conftest.err
17874 cat conftest.err >&5
17875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876 (exit $ac_status); } && {
17877 test -z "$ac_c_werror_flag" ||
17878 test ! -s conftest.err
17879 } && test -s conftest$ac_exeext &&
17880 $as_test_x conftest$ac_exeext; then
17881 ac_cv_lib_dld_dld_link=yes
17883 echo "$as_me: failed program was:" >&5
17884 sed 's/^/| /' conftest.$ac_ext >&5
17886 ac_cv_lib_dld_dld_link=no
17889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17890 conftest$ac_exeext conftest.$ac_ext
17891 LIBS=$ac_check_lib_save_LIBS
17893 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17894 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17895 if test $ac_cv_lib_dld_dld_link = yes; then
17896 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17917 if test "x$lt_cv_dlopen" != xno; then
17923 case $lt_cv_dlopen in
17925 save_CPPFLAGS="$CPPFLAGS"
17926 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17928 save_LDFLAGS="$LDFLAGS"
17929 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17932 LIBS="$lt_cv_dlopen_libs $LIBS"
17934 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17935 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17936 if test "${lt_cv_dlopen_self+set}" = set; then
17937 echo $ECHO_N "(cached) $ECHO_C" >&6
17939 if test "$cross_compiling" = yes; then :
17940 lt_cv_dlopen_self=cross
17942 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17943 lt_status=$lt_dlunknown
17944 cat > conftest.$ac_ext <<EOF
17945 #line 17945 "configure"
17946 #include "confdefs.h"
17955 # define LT_DLGLOBAL RTLD_GLOBAL
17958 # define LT_DLGLOBAL DL_GLOBAL
17960 # define LT_DLGLOBAL 0
17964 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17965 find out it does not work in some platform. */
17966 #ifndef LT_DLLAZY_OR_NOW
17968 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17971 # define LT_DLLAZY_OR_NOW DL_LAZY
17974 # define LT_DLLAZY_OR_NOW RTLD_NOW
17977 # define LT_DLLAZY_OR_NOW DL_NOW
17979 # define LT_DLLAZY_OR_NOW 0
17987 extern "C" void exit (int);
17990 void fnord() { int i=42;}
17993 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17994 int status = $lt_dlunknown;
17998 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17999 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18000 /* dlclose (self); */
18008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18009 (eval $ac_link) 2>&5
18011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18012 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18013 (./conftest; exit; ) >&5 2>/dev/null
18015 case x$lt_status in
18016 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18017 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18018 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18021 # compilation failed
18022 lt_cv_dlopen_self=no
18029 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18030 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
18032 if test "x$lt_cv_dlopen_self" = xyes; then
18033 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18034 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18035 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
18036 if test "${lt_cv_dlopen_self_static+set}" = set; then
18037 echo $ECHO_N "(cached) $ECHO_C" >&6
18039 if test "$cross_compiling" = yes; then :
18040 lt_cv_dlopen_self_static=cross
18042 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18043 lt_status=$lt_dlunknown
18044 cat > conftest.$ac_ext <<EOF
18045 #line 18045 "configure"
18046 #include "confdefs.h"
18055 # define LT_DLGLOBAL RTLD_GLOBAL
18058 # define LT_DLGLOBAL DL_GLOBAL
18060 # define LT_DLGLOBAL 0
18064 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18065 find out it does not work in some platform. */
18066 #ifndef LT_DLLAZY_OR_NOW
18068 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18071 # define LT_DLLAZY_OR_NOW DL_LAZY
18074 # define LT_DLLAZY_OR_NOW RTLD_NOW
18077 # define LT_DLLAZY_OR_NOW DL_NOW
18079 # define LT_DLLAZY_OR_NOW 0
18087 extern "C" void exit (int);
18090 void fnord() { int i=42;}
18093 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18094 int status = $lt_dlunknown;
18098 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18099 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18100 /* dlclose (self); */
18108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18109 (eval $ac_link) 2>&5
18111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18113 (./conftest; exit; ) >&5 2>/dev/null
18115 case x$lt_status in
18116 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18117 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18118 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18121 # compilation failed
18122 lt_cv_dlopen_self_static=no
18129 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18130 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
18133 CPPFLAGS="$save_CPPFLAGS"
18134 LDFLAGS="$save_LDFLAGS"
18139 case $lt_cv_dlopen_self in
18140 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18141 *) enable_dlopen_self=unknown ;;
18144 case $lt_cv_dlopen_self_static in
18145 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18146 *) enable_dlopen_self_static=unknown ;;
18151 # Report which library types will actually be built
18152 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18153 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
18154 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
18155 echo "${ECHO_T}$can_build_shared" >&6; }
18157 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18158 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
18159 test "$can_build_shared" = "no" && enable_shared=no
18161 # On AIX, shared libraries and static libraries use the same namespace, and
18162 # are all built from PIC.
18165 test "$enable_shared" = yes && enable_static=no
18166 if test -n "$RANLIB"; then
18167 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18168 postinstall_cmds='$RANLIB $lib'
18173 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18174 test "$enable_shared" = yes && enable_static=no
18178 { echo "$as_me:$LINENO: result: $enable_shared" >&5
18179 echo "${ECHO_T}$enable_shared" >&6; }
18181 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18182 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
18183 # Make sure either enable_shared or enable_static is yes.
18184 test "$enable_shared" = yes || enable_static=yes
18185 { echo "$as_me:$LINENO: result: $enable_static" >&5
18186 echo "${ECHO_T}$enable_static" >&6; }
18188 # The else clause should only fire when bootstrapping the
18189 # libtool distribution, otherwise you forgot to ship ltmain.sh
18190 # with your package, and you will get complaints that there are
18191 # no rules to generate ltmain.sh.
18192 if test -f "$ltmain"; then
18193 # See if we are running on zsh, and set the options which allow our commands through
18194 # without removal of \ escapes.
18195 if test -n "${ZSH_VERSION+set}" ; then
18196 setopt NO_GLOB_SUBST
18198 # Now quote all the things that may contain metacharacters while being
18199 # careful not to overquote the AC_SUBSTed values. We take copies of the
18200 # variables and quote the copies for generation of the libtool script.
18201 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18203 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18204 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18205 deplibs_check_method reload_flag reload_cmds need_locks \
18206 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18207 lt_cv_sys_global_symbol_to_c_name_address \
18208 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18209 old_postinstall_cmds old_postuninstall_cmds \
18213 lt_prog_compiler_wl \
18214 lt_prog_compiler_pic \
18215 lt_prog_compiler_static \
18216 lt_prog_compiler_no_builtin_flag \
18217 export_dynamic_flag_spec \
18218 thread_safe_flag_spec \
18219 whole_archive_flag_spec \
18220 enable_shared_with_static_runtimes \
18222 old_archive_from_new_cmds \
18227 compiler_lib_search_path \
18229 archive_expsym_cmds \
18231 postuninstall_cmds \
18232 old_archive_from_expsyms_cmds \
18233 allow_undefined_flag \
18234 no_undefined_flag \
18235 export_symbols_cmds \
18236 hardcode_libdir_flag_spec \
18237 hardcode_libdir_flag_spec_ld \
18238 hardcode_libdir_separator \
18239 hardcode_automatic \
18241 module_expsym_cmds \
18242 lt_cv_prog_compiler_c_o \
18245 include_expsyms; do
18248 old_archive_cmds | \
18249 old_archive_from_new_cmds | \
18251 archive_expsym_cmds | \
18253 module_expsym_cmds | \
18254 old_archive_from_expsyms_cmds | \
18255 export_symbols_cmds | \
18256 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18257 postinstall_cmds | postuninstall_cmds | \
18258 old_postinstall_cmds | old_postuninstall_cmds | \
18259 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18260 # Double-quote double-evaled strings.
18261 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18264 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18270 *'\$0 --fallback-echo"')
18271 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18275 cfgfile="${ofile}T"
18276 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
18278 { echo "$as_me:$LINENO: creating $ofile" >&5
18279 echo "$as_me: creating $ofile" >&6;}
18281 cat <<__EOF__ >> "$cfgfile"
18284 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18285 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
18286 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18288 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
18289 # Free Software Foundation, Inc.
18291 # This file is part of GNU Libtool:
18292 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
18294 # This program is free software; you can redistribute it and/or modify
18295 # it under the terms of the GNU General Public License as published by
18296 # the Free Software Foundation; either version 2 of the License, or
18297 # (at your option) any later version.
18299 # This program is distributed in the hope that it will be useful, but
18300 # WITHOUT ANY WARRANTY; without even the implied warranty of
18301 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18302 # General Public License for more details.
18304 # You should have received a copy of the GNU General Public License
18305 # along with this program; if not, write to the Free Software
18306 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18308 # As a special exception to the GNU General Public License, if you
18309 # distribute this file as part of a program that contains a
18310 # configuration script generated by Autoconf, you may include it under
18311 # the same distribution terms that you use for the rest of that program.
18313 # A sed program that does not truncate output.
18316 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18317 Xsed="$SED -e 1s/^X//"
18319 # The HP-UX ksh and POSIX shell print the target directory to stdout
18320 # if CDPATH is set.
18321 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18323 # The names of the tagged configurations supported by this script.
18326 # ### BEGIN LIBTOOL CONFIG
18328 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18330 # Shell to use when invoking shell scripts.
18333 # Whether or not to build shared libraries.
18334 build_libtool_libs=$enable_shared
18336 # Whether or not to build static libraries.
18337 build_old_libs=$enable_static
18339 # Whether or not to add -lc for building shared libraries.
18340 build_libtool_need_lc=$archive_cmds_need_lc
18342 # Whether or not to disallow shared libs when runtime libs are static
18343 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18345 # Whether or not to optimize for fast installation.
18346 fast_install=$enable_fast_install
18349 host_alias=$host_alias
18353 # The build system.
18354 build_alias=$build_alias
18358 # An echo program that does not interpret backslashes.
18363 AR_FLAGS=$lt_AR_FLAGS
18368 # LTCC compiler flags.
18369 LTCFLAGS=$lt_LTCFLAGS
18371 # A language-specific compiler.
18374 # Is the compiler the GNU C compiler?
18380 # The linker used to build libraries.
18383 # Whether we need hard or soft links.
18386 # A BSD-compatible nm program.
18389 # A symbol stripping program
18392 # Used to examine libraries when file_magic_cmd begins "file"
18393 MAGIC_CMD=$MAGIC_CMD
18395 # Used on cygwin: DLL creation program.
18398 # Used on cygwin: object dumper.
18401 # Used on cygwin: assembler.
18404 # The name of the directory that contains temporary libtool files.
18407 # How to create reloadable object files.
18408 reload_flag=$lt_reload_flag
18409 reload_cmds=$lt_reload_cmds
18411 # How to pass a linker flag through the compiler.
18412 wl=$lt_lt_prog_compiler_wl
18414 # Object file suffix (normally "o").
18415 objext="$ac_objext"
18417 # Old archive suffix (normally "a").
18420 # Shared library suffix (normally ".so").
18421 shrext_cmds='$shrext_cmds'
18423 # Executable file suffix (normally "").
18426 # Additional compiler flags for building library objects.
18427 pic_flag=$lt_lt_prog_compiler_pic
18430 # What is the maximum length of a command?
18431 max_cmd_len=$lt_cv_sys_max_cmd_len
18433 # Does compiler simultaneously support -c and -o options?
18434 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18436 # Must we lock files when doing compilation?
18437 need_locks=$lt_need_locks
18439 # Do we need the lib prefix for modules?
18440 need_lib_prefix=$need_lib_prefix
18442 # Do we need a version for libraries?
18443 need_version=$need_version
18445 # Whether dlopen is supported.
18446 dlopen_support=$enable_dlopen
18448 # Whether dlopen of programs is supported.
18449 dlopen_self=$enable_dlopen_self
18451 # Whether dlopen of statically linked programs is supported.
18452 dlopen_self_static=$enable_dlopen_self_static
18454 # Compiler flag to prevent dynamic linking.
18455 link_static_flag=$lt_lt_prog_compiler_static
18457 # Compiler flag to turn off builtin functions.
18458 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18460 # Compiler flag to allow reflexive dlopens.
18461 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18463 # Compiler flag to generate shared objects directly from archives.
18464 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18466 # Compiler flag to generate thread-safe objects.
18467 thread_safe_flag_spec=$lt_thread_safe_flag_spec
18469 # Library versioning type.
18470 version_type=$version_type
18472 # Format of library name prefix.
18473 libname_spec=$lt_libname_spec
18475 # List of archive names. First name is the real one, the rest are links.
18476 # The last name is the one that the linker finds with -lNAME.
18477 library_names_spec=$lt_library_names_spec
18479 # The coded name of the library, if different from the real name.
18480 soname_spec=$lt_soname_spec
18482 # Commands used to build and install an old-style archive.
18484 old_archive_cmds=$lt_old_archive_cmds
18485 old_postinstall_cmds=$lt_old_postinstall_cmds
18486 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18488 # Create an old-style archive from a shared archive.
18489 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18491 # Create a temporary old-style archive to link instead of a shared archive.
18492 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18494 # Commands used to build and install a shared archive.
18495 archive_cmds=$lt_archive_cmds
18496 archive_expsym_cmds=$lt_archive_expsym_cmds
18497 postinstall_cmds=$lt_postinstall_cmds
18498 postuninstall_cmds=$lt_postuninstall_cmds
18500 # Commands used to build a loadable module (assumed same as above if empty)
18501 module_cmds=$lt_module_cmds
18502 module_expsym_cmds=$lt_module_expsym_cmds
18504 # Commands to strip libraries.
18505 old_striplib=$lt_old_striplib
18506 striplib=$lt_striplib
18508 # Dependencies to place before the objects being linked to create a
18510 predep_objects=$lt_predep_objects
18512 # Dependencies to place after the objects being linked to create a
18514 postdep_objects=$lt_postdep_objects
18516 # Dependencies to place before the objects being linked to create a
18518 predeps=$lt_predeps
18520 # Dependencies to place after the objects being linked to create a
18522 postdeps=$lt_postdeps
18524 # The library search path used internally by the compiler when linking
18525 # a shared library.
18526 compiler_lib_search_path=$lt_compiler_lib_search_path
18528 # Method to check whether dependent libraries are shared objects.
18529 deplibs_check_method=$lt_deplibs_check_method
18531 # Command to use when deplibs_check_method == file_magic.
18532 file_magic_cmd=$lt_file_magic_cmd
18534 # Flag that allows shared libraries with undefined symbols to be built.
18535 allow_undefined_flag=$lt_allow_undefined_flag
18537 # Flag that forces no undefined symbols.
18538 no_undefined_flag=$lt_no_undefined_flag
18540 # Commands used to finish a libtool library installation in a directory.
18541 finish_cmds=$lt_finish_cmds
18543 # Same as above, but a single script fragment to be evaled but not shown.
18544 finish_eval=$lt_finish_eval
18546 # Take the output of nm and produce a listing of raw symbols and C names.
18547 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18549 # Transform the output of nm in a proper C declaration
18550 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18552 # Transform the output of nm in a C name address pair
18553 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18555 # This is the shared library runtime path variable.
18556 runpath_var=$runpath_var
18558 # This is the shared library path variable.
18559 shlibpath_var=$shlibpath_var
18561 # Is shlibpath searched before the hard-coded library search path?
18562 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18564 # How to hardcode a shared library path into an executable.
18565 hardcode_action=$hardcode_action
18567 # Whether we should hardcode library paths into libraries.
18568 hardcode_into_libs=$hardcode_into_libs
18570 # Flag to hardcode \$libdir into a binary during linking.
18571 # This must work even if \$libdir does not exist.
18572 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18574 # If ld is used when linking, flag to hardcode \$libdir into
18575 # a binary during linking. This must work even if \$libdir does
18577 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18579 # Whether we need a single -rpath flag with a separated argument.
18580 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18582 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18583 # resulting binary.
18584 hardcode_direct=$hardcode_direct
18586 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18587 # resulting binary.
18588 hardcode_minus_L=$hardcode_minus_L
18590 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18591 # the resulting binary.
18592 hardcode_shlibpath_var=$hardcode_shlibpath_var
18594 # Set to yes if building a shared library automatically hardcodes DIR into the library
18595 # and all subsequent libraries and executables linked against it.
18596 hardcode_automatic=$hardcode_automatic
18598 # Variables whose values should be saved in libtool wrapper scripts and
18599 # restored at relink time.
18600 variables_saved_for_relink="$variables_saved_for_relink"
18602 # Whether libtool must link a program against all its dependency libraries.
18603 link_all_deplibs=$link_all_deplibs
18605 # Compile-time system search path for libraries
18606 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18608 # Run-time system search path for libraries
18609 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18611 # Fix the shell variable \$srcfile for the compiler.
18612 fix_srcfile_path=$lt_fix_srcfile_path
18614 # Set to yes if exported symbols are required.
18615 always_export_symbols=$always_export_symbols
18617 # The commands to list exported symbols.
18618 export_symbols_cmds=$lt_export_symbols_cmds
18620 # The commands to extract the exported symbol list from a shared archive.
18621 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18623 # Symbols that should not be listed in the preloaded symbols.
18624 exclude_expsyms=$lt_exclude_expsyms
18626 # Symbols that must always be exported.
18627 include_expsyms=$lt_include_expsyms
18629 # ### END LIBTOOL CONFIG
18636 cat <<\EOF >> "$cfgfile"
18638 # AIX sometimes has problems with the GCC collect2 program. For some
18639 # reason, if we set the COLLECT_NAMES environment variable, the problems
18640 # vanish in a puff of smoke.
18641 if test "X${COLLECT_NAMES+set}" != Xset; then
18643 export COLLECT_NAMES
18649 # We use sed instead of cat because bash on DJGPP gets confused if
18650 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18651 # text mode, it properly converts lines to CR/LF. This bash problem
18652 # is reportedly fixed, but why not run on old versions too?
18653 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18655 mv -f "$cfgfile" "$ofile" || \
18656 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18660 # If there is no Makefile yet, we rely on a make rule to execute
18661 # `config.status --recheck' to rerun these tests and create the
18662 # libtool script then.
18663 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18664 if test -f "$ltmain_in"; then
18665 test -f Makefile && make "$ltmain"
18671 ac_cpp='$CPP $CPPFLAGS'
18672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18679 # Check whether --with-tags was given.
18680 if test "${with_tags+set}" = set; then
18681 withval=$with_tags; tagnames="$withval"
18685 if test -f "$ltmain" && test -n "$tagnames"; then
18686 if test ! -f "${ofile}"; then
18687 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18688 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18691 if test -z "$LTCC"; then
18692 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18693 if test -z "$LTCC"; then
18694 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18695 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18697 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18698 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18701 if test -z "$LTCFLAGS"; then
18702 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18705 # Extract list of available tagged configurations in $ofile.
18706 # Note that this assumes the entire list is on one line.
18707 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18709 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18710 for tagname in $tagnames; do
18712 # Check whether tagname contains only valid characters
18713 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18715 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18716 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18717 { (exit 1); exit 1; }; }
18721 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18723 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18724 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18725 { (exit 1); exit 1; }; }
18728 # Update the list of available tags.
18729 if test -n "$tagname"; then
18730 echo appending configuration tag \"$tagname\" to $ofile
18734 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18735 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18736 (test "X$CXX" != "Xg++"))) ; then
18738 ac_cpp='$CXXCPP $CPPFLAGS'
18739 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18740 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18741 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18746 archive_cmds_need_lc_CXX=no
18747 allow_undefined_flag_CXX=
18748 always_export_symbols_CXX=no
18749 archive_expsym_cmds_CXX=
18750 export_dynamic_flag_spec_CXX=
18751 hardcode_direct_CXX=no
18752 hardcode_libdir_flag_spec_CXX=
18753 hardcode_libdir_flag_spec_ld_CXX=
18754 hardcode_libdir_separator_CXX=
18755 hardcode_minus_L_CXX=no
18756 hardcode_shlibpath_var_CXX=unsupported
18757 hardcode_automatic_CXX=no
18759 module_expsym_cmds_CXX=
18760 link_all_deplibs_CXX=unknown
18761 old_archive_cmds_CXX=$old_archive_cmds
18762 no_undefined_flag_CXX=
18763 whole_archive_flag_spec_CXX=
18764 enable_shared_with_static_runtimes_CXX=no
18766 # Dependencies to place before and after the object being linked:
18767 predep_objects_CXX=
18768 postdep_objects_CXX=
18771 compiler_lib_search_path_CXX=
18773 # Source file extension for C++ test sources.
18776 # Object file extension for compiled C++ test sources.
18780 # Code to be used in simple compile tests
18781 lt_simple_compile_test_code="int some_variable = 0;"
18783 # Code to be used in simple link tests
18784 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18786 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18788 # If no C compiler was specified, use CC.
18791 # If no C compiler flags were specified, use CFLAGS.
18792 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18794 # Allow CC to be a program name with arguments.
18798 # save warnings/boilerplate of simple test code
18799 ac_outfile=conftest.$ac_objext
18800 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18801 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18802 _lt_compiler_boilerplate=`cat conftest.err`
18805 ac_outfile=conftest.$ac_objext
18806 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18807 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18808 _lt_linker_boilerplate=`cat conftest.err`
18812 # Allow CC to be a program name with arguments.
18817 lt_save_with_gnu_ld=$with_gnu_ld
18818 lt_save_path_LD=$lt_cv_path_LD
18819 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18820 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18822 $as_unset lt_cv_prog_gnu_ld
18824 if test -n "${lt_cv_path_LDCXX+set}"; then
18825 lt_cv_path_LD=$lt_cv_path_LDCXX
18827 $as_unset lt_cv_path_LD
18829 test -z "${LDCXX+set}" || LD=$LDCXX
18833 for cc_temp in $compiler""; do
18835 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18836 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18841 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18844 # We don't want -fno-exception wen compiling C++ code, so set the
18845 # no_builtin_flag separately
18846 if test "$GXX" = yes; then
18847 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18849 lt_prog_compiler_no_builtin_flag_CXX=
18852 if test "$GXX" = yes; then
18853 # Set up default GNU C++ configuration
18856 # Check whether --with-gnu-ld was given.
18857 if test "${with_gnu_ld+set}" = set; then
18858 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18864 if test "$GCC" = yes; then
18865 # Check if gcc -print-prog-name=ld gives a path.
18866 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18867 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18870 # gcc leaves a trailing carriage return which upsets mingw
18871 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18873 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18876 # Accept absolute paths.
18878 re_direlt='/[^/][^/]*/\.\./'
18879 # Canonicalize the pathname of ld
18880 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18881 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18882 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18884 test -z "$LD" && LD="$ac_prog"
18887 # If it fails, then pretend we aren't using GCC.
18891 # If it is relative, then search for the first ld in PATH.
18892 with_gnu_ld=unknown
18895 elif test "$with_gnu_ld" = yes; then
18896 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18897 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18899 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18900 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18902 if test "${lt_cv_path_LD+set}" = set; then
18903 echo $ECHO_N "(cached) $ECHO_C" >&6
18905 if test -z "$LD"; then
18906 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18907 for ac_dir in $PATH; do
18909 test -z "$ac_dir" && ac_dir=.
18910 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18911 lt_cv_path_LD="$ac_dir/$ac_prog"
18912 # Check to see if the program is GNU ld. I'd rather use --version,
18913 # but apparently some variants of GNU ld only accept -v.
18914 # Break only if it was the GNU/non-GNU ld that we prefer.
18915 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18916 *GNU* | *'with BFD'*)
18917 test "$with_gnu_ld" != no && break
18920 test "$with_gnu_ld" != yes && break
18927 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18931 LD="$lt_cv_path_LD"
18932 if test -n "$LD"; then
18933 { echo "$as_me:$LINENO: result: $LD" >&5
18934 echo "${ECHO_T}$LD" >&6; }
18936 { echo "$as_me:$LINENO: result: no" >&5
18937 echo "${ECHO_T}no" >&6; }
18939 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18940 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18941 { (exit 1); exit 1; }; }
18942 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18943 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18944 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18945 echo $ECHO_N "(cached) $ECHO_C" >&6
18947 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18948 case `$LD -v 2>&1 </dev/null` in
18949 *GNU* | *'with BFD'*)
18950 lt_cv_prog_gnu_ld=yes
18953 lt_cv_prog_gnu_ld=no
18957 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18958 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18959 with_gnu_ld=$lt_cv_prog_gnu_ld
18963 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18964 # archiving commands below assume that GNU ld is being used.
18965 if test "$with_gnu_ld" = yes; then
18966 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18967 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18969 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18970 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18972 # If archive_cmds runs LD, not CC, wlarc should be empty
18973 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18974 # investigate it a little bit more. (MM)
18977 # ancient GNU ld didn't support --whole-archive et. al.
18978 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18979 grep 'no-whole-archive' > /dev/null; then
18980 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18982 whole_archive_flag_spec_CXX=
18988 # A generic and very simple default shared library creation
18989 # command for GNU C++ for the case where it uses the native
18990 # linker, instead of GNU ld. If possible, this setting should
18991 # overridden to take advantage of the native linker features on
18992 # the platform it is being used on.
18993 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18996 # Commands to make compiler produce verbose output that lists
18997 # what "hidden" libraries, object files and flags are used when
18998 # linking a shared library.
18999 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19007 # PORTME: fill in a description of your system's C++ link characteristics
19008 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19009 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19013 # FIXME: insert proper C++ library support
19017 if test "$host_cpu" = ia64; then
19018 # On IA64, the linker does run time linking by default, so we don't
19019 # have to do anything special.
19020 aix_use_runtimelinking=no
19021 exp_sym_flag='-Bexport'
19024 aix_use_runtimelinking=no
19026 # Test if we are trying to use run time linking or normal
19027 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19028 # need to do runtime linking.
19029 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19030 for ld_flag in $LDFLAGS; do
19033 aix_use_runtimelinking=yes
19041 exp_sym_flag='-bexport'
19042 no_entry_flag='-bnoentry'
19045 # When large executables or shared objects are built, AIX ld can
19046 # have problems creating the table of contents. If linking a library
19047 # or program results in "error TOC overflow" add -mminimal-toc to
19048 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19049 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19051 archive_cmds_CXX=''
19052 hardcode_direct_CXX=yes
19053 hardcode_libdir_separator_CXX=':'
19054 link_all_deplibs_CXX=yes
19056 if test "$GXX" = yes; then
19057 case $host_os in aix4.[012]|aix4.[012].*)
19058 # We only want to do this on AIX 4.2 and lower, the check
19059 # below for broken collect2 doesn't work under 4.3+
19060 collect2name=`${CC} -print-prog-name=collect2`
19061 if test -f "$collect2name" && \
19062 strings "$collect2name" | grep resolve_lib_name >/dev/null
19064 # We have reworked collect2
19067 # We have old collect2
19068 hardcode_direct_CXX=unsupported
19069 # It fails to find uninstalled libraries when the uninstalled
19070 # path is not listed in the libpath. Setting hardcode_minus_L
19071 # to unsupported forces relinking
19072 hardcode_minus_L_CXX=yes
19073 hardcode_libdir_flag_spec_CXX='-L$libdir'
19074 hardcode_libdir_separator_CXX=
19078 shared_flag='-shared'
19079 if test "$aix_use_runtimelinking" = yes; then
19080 shared_flag="$shared_flag "'${wl}-G'
19084 if test "$host_cpu" = ia64; then
19085 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19086 # chokes on -Wl,-G. The following line is correct:
19089 if test "$aix_use_runtimelinking" = yes; then
19090 shared_flag='${wl}-G'
19092 shared_flag='${wl}-bM:SRE'
19097 # It seems that -bexpall does not export symbols beginning with
19098 # underscore (_), so it is better to generate a list of symbols to export.
19099 always_export_symbols_CXX=yes
19100 if test "$aix_use_runtimelinking" = yes; then
19101 # Warning - without using the other runtime loading flags (-brtl),
19102 # -berok will link without error, but may produce a broken library.
19103 allow_undefined_flag_CXX='-berok'
19104 # Determine the default libpath from the value encoded in an empty executable.
19105 cat >conftest.$ac_ext <<_ACEOF
19108 cat confdefs.h >>conftest.$ac_ext
19109 cat >>conftest.$ac_ext <<_ACEOF
19110 /* end confdefs.h. */
19120 rm -f conftest.$ac_objext conftest$ac_exeext
19121 if { (ac_try="$ac_link"
19122 case "(($ac_try" in
19123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19124 *) ac_try_echo=$ac_try;;
19126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19127 (eval "$ac_link") 2>conftest.er1
19129 grep -v '^ *+' conftest.er1 >conftest.err
19131 cat conftest.err >&5
19132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133 (exit $ac_status); } && {
19134 test -z "$ac_cxx_werror_flag" ||
19135 test ! -s conftest.err
19136 } && test -s conftest$ac_exeext &&
19137 $as_test_x conftest$ac_exeext; then
19139 lt_aix_libpath_sed='
19140 /Import File Strings/,/^$/ {
19146 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19147 # Check for a 64-bit object if we didn't find anything.
19148 if test -z "$aix_libpath"; then
19149 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19152 echo "$as_me: failed program was:" >&5
19153 sed 's/^/| /' conftest.$ac_ext >&5
19158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19159 conftest$ac_exeext conftest.$ac_ext
19160 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19162 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19164 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
19166 if test "$host_cpu" = ia64; then
19167 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19168 allow_undefined_flag_CXX="-z nodefs"
19169 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
19171 # Determine the default libpath from the value encoded in an empty executable.
19172 cat >conftest.$ac_ext <<_ACEOF
19175 cat confdefs.h >>conftest.$ac_ext
19176 cat >>conftest.$ac_ext <<_ACEOF
19177 /* end confdefs.h. */
19187 rm -f conftest.$ac_objext conftest$ac_exeext
19188 if { (ac_try="$ac_link"
19189 case "(($ac_try" in
19190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19191 *) ac_try_echo=$ac_try;;
19193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19194 (eval "$ac_link") 2>conftest.er1
19196 grep -v '^ *+' conftest.er1 >conftest.err
19198 cat conftest.err >&5
19199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19200 (exit $ac_status); } && {
19201 test -z "$ac_cxx_werror_flag" ||
19202 test ! -s conftest.err
19203 } && test -s conftest$ac_exeext &&
19204 $as_test_x conftest$ac_exeext; then
19206 lt_aix_libpath_sed='
19207 /Import File Strings/,/^$/ {
19213 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19214 # Check for a 64-bit object if we didn't find anything.
19215 if test -z "$aix_libpath"; then
19216 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19219 echo "$as_me: failed program was:" >&5
19220 sed 's/^/| /' conftest.$ac_ext >&5
19225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19226 conftest$ac_exeext conftest.$ac_ext
19227 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19229 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19230 # Warning - without using the other run time loading flags,
19231 # -berok will link without error, but may produce a broken library.
19232 no_undefined_flag_CXX=' ${wl}-bernotok'
19233 allow_undefined_flag_CXX=' ${wl}-berok'
19234 # Exported symbols can be pulled into shared objects from archives
19235 whole_archive_flag_spec_CXX='$convenience'
19236 archive_cmds_need_lc_CXX=yes
19237 # This is similar to how AIX traditionally builds its shared libraries.
19238 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
19244 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19245 allow_undefined_flag_CXX=unsupported
19246 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19247 # support --undefined. This deserves some investigation. FIXME
19248 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19255 case $cc_basename in
19257 # FIXME: insert proper C++ library support
19263 cygwin* | mingw* | pw32*)
19264 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19265 # as there is no search path for DLLs.
19266 hardcode_libdir_flag_spec_CXX='-L$libdir'
19267 allow_undefined_flag_CXX=unsupported
19268 always_export_symbols_CXX=no
19269 enable_shared_with_static_runtimes_CXX=yes
19271 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19272 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19273 # If the export-symbols file already is a .def file (1st line
19274 # is EXPORTS), use it as is; otherwise, prepend...
19275 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19276 cp $export_symbols $output_objdir/$soname.def;
19278 echo EXPORTS > $output_objdir/$soname.def;
19279 cat $export_symbols >> $output_objdir/$soname.def;
19281 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19286 darwin* | rhapsody*)
19288 rhapsody* | darwin1.[012])
19289 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
19292 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19293 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19295 case ${MACOSX_DEPLOYMENT_TARGET} in
19297 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19300 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
19306 archive_cmds_need_lc_CXX=no
19307 hardcode_direct_CXX=no
19308 hardcode_automatic_CXX=yes
19309 hardcode_shlibpath_var_CXX=unsupported
19310 whole_archive_flag_spec_CXX=''
19311 link_all_deplibs_CXX=yes
19313 if test "$GXX" = yes ; then
19314 lt_int_apple_cc_single_mod=no
19315 output_verbose_link_cmd='echo'
19316 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
19317 lt_int_apple_cc_single_mod=yes
19319 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19320 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19322 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19324 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19325 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19326 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19327 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19329 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19331 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19333 case $cc_basename in
19335 output_verbose_link_cmd='echo'
19336 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
19337 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19338 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19339 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19340 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19350 case $cc_basename in
19352 # FIXME: insert proper C++ library support
19356 # Green Hills C++ Compiler
19357 # FIXME: insert proper C++ library support
19361 # FIXME: insert proper C++ library support
19367 # C++ shared libraries reported to be fairly broken before switch to ELF
19371 archive_cmds_need_lc_CXX=no
19373 freebsd* | dragonfly*)
19374 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19381 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19382 hardcode_libdir_separator_CXX=:
19383 export_dynamic_flag_spec_CXX='${wl}-E'
19384 hardcode_direct_CXX=yes
19385 hardcode_minus_L_CXX=yes # Not in the search PATH,
19386 # but as the default
19387 # location of the library.
19389 case $cc_basename in
19391 # FIXME: insert proper C++ library support
19395 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19396 # Commands to make compiler produce verbose output that lists
19397 # what "hidden" libraries, object files and flags are used when
19398 # linking a shared library.
19400 # There doesn't appear to be a way to prevent this compiler from
19401 # explicitly linking system object files so we need to strip them
19402 # from the output so that they don't get included in the library
19404 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
19407 if test "$GXX" = yes; then
19408 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19410 # FIXME: insert proper C++ library support
19417 if test $with_gnu_ld = no; then
19418 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19419 hardcode_libdir_separator_CXX=:
19424 export_dynamic_flag_spec_CXX='${wl}-E'
19430 hardcode_direct_CXX=no
19431 hardcode_shlibpath_var_CXX=no
19434 hardcode_direct_CXX=yes
19435 hardcode_minus_L_CXX=yes # Not in the search PATH,
19436 # but as the default
19437 # location of the library.
19441 case $cc_basename in
19443 # FIXME: insert proper C++ library support
19449 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19452 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19455 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19458 # Commands to make compiler produce verbose output that lists
19459 # what "hidden" libraries, object files and flags are used when
19460 # linking a shared library.
19462 # There doesn't appear to be a way to prevent this compiler from
19463 # explicitly linking system object files so we need to strip them
19464 # from the output so that they don't get included in the library
19466 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
19469 if test "$GXX" = yes; then
19470 if test $with_gnu_ld = no; then
19473 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19476 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19479 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19484 # FIXME: insert proper C++ library support
19491 hardcode_direct_CXX=no
19492 hardcode_shlibpath_var_CXX=no
19493 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19494 export_dynamic_flag_spec_CXX='${wl}-E'
19495 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19496 # Instead, shared libraries are loaded at an image base (0x10000000 by
19497 # default) and relocated if they conflict, which is a slow very memory
19498 # consuming and fragmenting process. To avoid this, we pick a random,
19499 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19500 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19501 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19502 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19505 case $cc_basename in
19508 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19510 # Archives containing C++ object files must be created using
19511 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19512 # necessary to make sure instantiated templates are included
19514 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19517 if test "$GXX" = yes; then
19518 if test "$with_gnu_ld" = no; then
19519 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19521 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
19524 link_all_deplibs_CXX=yes
19527 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19528 hardcode_libdir_separator_CXX=:
19530 linux* | k*bsd*-gnu)
19531 case $cc_basename in
19533 # Kuck and Associates, Inc. (KAI) C++ Compiler
19535 # KCC will only create a shared library if the output file
19536 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19537 # to its proper name (with version) after linking.
19538 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
19539 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
19540 # Commands to make compiler produce verbose output that lists
19541 # what "hidden" libraries, object files and flags are used when
19542 # linking a shared library.
19544 # There doesn't appear to be a way to prevent this compiler from
19545 # explicitly linking system object files so we need to strip them
19546 # from the output so that they don't get included in the library
19548 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
19550 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19551 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19553 # Archives containing C++ object files must be created using
19554 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19555 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19560 # version 8.0 and above of icpc choke on multiply defined symbols
19561 # if we add $predep_objects and $postdep_objects, however 7.1 and
19562 # earlier do not add the objects themselves.
19563 case `$CC -V 2>&1` in
19565 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19566 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19568 *) # Version 8.0 or newer
19571 ia64*) tmp_idyn=' -i_dynamic';;
19573 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19574 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19577 archive_cmds_need_lc_CXX=no
19578 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19579 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19580 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19583 # Portland Group C++ compiler
19584 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19585 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
19587 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19588 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19589 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
19593 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19594 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
19596 runpath_var=LD_RUN_PATH
19597 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19598 hardcode_libdir_separator_CXX=:
19600 # Commands to make compiler produce verbose output that lists
19601 # what "hidden" libraries, object files and flags are used when
19602 # linking a shared library.
19604 # There doesn't appear to be a way to prevent this compiler from
19605 # explicitly linking system object files so we need to strip them
19606 # from the output so that they don't get included in the library
19608 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
19611 case `$CC -V 2>&1 | sed 5q` in
19614 no_undefined_flag_CXX=' -zdefs'
19615 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19616 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
19617 hardcode_libdir_flag_spec_CXX='-R$libdir'
19618 whole_archive_flag_spec_CXX='${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'
19620 # Not sure whether something based on
19621 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19623 output_verbose_link_cmd='echo'
19625 # Archives containing C++ object files must be created using
19626 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19627 # necessary to make sure instantiated templates are included
19629 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19636 # FIXME: insert proper C++ library support
19640 # FIXME: insert proper C++ library support
19644 case $cc_basename in
19646 # FIXME: insert proper C++ library support
19650 # FIXME: insert proper C++ library support
19655 netbsd* | netbsdelf*-gnu)
19656 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19657 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19659 hardcode_libdir_flag_spec_CXX='-R$libdir'
19660 hardcode_direct_CXX=yes
19661 hardcode_shlibpath_var_CXX=no
19663 # Workaround some broken pre-1.5 toolchains
19664 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19667 # C++ shared libraries are fairly broken
19671 if test -f /usr/libexec/ld.so; then
19672 hardcode_direct_CXX=yes
19673 hardcode_shlibpath_var_CXX=no
19674 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19675 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19676 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19677 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19678 export_dynamic_flag_spec_CXX='${wl}-E'
19679 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19681 output_verbose_link_cmd='echo'
19687 case $cc_basename in
19689 # Kuck and Associates, Inc. (KAI) C++ Compiler
19691 # KCC will only create a shared library if the output file
19692 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19693 # to its proper name (with version) after linking.
19694 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
19696 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19697 hardcode_libdir_separator_CXX=:
19699 # Archives containing C++ object files must be created using
19700 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19701 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19705 # Rational C++ 2.4.1
19706 # FIXME: insert proper C++ library support
19710 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19711 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19713 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19714 hardcode_libdir_separator_CXX=:
19716 # Commands to make compiler produce verbose output that lists
19717 # what "hidden" libraries, object files and flags are used when
19718 # linking a shared library.
19720 # There doesn't appear to be a way to prevent this compiler from
19721 # explicitly linking system object files so we need to strip them
19722 # from the output so that they don't get included in the library
19724 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
19727 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19728 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19729 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19731 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19732 hardcode_libdir_separator_CXX=:
19734 # Commands to make compiler produce verbose output that lists
19735 # what "hidden" libraries, object files and flags are used when
19736 # linking a shared library.
19737 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19740 # FIXME: insert proper C++ library support
19747 case $cc_basename in
19749 # Kuck and Associates, Inc. (KAI) C++ Compiler
19751 # KCC will only create a shared library if the output file
19752 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19753 # to its proper name (with version) after linking.
19754 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
19756 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19757 hardcode_libdir_separator_CXX=:
19759 # Archives containing C++ object files must be created using
19760 # the KAI C++ compiler.
19761 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19764 # Rational C++ 2.4.1
19765 # FIXME: insert proper C++ library support
19769 allow_undefined_flag_CXX=' -expect_unresolved \*'
19770 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19771 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19772 echo "-hidden">> $lib.exp~
19773 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
19776 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19777 hardcode_libdir_separator_CXX=:
19779 # Commands to make compiler produce verbose output that lists
19780 # what "hidden" libraries, object files and flags are used when
19781 # linking a shared library.
19783 # There doesn't appear to be a way to prevent this compiler from
19784 # explicitly linking system object files so we need to strip them
19785 # from the output so that they don't get included in the library
19787 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
19790 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19791 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19792 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19794 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19795 hardcode_libdir_separator_CXX=:
19797 # Commands to make compiler produce verbose output that lists
19798 # what "hidden" libraries, object files and flags are used when
19799 # linking a shared library.
19800 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19803 # FIXME: insert proper C++ library support
19810 # FIXME: insert proper C++ library support
19814 case $cc_basename in
19817 # FIXME: insert proper C++ library support
19822 # FIXME: insert proper C++ library support
19826 # FIXME: insert proper C++ library support
19832 case $cc_basename in
19834 # Sun C++ 4.2, 5.x and Centerline C++
19835 archive_cmds_need_lc_CXX=yes
19836 no_undefined_flag_CXX=' -zdefs'
19837 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19838 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19839 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19841 hardcode_libdir_flag_spec_CXX='-R$libdir'
19842 hardcode_shlibpath_var_CXX=no
19844 solaris2.[0-5] | solaris2.[0-5].*) ;;
19846 # The compiler driver will combine and reorder linker options,
19847 # but understands `-z linker_flag'.
19848 # Supported since Solaris 2.6 (maybe 2.5.1?)
19849 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19852 link_all_deplibs_CXX=yes
19854 output_verbose_link_cmd='echo'
19856 # Archives containing C++ object files must be created using
19857 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19858 # necessary to make sure instantiated templates are included
19860 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19863 # Green Hills C++ Compiler
19864 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19866 # The C++ compiler must be used to create the archive.
19867 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19870 # GNU C++ compiler with Solaris linker
19871 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19872 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19873 if $CC --version | grep -v '^2\.7' > /dev/null; then
19874 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19875 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19876 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19878 # Commands to make compiler produce verbose output that lists
19879 # what "hidden" libraries, object files and flags are used when
19880 # linking a shared library.
19881 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19883 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19885 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19886 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19887 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19889 # Commands to make compiler produce verbose output that lists
19890 # what "hidden" libraries, object files and flags are used when
19891 # linking a shared library.
19892 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19895 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19897 solaris2.[0-5] | solaris2.[0-5].*) ;;
19899 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19906 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19907 no_undefined_flag_CXX='${wl}-z,text'
19908 archive_cmds_need_lc_CXX=no
19909 hardcode_shlibpath_var_CXX=no
19910 runpath_var='LD_RUN_PATH'
19912 case $cc_basename in
19914 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19915 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19918 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19919 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19923 sysv5* | sco3.2v5* | sco5v6*)
19924 # Note: We can NOT use -z defs as we might desire, because we do not
19925 # link with -lc, and that would cause any symbols used from libc to
19926 # always be unresolved, which means just about no library would
19927 # ever link correctly. If we're not using GNU ld we use -z text
19928 # though, which does catch some bad symbols but isn't as heavy-handed
19930 # For security reasons, it is highly recommended that you always
19931 # use absolute paths for naming shared libraries, and exclude the
19932 # DT_RUNPATH tag from executables and libraries. But doing so
19933 # requires that you compile everything twice, which is a pain.
19934 # So that behaviour is only enabled if SCOABSPATH is set to a
19935 # non-empty value in the environment. Most likely only useful for
19936 # creating official distributions of packages.
19937 # This is a hack until libtool officially supports absolute path
19938 # names for shared libraries.
19939 no_undefined_flag_CXX='${wl}-z,text'
19940 allow_undefined_flag_CXX='${wl}-z,nodefs'
19941 archive_cmds_need_lc_CXX=no
19942 hardcode_shlibpath_var_CXX=no
19943 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19944 hardcode_libdir_separator_CXX=':'
19945 link_all_deplibs_CXX=yes
19946 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19947 runpath_var='LD_RUN_PATH'
19949 case $cc_basename in
19951 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19952 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19955 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19956 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19961 case $cc_basename in
19963 # NonStop-UX NCC 3.20
19964 # FIXME: insert proper C++ library support
19968 # FIXME: insert proper C++ library support
19974 # FIXME: insert proper C++ library support
19978 # FIXME: insert proper C++ library support
19982 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19983 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19984 test "$ld_shlibs_CXX" = no && can_build_shared=no
19990 cat > conftest.$ac_ext <<EOF
19994 Foo (void) { a = 0; }
20000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20001 (eval $ac_compile) 2>&5
20003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20004 (exit $ac_status); }; then
20005 # Parse the compiler output and extract the necessary
20006 # objects, libraries and library flags.
20008 # Sentinel used to keep track of whether or not we are before
20009 # the conftest object file.
20010 pre_test_object_deps_done=no
20012 # The `*' in the case matches for architectures that use `case' in
20013 # $output_verbose_cmd can trigger glob expansion during the loop
20014 # eval without this substitution.
20015 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
20017 for p in `eval $output_verbose_link_cmd`; do
20021 # Some compilers place space between "-{L,R}" and the path.
20022 # Remove the space.
20023 if test $p = "-L" \
20024 || test $p = "-R"; then
20031 if test "$pre_test_object_deps_done" = no; then
20034 # Internal compiler library paths should come after those
20035 # provided the user. The postdeps already come after the
20036 # user supplied libs so there is no need to process them.
20037 if test -z "$compiler_lib_search_path_CXX"; then
20038 compiler_lib_search_path_CXX="${prev}${p}"
20040 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20043 # The "-l" case would never come before the object being
20044 # linked, so don't bother handling this case.
20047 if test -z "$postdeps_CXX"; then
20048 postdeps_CXX="${prev}${p}"
20050 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20056 # This assumes that the test object file only shows up
20057 # once in the compiler output.
20058 if test "$p" = "conftest.$objext"; then
20059 pre_test_object_deps_done=yes
20063 if test "$pre_test_object_deps_done" = no; then
20064 if test -z "$predep_objects_CXX"; then
20065 predep_objects_CXX="$p"
20067 predep_objects_CXX="$predep_objects_CXX $p"
20070 if test -z "$postdep_objects_CXX"; then
20071 postdep_objects_CXX="$p"
20073 postdep_objects_CXX="$postdep_objects_CXX $p"
20078 *) ;; # Ignore the rest.
20086 echo "libtool.m4: error: problem compiling CXX test program"
20089 $rm -f confest.$objext
20091 # PORTME: override above test on systems where it is broken
20094 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20095 # hack all around it, let's just trust "g++" to DTRT.
20096 predep_objects_CXX=
20097 postdep_objects_CXX=
20102 case `$CC -V 2>&1 | sed 5q` in
20106 # The more standards-conforming stlport4 library is
20107 # incompatible with the Cstd library. Avoid specifying
20108 # it if it's in CXXFLAGS. Ignore libCrun as
20109 # -library=stlport4 depends on it.
20110 case " $CXX $CXXFLAGS " in
20111 *" -library=stlport4 "*)
20112 solaris_use_stlport4=yes
20115 if test "$solaris_use_stlport4" != yes; then
20116 postdeps_CXX='-library=Cstd -library=Crun'
20123 case $cc_basename in
20125 # The more standards-conforming stlport4 library is
20126 # incompatible with the Cstd library. Avoid specifying
20127 # it if it's in CXXFLAGS. Ignore libCrun as
20128 # -library=stlport4 depends on it.
20129 case " $CXX $CXXFLAGS " in
20130 *" -library=stlport4 "*)
20131 solaris_use_stlport4=yes
20135 # Adding this requires a known-good setup of shared libraries for
20136 # Sun compiler versions before 5.6, else PIC objects from an old
20137 # archive will be linked into the output, leading to subtle bugs.
20138 if test "$solaris_use_stlport4" != yes; then
20139 postdeps_CXX='-library=Cstd -library=Crun'
20147 case " $postdeps_CXX " in
20148 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20151 lt_prog_compiler_wl_CXX=
20152 lt_prog_compiler_pic_CXX=
20153 lt_prog_compiler_static_CXX=
20155 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20156 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
20158 # C++ specific cases for pic, static, wl, etc.
20159 if test "$GXX" = yes; then
20160 lt_prog_compiler_wl_CXX='-Wl,'
20161 lt_prog_compiler_static_CXX='-static'
20165 # All AIX code is PIC.
20166 if test "$host_cpu" = ia64; then
20167 # AIX 5 now supports IA64 processor
20168 lt_prog_compiler_static_CXX='-Bstatic'
20172 # FIXME: we need at least 68020 code to build shared libraries, but
20173 # adding the `-m68020' flag to GCC prevents building anything better,
20175 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20177 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20178 # PIC is the default for these OSes.
20180 mingw* | cygwin* | os2* | pw32*)
20181 # This hack is so that the source file can tell whether it is being
20182 # built for inclusion in a dll (and should export symbols for example).
20183 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20184 # (--disable-auto-import) libraries
20185 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20187 darwin* | rhapsody*)
20188 # PIC is the default on this platform
20189 # Common symbols not allowed in MH_DYLIB files
20190 lt_prog_compiler_pic_CXX='-fno-common'
20193 # DJGPP does not support shared libraries at all
20194 lt_prog_compiler_pic_CXX=
20197 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20198 # Instead, we relocate shared libraries at runtime.
20201 if test -d /usr/nec; then
20202 lt_prog_compiler_pic_CXX=-Kconform_pic
20206 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20207 # not for PA HP-UX.
20212 lt_prog_compiler_pic_CXX='-fPIC'
20217 lt_prog_compiler_pic_CXX='-fPIC'
20223 # All AIX code is PIC.
20224 if test "$host_cpu" = ia64; then
20225 # AIX 5 now supports IA64 processor
20226 lt_prog_compiler_static_CXX='-Bstatic'
20228 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20232 case $cc_basename in
20234 # Green Hills C++ Compiler
20235 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
20240 # PIC is the default on this platform
20241 # Common symbols not allowed in MH_DYLIB files
20242 case $cc_basename in
20244 lt_prog_compiler_pic_CXX='-qnocommon'
20245 lt_prog_compiler_wl_CXX='-Wl,'
20250 case $cc_basename in
20252 lt_prog_compiler_pic_CXX='-KPIC'
20255 # Green Hills C++ Compiler
20256 lt_prog_compiler_pic_CXX='-pic'
20262 freebsd* | dragonfly*)
20263 # FreeBSD uses GNU C++
20265 hpux9* | hpux10* | hpux11*)
20266 case $cc_basename in
20268 lt_prog_compiler_wl_CXX='-Wl,'
20269 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20270 if test "$host_cpu" != ia64; then
20271 lt_prog_compiler_pic_CXX='+Z'
20275 lt_prog_compiler_wl_CXX='-Wl,'
20276 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20282 lt_prog_compiler_pic_CXX='+Z'
20291 # This is c89, which is MS Visual C++ (no shared libs)
20292 # Anyone wants to do a port?
20294 irix5* | irix6* | nonstopux*)
20295 case $cc_basename in
20297 lt_prog_compiler_wl_CXX='-Wl,'
20298 lt_prog_compiler_static_CXX='-non_shared'
20299 # CC pic flag -KPIC is the default.
20305 linux* | k*bsd*-gnu)
20306 case $cc_basename in
20309 lt_prog_compiler_wl_CXX='--backend -Wl,'
20310 lt_prog_compiler_pic_CXX='-fPIC'
20314 lt_prog_compiler_wl_CXX='-Wl,'
20315 lt_prog_compiler_pic_CXX='-KPIC'
20316 lt_prog_compiler_static_CXX='-static'
20319 # Portland Group C++ compiler.
20320 lt_prog_compiler_wl_CXX='-Wl,'
20321 lt_prog_compiler_pic_CXX='-fpic'
20322 lt_prog_compiler_static_CXX='-Bstatic'
20326 # Make sure the PIC flag is empty. It appears that all Alpha
20327 # Linux and Compaq Tru64 Unix objects are PIC.
20328 lt_prog_compiler_pic_CXX=
20329 lt_prog_compiler_static_CXX='-non_shared'
20332 case `$CC -V 2>&1 | sed 5q` in
20335 lt_prog_compiler_pic_CXX='-KPIC'
20336 lt_prog_compiler_static_CXX='-Bstatic'
20337 lt_prog_compiler_wl_CXX='-Qoption ld '
20348 case $cc_basename in
20350 lt_prog_compiler_pic_CXX='-W c,exportall'
20356 netbsd* | netbsdelf*-gnu)
20358 osf3* | osf4* | osf5*)
20359 case $cc_basename in
20361 lt_prog_compiler_wl_CXX='--backend -Wl,'
20364 # Rational C++ 2.4.1
20365 lt_prog_compiler_pic_CXX='-pic'
20368 # Digital/Compaq C++
20369 lt_prog_compiler_wl_CXX='-Wl,'
20370 # Make sure the PIC flag is empty. It appears that all Alpha
20371 # Linux and Compaq Tru64 Unix objects are PIC.
20372 lt_prog_compiler_pic_CXX=
20373 lt_prog_compiler_static_CXX='-non_shared'
20382 case $cc_basename in
20384 # Sun C++ 4.2, 5.x and Centerline C++
20385 lt_prog_compiler_pic_CXX='-KPIC'
20386 lt_prog_compiler_static_CXX='-Bstatic'
20387 lt_prog_compiler_wl_CXX='-Qoption ld '
20390 # Green Hills C++ Compiler
20391 lt_prog_compiler_pic_CXX='-PIC'
20398 case $cc_basename in
20401 lt_prog_compiler_pic_CXX='-pic'
20402 lt_prog_compiler_static_CXX='-Bstatic'
20406 lt_prog_compiler_pic_CXX='-pic'
20413 case $cc_basename in
20415 # NonStop-UX NCC 3.20
20416 lt_prog_compiler_pic_CXX='-KPIC'
20422 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20423 case $cc_basename in
20425 lt_prog_compiler_wl_CXX='-Wl,'
20426 lt_prog_compiler_pic_CXX='-KPIC'
20427 lt_prog_compiler_static_CXX='-Bstatic'
20434 lt_prog_compiler_can_build_shared_CXX=no
20439 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20440 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
20443 # Check to make sure the PIC flag actually works.
20445 if test -n "$lt_prog_compiler_pic_CXX"; then
20447 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20448 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
20449 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20450 echo $ECHO_N "(cached) $ECHO_C" >&6
20452 lt_prog_compiler_pic_works_CXX=no
20453 ac_outfile=conftest.$ac_objext
20454 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20455 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20456 # Insert the option either (1) after the last *FLAGS variable, or
20457 # (2) before a word containing "conftest.", or (3) at the end.
20458 # Note that $ac_compile itself does not contain backslashes and begins
20459 # with a dollar sign (not a hyphen), so the echo should work correctly.
20460 # The option is referenced via a variable to avoid confusing sed.
20461 lt_compile=`echo "$ac_compile" | $SED \
20462 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20463 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20464 -e 's:$: $lt_compiler_flag:'`
20465 (eval echo "\"\$as_me:20465: $lt_compile\"" >&5)
20466 (eval "$lt_compile" 2>conftest.err)
20468 cat conftest.err >&5
20469 echo "$as_me:20469: \$? = $ac_status" >&5
20470 if (exit $ac_status) && test -s "$ac_outfile"; then
20471 # The compiler can only warn and ignore the option if not recognized
20472 # So say no if there are warnings other than the usual output.
20473 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20474 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20475 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20476 lt_prog_compiler_pic_works_CXX=yes
20482 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20483 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
20485 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20486 case $lt_prog_compiler_pic_CXX in
20488 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20491 lt_prog_compiler_pic_CXX=
20492 lt_prog_compiler_can_build_shared_CXX=no
20497 # For platforms which do not support PIC, -DPIC is meaningless:
20499 lt_prog_compiler_pic_CXX=
20502 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20507 # Check to make sure the static flag actually works.
20509 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20510 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20511 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20512 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20513 echo $ECHO_N "(cached) $ECHO_C" >&6
20515 lt_prog_compiler_static_works_CXX=no
20516 save_LDFLAGS="$LDFLAGS"
20517 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20518 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20519 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20520 # The linker can only warn and ignore the option if not recognized
20521 # So say no if there are warnings
20522 if test -s conftest.err; then
20523 # Append any errors to the config.log.
20524 cat conftest.err 1>&5
20525 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20526 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20527 if diff conftest.exp conftest.er2 >/dev/null; then
20528 lt_prog_compiler_static_works_CXX=yes
20531 lt_prog_compiler_static_works_CXX=yes
20535 LDFLAGS="$save_LDFLAGS"
20538 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20539 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20541 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20544 lt_prog_compiler_static_CXX=
20548 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20549 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20550 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20551 echo $ECHO_N "(cached) $ECHO_C" >&6
20553 lt_cv_prog_compiler_c_o_CXX=no
20554 $rm -r conftest 2>/dev/null
20558 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20560 lt_compiler_flag="-o out/conftest2.$ac_objext"
20561 # Insert the option either (1) after the last *FLAGS variable, or
20562 # (2) before a word containing "conftest.", or (3) at the end.
20563 # Note that $ac_compile itself does not contain backslashes and begins
20564 # with a dollar sign (not a hyphen), so the echo should work correctly.
20565 lt_compile=`echo "$ac_compile" | $SED \
20566 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20567 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20568 -e 's:$: $lt_compiler_flag:'`
20569 (eval echo "\"\$as_me:20569: $lt_compile\"" >&5)
20570 (eval "$lt_compile" 2>out/conftest.err)
20572 cat out/conftest.err >&5
20573 echo "$as_me:20573: \$? = $ac_status" >&5
20574 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20576 # The compiler can only warn and ignore the option if not recognized
20577 # So say no if there are warnings
20578 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20579 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20580 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20581 lt_cv_prog_compiler_c_o_CXX=yes
20586 # SGI C++ compiler will create directory out/ii_files/ for
20587 # template instantiation
20588 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20589 $rm out/* && rmdir out
20595 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20596 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
20599 hard_links="nottested"
20600 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20601 # do not overwrite the value of need_locks provided by the user
20602 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20603 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20606 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20608 ln conftest.a conftest.b 2>&5 || hard_links=no
20609 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20610 { echo "$as_me:$LINENO: result: $hard_links" >&5
20611 echo "${ECHO_T}$hard_links" >&6; }
20612 if test "$hard_links" = no; then
20613 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20614 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20621 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20622 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20624 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20627 # If we're using GNU nm, then we don't want the "-C" option.
20628 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20629 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20630 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
20632 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
20636 export_symbols_cmds_CXX="$ltdll_cmds"
20639 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
20641 linux* | k*bsd*-gnu)
20642 link_all_deplibs_CXX=no
20645 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20649 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20650 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20651 test "$ld_shlibs_CXX" = no && can_build_shared=no
20654 # Do we need to explicitly link libc?
20656 case "x$archive_cmds_need_lc_CXX" in
20658 # Assume -lc should be added
20659 archive_cmds_need_lc_CXX=yes
20661 if test "$enable_shared" = yes && test "$GCC" = yes; then
20662 case $archive_cmds_CXX in
20664 # FIXME: we may have to deal with multi-command sequences.
20667 # Test whether the compiler implicitly links with -lc since on some
20668 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20669 # to ld, don't add -lc before -lgcc.
20670 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20671 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20673 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20676 (eval $ac_compile) 2>&5
20678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679 (exit $ac_status); } 2>conftest.err; then
20682 libobjs=conftest.$ac_objext
20684 wl=$lt_prog_compiler_wl_CXX
20685 pic_flag=$lt_prog_compiler_pic_CXX
20691 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20692 allow_undefined_flag_CXX=
20693 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20694 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20697 (exit $ac_status); }
20699 archive_cmds_need_lc_CXX=no
20701 archive_cmds_need_lc_CXX=yes
20703 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20705 cat conftest.err 1>&5
20708 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20709 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20716 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20717 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20718 library_names_spec=
20719 libname_spec='lib$name'
20723 postuninstall_cmds=
20727 shlibpath_overrides_runpath=unknown
20729 dynamic_linker="$host_os ld.so"
20730 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20732 need_lib_prefix=unknown
20733 hardcode_into_libs=no
20735 # when you set need_version to no, make sure it does not cause -set_version
20736 # flags to be left without arguments
20737 need_version=unknown
20742 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20743 shlibpath_var=LIBPATH
20745 # AIX 3 has no versioning support, so we append a major version to the name.
20746 soname_spec='${libname}${release}${shared_ext}$major'
20753 hardcode_into_libs=yes
20754 if test "$host_cpu" = ia64; then
20755 # AIX 5 supports IA64
20756 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20757 shlibpath_var=LD_LIBRARY_PATH
20759 # With GCC up to 2.95.x, collect2 would create an import file
20760 # for dependence libraries. The import file would start with
20761 # the line `#! .'. This would cause the generated library to
20762 # depend on `.', always an invalid library. This was fixed in
20763 # development snapshots of GCC prior to 3.0.
20765 aix4 | aix4.[01] | aix4.[01].*)
20766 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20768 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20771 can_build_shared=no
20775 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20776 # soname into executable. Probably we can add versioning support to
20777 # collect2, so additional links can be useful in future.
20778 if test "$aix_use_runtimelinking" = yes; then
20779 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20780 # instead of lib<name>.a to let people know that these are not
20781 # typical AIX shared libraries.
20782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20784 # We preserve .a as extension for shared libraries through AIX4.2
20785 # and later when we are not doing run time linking.
20786 library_names_spec='${libname}${release}.a $libname.a'
20787 soname_spec='${libname}${release}${shared_ext}$major'
20789 shlibpath_var=LIBPATH
20794 library_names_spec='$libname.ixlibrary $libname.a'
20795 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20796 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'
20800 library_names_spec='${libname}${shared_ext}'
20801 dynamic_linker="$host_os ld.so"
20802 shlibpath_var=LIBRARY_PATH
20808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20809 soname_spec='${libname}${release}${shared_ext}$major'
20810 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20811 shlibpath_var=LD_LIBRARY_PATH
20812 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20813 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20814 # the default ld.so.conf also contains /usr/contrib/lib and
20815 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20816 # libtool to hard-code these into programs
20819 cygwin* | mingw* | pw32*)
20820 version_type=windows
20825 case $GCC,$host_os in
20826 yes,cygwin* | yes,mingw* | yes,pw32*)
20827 library_names_spec='$libname.dll.a'
20828 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20829 postinstall_cmds='base_file=`basename \${file}`~
20830 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20831 dldir=$destdir/`dirname \$dlpath`~
20832 test -d \$dldir || mkdir -p \$dldir~
20833 $install_prog $dir/$dlname \$dldir/$dlname~
20834 chmod a+x \$dldir/$dlname'
20835 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20836 dlpath=$dir/\$dldll~
20838 shlibpath_overrides_runpath=yes
20842 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20843 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20844 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20847 # MinGW DLLs use traditional 'lib' prefix
20848 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20849 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20850 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20851 # It is most probably a Windows format PATH printed by
20852 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20853 # path with ; separators, and with drive letters. We can handle the
20854 # drive letters (cygwin fileutils understands them), so leave them,
20855 # especially as we might pass files found there to a mingw objdump,
20856 # which wouldn't understand a cygwinified path. Ahh.
20857 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20859 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20863 # pw32 DLLs use 'pw' prefix rather than 'lib'
20864 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20870 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20873 dynamic_linker='Win32 ld.exe'
20874 # FIXME: first we should search . and the directory the executable is in
20878 darwin* | rhapsody*)
20879 dynamic_linker="$host_os dyld"
20880 version_type=darwin
20883 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20884 soname_spec='${libname}${release}${major}$shared_ext'
20885 shlibpath_overrides_runpath=yes
20886 shlibpath_var=DYLD_LIBRARY_PATH
20887 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20889 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20897 soname_spec='${libname}${release}${shared_ext}$major'
20898 shlibpath_var=LD_LIBRARY_PATH
20905 freebsd* | dragonfly*)
20906 # DragonFly does not have aout. When/if they implement a new
20907 # versioning mechanism, adjust this.
20908 if test -x /usr/bin/objformat; then
20909 objformat=`/usr/bin/objformat`
20912 freebsd[123]*) objformat=aout ;;
20913 *) objformat=elf ;;
20916 version_type=freebsd-$objformat
20917 case $version_type in
20919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20924 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20928 shlibpath_var=LD_LIBRARY_PATH
20931 shlibpath_overrides_runpath=yes
20933 freebsd3.[01]* | freebsdelf3.[01]*)
20934 shlibpath_overrides_runpath=yes
20935 hardcode_into_libs=yes
20937 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20938 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20939 shlibpath_overrides_runpath=no
20940 hardcode_into_libs=yes
20942 *) # from 4.6 on, and DragonFly
20943 shlibpath_overrides_runpath=yes
20944 hardcode_into_libs=yes
20953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20954 soname_spec='${libname}${release}${shared_ext}$major'
20955 shlibpath_var=LD_LIBRARY_PATH
20956 hardcode_into_libs=yes
20959 hpux9* | hpux10* | hpux11*)
20960 # Give a soname corresponding to the major version so that dld.sl refuses to
20961 # link against other versions.
20968 hardcode_into_libs=yes
20969 dynamic_linker="$host_os dld.so"
20970 shlibpath_var=LD_LIBRARY_PATH
20971 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20973 soname_spec='${libname}${release}${shared_ext}$major'
20974 if test "X$HPUX_IA64_MODE" = X32; then
20975 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20977 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20979 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20983 hardcode_into_libs=yes
20984 dynamic_linker="$host_os dld.sl"
20985 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20986 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20988 soname_spec='${libname}${release}${shared_ext}$major'
20989 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20990 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20994 dynamic_linker="$host_os dld.sl"
20995 shlibpath_var=SHLIB_PATH
20996 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20998 soname_spec='${libname}${release}${shared_ext}$major'
21001 # HP-UX runs *really* slowly unless shared libraries are mode 555.
21002 postinstall_cmds='chmod 555 $lib'
21009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21010 soname_spec='${libname}${release}${shared_ext}$major'
21011 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21012 shlibpath_var=LD_LIBRARY_PATH
21013 shlibpath_overrides_runpath=no
21014 hardcode_into_libs=yes
21017 irix5* | irix6* | nonstopux*)
21019 nonstopux*) version_type=nonstopux ;;
21021 if test "$lt_cv_prog_gnu_ld" = yes; then
21029 soname_spec='${libname}${release}${shared_ext}$major'
21030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21032 irix5* | nonstopux*)
21033 libsuff= shlibsuff=
21036 case $LD in # libtool.m4 will add one of these switches to LD
21037 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21038 libsuff= shlibsuff= libmagic=32-bit;;
21039 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21040 libsuff=32 shlibsuff=N32 libmagic=N32;;
21041 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21042 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21043 *) libsuff= shlibsuff= libmagic=never-match;;
21047 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21048 shlibpath_overrides_runpath=no
21049 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21050 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21051 hardcode_into_libs=yes
21054 # No shared lib support for Linux oldld, aout, or coff.
21055 linux*oldld* | linux*aout* | linux*coff*)
21059 # This must be Linux ELF.
21060 linux* | k*bsd*-gnu)
21064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21065 soname_spec='${libname}${release}${shared_ext}$major'
21066 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21067 shlibpath_var=LD_LIBRARY_PATH
21068 shlibpath_overrides_runpath=no
21069 # This implies no fast_install, which is unacceptable.
21070 # Some rework will be needed to allow for fast_install
21071 # before this can be enabled.
21072 hardcode_into_libs=yes
21074 # Append ld.so.conf contents to the search path
21075 if test -f /etc/ld.so.conf; then
21076 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' ' '`
21077 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21080 # We used to test for /lib/ld.so.1 and disable shared libraries on
21081 # powerpc, because MkLinux only supported shared libraries with the
21082 # GNU dynamic linker. Since this was broken with cross compilers,
21083 # most powerpc-linux boxes support dynamic linking these days and
21084 # people can always --disable-shared, the test was removed, and we
21085 # assume the GNU/Linux dynamic linker is in use.
21086 dynamic_linker='GNU/Linux ld.so'
21093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21094 soname_spec='${libname}${release}${shared_ext}$major'
21095 shlibpath_var=LD_LIBRARY_PATH
21096 shlibpath_overrides_runpath=no
21097 hardcode_into_libs=yes
21098 dynamic_linker='NetBSD ld.elf_so'
21105 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21107 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21108 dynamic_linker='NetBSD (a.out) ld.so'
21110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21111 soname_spec='${libname}${release}${shared_ext}$major'
21112 dynamic_linker='NetBSD ld.elf_so'
21114 shlibpath_var=LD_LIBRARY_PATH
21115 shlibpath_overrides_runpath=yes
21116 hardcode_into_libs=yes
21121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21122 shlibpath_var=LD_LIBRARY_PATH
21123 shlibpath_overrides_runpath=yes
21130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21131 soname_spec='${libname}${release}${shared_ext}$major'
21132 shlibpath_var=LD_LIBRARY_PATH
21133 shlibpath_overrides_runpath=yes
21138 sys_lib_dlsearch_path_spec="/usr/lib"
21140 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21142 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21143 *) need_version=no ;;
21145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21146 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21147 shlibpath_var=LD_LIBRARY_PATH
21148 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21150 openbsd2.[89] | openbsd2.[89].*)
21151 shlibpath_overrides_runpath=no
21154 shlibpath_overrides_runpath=yes
21158 shlibpath_overrides_runpath=yes
21163 libname_spec='$name'
21166 library_names_spec='$libname${shared_ext} $libname.a'
21167 dynamic_linker='OS/2 ld.exe'
21168 shlibpath_var=LIBPATH
21171 osf3* | osf4* | osf5*)
21175 soname_spec='${libname}${release}${shared_ext}$major'
21176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21177 shlibpath_var=LD_LIBRARY_PATH
21178 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21179 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21191 soname_spec='${libname}${release}${shared_ext}$major'
21192 shlibpath_var=LD_LIBRARY_PATH
21193 shlibpath_overrides_runpath=yes
21194 hardcode_into_libs=yes
21195 # ldd complains unless libraries are executable
21196 postinstall_cmds='chmod +x $lib'
21201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21202 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21203 shlibpath_var=LD_LIBRARY_PATH
21204 shlibpath_overrides_runpath=yes
21205 if test "$with_gnu_ld" = yes; then
21213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21214 soname_spec='${libname}${release}${shared_ext}$major'
21215 shlibpath_var=LD_LIBRARY_PATH
21216 case $host_vendor in
21218 shlibpath_overrides_runpath=no
21220 export_dynamic_flag_spec='${wl}-Blargedynsym'
21221 runpath_var=LD_RUN_PATH
21229 shlibpath_overrides_runpath=no
21230 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21236 if test -d /usr/nec ;then
21238 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21239 soname_spec='$libname${shared_ext}.$major'
21240 shlibpath_var=LD_LIBRARY_PATH
21244 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21245 version_type=freebsd-elf
21248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21249 soname_spec='${libname}${release}${shared_ext}$major'
21250 shlibpath_var=LD_LIBRARY_PATH
21251 hardcode_into_libs=yes
21252 if test "$with_gnu_ld" = yes; then
21253 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21254 shlibpath_overrides_runpath=no
21256 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21257 shlibpath_overrides_runpath=yes
21260 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21264 sys_lib_dlsearch_path_spec='/usr/lib'
21269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21270 soname_spec='${libname}${release}${shared_ext}$major'
21271 shlibpath_var=LD_LIBRARY_PATH
21278 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21279 echo "${ECHO_T}$dynamic_linker" >&6; }
21280 test "$dynamic_linker" = no && can_build_shared=no
21282 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21283 if test "$GCC" = yes; then
21284 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21287 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21288 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
21289 hardcode_action_CXX=
21290 if test -n "$hardcode_libdir_flag_spec_CXX" || \
21291 test -n "$runpath_var_CXX" || \
21292 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21294 # We can hardcode non-existant directories.
21295 if test "$hardcode_direct_CXX" != no &&
21296 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21297 # have to relink, otherwise we might link with an installed library
21298 # when we should be linking with a yet-to-be-installed one
21299 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21300 test "$hardcode_minus_L_CXX" != no; then
21301 # Linking always hardcodes the temporary library directory.
21302 hardcode_action_CXX=relink
21304 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21305 hardcode_action_CXX=immediate
21308 # We cannot hardcode anything, or else we can only hardcode existing
21310 hardcode_action_CXX=unsupported
21312 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
21313 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
21315 if test "$hardcode_action_CXX" = relink; then
21316 # Fast installation is not supported
21317 enable_fast_install=no
21318 elif test "$shlibpath_overrides_runpath" = yes ||
21319 test "$enable_shared" = no; then
21320 # Fast installation is not necessary
21321 enable_fast_install=needless
21325 # The else clause should only fire when bootstrapping the
21326 # libtool distribution, otherwise you forgot to ship ltmain.sh
21327 # with your package, and you will get complaints that there are
21328 # no rules to generate ltmain.sh.
21329 if test -f "$ltmain"; then
21330 # See if we are running on zsh, and set the options which allow our commands through
21331 # without removal of \ escapes.
21332 if test -n "${ZSH_VERSION+set}" ; then
21333 setopt NO_GLOB_SUBST
21335 # Now quote all the things that may contain metacharacters while being
21336 # careful not to overquote the AC_SUBSTed values. We take copies of the
21337 # variables and quote the copies for generation of the libtool script.
21338 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21340 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21341 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21342 deplibs_check_method reload_flag reload_cmds need_locks \
21343 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21344 lt_cv_sys_global_symbol_to_c_name_address \
21345 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21346 old_postinstall_cmds old_postuninstall_cmds \
21350 lt_prog_compiler_wl_CXX \
21351 lt_prog_compiler_pic_CXX \
21352 lt_prog_compiler_static_CXX \
21353 lt_prog_compiler_no_builtin_flag_CXX \
21354 export_dynamic_flag_spec_CXX \
21355 thread_safe_flag_spec_CXX \
21356 whole_archive_flag_spec_CXX \
21357 enable_shared_with_static_runtimes_CXX \
21358 old_archive_cmds_CXX \
21359 old_archive_from_new_cmds_CXX \
21360 predep_objects_CXX \
21361 postdep_objects_CXX \
21364 compiler_lib_search_path_CXX \
21366 archive_expsym_cmds_CXX \
21367 postinstall_cmds_CXX \
21368 postuninstall_cmds_CXX \
21369 old_archive_from_expsyms_cmds_CXX \
21370 allow_undefined_flag_CXX \
21371 no_undefined_flag_CXX \
21372 export_symbols_cmds_CXX \
21373 hardcode_libdir_flag_spec_CXX \
21374 hardcode_libdir_flag_spec_ld_CXX \
21375 hardcode_libdir_separator_CXX \
21376 hardcode_automatic_CXX \
21378 module_expsym_cmds_CXX \
21379 lt_cv_prog_compiler_c_o_CXX \
21380 fix_srcfile_path_CXX \
21381 exclude_expsyms_CXX \
21382 include_expsyms_CXX; do
21385 old_archive_cmds_CXX | \
21386 old_archive_from_new_cmds_CXX | \
21387 archive_cmds_CXX | \
21388 archive_expsym_cmds_CXX | \
21389 module_cmds_CXX | \
21390 module_expsym_cmds_CXX | \
21391 old_archive_from_expsyms_cmds_CXX | \
21392 export_symbols_cmds_CXX | \
21393 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21394 postinstall_cmds | postuninstall_cmds | \
21395 old_postinstall_cmds | old_postuninstall_cmds | \
21396 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21397 # Double-quote double-evaled strings.
21398 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21401 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21407 *'\$0 --fallback-echo"')
21408 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21414 cat <<__EOF__ >> "$cfgfile"
21415 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21417 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21419 # Shell to use when invoking shell scripts.
21422 # Whether or not to build shared libraries.
21423 build_libtool_libs=$enable_shared
21425 # Whether or not to build static libraries.
21426 build_old_libs=$enable_static
21428 # Whether or not to add -lc for building shared libraries.
21429 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21431 # Whether or not to disallow shared libs when runtime libs are static
21432 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21434 # Whether or not to optimize for fast installation.
21435 fast_install=$enable_fast_install
21438 host_alias=$host_alias
21442 # The build system.
21443 build_alias=$build_alias
21447 # An echo program that does not interpret backslashes.
21452 AR_FLAGS=$lt_AR_FLAGS
21457 # LTCC compiler flags.
21458 LTCFLAGS=$lt_LTCFLAGS
21460 # A language-specific compiler.
21461 CC=$lt_compiler_CXX
21463 # Is the compiler the GNU C compiler?
21469 # The linker used to build libraries.
21472 # Whether we need hard or soft links.
21475 # A BSD-compatible nm program.
21478 # A symbol stripping program
21481 # Used to examine libraries when file_magic_cmd begins "file"
21482 MAGIC_CMD=$MAGIC_CMD
21484 # Used on cygwin: DLL creation program.
21487 # Used on cygwin: object dumper.
21490 # Used on cygwin: assembler.
21493 # The name of the directory that contains temporary libtool files.
21496 # How to create reloadable object files.
21497 reload_flag=$lt_reload_flag
21498 reload_cmds=$lt_reload_cmds
21500 # How to pass a linker flag through the compiler.
21501 wl=$lt_lt_prog_compiler_wl_CXX
21503 # Object file suffix (normally "o").
21504 objext="$ac_objext"
21506 # Old archive suffix (normally "a").
21509 # Shared library suffix (normally ".so").
21510 shrext_cmds='$shrext_cmds'
21512 # Executable file suffix (normally "").
21515 # Additional compiler flags for building library objects.
21516 pic_flag=$lt_lt_prog_compiler_pic_CXX
21519 # What is the maximum length of a command?
21520 max_cmd_len=$lt_cv_sys_max_cmd_len
21522 # Does compiler simultaneously support -c and -o options?
21523 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21525 # Must we lock files when doing compilation?
21526 need_locks=$lt_need_locks
21528 # Do we need the lib prefix for modules?
21529 need_lib_prefix=$need_lib_prefix
21531 # Do we need a version for libraries?
21532 need_version=$need_version
21534 # Whether dlopen is supported.
21535 dlopen_support=$enable_dlopen
21537 # Whether dlopen of programs is supported.
21538 dlopen_self=$enable_dlopen_self
21540 # Whether dlopen of statically linked programs is supported.
21541 dlopen_self_static=$enable_dlopen_self_static
21543 # Compiler flag to prevent dynamic linking.
21544 link_static_flag=$lt_lt_prog_compiler_static_CXX
21546 # Compiler flag to turn off builtin functions.
21547 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21549 # Compiler flag to allow reflexive dlopens.
21550 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21552 # Compiler flag to generate shared objects directly from archives.
21553 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21555 # Compiler flag to generate thread-safe objects.
21556 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21558 # Library versioning type.
21559 version_type=$version_type
21561 # Format of library name prefix.
21562 libname_spec=$lt_libname_spec
21564 # List of archive names. First name is the real one, the rest are links.
21565 # The last name is the one that the linker finds with -lNAME.
21566 library_names_spec=$lt_library_names_spec
21568 # The coded name of the library, if different from the real name.
21569 soname_spec=$lt_soname_spec
21571 # Commands used to build and install an old-style archive.
21573 old_archive_cmds=$lt_old_archive_cmds_CXX
21574 old_postinstall_cmds=$lt_old_postinstall_cmds
21575 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21577 # Create an old-style archive from a shared archive.
21578 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21580 # Create a temporary old-style archive to link instead of a shared archive.
21581 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21583 # Commands used to build and install a shared archive.
21584 archive_cmds=$lt_archive_cmds_CXX
21585 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21586 postinstall_cmds=$lt_postinstall_cmds
21587 postuninstall_cmds=$lt_postuninstall_cmds
21589 # Commands used to build a loadable module (assumed same as above if empty)
21590 module_cmds=$lt_module_cmds_CXX
21591 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21593 # Commands to strip libraries.
21594 old_striplib=$lt_old_striplib
21595 striplib=$lt_striplib
21597 # Dependencies to place before the objects being linked to create a
21599 predep_objects=$lt_predep_objects_CXX
21601 # Dependencies to place after the objects being linked to create a
21603 postdep_objects=$lt_postdep_objects_CXX
21605 # Dependencies to place before the objects being linked to create a
21607 predeps=$lt_predeps_CXX
21609 # Dependencies to place after the objects being linked to create a
21611 postdeps=$lt_postdeps_CXX
21613 # The library search path used internally by the compiler when linking
21614 # a shared library.
21615 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21617 # Method to check whether dependent libraries are shared objects.
21618 deplibs_check_method=$lt_deplibs_check_method
21620 # Command to use when deplibs_check_method == file_magic.
21621 file_magic_cmd=$lt_file_magic_cmd
21623 # Flag that allows shared libraries with undefined symbols to be built.
21624 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21626 # Flag that forces no undefined symbols.
21627 no_undefined_flag=$lt_no_undefined_flag_CXX
21629 # Commands used to finish a libtool library installation in a directory.
21630 finish_cmds=$lt_finish_cmds
21632 # Same as above, but a single script fragment to be evaled but not shown.
21633 finish_eval=$lt_finish_eval
21635 # Take the output of nm and produce a listing of raw symbols and C names.
21636 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21638 # Transform the output of nm in a proper C declaration
21639 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21641 # Transform the output of nm in a C name address pair
21642 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21644 # This is the shared library runtime path variable.
21645 runpath_var=$runpath_var
21647 # This is the shared library path variable.
21648 shlibpath_var=$shlibpath_var
21650 # Is shlibpath searched before the hard-coded library search path?
21651 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21653 # How to hardcode a shared library path into an executable.
21654 hardcode_action=$hardcode_action_CXX
21656 # Whether we should hardcode library paths into libraries.
21657 hardcode_into_libs=$hardcode_into_libs
21659 # Flag to hardcode \$libdir into a binary during linking.
21660 # This must work even if \$libdir does not exist.
21661 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21663 # If ld is used when linking, flag to hardcode \$libdir into
21664 # a binary during linking. This must work even if \$libdir does
21666 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21668 # Whether we need a single -rpath flag with a separated argument.
21669 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21671 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21672 # resulting binary.
21673 hardcode_direct=$hardcode_direct_CXX
21675 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21676 # resulting binary.
21677 hardcode_minus_L=$hardcode_minus_L_CXX
21679 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21680 # the resulting binary.
21681 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21683 # Set to yes if building a shared library automatically hardcodes DIR into the library
21684 # and all subsequent libraries and executables linked against it.
21685 hardcode_automatic=$hardcode_automatic_CXX
21687 # Variables whose values should be saved in libtool wrapper scripts and
21688 # restored at relink time.
21689 variables_saved_for_relink="$variables_saved_for_relink"
21691 # Whether libtool must link a program against all its dependency libraries.
21692 link_all_deplibs=$link_all_deplibs_CXX
21694 # Compile-time system search path for libraries
21695 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21697 # Run-time system search path for libraries
21698 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21700 # Fix the shell variable \$srcfile for the compiler.
21701 fix_srcfile_path=$lt_fix_srcfile_path
21703 # Set to yes if exported symbols are required.
21704 always_export_symbols=$always_export_symbols_CXX
21706 # The commands to list exported symbols.
21707 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21709 # The commands to extract the exported symbol list from a shared archive.
21710 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21712 # Symbols that should not be listed in the preloaded symbols.
21713 exclude_expsyms=$lt_exclude_expsyms_CXX
21715 # Symbols that must always be exported.
21716 include_expsyms=$lt_include_expsyms_CXX
21718 # ### END LIBTOOL TAG CONFIG: $tagname
21724 # If there is no Makefile yet, we rely on a make rule to execute
21725 # `config.status --recheck' to rerun these tests and create the
21726 # libtool script then.
21727 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21728 if test -f "$ltmain_in"; then
21729 test -f Makefile && make "$ltmain"
21735 ac_cpp='$CPP $CPPFLAGS'
21736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21744 with_gnu_ldcxx=$with_gnu_ld
21745 with_gnu_ld=$lt_save_with_gnu_ld
21746 lt_cv_path_LDCXX=$lt_cv_path_LD
21747 lt_cv_path_LD=$lt_save_path_LD
21748 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21749 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21757 if test -n "$F77" && test "X$F77" != "Xno"; then
21760 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21761 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21762 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21765 archive_cmds_need_lc_F77=no
21766 allow_undefined_flag_F77=
21767 always_export_symbols_F77=no
21768 archive_expsym_cmds_F77=
21769 export_dynamic_flag_spec_F77=
21770 hardcode_direct_F77=no
21771 hardcode_libdir_flag_spec_F77=
21772 hardcode_libdir_flag_spec_ld_F77=
21773 hardcode_libdir_separator_F77=
21774 hardcode_minus_L_F77=no
21775 hardcode_automatic_F77=no
21777 module_expsym_cmds_F77=
21778 link_all_deplibs_F77=unknown
21779 old_archive_cmds_F77=$old_archive_cmds
21780 no_undefined_flag_F77=
21781 whole_archive_flag_spec_F77=
21782 enable_shared_with_static_runtimes_F77=no
21784 # Source file extension for f77 test sources.
21787 # Object file extension for compiled f77 test sources.
21791 # Code to be used in simple compile tests
21792 lt_simple_compile_test_code="\
21798 # Code to be used in simple link tests
21799 lt_simple_link_test_code="\
21804 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21806 # If no C compiler was specified, use CC.
21809 # If no C compiler flags were specified, use CFLAGS.
21810 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21812 # Allow CC to be a program name with arguments.
21816 # save warnings/boilerplate of simple test code
21817 ac_outfile=conftest.$ac_objext
21818 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
21819 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21820 _lt_compiler_boilerplate=`cat conftest.err`
21823 ac_outfile=conftest.$ac_objext
21824 echo "$lt_simple_link_test_code" >conftest.$ac_ext
21825 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21826 _lt_linker_boilerplate=`cat conftest.err`
21830 # Allow CC to be a program name with arguments.
21835 for cc_temp in $compiler""; do
21837 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21838 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21843 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21846 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21847 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21848 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21849 echo "${ECHO_T}$can_build_shared" >&6; }
21851 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21852 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21853 test "$can_build_shared" = "no" && enable_shared=no
21855 # On AIX, shared libraries and static libraries use the same namespace, and
21856 # are all built from PIC.
21859 test "$enable_shared" = yes && enable_static=no
21860 if test -n "$RANLIB"; then
21861 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21862 postinstall_cmds='$RANLIB $lib'
21866 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21867 test "$enable_shared" = yes && enable_static=no
21871 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21872 echo "${ECHO_T}$enable_shared" >&6; }
21874 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21875 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21876 # Make sure either enable_shared or enable_static is yes.
21877 test "$enable_shared" = yes || enable_static=yes
21878 { echo "$as_me:$LINENO: result: $enable_static" >&5
21879 echo "${ECHO_T}$enable_static" >&6; }
21884 lt_prog_compiler_wl_F77=
21885 lt_prog_compiler_pic_F77=
21886 lt_prog_compiler_static_F77=
21888 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21889 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21891 if test "$GCC" = yes; then
21892 lt_prog_compiler_wl_F77='-Wl,'
21893 lt_prog_compiler_static_F77='-static'
21897 # All AIX code is PIC.
21898 if test "$host_cpu" = ia64; then
21899 # AIX 5 now supports IA64 processor
21900 lt_prog_compiler_static_F77='-Bstatic'
21905 # FIXME: we need at least 68020 code to build shared libraries, but
21906 # adding the `-m68020' flag to GCC prevents building anything better,
21908 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21911 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21912 # PIC is the default for these OSes.
21915 mingw* | cygwin* | pw32* | os2*)
21916 # This hack is so that the source file can tell whether it is being
21917 # built for inclusion in a dll (and should export symbols for example).
21918 # Although the cygwin gcc ignores -fPIC, still need this for old-style
21919 # (--disable-auto-import) libraries
21920 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21923 darwin* | rhapsody*)
21924 # PIC is the default on this platform
21925 # Common symbols not allowed in MH_DYLIB files
21926 lt_prog_compiler_pic_F77='-fno-common'
21930 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21931 # Instead, we relocate shared libraries at runtime.
21935 # Just because we use GCC doesn't mean we suddenly get shared libraries
21936 # on systems that don't support them.
21937 lt_prog_compiler_can_build_shared_F77=no
21942 if test -d /usr/nec; then
21943 lt_prog_compiler_pic_F77=-Kconform_pic
21948 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21949 # not for PA HP-UX.
21955 lt_prog_compiler_pic_F77='-fPIC'
21961 lt_prog_compiler_pic_F77='-fPIC'
21965 # PORTME Check for flag to pass linker flags through the system compiler.
21968 lt_prog_compiler_wl_F77='-Wl,'
21969 if test "$host_cpu" = ia64; then
21970 # AIX 5 now supports IA64 processor
21971 lt_prog_compiler_static_F77='-Bstatic'
21973 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21977 # PIC is the default on this platform
21978 # Common symbols not allowed in MH_DYLIB files
21979 case $cc_basename in
21981 lt_prog_compiler_pic_F77='-qnocommon'
21982 lt_prog_compiler_wl_F77='-Wl,'
21987 mingw* | cygwin* | pw32* | os2*)
21988 # This hack is so that the source file can tell whether it is being
21989 # built for inclusion in a dll (and should export symbols for example).
21990 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21993 hpux9* | hpux10* | hpux11*)
21994 lt_prog_compiler_wl_F77='-Wl,'
21995 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21996 # not for PA HP-UX.
22002 lt_prog_compiler_pic_F77='+Z'
22005 # Is there a better lt_prog_compiler_static that works with the bundled CC?
22006 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
22009 irix5* | irix6* | nonstopux*)
22010 lt_prog_compiler_wl_F77='-Wl,'
22011 # PIC (with -KPIC) is the default.
22012 lt_prog_compiler_static_F77='-non_shared'
22016 lt_prog_compiler_pic_F77='-KPIC'
22017 lt_prog_compiler_static_F77='-Bstatic'
22020 linux* | k*bsd*-gnu)
22021 case $cc_basename in
22023 lt_prog_compiler_wl_F77='-Wl,'
22024 lt_prog_compiler_pic_F77='-KPIC'
22025 lt_prog_compiler_static_F77='-static'
22027 pgcc* | pgf77* | pgf90* | pgf95*)
22028 # Portland Group compilers (*not* the Pentium gcc compiler,
22029 # which looks to be a dead project)
22030 lt_prog_compiler_wl_F77='-Wl,'
22031 lt_prog_compiler_pic_F77='-fpic'
22032 lt_prog_compiler_static_F77='-Bstatic'
22035 lt_prog_compiler_wl_F77='-Wl,'
22036 # All Alpha code is PIC.
22037 lt_prog_compiler_static_F77='-non_shared'
22040 case `$CC -V 2>&1 | sed 5q` in
22043 lt_prog_compiler_pic_F77='-KPIC'
22044 lt_prog_compiler_static_F77='-Bstatic'
22045 lt_prog_compiler_wl_F77='-Wl,'
22048 # Sun Fortran 8.3 passes all unrecognized flags to the linker
22049 lt_prog_compiler_pic_F77='-KPIC'
22050 lt_prog_compiler_static_F77='-Bstatic'
22051 lt_prog_compiler_wl_F77=''
22058 osf3* | osf4* | osf5*)
22059 lt_prog_compiler_wl_F77='-Wl,'
22060 # All OSF/1 code is PIC.
22061 lt_prog_compiler_static_F77='-non_shared'
22065 lt_prog_compiler_static_F77='-non_shared'
22069 lt_prog_compiler_pic_F77='-KPIC'
22070 lt_prog_compiler_static_F77='-Bstatic'
22071 case $cc_basename in
22072 f77* | f90* | f95*)
22073 lt_prog_compiler_wl_F77='-Qoption ld ';;
22075 lt_prog_compiler_wl_F77='-Wl,';;
22080 lt_prog_compiler_wl_F77='-Qoption ld '
22081 lt_prog_compiler_pic_F77='-PIC'
22082 lt_prog_compiler_static_F77='-Bstatic'
22085 sysv4 | sysv4.2uw2* | sysv4.3*)
22086 lt_prog_compiler_wl_F77='-Wl,'
22087 lt_prog_compiler_pic_F77='-KPIC'
22088 lt_prog_compiler_static_F77='-Bstatic'
22092 if test -d /usr/nec ;then
22093 lt_prog_compiler_pic_F77='-Kconform_pic'
22094 lt_prog_compiler_static_F77='-Bstatic'
22098 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
22099 lt_prog_compiler_wl_F77='-Wl,'
22100 lt_prog_compiler_pic_F77='-KPIC'
22101 lt_prog_compiler_static_F77='-Bstatic'
22105 lt_prog_compiler_wl_F77='-Wl,'
22106 lt_prog_compiler_can_build_shared_F77=no
22110 lt_prog_compiler_pic_F77='-pic'
22111 lt_prog_compiler_static_F77='-Bstatic'
22115 lt_prog_compiler_can_build_shared_F77=no
22120 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
22121 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
22124 # Check to make sure the PIC flag actually works.
22126 if test -n "$lt_prog_compiler_pic_F77"; then
22128 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
22129 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
22130 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
22131 echo $ECHO_N "(cached) $ECHO_C" >&6
22133 lt_prog_compiler_pic_works_F77=no
22134 ac_outfile=conftest.$ac_objext
22135 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22136 lt_compiler_flag="$lt_prog_compiler_pic_F77"
22137 # Insert the option either (1) after the last *FLAGS variable, or
22138 # (2) before a word containing "conftest.", or (3) at the end.
22139 # Note that $ac_compile itself does not contain backslashes and begins
22140 # with a dollar sign (not a hyphen), so the echo should work correctly.
22141 # The option is referenced via a variable to avoid confusing sed.
22142 lt_compile=`echo "$ac_compile" | $SED \
22143 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22144 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22145 -e 's:$: $lt_compiler_flag:'`
22146 (eval echo "\"\$as_me:22146: $lt_compile\"" >&5)
22147 (eval "$lt_compile" 2>conftest.err)
22149 cat conftest.err >&5
22150 echo "$as_me:22150: \$? = $ac_status" >&5
22151 if (exit $ac_status) && test -s "$ac_outfile"; then
22152 # The compiler can only warn and ignore the option if not recognized
22153 # So say no if there are warnings other than the usual output.
22154 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
22155 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22156 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
22157 lt_prog_compiler_pic_works_F77=yes
22163 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
22164 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
22166 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
22167 case $lt_prog_compiler_pic_F77 in
22169 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
22172 lt_prog_compiler_pic_F77=
22173 lt_prog_compiler_can_build_shared_F77=no
22178 # For platforms which do not support PIC, -DPIC is meaningless:
22180 lt_prog_compiler_pic_F77=
22183 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
22188 # Check to make sure the static flag actually works.
22190 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
22191 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
22192 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
22193 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
22194 echo $ECHO_N "(cached) $ECHO_C" >&6
22196 lt_prog_compiler_static_works_F77=no
22197 save_LDFLAGS="$LDFLAGS"
22198 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
22199 echo "$lt_simple_link_test_code" > conftest.$ac_ext
22200 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
22201 # The linker can only warn and ignore the option if not recognized
22202 # So say no if there are warnings
22203 if test -s conftest.err; then
22204 # Append any errors to the config.log.
22205 cat conftest.err 1>&5
22206 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
22207 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22208 if diff conftest.exp conftest.er2 >/dev/null; then
22209 lt_prog_compiler_static_works_F77=yes
22212 lt_prog_compiler_static_works_F77=yes
22216 LDFLAGS="$save_LDFLAGS"
22219 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
22220 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
22222 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
22225 lt_prog_compiler_static_F77=
22229 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
22230 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
22231 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
22232 echo $ECHO_N "(cached) $ECHO_C" >&6
22234 lt_cv_prog_compiler_c_o_F77=no
22235 $rm -r conftest 2>/dev/null
22239 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22241 lt_compiler_flag="-o out/conftest2.$ac_objext"
22242 # Insert the option either (1) after the last *FLAGS variable, or
22243 # (2) before a word containing "conftest.", or (3) at the end.
22244 # Note that $ac_compile itself does not contain backslashes and begins
22245 # with a dollar sign (not a hyphen), so the echo should work correctly.
22246 lt_compile=`echo "$ac_compile" | $SED \
22247 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22248 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22249 -e 's:$: $lt_compiler_flag:'`
22250 (eval echo "\"\$as_me:22250: $lt_compile\"" >&5)
22251 (eval "$lt_compile" 2>out/conftest.err)
22253 cat out/conftest.err >&5
22254 echo "$as_me:22254: \$? = $ac_status" >&5
22255 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22257 # The compiler can only warn and ignore the option if not recognized
22258 # So say no if there are warnings
22259 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
22260 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22261 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22262 lt_cv_prog_compiler_c_o_F77=yes
22267 # SGI C++ compiler will create directory out/ii_files/ for
22268 # template instantiation
22269 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
22270 $rm out/* && rmdir out
22276 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
22277 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
22280 hard_links="nottested"
22281 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
22282 # do not overwrite the value of need_locks provided by the user
22283 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
22284 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
22287 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22289 ln conftest.a conftest.b 2>&5 || hard_links=no
22290 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22291 { echo "$as_me:$LINENO: result: $hard_links" >&5
22292 echo "${ECHO_T}$hard_links" >&6; }
22293 if test "$hard_links" = no; then
22294 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22295 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22302 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22303 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
22306 allow_undefined_flag_F77=
22307 enable_shared_with_static_runtimes_F77=no
22309 archive_expsym_cmds_F77=
22310 old_archive_From_new_cmds_F77=
22311 old_archive_from_expsyms_cmds_F77=
22312 export_dynamic_flag_spec_F77=
22313 whole_archive_flag_spec_F77=
22314 thread_safe_flag_spec_F77=
22315 hardcode_libdir_flag_spec_F77=
22316 hardcode_libdir_flag_spec_ld_F77=
22317 hardcode_libdir_separator_F77=
22318 hardcode_direct_F77=no
22319 hardcode_minus_L_F77=no
22320 hardcode_shlibpath_var_F77=unsupported
22321 link_all_deplibs_F77=unknown
22322 hardcode_automatic_F77=no
22324 module_expsym_cmds_F77=
22325 always_export_symbols_F77=no
22326 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22327 # include_expsyms should be a list of space-separated symbols to be *always*
22328 # included in the symbol list
22329 include_expsyms_F77=
22330 # exclude_expsyms can be an extended regexp of symbols to exclude
22331 # it will be wrapped by ` (' and `)$', so one must not match beginning or
22332 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
22333 # as well as any symbol that contains `d'.
22334 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
22335 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
22336 # platforms (ab)use it in PIC code, but their linkers get confused if
22337 # the symbol is explicitly referenced. Since portable code cannot
22338 # rely on this symbol name, it's probably fine to never include it in
22339 # preloaded symbol tables.
22340 extract_expsyms_cmds=
22341 # Just being paranoid about ensuring that cc_basename is set.
22342 for cc_temp in $compiler""; do
22344 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22345 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22350 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22353 cygwin* | mingw* | pw32*)
22354 # FIXME: the MSVC++ port hasn't been tested in a loooong time
22355 # When not using gcc, we currently assume that we are using
22356 # Microsoft Visual C++.
22357 if test "$GCC" != yes; then
22362 # we just hope/assume this is gcc and not c89 (= MSVC++)
22371 if test "$with_gnu_ld" = yes; then
22372 # If archive_cmds runs LD, not CC, wlarc should be empty
22375 # Set some defaults for GNU ld with shared library support. These
22376 # are reset later if shared libraries are not supported. Putting them
22377 # here allows them to be overridden if necessary.
22378 runpath_var=LD_RUN_PATH
22379 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
22380 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
22381 # ancient GNU ld didn't support --whole-archive et. al.
22382 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
22383 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22385 whole_archive_flag_spec_F77=
22387 supports_anon_versioning=no
22388 case `$LD -v 2>/dev/null` in
22389 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22390 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22391 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22392 *\ 2.11.*) ;; # other 2.11 versions
22393 *) supports_anon_versioning=yes ;;
22396 # See if GNU ld supports shared libraries.
22398 aix3* | aix4* | aix5*)
22399 # On AIX/PPC, the GNU linker is very broken
22400 if test "$host_cpu" != ia64; then
22404 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
22405 *** to be unable to reliably create shared libraries on AIX.
22406 *** Therefore, libtool is disabling shared libraries support. If you
22407 *** really care for shared libraries, you may want to modify your PATH
22408 *** so that a non-GNU linker is found, and then restart.
22415 archive_cmds_F77='$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)'
22416 hardcode_libdir_flag_spec_F77='-L$libdir'
22417 hardcode_minus_L_F77=yes
22419 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22420 # that the semantics of dynamic libraries on AmigaOS, at least up
22421 # to version 4, is to share data among multiple programs linked
22422 # with the same dynamic library. Since this doesn't match the
22423 # behavior of shared libraries on other platforms, we can't use
22429 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22430 allow_undefined_flag_F77=unsupported
22431 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22432 # support --undefined. This deserves some investigation. FIXME
22433 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22439 cygwin* | mingw* | pw32*)
22440 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22441 # as there is no search path for DLLs.
22442 hardcode_libdir_flag_spec_F77='-L$libdir'
22443 allow_undefined_flag_F77=unsupported
22444 always_export_symbols_F77=no
22445 enable_shared_with_static_runtimes_F77=yes
22446 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
22448 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
22449 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22450 # If the export-symbols file already is a .def file (1st line
22451 # is EXPORTS), use it as is; otherwise, prepend...
22452 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22453 cp $export_symbols $output_objdir/$soname.def;
22455 echo EXPORTS > $output_objdir/$soname.def;
22456 cat $export_symbols >> $output_objdir/$soname.def;
22458 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22465 hardcode_direct_F77=no
22466 hardcode_shlibpath_var_F77=no
22467 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22468 export_dynamic_flag_spec_F77='${wl}-E'
22469 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22470 # Instead, shared libraries are loaded at an image base (0x10000000 by
22471 # default) and relocated if they conflict, which is a slow very memory
22472 # consuming and fragmenting process. To avoid this, we pick a random,
22473 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22474 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22475 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
22476 archive_expsym_cmds_F77='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'
22479 gnu* | linux* | k*bsd*-gnu)
22480 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22482 case $cc_basename,$host_cpu in
22483 pgcc*) # Portland Group C compiler
22484 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
22485 tmp_addflag=' $pic_flag'
22487 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
22488 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
22489 tmp_addflag=' $pic_flag -Mnomain' ;;
22490 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
22491 tmp_addflag=' -i_dynamic' ;;
22492 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
22493 tmp_addflag=' -i_dynamic -nofor_main' ;;
22494 ifc* | ifort*) # Intel Fortran compiler
22495 tmp_addflag=' -nofor_main' ;;
22497 case `$CC -V 2>&1 | sed 5q` in
22498 *Sun\ C*) # Sun C 5.9
22499 whole_archive_flag_spec_F77='${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'
22500 tmp_sharedflag='-G' ;;
22501 *Sun\ F*) # Sun Fortran 8.3
22502 tmp_sharedflag='-G' ;;
22504 tmp_sharedflag='-shared' ;;
22506 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22508 if test $supports_anon_versioning = yes; then
22509 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22510 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22511 $echo "local: *; };" >> $output_objdir/$libname.ver~
22512 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22514 link_all_deplibs_F77=no
22520 netbsd* | netbsdelf*-gnu)
22521 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22522 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22525 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22526 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22531 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22535 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22536 *** create shared libraries on Solaris systems. Therefore, libtool
22537 *** is disabling shared libraries support. We urge you to upgrade GNU
22538 *** binutils to release 2.9.1 or newer. Another option is to modify
22539 *** your PATH or compiler configuration so that the native linker is
22540 *** used, and then restart.
22543 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22544 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22545 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22551 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22552 case `$LD -v 2>&1` in
22553 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22557 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22558 *** reliably create shared libraries on SCO systems. Therefore, libtool
22559 *** is disabling shared libraries support. We urge you to upgrade GNU
22560 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22561 *** your PATH or compiler configuration so that the native linker is
22562 *** used, and then restart.
22567 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22568 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22569 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22570 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22579 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22581 hardcode_direct_F77=yes
22582 hardcode_shlibpath_var_F77=no
22586 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22587 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22588 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22595 if test "$ld_shlibs_F77" = no; then
22597 hardcode_libdir_flag_spec_F77=
22598 export_dynamic_flag_spec_F77=
22599 whole_archive_flag_spec_F77=
22602 # PORTME fill in a description of your system's linker (not GNU ld)
22605 allow_undefined_flag_F77=unsupported
22606 always_export_symbols_F77=yes
22607 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
22608 # Note: this linker hardcodes the directories in LIBPATH if there
22609 # are no directories specified by -L.
22610 hardcode_minus_L_F77=yes
22611 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22612 # Neither direct hardcoding nor static linking is supported with a
22614 hardcode_direct_F77=unsupported
22619 if test "$host_cpu" = ia64; then
22620 # On IA64, the linker does run time linking by default, so we don't
22621 # have to do anything special.
22622 aix_use_runtimelinking=no
22623 exp_sym_flag='-Bexport'
22626 # If we're using GNU nm, then we don't want the "-C" option.
22627 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22628 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22629 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
22631 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
22633 aix_use_runtimelinking=no
22635 # Test if we are trying to use run time linking or normal
22636 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22637 # need to do runtime linking.
22638 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22639 for ld_flag in $LDFLAGS; do
22640 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22641 aix_use_runtimelinking=yes
22648 exp_sym_flag='-bexport'
22649 no_entry_flag='-bnoentry'
22652 # When large executables or shared objects are built, AIX ld can
22653 # have problems creating the table of contents. If linking a library
22654 # or program results in "error TOC overflow" add -mminimal-toc to
22655 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22656 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22658 archive_cmds_F77=''
22659 hardcode_direct_F77=yes
22660 hardcode_libdir_separator_F77=':'
22661 link_all_deplibs_F77=yes
22663 if test "$GCC" = yes; then
22664 case $host_os in aix4.[012]|aix4.[012].*)
22665 # We only want to do this on AIX 4.2 and lower, the check
22666 # below for broken collect2 doesn't work under 4.3+
22667 collect2name=`${CC} -print-prog-name=collect2`
22668 if test -f "$collect2name" && \
22669 strings "$collect2name" | grep resolve_lib_name >/dev/null
22671 # We have reworked collect2
22674 # We have old collect2
22675 hardcode_direct_F77=unsupported
22676 # It fails to find uninstalled libraries when the uninstalled
22677 # path is not listed in the libpath. Setting hardcode_minus_L
22678 # to unsupported forces relinking
22679 hardcode_minus_L_F77=yes
22680 hardcode_libdir_flag_spec_F77='-L$libdir'
22681 hardcode_libdir_separator_F77=
22685 shared_flag='-shared'
22686 if test "$aix_use_runtimelinking" = yes; then
22687 shared_flag="$shared_flag "'${wl}-G'
22691 if test "$host_cpu" = ia64; then
22692 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22693 # chokes on -Wl,-G. The following line is correct:
22696 if test "$aix_use_runtimelinking" = yes; then
22697 shared_flag='${wl}-G'
22699 shared_flag='${wl}-bM:SRE'
22704 # It seems that -bexpall does not export symbols beginning with
22705 # underscore (_), so it is better to generate a list of symbols to export.
22706 always_export_symbols_F77=yes
22707 if test "$aix_use_runtimelinking" = yes; then
22708 # Warning - without using the other runtime loading flags (-brtl),
22709 # -berok will link without error, but may produce a broken library.
22710 allow_undefined_flag_F77='-berok'
22711 # Determine the default libpath from the value encoded in an empty executable.
22712 cat >conftest.$ac_ext <<_ACEOF
22717 rm -f conftest.$ac_objext conftest$ac_exeext
22718 if { (ac_try="$ac_link"
22719 case "(($ac_try" in
22720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22721 *) ac_try_echo=$ac_try;;
22723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22724 (eval "$ac_link") 2>conftest.er1
22726 grep -v '^ *+' conftest.er1 >conftest.err
22728 cat conftest.err >&5
22729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22730 (exit $ac_status); } && {
22731 test -z "$ac_f77_werror_flag" ||
22732 test ! -s conftest.err
22733 } && test -s conftest$ac_exeext &&
22734 $as_test_x conftest$ac_exeext; then
22736 lt_aix_libpath_sed='
22737 /Import File Strings/,/^$/ {
22743 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22744 # Check for a 64-bit object if we didn't find anything.
22745 if test -z "$aix_libpath"; then
22746 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22749 echo "$as_me: failed program was:" >&5
22750 sed 's/^/| /' conftest.$ac_ext >&5
22755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22756 conftest$ac_exeext conftest.$ac_ext
22757 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22759 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22760 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
22762 if test "$host_cpu" = ia64; then
22763 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22764 allow_undefined_flag_F77="-z nodefs"
22765 archive_expsym_cmds_F77="\$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"
22767 # Determine the default libpath from the value encoded in an empty executable.
22768 cat >conftest.$ac_ext <<_ACEOF
22773 rm -f conftest.$ac_objext conftest$ac_exeext
22774 if { (ac_try="$ac_link"
22775 case "(($ac_try" in
22776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22777 *) ac_try_echo=$ac_try;;
22779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22780 (eval "$ac_link") 2>conftest.er1
22782 grep -v '^ *+' conftest.er1 >conftest.err
22784 cat conftest.err >&5
22785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22786 (exit $ac_status); } && {
22787 test -z "$ac_f77_werror_flag" ||
22788 test ! -s conftest.err
22789 } && test -s conftest$ac_exeext &&
22790 $as_test_x conftest$ac_exeext; then
22792 lt_aix_libpath_sed='
22793 /Import File Strings/,/^$/ {
22799 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22800 # Check for a 64-bit object if we didn't find anything.
22801 if test -z "$aix_libpath"; then
22802 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22805 echo "$as_me: failed program was:" >&5
22806 sed 's/^/| /' conftest.$ac_ext >&5
22811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22812 conftest$ac_exeext conftest.$ac_ext
22813 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22815 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22816 # Warning - without using the other run time loading flags,
22817 # -berok will link without error, but may produce a broken library.
22818 no_undefined_flag_F77=' ${wl}-bernotok'
22819 allow_undefined_flag_F77=' ${wl}-berok'
22820 # Exported symbols can be pulled into shared objects from archives
22821 whole_archive_flag_spec_F77='$convenience'
22822 archive_cmds_need_lc_F77=yes
22823 # This is similar to how AIX traditionally builds its shared libraries.
22824 archive_expsym_cmds_F77="\$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'
22830 archive_cmds_F77='$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)'
22831 hardcode_libdir_flag_spec_F77='-L$libdir'
22832 hardcode_minus_L_F77=yes
22833 # see comment about different semantics on the GNU ld section
22838 export_dynamic_flag_spec_F77=-rdynamic
22841 cygwin* | mingw* | pw32*)
22842 # When not using gcc, we currently assume that we are using
22843 # Microsoft Visual C++.
22844 # hardcode_libdir_flag_spec is actually meaningless, as there is
22845 # no search path for DLLs.
22846 hardcode_libdir_flag_spec_F77=' '
22847 allow_undefined_flag_F77=unsupported
22848 # Tell ltmain to make .lib files, not .a files.
22850 # Tell ltmain to make .dll files, not .so files.
22852 # FIXME: Setting linknames here is a bad hack.
22853 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22854 # The linker will automatically build a .lib file if we build a DLL.
22855 old_archive_From_new_cmds_F77='true'
22856 # FIXME: Should let the user specify the lib program.
22857 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
22858 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22859 enable_shared_with_static_runtimes_F77=yes
22862 darwin* | rhapsody*)
22864 rhapsody* | darwin1.[012])
22865 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22868 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22869 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22871 case ${MACOSX_DEPLOYMENT_TARGET} in
22873 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22876 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22882 archive_cmds_need_lc_F77=no
22883 hardcode_direct_F77=no
22884 hardcode_automatic_F77=yes
22885 hardcode_shlibpath_var_F77=unsupported
22886 whole_archive_flag_spec_F77=''
22887 link_all_deplibs_F77=yes
22888 if test "$GCC" = yes ; then
22889 output_verbose_link_cmd='echo'
22890 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22891 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22892 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22893 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
22894 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
22896 case $cc_basename in
22898 output_verbose_link_cmd='echo'
22899 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
22900 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22901 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22902 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
22903 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
22913 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22914 hardcode_libdir_flag_spec_F77='-L$libdir'
22915 hardcode_shlibpath_var_F77=no
22922 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22923 # support. Future versions do this automatically, but an explicit c++rt0.o
22924 # does not break anything, and helps significantly (at the cost of a little
22927 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22928 hardcode_libdir_flag_spec_F77='-R$libdir'
22929 hardcode_direct_F77=yes
22930 hardcode_shlibpath_var_F77=no
22933 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22935 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22936 hardcode_direct_F77=yes
22937 hardcode_minus_L_F77=yes
22938 hardcode_shlibpath_var_F77=no
22941 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22942 freebsd* | dragonfly*)
22943 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22944 hardcode_libdir_flag_spec_F77='-R$libdir'
22945 hardcode_direct_F77=yes
22946 hardcode_shlibpath_var_F77=no
22950 if test "$GCC" = yes; then
22951 archive_cmds_F77='$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'
22953 archive_cmds_F77='$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'
22955 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22956 hardcode_libdir_separator_F77=:
22957 hardcode_direct_F77=yes
22959 # hardcode_minus_L: Not really in the search PATH,
22960 # but as the default location of the library.
22961 hardcode_minus_L_F77=yes
22962 export_dynamic_flag_spec_F77='${wl}-E'
22966 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22967 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22969 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22971 if test "$with_gnu_ld" = no; then
22972 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22973 hardcode_libdir_separator_F77=:
22975 hardcode_direct_F77=yes
22976 export_dynamic_flag_spec_F77='${wl}-E'
22978 # hardcode_minus_L: Not really in the search PATH,
22979 # but as the default location of the library.
22980 hardcode_minus_L_F77=yes
22985 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22988 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22991 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22994 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23000 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23003 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
23006 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23010 if test "$with_gnu_ld" = no; then
23011 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
23012 hardcode_libdir_separator_F77=:
23016 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
23017 hardcode_direct_F77=no
23018 hardcode_shlibpath_var_F77=no
23021 hardcode_direct_F77=yes
23022 export_dynamic_flag_spec_F77='${wl}-E'
23024 # hardcode_minus_L: Not really in the search PATH,
23025 # but as the default location of the library.
23026 hardcode_minus_L_F77=yes
23032 irix5* | irix6* | nonstopux*)
23033 if test "$GCC" = yes; then
23034 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
23036 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
23037 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
23039 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
23040 hardcode_libdir_separator_F77=:
23041 link_all_deplibs_F77=yes
23044 netbsd* | netbsdelf*-gnu)
23045 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23046 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
23048 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
23050 hardcode_libdir_flag_spec_F77='-R$libdir'
23051 hardcode_direct_F77=yes
23052 hardcode_shlibpath_var_F77=no
23056 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23057 hardcode_direct_F77=yes
23058 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
23059 hardcode_libdir_separator_F77=:
23060 hardcode_shlibpath_var_F77=no
23064 if test -f /usr/libexec/ld.so; then
23065 hardcode_direct_F77=yes
23066 hardcode_shlibpath_var_F77=no
23067 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23068 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23069 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
23070 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
23071 export_dynamic_flag_spec_F77='${wl}-E'
23074 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
23075 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23076 hardcode_libdir_flag_spec_F77='-R$libdir'
23079 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23080 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
23090 hardcode_libdir_flag_spec_F77='-L$libdir'
23091 hardcode_minus_L_F77=yes
23092 allow_undefined_flag_F77=unsupported
23093 archive_cmds_F77='$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'
23094 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
23098 if test "$GCC" = yes; then
23099 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
23100 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
23102 allow_undefined_flag_F77=' -expect_unresolved \*'
23103 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
23105 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
23106 hardcode_libdir_separator_F77=:
23109 osf4* | osf5*) # as osf3* with the addition of -msym flag
23110 if test "$GCC" = yes; then
23111 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
23112 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
23113 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
23115 allow_undefined_flag_F77=' -expect_unresolved \*'
23116 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
23117 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
23118 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
23120 # Both c and cxx compiler support -rpath directly
23121 hardcode_libdir_flag_spec_F77='-rpath $libdir'
23123 hardcode_libdir_separator_F77=:
23127 no_undefined_flag_F77=' -z text'
23128 if test "$GCC" = yes; then
23130 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23131 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23132 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
23135 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
23136 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23137 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
23139 hardcode_libdir_flag_spec_F77='-R$libdir'
23140 hardcode_shlibpath_var_F77=no
23142 solaris2.[0-5] | solaris2.[0-5].*) ;;
23144 # The compiler driver will combine and reorder linker options,
23145 # but understands `-z linker_flag'. GCC discards it without `$wl',
23146 # but is careful enough not to reorder.
23147 # Supported since Solaris 2.6 (maybe 2.5.1?)
23148 if test "$GCC" = yes; then
23149 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
23151 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
23155 link_all_deplibs_F77=yes
23159 if test "x$host_vendor" = xsequent; then
23160 # Use $CC to link under sequent, because it throws in some extra .o
23161 # files that make .init and .fini sections work.
23162 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
23164 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
23166 hardcode_libdir_flag_spec_F77='-L$libdir'
23167 hardcode_direct_F77=yes
23168 hardcode_minus_L_F77=yes
23169 hardcode_shlibpath_var_F77=no
23173 case $host_vendor in
23175 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23176 hardcode_direct_F77=yes # is this really true???
23179 ## LD is ld it makes a PLAMLIB
23180 ## CC just makes a GrossModule.
23181 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
23182 reload_cmds_F77='$CC -r -o $output$reload_objs'
23183 hardcode_direct_F77=no
23186 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23187 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
23190 runpath_var='LD_RUN_PATH'
23191 hardcode_shlibpath_var_F77=no
23195 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23196 hardcode_shlibpath_var_F77=no
23197 export_dynamic_flag_spec_F77='-Bexport'
23201 if test -d /usr/nec; then
23202 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23203 hardcode_shlibpath_var_F77=no
23204 runpath_var=LD_RUN_PATH
23205 hardcode_runpath_var=yes
23210 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
23211 no_undefined_flag_F77='${wl}-z,text'
23212 archive_cmds_need_lc_F77=no
23213 hardcode_shlibpath_var_F77=no
23214 runpath_var='LD_RUN_PATH'
23216 if test "$GCC" = yes; then
23217 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23218 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23220 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23221 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23225 sysv5* | sco3.2v5* | sco5v6*)
23226 # Note: We can NOT use -z defs as we might desire, because we do not
23227 # link with -lc, and that would cause any symbols used from libc to
23228 # always be unresolved, which means just about no library would
23229 # ever link correctly. If we're not using GNU ld we use -z text
23230 # though, which does catch some bad symbols but isn't as heavy-handed
23232 no_undefined_flag_F77='${wl}-z,text'
23233 allow_undefined_flag_F77='${wl}-z,nodefs'
23234 archive_cmds_need_lc_F77=no
23235 hardcode_shlibpath_var_F77=no
23236 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
23237 hardcode_libdir_separator_F77=':'
23238 link_all_deplibs_F77=yes
23239 export_dynamic_flag_spec_F77='${wl}-Bexport'
23240 runpath_var='LD_RUN_PATH'
23242 if test "$GCC" = yes; then
23243 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23244 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23246 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23247 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23252 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23253 hardcode_libdir_flag_spec_F77='-L$libdir'
23254 hardcode_shlibpath_var_F77=no
23263 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
23264 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
23265 test "$ld_shlibs_F77" = no && can_build_shared=no
23268 # Do we need to explicitly link libc?
23270 case "x$archive_cmds_need_lc_F77" in
23272 # Assume -lc should be added
23273 archive_cmds_need_lc_F77=yes
23275 if test "$enable_shared" = yes && test "$GCC" = yes; then
23276 case $archive_cmds_F77 in
23278 # FIXME: we may have to deal with multi-command sequences.
23281 # Test whether the compiler implicitly links with -lc since on some
23282 # systems, -lgcc has to come before -lc. If gcc already passes -lc
23283 # to ld, don't add -lc before -lgcc.
23284 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
23285 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
23287 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23290 (eval $ac_compile) 2>&5
23292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23293 (exit $ac_status); } 2>conftest.err; then
23296 libobjs=conftest.$ac_objext
23298 wl=$lt_prog_compiler_wl_F77
23299 pic_flag=$lt_prog_compiler_pic_F77
23305 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
23306 allow_undefined_flag_F77=
23307 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
23308 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
23310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23311 (exit $ac_status); }
23313 archive_cmds_need_lc_F77=no
23315 archive_cmds_need_lc_F77=yes
23317 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
23319 cat conftest.err 1>&5
23322 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
23323 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
23330 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23331 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
23332 library_names_spec=
23333 libname_spec='lib$name'
23337 postuninstall_cmds=
23341 shlibpath_overrides_runpath=unknown
23343 dynamic_linker="$host_os ld.so"
23344 sys_lib_dlsearch_path_spec="/lib /usr/lib"
23346 need_lib_prefix=unknown
23347 hardcode_into_libs=no
23349 # when you set need_version to no, make sure it does not cause -set_version
23350 # flags to be left without arguments
23351 need_version=unknown
23356 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23357 shlibpath_var=LIBPATH
23359 # AIX 3 has no versioning support, so we append a major version to the name.
23360 soname_spec='${libname}${release}${shared_ext}$major'
23367 hardcode_into_libs=yes
23368 if test "$host_cpu" = ia64; then
23369 # AIX 5 supports IA64
23370 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23371 shlibpath_var=LD_LIBRARY_PATH
23373 # With GCC up to 2.95.x, collect2 would create an import file
23374 # for dependence libraries. The import file would start with
23375 # the line `#! .'. This would cause the generated library to
23376 # depend on `.', always an invalid library. This was fixed in
23377 # development snapshots of GCC prior to 3.0.
23379 aix4 | aix4.[01] | aix4.[01].*)
23380 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23382 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
23385 can_build_shared=no
23389 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23390 # soname into executable. Probably we can add versioning support to
23391 # collect2, so additional links can be useful in future.
23392 if test "$aix_use_runtimelinking" = yes; then
23393 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23394 # instead of lib<name>.a to let people know that these are not
23395 # typical AIX shared libraries.
23396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23398 # We preserve .a as extension for shared libraries through AIX4.2
23399 # and later when we are not doing run time linking.
23400 library_names_spec='${libname}${release}.a $libname.a'
23401 soname_spec='${libname}${release}${shared_ext}$major'
23403 shlibpath_var=LIBPATH
23408 library_names_spec='$libname.ixlibrary $libname.a'
23409 # Create ${libname}_ixlibrary.a entries in /sys/libs.
23410 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'
23414 library_names_spec='${libname}${shared_ext}'
23415 dynamic_linker="$host_os ld.so"
23416 shlibpath_var=LIBRARY_PATH
23422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23423 soname_spec='${libname}${release}${shared_ext}$major'
23424 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23425 shlibpath_var=LD_LIBRARY_PATH
23426 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23427 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23428 # the default ld.so.conf also contains /usr/contrib/lib and
23429 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23430 # libtool to hard-code these into programs
23433 cygwin* | mingw* | pw32*)
23434 version_type=windows
23439 case $GCC,$host_os in
23440 yes,cygwin* | yes,mingw* | yes,pw32*)
23441 library_names_spec='$libname.dll.a'
23442 # DLL is installed to $(libdir)/../bin by postinstall_cmds
23443 postinstall_cmds='base_file=`basename \${file}`~
23444 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23445 dldir=$destdir/`dirname \$dlpath`~
23446 test -d \$dldir || mkdir -p \$dldir~
23447 $install_prog $dir/$dlname \$dldir/$dlname~
23448 chmod a+x \$dldir/$dlname'
23449 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23450 dlpath=$dir/\$dldll~
23452 shlibpath_overrides_runpath=yes
23456 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23457 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23458 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23461 # MinGW DLLs use traditional 'lib' prefix
23462 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23463 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23464 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23465 # It is most probably a Windows format PATH printed by
23466 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23467 # path with ; separators, and with drive letters. We can handle the
23468 # drive letters (cygwin fileutils understands them), so leave them,
23469 # especially as we might pass files found there to a mingw objdump,
23470 # which wouldn't understand a cygwinified path. Ahh.
23471 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23473 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23477 # pw32 DLLs use 'pw' prefix rather than 'lib'
23478 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23484 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23487 dynamic_linker='Win32 ld.exe'
23488 # FIXME: first we should search . and the directory the executable is in
23492 darwin* | rhapsody*)
23493 dynamic_linker="$host_os dyld"
23494 version_type=darwin
23497 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23498 soname_spec='${libname}${release}${major}$shared_ext'
23499 shlibpath_overrides_runpath=yes
23500 shlibpath_var=DYLD_LIBRARY_PATH
23501 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
23503 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23511 soname_spec='${libname}${release}${shared_ext}$major'
23512 shlibpath_var=LD_LIBRARY_PATH
23519 freebsd* | dragonfly*)
23520 # DragonFly does not have aout. When/if they implement a new
23521 # versioning mechanism, adjust this.
23522 if test -x /usr/bin/objformat; then
23523 objformat=`/usr/bin/objformat`
23526 freebsd[123]*) objformat=aout ;;
23527 *) objformat=elf ;;
23530 version_type=freebsd-$objformat
23531 case $version_type in
23533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23538 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23542 shlibpath_var=LD_LIBRARY_PATH
23545 shlibpath_overrides_runpath=yes
23547 freebsd3.[01]* | freebsdelf3.[01]*)
23548 shlibpath_overrides_runpath=yes
23549 hardcode_into_libs=yes
23551 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23552 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23553 shlibpath_overrides_runpath=no
23554 hardcode_into_libs=yes
23556 *) # from 4.6 on, and DragonFly
23557 shlibpath_overrides_runpath=yes
23558 hardcode_into_libs=yes
23567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23568 soname_spec='${libname}${release}${shared_ext}$major'
23569 shlibpath_var=LD_LIBRARY_PATH
23570 hardcode_into_libs=yes
23573 hpux9* | hpux10* | hpux11*)
23574 # Give a soname corresponding to the major version so that dld.sl refuses to
23575 # link against other versions.
23582 hardcode_into_libs=yes
23583 dynamic_linker="$host_os dld.so"
23584 shlibpath_var=LD_LIBRARY_PATH
23585 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23587 soname_spec='${libname}${release}${shared_ext}$major'
23588 if test "X$HPUX_IA64_MODE" = X32; then
23589 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23591 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23593 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23597 hardcode_into_libs=yes
23598 dynamic_linker="$host_os dld.sl"
23599 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23600 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23602 soname_spec='${libname}${release}${shared_ext}$major'
23603 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23604 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23608 dynamic_linker="$host_os dld.sl"
23609 shlibpath_var=SHLIB_PATH
23610 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23612 soname_spec='${libname}${release}${shared_ext}$major'
23615 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23616 postinstall_cmds='chmod 555 $lib'
23623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23624 soname_spec='${libname}${release}${shared_ext}$major'
23625 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23626 shlibpath_var=LD_LIBRARY_PATH
23627 shlibpath_overrides_runpath=no
23628 hardcode_into_libs=yes
23631 irix5* | irix6* | nonstopux*)
23633 nonstopux*) version_type=nonstopux ;;
23635 if test "$lt_cv_prog_gnu_ld" = yes; then
23643 soname_spec='${libname}${release}${shared_ext}$major'
23644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23646 irix5* | nonstopux*)
23647 libsuff= shlibsuff=
23650 case $LD in # libtool.m4 will add one of these switches to LD
23651 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23652 libsuff= shlibsuff= libmagic=32-bit;;
23653 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23654 libsuff=32 shlibsuff=N32 libmagic=N32;;
23655 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23656 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23657 *) libsuff= shlibsuff= libmagic=never-match;;
23661 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23662 shlibpath_overrides_runpath=no
23663 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23664 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23665 hardcode_into_libs=yes
23668 # No shared lib support for Linux oldld, aout, or coff.
23669 linux*oldld* | linux*aout* | linux*coff*)
23673 # This must be Linux ELF.
23674 linux* | k*bsd*-gnu)
23678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23679 soname_spec='${libname}${release}${shared_ext}$major'
23680 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23681 shlibpath_var=LD_LIBRARY_PATH
23682 shlibpath_overrides_runpath=no
23683 # This implies no fast_install, which is unacceptable.
23684 # Some rework will be needed to allow for fast_install
23685 # before this can be enabled.
23686 hardcode_into_libs=yes
23688 # Append ld.so.conf contents to the search path
23689 if test -f /etc/ld.so.conf; then
23690 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' ' '`
23691 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23694 # We used to test for /lib/ld.so.1 and disable shared libraries on
23695 # powerpc, because MkLinux only supported shared libraries with the
23696 # GNU dynamic linker. Since this was broken with cross compilers,
23697 # most powerpc-linux boxes support dynamic linking these days and
23698 # people can always --disable-shared, the test was removed, and we
23699 # assume the GNU/Linux dynamic linker is in use.
23700 dynamic_linker='GNU/Linux ld.so'
23707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23708 soname_spec='${libname}${release}${shared_ext}$major'
23709 shlibpath_var=LD_LIBRARY_PATH
23710 shlibpath_overrides_runpath=no
23711 hardcode_into_libs=yes
23712 dynamic_linker='NetBSD ld.elf_so'
23719 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23721 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23722 dynamic_linker='NetBSD (a.out) ld.so'
23724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23725 soname_spec='${libname}${release}${shared_ext}$major'
23726 dynamic_linker='NetBSD ld.elf_so'
23728 shlibpath_var=LD_LIBRARY_PATH
23729 shlibpath_overrides_runpath=yes
23730 hardcode_into_libs=yes
23735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23736 shlibpath_var=LD_LIBRARY_PATH
23737 shlibpath_overrides_runpath=yes
23744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23745 soname_spec='${libname}${release}${shared_ext}$major'
23746 shlibpath_var=LD_LIBRARY_PATH
23747 shlibpath_overrides_runpath=yes
23752 sys_lib_dlsearch_path_spec="/usr/lib"
23754 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23756 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23757 *) need_version=no ;;
23759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23760 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23761 shlibpath_var=LD_LIBRARY_PATH
23762 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23764 openbsd2.[89] | openbsd2.[89].*)
23765 shlibpath_overrides_runpath=no
23768 shlibpath_overrides_runpath=yes
23772 shlibpath_overrides_runpath=yes
23777 libname_spec='$name'
23780 library_names_spec='$libname${shared_ext} $libname.a'
23781 dynamic_linker='OS/2 ld.exe'
23782 shlibpath_var=LIBPATH
23785 osf3* | osf4* | osf5*)
23789 soname_spec='${libname}${release}${shared_ext}$major'
23790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23791 shlibpath_var=LD_LIBRARY_PATH
23792 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23793 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23805 soname_spec='${libname}${release}${shared_ext}$major'
23806 shlibpath_var=LD_LIBRARY_PATH
23807 shlibpath_overrides_runpath=yes
23808 hardcode_into_libs=yes
23809 # ldd complains unless libraries are executable
23810 postinstall_cmds='chmod +x $lib'
23815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23816 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23817 shlibpath_var=LD_LIBRARY_PATH
23818 shlibpath_overrides_runpath=yes
23819 if test "$with_gnu_ld" = yes; then
23827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23828 soname_spec='${libname}${release}${shared_ext}$major'
23829 shlibpath_var=LD_LIBRARY_PATH
23830 case $host_vendor in
23832 shlibpath_overrides_runpath=no
23834 export_dynamic_flag_spec='${wl}-Blargedynsym'
23835 runpath_var=LD_RUN_PATH
23843 shlibpath_overrides_runpath=no
23844 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23850 if test -d /usr/nec ;then
23852 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23853 soname_spec='$libname${shared_ext}.$major'
23854 shlibpath_var=LD_LIBRARY_PATH
23858 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23859 version_type=freebsd-elf
23862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23863 soname_spec='${libname}${release}${shared_ext}$major'
23864 shlibpath_var=LD_LIBRARY_PATH
23865 hardcode_into_libs=yes
23866 if test "$with_gnu_ld" = yes; then
23867 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23868 shlibpath_overrides_runpath=no
23870 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23871 shlibpath_overrides_runpath=yes
23874 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23878 sys_lib_dlsearch_path_spec='/usr/lib'
23883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23884 soname_spec='${libname}${release}${shared_ext}$major'
23885 shlibpath_var=LD_LIBRARY_PATH
23892 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23893 echo "${ECHO_T}$dynamic_linker" >&6; }
23894 test "$dynamic_linker" = no && can_build_shared=no
23896 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23897 if test "$GCC" = yes; then
23898 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23901 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23902 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23903 hardcode_action_F77=
23904 if test -n "$hardcode_libdir_flag_spec_F77" || \
23905 test -n "$runpath_var_F77" || \
23906 test "X$hardcode_automatic_F77" = "Xyes" ; then
23908 # We can hardcode non-existant directories.
23909 if test "$hardcode_direct_F77" != no &&
23910 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23911 # have to relink, otherwise we might link with an installed library
23912 # when we should be linking with a yet-to-be-installed one
23913 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23914 test "$hardcode_minus_L_F77" != no; then
23915 # Linking always hardcodes the temporary library directory.
23916 hardcode_action_F77=relink
23918 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23919 hardcode_action_F77=immediate
23922 # We cannot hardcode anything, or else we can only hardcode existing
23924 hardcode_action_F77=unsupported
23926 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23927 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23929 if test "$hardcode_action_F77" = relink; then
23930 # Fast installation is not supported
23931 enable_fast_install=no
23932 elif test "$shlibpath_overrides_runpath" = yes ||
23933 test "$enable_shared" = no; then
23934 # Fast installation is not necessary
23935 enable_fast_install=needless
23939 # The else clause should only fire when bootstrapping the
23940 # libtool distribution, otherwise you forgot to ship ltmain.sh
23941 # with your package, and you will get complaints that there are
23942 # no rules to generate ltmain.sh.
23943 if test -f "$ltmain"; then
23944 # See if we are running on zsh, and set the options which allow our commands through
23945 # without removal of \ escapes.
23946 if test -n "${ZSH_VERSION+set}" ; then
23947 setopt NO_GLOB_SUBST
23949 # Now quote all the things that may contain metacharacters while being
23950 # careful not to overquote the AC_SUBSTed values. We take copies of the
23951 # variables and quote the copies for generation of the libtool script.
23952 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23954 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23955 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23956 deplibs_check_method reload_flag reload_cmds need_locks \
23957 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23958 lt_cv_sys_global_symbol_to_c_name_address \
23959 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23960 old_postinstall_cmds old_postuninstall_cmds \
23964 lt_prog_compiler_wl_F77 \
23965 lt_prog_compiler_pic_F77 \
23966 lt_prog_compiler_static_F77 \
23967 lt_prog_compiler_no_builtin_flag_F77 \
23968 export_dynamic_flag_spec_F77 \
23969 thread_safe_flag_spec_F77 \
23970 whole_archive_flag_spec_F77 \
23971 enable_shared_with_static_runtimes_F77 \
23972 old_archive_cmds_F77 \
23973 old_archive_from_new_cmds_F77 \
23974 predep_objects_F77 \
23975 postdep_objects_F77 \
23978 compiler_lib_search_path_F77 \
23980 archive_expsym_cmds_F77 \
23981 postinstall_cmds_F77 \
23982 postuninstall_cmds_F77 \
23983 old_archive_from_expsyms_cmds_F77 \
23984 allow_undefined_flag_F77 \
23985 no_undefined_flag_F77 \
23986 export_symbols_cmds_F77 \
23987 hardcode_libdir_flag_spec_F77 \
23988 hardcode_libdir_flag_spec_ld_F77 \
23989 hardcode_libdir_separator_F77 \
23990 hardcode_automatic_F77 \
23992 module_expsym_cmds_F77 \
23993 lt_cv_prog_compiler_c_o_F77 \
23994 fix_srcfile_path_F77 \
23995 exclude_expsyms_F77 \
23996 include_expsyms_F77; do
23999 old_archive_cmds_F77 | \
24000 old_archive_from_new_cmds_F77 | \
24001 archive_cmds_F77 | \
24002 archive_expsym_cmds_F77 | \
24003 module_cmds_F77 | \
24004 module_expsym_cmds_F77 | \
24005 old_archive_from_expsyms_cmds_F77 | \
24006 export_symbols_cmds_F77 | \
24007 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24008 postinstall_cmds | postuninstall_cmds | \
24009 old_postinstall_cmds | old_postuninstall_cmds | \
24010 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24011 # Double-quote double-evaled strings.
24012 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24015 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24021 *'\$0 --fallback-echo"')
24022 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24028 cat <<__EOF__ >> "$cfgfile"
24029 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24031 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24033 # Shell to use when invoking shell scripts.
24036 # Whether or not to build shared libraries.
24037 build_libtool_libs=$enable_shared
24039 # Whether or not to build static libraries.
24040 build_old_libs=$enable_static
24042 # Whether or not to add -lc for building shared libraries.
24043 build_libtool_need_lc=$archive_cmds_need_lc_F77
24045 # Whether or not to disallow shared libs when runtime libs are static
24046 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
24048 # Whether or not to optimize for fast installation.
24049 fast_install=$enable_fast_install
24052 host_alias=$host_alias
24056 # The build system.
24057 build_alias=$build_alias
24061 # An echo program that does not interpret backslashes.
24066 AR_FLAGS=$lt_AR_FLAGS
24071 # LTCC compiler flags.
24072 LTCFLAGS=$lt_LTCFLAGS
24074 # A language-specific compiler.
24075 CC=$lt_compiler_F77
24077 # Is the compiler the GNU C compiler?
24083 # The linker used to build libraries.
24086 # Whether we need hard or soft links.
24089 # A BSD-compatible nm program.
24092 # A symbol stripping program
24095 # Used to examine libraries when file_magic_cmd begins "file"
24096 MAGIC_CMD=$MAGIC_CMD
24098 # Used on cygwin: DLL creation program.
24101 # Used on cygwin: object dumper.
24104 # Used on cygwin: assembler.
24107 # The name of the directory that contains temporary libtool files.
24110 # How to create reloadable object files.
24111 reload_flag=$lt_reload_flag
24112 reload_cmds=$lt_reload_cmds
24114 # How to pass a linker flag through the compiler.
24115 wl=$lt_lt_prog_compiler_wl_F77
24117 # Object file suffix (normally "o").
24118 objext="$ac_objext"
24120 # Old archive suffix (normally "a").
24123 # Shared library suffix (normally ".so").
24124 shrext_cmds='$shrext_cmds'
24126 # Executable file suffix (normally "").
24129 # Additional compiler flags for building library objects.
24130 pic_flag=$lt_lt_prog_compiler_pic_F77
24133 # What is the maximum length of a command?
24134 max_cmd_len=$lt_cv_sys_max_cmd_len
24136 # Does compiler simultaneously support -c and -o options?
24137 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
24139 # Must we lock files when doing compilation?
24140 need_locks=$lt_need_locks
24142 # Do we need the lib prefix for modules?
24143 need_lib_prefix=$need_lib_prefix
24145 # Do we need a version for libraries?
24146 need_version=$need_version
24148 # Whether dlopen is supported.
24149 dlopen_support=$enable_dlopen
24151 # Whether dlopen of programs is supported.
24152 dlopen_self=$enable_dlopen_self
24154 # Whether dlopen of statically linked programs is supported.
24155 dlopen_self_static=$enable_dlopen_self_static
24157 # Compiler flag to prevent dynamic linking.
24158 link_static_flag=$lt_lt_prog_compiler_static_F77
24160 # Compiler flag to turn off builtin functions.
24161 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
24163 # Compiler flag to allow reflexive dlopens.
24164 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
24166 # Compiler flag to generate shared objects directly from archives.
24167 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
24169 # Compiler flag to generate thread-safe objects.
24170 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
24172 # Library versioning type.
24173 version_type=$version_type
24175 # Format of library name prefix.
24176 libname_spec=$lt_libname_spec
24178 # List of archive names. First name is the real one, the rest are links.
24179 # The last name is the one that the linker finds with -lNAME.
24180 library_names_spec=$lt_library_names_spec
24182 # The coded name of the library, if different from the real name.
24183 soname_spec=$lt_soname_spec
24185 # Commands used to build and install an old-style archive.
24187 old_archive_cmds=$lt_old_archive_cmds_F77
24188 old_postinstall_cmds=$lt_old_postinstall_cmds
24189 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24191 # Create an old-style archive from a shared archive.
24192 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
24194 # Create a temporary old-style archive to link instead of a shared archive.
24195 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
24197 # Commands used to build and install a shared archive.
24198 archive_cmds=$lt_archive_cmds_F77
24199 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
24200 postinstall_cmds=$lt_postinstall_cmds
24201 postuninstall_cmds=$lt_postuninstall_cmds
24203 # Commands used to build a loadable module (assumed same as above if empty)
24204 module_cmds=$lt_module_cmds_F77
24205 module_expsym_cmds=$lt_module_expsym_cmds_F77
24207 # Commands to strip libraries.
24208 old_striplib=$lt_old_striplib
24209 striplib=$lt_striplib
24211 # Dependencies to place before the objects being linked to create a
24213 predep_objects=$lt_predep_objects_F77
24215 # Dependencies to place after the objects being linked to create a
24217 postdep_objects=$lt_postdep_objects_F77
24219 # Dependencies to place before the objects being linked to create a
24221 predeps=$lt_predeps_F77
24223 # Dependencies to place after the objects being linked to create a
24225 postdeps=$lt_postdeps_F77
24227 # The library search path used internally by the compiler when linking
24228 # a shared library.
24229 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
24231 # Method to check whether dependent libraries are shared objects.
24232 deplibs_check_method=$lt_deplibs_check_method
24234 # Command to use when deplibs_check_method == file_magic.
24235 file_magic_cmd=$lt_file_magic_cmd
24237 # Flag that allows shared libraries with undefined symbols to be built.
24238 allow_undefined_flag=$lt_allow_undefined_flag_F77
24240 # Flag that forces no undefined symbols.
24241 no_undefined_flag=$lt_no_undefined_flag_F77
24243 # Commands used to finish a libtool library installation in a directory.
24244 finish_cmds=$lt_finish_cmds
24246 # Same as above, but a single script fragment to be evaled but not shown.
24247 finish_eval=$lt_finish_eval
24249 # Take the output of nm and produce a listing of raw symbols and C names.
24250 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24252 # Transform the output of nm in a proper C declaration
24253 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24255 # Transform the output of nm in a C name address pair
24256 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24258 # This is the shared library runtime path variable.
24259 runpath_var=$runpath_var
24261 # This is the shared library path variable.
24262 shlibpath_var=$shlibpath_var
24264 # Is shlibpath searched before the hard-coded library search path?
24265 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24267 # How to hardcode a shared library path into an executable.
24268 hardcode_action=$hardcode_action_F77
24270 # Whether we should hardcode library paths into libraries.
24271 hardcode_into_libs=$hardcode_into_libs
24273 # Flag to hardcode \$libdir into a binary during linking.
24274 # This must work even if \$libdir does not exist.
24275 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
24277 # If ld is used when linking, flag to hardcode \$libdir into
24278 # a binary during linking. This must work even if \$libdir does
24280 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
24282 # Whether we need a single -rpath flag with a separated argument.
24283 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
24285 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24286 # resulting binary.
24287 hardcode_direct=$hardcode_direct_F77
24289 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24290 # resulting binary.
24291 hardcode_minus_L=$hardcode_minus_L_F77
24293 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24294 # the resulting binary.
24295 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
24297 # Set to yes if building a shared library automatically hardcodes DIR into the library
24298 # and all subsequent libraries and executables linked against it.
24299 hardcode_automatic=$hardcode_automatic_F77
24301 # Variables whose values should be saved in libtool wrapper scripts and
24302 # restored at relink time.
24303 variables_saved_for_relink="$variables_saved_for_relink"
24305 # Whether libtool must link a program against all its dependency libraries.
24306 link_all_deplibs=$link_all_deplibs_F77
24308 # Compile-time system search path for libraries
24309 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24311 # Run-time system search path for libraries
24312 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24314 # Fix the shell variable \$srcfile for the compiler.
24315 fix_srcfile_path=$lt_fix_srcfile_path
24317 # Set to yes if exported symbols are required.
24318 always_export_symbols=$always_export_symbols_F77
24320 # The commands to list exported symbols.
24321 export_symbols_cmds=$lt_export_symbols_cmds_F77
24323 # The commands to extract the exported symbol list from a shared archive.
24324 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24326 # Symbols that should not be listed in the preloaded symbols.
24327 exclude_expsyms=$lt_exclude_expsyms_F77
24329 # Symbols that must always be exported.
24330 include_expsyms=$lt_include_expsyms_F77
24332 # ### END LIBTOOL TAG CONFIG: $tagname
24338 # If there is no Makefile yet, we rely on a make rule to execute
24339 # `config.status --recheck' to rerun these tests and create the
24340 # libtool script then.
24341 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24342 if test -f "$ltmain_in"; then
24343 test -f Makefile && make "$ltmain"
24349 ac_cpp='$CPP $CPPFLAGS'
24350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24362 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
24365 # Source file extension for Java test sources.
24368 # Object file extension for compiled Java test sources.
24372 # Code to be used in simple compile tests
24373 lt_simple_compile_test_code="class foo {}"
24375 # Code to be used in simple link tests
24376 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
24378 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24380 # If no C compiler was specified, use CC.
24383 # If no C compiler flags were specified, use CFLAGS.
24384 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24386 # Allow CC to be a program name with arguments.
24390 # save warnings/boilerplate of simple test code
24391 ac_outfile=conftest.$ac_objext
24392 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
24393 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24394 _lt_compiler_boilerplate=`cat conftest.err`
24397 ac_outfile=conftest.$ac_objext
24398 echo "$lt_simple_link_test_code" >conftest.$ac_ext
24399 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24400 _lt_linker_boilerplate=`cat conftest.err`
24404 # Allow CC to be a program name with arguments.
24409 for cc_temp in $compiler""; do
24411 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24412 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24417 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24420 # GCJ did not exist at the time GCC didn't implicitly link libc in.
24421 archive_cmds_need_lc_GCJ=no
24423 old_archive_cmds_GCJ=$old_archive_cmds
24426 lt_prog_compiler_no_builtin_flag_GCJ=
24428 if test "$GCC" = yes; then
24429 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24432 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24433 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
24434 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24435 echo $ECHO_N "(cached) $ECHO_C" >&6
24437 lt_cv_prog_compiler_rtti_exceptions=no
24438 ac_outfile=conftest.$ac_objext
24439 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
24440 lt_compiler_flag="-fno-rtti -fno-exceptions"
24441 # Insert the option either (1) after the last *FLAGS variable, or
24442 # (2) before a word containing "conftest.", or (3) at the end.
24443 # Note that $ac_compile itself does not contain backslashes and begins
24444 # with a dollar sign (not a hyphen), so the echo should work correctly.
24445 # The option is referenced via a variable to avoid confusing sed.
24446 lt_compile=`echo "$ac_compile" | $SED \
24447 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24448 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24449 -e 's:$: $lt_compiler_flag:'`
24450 (eval echo "\"\$as_me:24450: $lt_compile\"" >&5)
24451 (eval "$lt_compile" 2>conftest.err)
24453 cat conftest.err >&5
24454 echo "$as_me:24454: \$? = $ac_status" >&5
24455 if (exit $ac_status) && test -s "$ac_outfile"; then
24456 # The compiler can only warn and ignore the option if not recognized
24457 # So say no if there are warnings other than the usual output.
24458 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24459 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24460 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24461 lt_cv_prog_compiler_rtti_exceptions=yes
24467 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24468 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
24470 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24471 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24478 lt_prog_compiler_wl_GCJ=
24479 lt_prog_compiler_pic_GCJ=
24480 lt_prog_compiler_static_GCJ=
24482 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24483 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
24485 if test "$GCC" = yes; then
24486 lt_prog_compiler_wl_GCJ='-Wl,'
24487 lt_prog_compiler_static_GCJ='-static'
24491 # All AIX code is PIC.
24492 if test "$host_cpu" = ia64; then
24493 # AIX 5 now supports IA64 processor
24494 lt_prog_compiler_static_GCJ='-Bstatic'
24499 # FIXME: we need at least 68020 code to build shared libraries, but
24500 # adding the `-m68020' flag to GCC prevents building anything better,
24502 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24505 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24506 # PIC is the default for these OSes.
24509 mingw* | cygwin* | pw32* | os2*)
24510 # This hack is so that the source file can tell whether it is being
24511 # built for inclusion in a dll (and should export symbols for example).
24512 # Although the cygwin gcc ignores -fPIC, still need this for old-style
24513 # (--disable-auto-import) libraries
24514 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24517 darwin* | rhapsody*)
24518 # PIC is the default on this platform
24519 # Common symbols not allowed in MH_DYLIB files
24520 lt_prog_compiler_pic_GCJ='-fno-common'
24524 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24525 # Instead, we relocate shared libraries at runtime.
24529 # Just because we use GCC doesn't mean we suddenly get shared libraries
24530 # on systems that don't support them.
24531 lt_prog_compiler_can_build_shared_GCJ=no
24536 if test -d /usr/nec; then
24537 lt_prog_compiler_pic_GCJ=-Kconform_pic
24542 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24543 # not for PA HP-UX.
24549 lt_prog_compiler_pic_GCJ='-fPIC'
24555 lt_prog_compiler_pic_GCJ='-fPIC'
24559 # PORTME Check for flag to pass linker flags through the system compiler.
24562 lt_prog_compiler_wl_GCJ='-Wl,'
24563 if test "$host_cpu" = ia64; then
24564 # AIX 5 now supports IA64 processor
24565 lt_prog_compiler_static_GCJ='-Bstatic'
24567 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24571 # PIC is the default on this platform
24572 # Common symbols not allowed in MH_DYLIB files
24573 case $cc_basename in
24575 lt_prog_compiler_pic_GCJ='-qnocommon'
24576 lt_prog_compiler_wl_GCJ='-Wl,'
24581 mingw* | cygwin* | pw32* | os2*)
24582 # This hack is so that the source file can tell whether it is being
24583 # built for inclusion in a dll (and should export symbols for example).
24584 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24587 hpux9* | hpux10* | hpux11*)
24588 lt_prog_compiler_wl_GCJ='-Wl,'
24589 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24590 # not for PA HP-UX.
24596 lt_prog_compiler_pic_GCJ='+Z'
24599 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24600 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24603 irix5* | irix6* | nonstopux*)
24604 lt_prog_compiler_wl_GCJ='-Wl,'
24605 # PIC (with -KPIC) is the default.
24606 lt_prog_compiler_static_GCJ='-non_shared'
24610 lt_prog_compiler_pic_GCJ='-KPIC'
24611 lt_prog_compiler_static_GCJ='-Bstatic'
24614 linux* | k*bsd*-gnu)
24615 case $cc_basename in
24617 lt_prog_compiler_wl_GCJ='-Wl,'
24618 lt_prog_compiler_pic_GCJ='-KPIC'
24619 lt_prog_compiler_static_GCJ='-static'
24621 pgcc* | pgf77* | pgf90* | pgf95*)
24622 # Portland Group compilers (*not* the Pentium gcc compiler,
24623 # which looks to be a dead project)
24624 lt_prog_compiler_wl_GCJ='-Wl,'
24625 lt_prog_compiler_pic_GCJ='-fpic'
24626 lt_prog_compiler_static_GCJ='-Bstatic'
24629 lt_prog_compiler_wl_GCJ='-Wl,'
24630 # All Alpha code is PIC.
24631 lt_prog_compiler_static_GCJ='-non_shared'
24634 case `$CC -V 2>&1 | sed 5q` in
24637 lt_prog_compiler_pic_GCJ='-KPIC'
24638 lt_prog_compiler_static_GCJ='-Bstatic'
24639 lt_prog_compiler_wl_GCJ='-Wl,'
24642 # Sun Fortran 8.3 passes all unrecognized flags to the linker
24643 lt_prog_compiler_pic_GCJ='-KPIC'
24644 lt_prog_compiler_static_GCJ='-Bstatic'
24645 lt_prog_compiler_wl_GCJ=''
24652 osf3* | osf4* | osf5*)
24653 lt_prog_compiler_wl_GCJ='-Wl,'
24654 # All OSF/1 code is PIC.
24655 lt_prog_compiler_static_GCJ='-non_shared'
24659 lt_prog_compiler_static_GCJ='-non_shared'
24663 lt_prog_compiler_pic_GCJ='-KPIC'
24664 lt_prog_compiler_static_GCJ='-Bstatic'
24665 case $cc_basename in
24666 f77* | f90* | f95*)
24667 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24669 lt_prog_compiler_wl_GCJ='-Wl,';;
24674 lt_prog_compiler_wl_GCJ='-Qoption ld '
24675 lt_prog_compiler_pic_GCJ='-PIC'
24676 lt_prog_compiler_static_GCJ='-Bstatic'
24679 sysv4 | sysv4.2uw2* | sysv4.3*)
24680 lt_prog_compiler_wl_GCJ='-Wl,'
24681 lt_prog_compiler_pic_GCJ='-KPIC'
24682 lt_prog_compiler_static_GCJ='-Bstatic'
24686 if test -d /usr/nec ;then
24687 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24688 lt_prog_compiler_static_GCJ='-Bstatic'
24692 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24693 lt_prog_compiler_wl_GCJ='-Wl,'
24694 lt_prog_compiler_pic_GCJ='-KPIC'
24695 lt_prog_compiler_static_GCJ='-Bstatic'
24699 lt_prog_compiler_wl_GCJ='-Wl,'
24700 lt_prog_compiler_can_build_shared_GCJ=no
24704 lt_prog_compiler_pic_GCJ='-pic'
24705 lt_prog_compiler_static_GCJ='-Bstatic'
24709 lt_prog_compiler_can_build_shared_GCJ=no
24714 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24715 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24718 # Check to make sure the PIC flag actually works.
24720 if test -n "$lt_prog_compiler_pic_GCJ"; then
24722 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24723 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24724 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24725 echo $ECHO_N "(cached) $ECHO_C" >&6
24727 lt_prog_compiler_pic_works_GCJ=no
24728 ac_outfile=conftest.$ac_objext
24729 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
24730 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24731 # Insert the option either (1) after the last *FLAGS variable, or
24732 # (2) before a word containing "conftest.", or (3) at the end.
24733 # Note that $ac_compile itself does not contain backslashes and begins
24734 # with a dollar sign (not a hyphen), so the echo should work correctly.
24735 # The option is referenced via a variable to avoid confusing sed.
24736 lt_compile=`echo "$ac_compile" | $SED \
24737 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24738 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24739 -e 's:$: $lt_compiler_flag:'`
24740 (eval echo "\"\$as_me:24740: $lt_compile\"" >&5)
24741 (eval "$lt_compile" 2>conftest.err)
24743 cat conftest.err >&5
24744 echo "$as_me:24744: \$? = $ac_status" >&5
24745 if (exit $ac_status) && test -s "$ac_outfile"; then
24746 # The compiler can only warn and ignore the option if not recognized
24747 # So say no if there are warnings other than the usual output.
24748 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24749 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24750 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24751 lt_prog_compiler_pic_works_GCJ=yes
24757 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24758 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24760 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24761 case $lt_prog_compiler_pic_GCJ in
24763 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24766 lt_prog_compiler_pic_GCJ=
24767 lt_prog_compiler_can_build_shared_GCJ=no
24772 # For platforms which do not support PIC, -DPIC is meaningless:
24774 lt_prog_compiler_pic_GCJ=
24777 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24782 # Check to make sure the static flag actually works.
24784 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24785 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24786 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24787 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24788 echo $ECHO_N "(cached) $ECHO_C" >&6
24790 lt_prog_compiler_static_works_GCJ=no
24791 save_LDFLAGS="$LDFLAGS"
24792 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24793 echo "$lt_simple_link_test_code" > conftest.$ac_ext
24794 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24795 # The linker can only warn and ignore the option if not recognized
24796 # So say no if there are warnings
24797 if test -s conftest.err; then
24798 # Append any errors to the config.log.
24799 cat conftest.err 1>&5
24800 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24801 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24802 if diff conftest.exp conftest.er2 >/dev/null; then
24803 lt_prog_compiler_static_works_GCJ=yes
24806 lt_prog_compiler_static_works_GCJ=yes
24810 LDFLAGS="$save_LDFLAGS"
24813 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24814 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24816 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24819 lt_prog_compiler_static_GCJ=
24823 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24824 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24825 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24826 echo $ECHO_N "(cached) $ECHO_C" >&6
24828 lt_cv_prog_compiler_c_o_GCJ=no
24829 $rm -r conftest 2>/dev/null
24833 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
24835 lt_compiler_flag="-o out/conftest2.$ac_objext"
24836 # Insert the option either (1) after the last *FLAGS variable, or
24837 # (2) before a word containing "conftest.", or (3) at the end.
24838 # Note that $ac_compile itself does not contain backslashes and begins
24839 # with a dollar sign (not a hyphen), so the echo should work correctly.
24840 lt_compile=`echo "$ac_compile" | $SED \
24841 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24842 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24843 -e 's:$: $lt_compiler_flag:'`
24844 (eval echo "\"\$as_me:24844: $lt_compile\"" >&5)
24845 (eval "$lt_compile" 2>out/conftest.err)
24847 cat out/conftest.err >&5
24848 echo "$as_me:24848: \$? = $ac_status" >&5
24849 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24851 # The compiler can only warn and ignore the option if not recognized
24852 # So say no if there are warnings
24853 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24854 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24855 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24856 lt_cv_prog_compiler_c_o_GCJ=yes
24861 # SGI C++ compiler will create directory out/ii_files/ for
24862 # template instantiation
24863 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24864 $rm out/* && rmdir out
24870 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24871 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24874 hard_links="nottested"
24875 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24876 # do not overwrite the value of need_locks provided by the user
24877 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24878 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24881 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24883 ln conftest.a conftest.b 2>&5 || hard_links=no
24884 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24885 { echo "$as_me:$LINENO: result: $hard_links" >&5
24886 echo "${ECHO_T}$hard_links" >&6; }
24887 if test "$hard_links" = no; then
24888 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24889 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24896 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24897 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24900 allow_undefined_flag_GCJ=
24901 enable_shared_with_static_runtimes_GCJ=no
24903 archive_expsym_cmds_GCJ=
24904 old_archive_From_new_cmds_GCJ=
24905 old_archive_from_expsyms_cmds_GCJ=
24906 export_dynamic_flag_spec_GCJ=
24907 whole_archive_flag_spec_GCJ=
24908 thread_safe_flag_spec_GCJ=
24909 hardcode_libdir_flag_spec_GCJ=
24910 hardcode_libdir_flag_spec_ld_GCJ=
24911 hardcode_libdir_separator_GCJ=
24912 hardcode_direct_GCJ=no
24913 hardcode_minus_L_GCJ=no
24914 hardcode_shlibpath_var_GCJ=unsupported
24915 link_all_deplibs_GCJ=unknown
24916 hardcode_automatic_GCJ=no
24918 module_expsym_cmds_GCJ=
24919 always_export_symbols_GCJ=no
24920 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24921 # include_expsyms should be a list of space-separated symbols to be *always*
24922 # included in the symbol list
24923 include_expsyms_GCJ=
24924 # exclude_expsyms can be an extended regexp of symbols to exclude
24925 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24926 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24927 # as well as any symbol that contains `d'.
24928 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24929 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24930 # platforms (ab)use it in PIC code, but their linkers get confused if
24931 # the symbol is explicitly referenced. Since portable code cannot
24932 # rely on this symbol name, it's probably fine to never include it in
24933 # preloaded symbol tables.
24934 extract_expsyms_cmds=
24935 # Just being paranoid about ensuring that cc_basename is set.
24936 for cc_temp in $compiler""; do
24938 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24939 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24944 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24947 cygwin* | mingw* | pw32*)
24948 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24949 # When not using gcc, we currently assume that we are using
24950 # Microsoft Visual C++.
24951 if test "$GCC" != yes; then
24956 # we just hope/assume this is gcc and not c89 (= MSVC++)
24965 if test "$with_gnu_ld" = yes; then
24966 # If archive_cmds runs LD, not CC, wlarc should be empty
24969 # Set some defaults for GNU ld with shared library support. These
24970 # are reset later if shared libraries are not supported. Putting them
24971 # here allows them to be overridden if necessary.
24972 runpath_var=LD_RUN_PATH
24973 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24974 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24975 # ancient GNU ld didn't support --whole-archive et. al.
24976 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24977 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24979 whole_archive_flag_spec_GCJ=
24981 supports_anon_versioning=no
24982 case `$LD -v 2>/dev/null` in
24983 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24984 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24985 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24986 *\ 2.11.*) ;; # other 2.11 versions
24987 *) supports_anon_versioning=yes ;;
24990 # See if GNU ld supports shared libraries.
24992 aix3* | aix4* | aix5*)
24993 # On AIX/PPC, the GNU linker is very broken
24994 if test "$host_cpu" != ia64; then
24998 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24999 *** to be unable to reliably create shared libraries on AIX.
25000 *** Therefore, libtool is disabling shared libraries support. If you
25001 *** really care for shared libraries, you may want to modify your PATH
25002 *** so that a non-GNU linker is found, and then restart.
25009 archive_cmds_GCJ='$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)'
25010 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25011 hardcode_minus_L_GCJ=yes
25013 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
25014 # that the semantics of dynamic libraries on AmigaOS, at least up
25015 # to version 4, is to share data among multiple programs linked
25016 # with the same dynamic library. Since this doesn't match the
25017 # behavior of shared libraries on other platforms, we can't use
25023 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25024 allow_undefined_flag_GCJ=unsupported
25025 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
25026 # support --undefined. This deserves some investigation. FIXME
25027 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25033 cygwin* | mingw* | pw32*)
25034 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
25035 # as there is no search path for DLLs.
25036 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25037 allow_undefined_flag_GCJ=unsupported
25038 always_export_symbols_GCJ=no
25039 enable_shared_with_static_runtimes_GCJ=yes
25040 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
25042 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
25043 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
25044 # If the export-symbols file already is a .def file (1st line
25045 # is EXPORTS), use it as is; otherwise, prepend...
25046 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
25047 cp $export_symbols $output_objdir/$soname.def;
25049 echo EXPORTS > $output_objdir/$soname.def;
25050 cat $export_symbols >> $output_objdir/$soname.def;
25052 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
25059 hardcode_direct_GCJ=no
25060 hardcode_shlibpath_var_GCJ=no
25061 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25062 export_dynamic_flag_spec_GCJ='${wl}-E'
25063 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
25064 # Instead, shared libraries are loaded at an image base (0x10000000 by
25065 # default) and relocated if they conflict, which is a slow very memory
25066 # consuming and fragmenting process. To avoid this, we pick a random,
25067 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
25068 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
25069 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
25070 archive_expsym_cmds_GCJ='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'
25073 gnu* | linux* | k*bsd*-gnu)
25074 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25076 case $cc_basename,$host_cpu in
25077 pgcc*) # Portland Group C compiler
25078 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
25079 tmp_addflag=' $pic_flag'
25081 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
25082 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
25083 tmp_addflag=' $pic_flag -Mnomain' ;;
25084 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
25085 tmp_addflag=' -i_dynamic' ;;
25086 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
25087 tmp_addflag=' -i_dynamic -nofor_main' ;;
25088 ifc* | ifort*) # Intel Fortran compiler
25089 tmp_addflag=' -nofor_main' ;;
25091 case `$CC -V 2>&1 | sed 5q` in
25092 *Sun\ C*) # Sun C 5.9
25093 whole_archive_flag_spec_GCJ='${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'
25094 tmp_sharedflag='-G' ;;
25095 *Sun\ F*) # Sun Fortran 8.3
25096 tmp_sharedflag='-G' ;;
25098 tmp_sharedflag='-shared' ;;
25100 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25102 if test $supports_anon_versioning = yes; then
25103 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
25104 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
25105 $echo "local: *; };" >> $output_objdir/$libname.ver~
25106 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
25108 link_all_deplibs_GCJ=no
25114 netbsd* | netbsdelf*-gnu)
25115 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25116 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
25119 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25120 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
25125 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
25129 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
25130 *** create shared libraries on Solaris systems. Therefore, libtool
25131 *** is disabling shared libraries support. We urge you to upgrade GNU
25132 *** binutils to release 2.9.1 or newer. Another option is to modify
25133 *** your PATH or compiler configuration so that the native linker is
25134 *** used, and then restart.
25137 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25138 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25139 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
25145 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
25146 case `$LD -v 2>&1` in
25147 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
25151 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
25152 *** reliably create shared libraries on SCO systems. Therefore, libtool
25153 *** is disabling shared libraries support. We urge you to upgrade GNU
25154 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
25155 *** your PATH or compiler configuration so that the native linker is
25156 *** used, and then restart.
25161 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25162 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
25163 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
25164 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
25173 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25175 hardcode_direct_GCJ=yes
25176 hardcode_shlibpath_var_GCJ=no
25180 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25181 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25182 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
25189 if test "$ld_shlibs_GCJ" = no; then
25191 hardcode_libdir_flag_spec_GCJ=
25192 export_dynamic_flag_spec_GCJ=
25193 whole_archive_flag_spec_GCJ=
25196 # PORTME fill in a description of your system's linker (not GNU ld)
25199 allow_undefined_flag_GCJ=unsupported
25200 always_export_symbols_GCJ=yes
25201 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
25202 # Note: this linker hardcodes the directories in LIBPATH if there
25203 # are no directories specified by -L.
25204 hardcode_minus_L_GCJ=yes
25205 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
25206 # Neither direct hardcoding nor static linking is supported with a
25208 hardcode_direct_GCJ=unsupported
25213 if test "$host_cpu" = ia64; then
25214 # On IA64, the linker does run time linking by default, so we don't
25215 # have to do anything special.
25216 aix_use_runtimelinking=no
25217 exp_sym_flag='-Bexport'
25220 # If we're using GNU nm, then we don't want the "-C" option.
25221 # -C means demangle to AIX nm, but means don't demangle with GNU nm
25222 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
25223 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
25225 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
25227 aix_use_runtimelinking=no
25229 # Test if we are trying to use run time linking or normal
25230 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
25231 # need to do runtime linking.
25232 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
25233 for ld_flag in $LDFLAGS; do
25234 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
25235 aix_use_runtimelinking=yes
25242 exp_sym_flag='-bexport'
25243 no_entry_flag='-bnoentry'
25246 # When large executables or shared objects are built, AIX ld can
25247 # have problems creating the table of contents. If linking a library
25248 # or program results in "error TOC overflow" add -mminimal-toc to
25249 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
25250 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
25252 archive_cmds_GCJ=''
25253 hardcode_direct_GCJ=yes
25254 hardcode_libdir_separator_GCJ=':'
25255 link_all_deplibs_GCJ=yes
25257 if test "$GCC" = yes; then
25258 case $host_os in aix4.[012]|aix4.[012].*)
25259 # We only want to do this on AIX 4.2 and lower, the check
25260 # below for broken collect2 doesn't work under 4.3+
25261 collect2name=`${CC} -print-prog-name=collect2`
25262 if test -f "$collect2name" && \
25263 strings "$collect2name" | grep resolve_lib_name >/dev/null
25265 # We have reworked collect2
25268 # We have old collect2
25269 hardcode_direct_GCJ=unsupported
25270 # It fails to find uninstalled libraries when the uninstalled
25271 # path is not listed in the libpath. Setting hardcode_minus_L
25272 # to unsupported forces relinking
25273 hardcode_minus_L_GCJ=yes
25274 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25275 hardcode_libdir_separator_GCJ=
25279 shared_flag='-shared'
25280 if test "$aix_use_runtimelinking" = yes; then
25281 shared_flag="$shared_flag "'${wl}-G'
25285 if test "$host_cpu" = ia64; then
25286 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
25287 # chokes on -Wl,-G. The following line is correct:
25290 if test "$aix_use_runtimelinking" = yes; then
25291 shared_flag='${wl}-G'
25293 shared_flag='${wl}-bM:SRE'
25298 # It seems that -bexpall does not export symbols beginning with
25299 # underscore (_), so it is better to generate a list of symbols to export.
25300 always_export_symbols_GCJ=yes
25301 if test "$aix_use_runtimelinking" = yes; then
25302 # Warning - without using the other runtime loading flags (-brtl),
25303 # -berok will link without error, but may produce a broken library.
25304 allow_undefined_flag_GCJ='-berok'
25305 # Determine the default libpath from the value encoded in an empty executable.
25306 cat >conftest.$ac_ext <<_ACEOF
25309 cat confdefs.h >>conftest.$ac_ext
25310 cat >>conftest.$ac_ext <<_ACEOF
25311 /* end confdefs.h. */
25321 rm -f conftest.$ac_objext conftest$ac_exeext
25322 if { (ac_try="$ac_link"
25323 case "(($ac_try" in
25324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25325 *) ac_try_echo=$ac_try;;
25327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25328 (eval "$ac_link") 2>conftest.er1
25330 grep -v '^ *+' conftest.er1 >conftest.err
25332 cat conftest.err >&5
25333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25334 (exit $ac_status); } && {
25335 test -z "$ac_c_werror_flag" ||
25336 test ! -s conftest.err
25337 } && test -s conftest$ac_exeext &&
25338 $as_test_x conftest$ac_exeext; then
25340 lt_aix_libpath_sed='
25341 /Import File Strings/,/^$/ {
25347 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
25348 # Check for a 64-bit object if we didn't find anything.
25349 if test -z "$aix_libpath"; then
25350 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
25353 echo "$as_me: failed program was:" >&5
25354 sed 's/^/| /' conftest.$ac_ext >&5
25359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25360 conftest$ac_exeext conftest.$ac_ext
25361 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25363 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25364 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
25366 if test "$host_cpu" = ia64; then
25367 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
25368 allow_undefined_flag_GCJ="-z nodefs"
25369 archive_expsym_cmds_GCJ="\$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"
25371 # Determine the default libpath from the value encoded in an empty executable.
25372 cat >conftest.$ac_ext <<_ACEOF
25375 cat confdefs.h >>conftest.$ac_ext
25376 cat >>conftest.$ac_ext <<_ACEOF
25377 /* end confdefs.h. */
25387 rm -f conftest.$ac_objext conftest$ac_exeext
25388 if { (ac_try="$ac_link"
25389 case "(($ac_try" in
25390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25391 *) ac_try_echo=$ac_try;;
25393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25394 (eval "$ac_link") 2>conftest.er1
25396 grep -v '^ *+' conftest.er1 >conftest.err
25398 cat conftest.err >&5
25399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25400 (exit $ac_status); } && {
25401 test -z "$ac_c_werror_flag" ||
25402 test ! -s conftest.err
25403 } && test -s conftest$ac_exeext &&
25404 $as_test_x conftest$ac_exeext; then
25406 lt_aix_libpath_sed='
25407 /Import File Strings/,/^$/ {
25413 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
25414 # Check for a 64-bit object if we didn't find anything.
25415 if test -z "$aix_libpath"; then
25416 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
25419 echo "$as_me: failed program was:" >&5
25420 sed 's/^/| /' conftest.$ac_ext >&5
25425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25426 conftest$ac_exeext conftest.$ac_ext
25427 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25429 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25430 # Warning - without using the other run time loading flags,
25431 # -berok will link without error, but may produce a broken library.
25432 no_undefined_flag_GCJ=' ${wl}-bernotok'
25433 allow_undefined_flag_GCJ=' ${wl}-berok'
25434 # Exported symbols can be pulled into shared objects from archives
25435 whole_archive_flag_spec_GCJ='$convenience'
25436 archive_cmds_need_lc_GCJ=yes
25437 # This is similar to how AIX traditionally builds its shared libraries.
25438 archive_expsym_cmds_GCJ="\$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'
25444 archive_cmds_GCJ='$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)'
25445 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25446 hardcode_minus_L_GCJ=yes
25447 # see comment about different semantics on the GNU ld section
25452 export_dynamic_flag_spec_GCJ=-rdynamic
25455 cygwin* | mingw* | pw32*)
25456 # When not using gcc, we currently assume that we are using
25457 # Microsoft Visual C++.
25458 # hardcode_libdir_flag_spec is actually meaningless, as there is
25459 # no search path for DLLs.
25460 hardcode_libdir_flag_spec_GCJ=' '
25461 allow_undefined_flag_GCJ=unsupported
25462 # Tell ltmain to make .lib files, not .a files.
25464 # Tell ltmain to make .dll files, not .so files.
25466 # FIXME: Setting linknames here is a bad hack.
25467 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25468 # The linker will automatically build a .lib file if we build a DLL.
25469 old_archive_From_new_cmds_GCJ='true'
25470 # FIXME: Should let the user specify the lib program.
25471 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
25472 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
25473 enable_shared_with_static_runtimes_GCJ=yes
25476 darwin* | rhapsody*)
25478 rhapsody* | darwin1.[012])
25479 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25482 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25483 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25485 case ${MACOSX_DEPLOYMENT_TARGET} in
25487 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25490 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25496 archive_cmds_need_lc_GCJ=no
25497 hardcode_direct_GCJ=no
25498 hardcode_automatic_GCJ=yes
25499 hardcode_shlibpath_var_GCJ=unsupported
25500 whole_archive_flag_spec_GCJ=''
25501 link_all_deplibs_GCJ=yes
25502 if test "$GCC" = yes ; then
25503 output_verbose_link_cmd='echo'
25504 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25505 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25506 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25507 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
25508 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
25510 case $cc_basename in
25512 output_verbose_link_cmd='echo'
25513 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
25514 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25515 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25516 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
25517 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
25527 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25528 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25529 hardcode_shlibpath_var_GCJ=no
25536 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25537 # support. Future versions do this automatically, but an explicit c++rt0.o
25538 # does not break anything, and helps significantly (at the cost of a little
25541 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25542 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25543 hardcode_direct_GCJ=yes
25544 hardcode_shlibpath_var_GCJ=no
25547 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25549 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25550 hardcode_direct_GCJ=yes
25551 hardcode_minus_L_GCJ=yes
25552 hardcode_shlibpath_var_GCJ=no
25555 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25556 freebsd* | dragonfly*)
25557 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25558 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25559 hardcode_direct_GCJ=yes
25560 hardcode_shlibpath_var_GCJ=no
25564 if test "$GCC" = yes; then
25565 archive_cmds_GCJ='$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'
25567 archive_cmds_GCJ='$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'
25569 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25570 hardcode_libdir_separator_GCJ=:
25571 hardcode_direct_GCJ=yes
25573 # hardcode_minus_L: Not really in the search PATH,
25574 # but as the default location of the library.
25575 hardcode_minus_L_GCJ=yes
25576 export_dynamic_flag_spec_GCJ='${wl}-E'
25580 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25581 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25583 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25585 if test "$with_gnu_ld" = no; then
25586 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25587 hardcode_libdir_separator_GCJ=:
25589 hardcode_direct_GCJ=yes
25590 export_dynamic_flag_spec_GCJ='${wl}-E'
25592 # hardcode_minus_L: Not really in the search PATH,
25593 # but as the default location of the library.
25594 hardcode_minus_L_GCJ=yes
25599 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25602 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25605 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25608 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25614 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25617 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25620 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25624 if test "$with_gnu_ld" = no; then
25625 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25626 hardcode_libdir_separator_GCJ=:
25630 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25631 hardcode_direct_GCJ=no
25632 hardcode_shlibpath_var_GCJ=no
25635 hardcode_direct_GCJ=yes
25636 export_dynamic_flag_spec_GCJ='${wl}-E'
25638 # hardcode_minus_L: Not really in the search PATH,
25639 # but as the default location of the library.
25640 hardcode_minus_L_GCJ=yes
25646 irix5* | irix6* | nonstopux*)
25647 if test "$GCC" = yes; then
25648 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
25650 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
25651 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25653 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25654 hardcode_libdir_separator_GCJ=:
25655 link_all_deplibs_GCJ=yes
25658 netbsd* | netbsdelf*-gnu)
25659 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25660 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25662 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25664 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25665 hardcode_direct_GCJ=yes
25666 hardcode_shlibpath_var_GCJ=no
25670 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25671 hardcode_direct_GCJ=yes
25672 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25673 hardcode_libdir_separator_GCJ=:
25674 hardcode_shlibpath_var_GCJ=no
25678 if test -f /usr/libexec/ld.so; then
25679 hardcode_direct_GCJ=yes
25680 hardcode_shlibpath_var_GCJ=no
25681 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25682 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25683 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25684 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25685 export_dynamic_flag_spec_GCJ='${wl}-E'
25688 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25689 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25690 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25693 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25694 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25704 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25705 hardcode_minus_L_GCJ=yes
25706 allow_undefined_flag_GCJ=unsupported
25707 archive_cmds_GCJ='$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'
25708 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25712 if test "$GCC" = yes; then
25713 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25714 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
25716 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25717 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
25719 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25720 hardcode_libdir_separator_GCJ=:
25723 osf4* | osf5*) # as osf3* with the addition of -msym flag
25724 if test "$GCC" = yes; then
25725 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25726 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
25727 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25729 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25730 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
25731 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
25732 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
25734 # Both c and cxx compiler support -rpath directly
25735 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25737 hardcode_libdir_separator_GCJ=:
25741 no_undefined_flag_GCJ=' -z text'
25742 if test "$GCC" = yes; then
25744 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25745 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25746 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25749 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25750 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25751 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25753 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25754 hardcode_shlibpath_var_GCJ=no
25756 solaris2.[0-5] | solaris2.[0-5].*) ;;
25758 # The compiler driver will combine and reorder linker options,
25759 # but understands `-z linker_flag'. GCC discards it without `$wl',
25760 # but is careful enough not to reorder.
25761 # Supported since Solaris 2.6 (maybe 2.5.1?)
25762 if test "$GCC" = yes; then
25763 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
25765 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
25769 link_all_deplibs_GCJ=yes
25773 if test "x$host_vendor" = xsequent; then
25774 # Use $CC to link under sequent, because it throws in some extra .o
25775 # files that make .init and .fini sections work.
25776 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25778 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25780 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25781 hardcode_direct_GCJ=yes
25782 hardcode_minus_L_GCJ=yes
25783 hardcode_shlibpath_var_GCJ=no
25787 case $host_vendor in
25789 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25790 hardcode_direct_GCJ=yes # is this really true???
25793 ## LD is ld it makes a PLAMLIB
25794 ## CC just makes a GrossModule.
25795 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25796 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25797 hardcode_direct_GCJ=no
25800 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25801 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25804 runpath_var='LD_RUN_PATH'
25805 hardcode_shlibpath_var_GCJ=no
25809 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25810 hardcode_shlibpath_var_GCJ=no
25811 export_dynamic_flag_spec_GCJ='-Bexport'
25815 if test -d /usr/nec; then
25816 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25817 hardcode_shlibpath_var_GCJ=no
25818 runpath_var=LD_RUN_PATH
25819 hardcode_runpath_var=yes
25824 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
25825 no_undefined_flag_GCJ='${wl}-z,text'
25826 archive_cmds_need_lc_GCJ=no
25827 hardcode_shlibpath_var_GCJ=no
25828 runpath_var='LD_RUN_PATH'
25830 if test "$GCC" = yes; then
25831 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25832 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25834 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25835 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25839 sysv5* | sco3.2v5* | sco5v6*)
25840 # Note: We can NOT use -z defs as we might desire, because we do not
25841 # link with -lc, and that would cause any symbols used from libc to
25842 # always be unresolved, which means just about no library would
25843 # ever link correctly. If we're not using GNU ld we use -z text
25844 # though, which does catch some bad symbols but isn't as heavy-handed
25846 no_undefined_flag_GCJ='${wl}-z,text'
25847 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25848 archive_cmds_need_lc_GCJ=no
25849 hardcode_shlibpath_var_GCJ=no
25850 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25851 hardcode_libdir_separator_GCJ=':'
25852 link_all_deplibs_GCJ=yes
25853 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25854 runpath_var='LD_RUN_PATH'
25856 if test "$GCC" = yes; then
25857 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25858 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25860 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25861 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25866 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25867 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25868 hardcode_shlibpath_var_GCJ=no
25877 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25878 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25879 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25882 # Do we need to explicitly link libc?
25884 case "x$archive_cmds_need_lc_GCJ" in
25886 # Assume -lc should be added
25887 archive_cmds_need_lc_GCJ=yes
25889 if test "$enable_shared" = yes && test "$GCC" = yes; then
25890 case $archive_cmds_GCJ in
25892 # FIXME: we may have to deal with multi-command sequences.
25895 # Test whether the compiler implicitly links with -lc since on some
25896 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25897 # to ld, don't add -lc before -lgcc.
25898 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25899 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25901 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
25903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25904 (eval $ac_compile) 2>&5
25906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25907 (exit $ac_status); } 2>conftest.err; then
25910 libobjs=conftest.$ac_objext
25912 wl=$lt_prog_compiler_wl_GCJ
25913 pic_flag=$lt_prog_compiler_pic_GCJ
25919 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25920 allow_undefined_flag_GCJ=
25921 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25922 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25925 (exit $ac_status); }
25927 archive_cmds_need_lc_GCJ=no
25929 archive_cmds_need_lc_GCJ=yes
25931 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25933 cat conftest.err 1>&5
25936 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25937 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25944 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25945 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25946 library_names_spec=
25947 libname_spec='lib$name'
25951 postuninstall_cmds=
25955 shlibpath_overrides_runpath=unknown
25957 dynamic_linker="$host_os ld.so"
25958 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25960 need_lib_prefix=unknown
25961 hardcode_into_libs=no
25963 # when you set need_version to no, make sure it does not cause -set_version
25964 # flags to be left without arguments
25965 need_version=unknown
25970 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25971 shlibpath_var=LIBPATH
25973 # AIX 3 has no versioning support, so we append a major version to the name.
25974 soname_spec='${libname}${release}${shared_ext}$major'
25981 hardcode_into_libs=yes
25982 if test "$host_cpu" = ia64; then
25983 # AIX 5 supports IA64
25984 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25985 shlibpath_var=LD_LIBRARY_PATH
25987 # With GCC up to 2.95.x, collect2 would create an import file
25988 # for dependence libraries. The import file would start with
25989 # the line `#! .'. This would cause the generated library to
25990 # depend on `.', always an invalid library. This was fixed in
25991 # development snapshots of GCC prior to 3.0.
25993 aix4 | aix4.[01] | aix4.[01].*)
25994 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25996 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25999 can_build_shared=no
26003 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
26004 # soname into executable. Probably we can add versioning support to
26005 # collect2, so additional links can be useful in future.
26006 if test "$aix_use_runtimelinking" = yes; then
26007 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
26008 # instead of lib<name>.a to let people know that these are not
26009 # typical AIX shared libraries.
26010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26012 # We preserve .a as extension for shared libraries through AIX4.2
26013 # and later when we are not doing run time linking.
26014 library_names_spec='${libname}${release}.a $libname.a'
26015 soname_spec='${libname}${release}${shared_ext}$major'
26017 shlibpath_var=LIBPATH
26022 library_names_spec='$libname.ixlibrary $libname.a'
26023 # Create ${libname}_ixlibrary.a entries in /sys/libs.
26024 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'
26028 library_names_spec='${libname}${shared_ext}'
26029 dynamic_linker="$host_os ld.so"
26030 shlibpath_var=LIBRARY_PATH
26036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26037 soname_spec='${libname}${release}${shared_ext}$major'
26038 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
26039 shlibpath_var=LD_LIBRARY_PATH
26040 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
26041 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
26042 # the default ld.so.conf also contains /usr/contrib/lib and
26043 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
26044 # libtool to hard-code these into programs
26047 cygwin* | mingw* | pw32*)
26048 version_type=windows
26053 case $GCC,$host_os in
26054 yes,cygwin* | yes,mingw* | yes,pw32*)
26055 library_names_spec='$libname.dll.a'
26056 # DLL is installed to $(libdir)/../bin by postinstall_cmds
26057 postinstall_cmds='base_file=`basename \${file}`~
26058 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
26059 dldir=$destdir/`dirname \$dlpath`~
26060 test -d \$dldir || mkdir -p \$dldir~
26061 $install_prog $dir/$dlname \$dldir/$dlname~
26062 chmod a+x \$dldir/$dlname'
26063 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
26064 dlpath=$dir/\$dldll~
26066 shlibpath_overrides_runpath=yes
26070 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
26071 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
26072 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
26075 # MinGW DLLs use traditional 'lib' prefix
26076 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
26077 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
26078 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
26079 # It is most probably a Windows format PATH printed by
26080 # mingw gcc, but we are running on Cygwin. Gcc prints its search
26081 # path with ; separators, and with drive letters. We can handle the
26082 # drive letters (cygwin fileutils understands them), so leave them,
26083 # especially as we might pass files found there to a mingw objdump,
26084 # which wouldn't understand a cygwinified path. Ahh.
26085 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
26087 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
26091 # pw32 DLLs use 'pw' prefix rather than 'lib'
26092 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
26098 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
26101 dynamic_linker='Win32 ld.exe'
26102 # FIXME: first we should search . and the directory the executable is in
26106 darwin* | rhapsody*)
26107 dynamic_linker="$host_os dyld"
26108 version_type=darwin
26111 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
26112 soname_spec='${libname}${release}${major}$shared_ext'
26113 shlibpath_overrides_runpath=yes
26114 shlibpath_var=DYLD_LIBRARY_PATH
26115 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
26117 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
26124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
26125 soname_spec='${libname}${release}${shared_ext}$major'
26126 shlibpath_var=LD_LIBRARY_PATH
26133 freebsd* | dragonfly*)
26134 # DragonFly does not have aout. When/if they implement a new
26135 # versioning mechanism, adjust this.
26136 if test -x /usr/bin/objformat; then
26137 objformat=`/usr/bin/objformat`
26140 freebsd[123]*) objformat=aout ;;
26141 *) objformat=elf ;;
26144 version_type=freebsd-$objformat
26145 case $version_type in
26147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26152 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
26156 shlibpath_var=LD_LIBRARY_PATH
26159 shlibpath_overrides_runpath=yes
26161 freebsd3.[01]* | freebsdelf3.[01]*)
26162 shlibpath_overrides_runpath=yes
26163 hardcode_into_libs=yes
26165 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
26166 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
26167 shlibpath_overrides_runpath=no
26168 hardcode_into_libs=yes
26170 *) # from 4.6 on, and DragonFly
26171 shlibpath_overrides_runpath=yes
26172 hardcode_into_libs=yes
26181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
26182 soname_spec='${libname}${release}${shared_ext}$major'
26183 shlibpath_var=LD_LIBRARY_PATH
26184 hardcode_into_libs=yes
26187 hpux9* | hpux10* | hpux11*)
26188 # Give a soname corresponding to the major version so that dld.sl refuses to
26189 # link against other versions.
26196 hardcode_into_libs=yes
26197 dynamic_linker="$host_os dld.so"
26198 shlibpath_var=LD_LIBRARY_PATH
26199 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
26200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26201 soname_spec='${libname}${release}${shared_ext}$major'
26202 if test "X$HPUX_IA64_MODE" = X32; then
26203 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
26205 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
26207 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
26211 hardcode_into_libs=yes
26212 dynamic_linker="$host_os dld.sl"
26213 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
26214 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
26215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26216 soname_spec='${libname}${release}${shared_ext}$major'
26217 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
26218 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
26222 dynamic_linker="$host_os dld.sl"
26223 shlibpath_var=SHLIB_PATH
26224 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
26225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26226 soname_spec='${libname}${release}${shared_ext}$major'
26229 # HP-UX runs *really* slowly unless shared libraries are mode 555.
26230 postinstall_cmds='chmod 555 $lib'
26237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26238 soname_spec='${libname}${release}${shared_ext}$major'
26239 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
26240 shlibpath_var=LD_LIBRARY_PATH
26241 shlibpath_overrides_runpath=no
26242 hardcode_into_libs=yes
26245 irix5* | irix6* | nonstopux*)
26247 nonstopux*) version_type=nonstopux ;;
26249 if test "$lt_cv_prog_gnu_ld" = yes; then
26257 soname_spec='${libname}${release}${shared_ext}$major'
26258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
26260 irix5* | nonstopux*)
26261 libsuff= shlibsuff=
26264 case $LD in # libtool.m4 will add one of these switches to LD
26265 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
26266 libsuff= shlibsuff= libmagic=32-bit;;
26267 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
26268 libsuff=32 shlibsuff=N32 libmagic=N32;;
26269 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
26270 libsuff=64 shlibsuff=64 libmagic=64-bit;;
26271 *) libsuff= shlibsuff= libmagic=never-match;;
26275 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
26276 shlibpath_overrides_runpath=no
26277 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
26278 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
26279 hardcode_into_libs=yes
26282 # No shared lib support for Linux oldld, aout, or coff.
26283 linux*oldld* | linux*aout* | linux*coff*)
26287 # This must be Linux ELF.
26288 linux* | k*bsd*-gnu)
26292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26293 soname_spec='${libname}${release}${shared_ext}$major'
26294 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
26295 shlibpath_var=LD_LIBRARY_PATH
26296 shlibpath_overrides_runpath=no
26297 # This implies no fast_install, which is unacceptable.
26298 # Some rework will be needed to allow for fast_install
26299 # before this can be enabled.
26300 hardcode_into_libs=yes
26302 # Append ld.so.conf contents to the search path
26303 if test -f /etc/ld.so.conf; then
26304 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' ' '`
26305 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
26308 # We used to test for /lib/ld.so.1 and disable shared libraries on
26309 # powerpc, because MkLinux only supported shared libraries with the
26310 # GNU dynamic linker. Since this was broken with cross compilers,
26311 # most powerpc-linux boxes support dynamic linking these days and
26312 # people can always --disable-shared, the test was removed, and we
26313 # assume the GNU/Linux dynamic linker is in use.
26314 dynamic_linker='GNU/Linux ld.so'
26321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26322 soname_spec='${libname}${release}${shared_ext}$major'
26323 shlibpath_var=LD_LIBRARY_PATH
26324 shlibpath_overrides_runpath=no
26325 hardcode_into_libs=yes
26326 dynamic_linker='NetBSD ld.elf_so'
26333 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
26334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26335 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26336 dynamic_linker='NetBSD (a.out) ld.so'
26338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26339 soname_spec='${libname}${release}${shared_ext}$major'
26340 dynamic_linker='NetBSD ld.elf_so'
26342 shlibpath_var=LD_LIBRARY_PATH
26343 shlibpath_overrides_runpath=yes
26344 hardcode_into_libs=yes
26349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26350 shlibpath_var=LD_LIBRARY_PATH
26351 shlibpath_overrides_runpath=yes
26358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26359 soname_spec='${libname}${release}${shared_ext}$major'
26360 shlibpath_var=LD_LIBRARY_PATH
26361 shlibpath_overrides_runpath=yes
26366 sys_lib_dlsearch_path_spec="/usr/lib"
26368 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26370 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26371 *) need_version=no ;;
26373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26374 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26375 shlibpath_var=LD_LIBRARY_PATH
26376 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26378 openbsd2.[89] | openbsd2.[89].*)
26379 shlibpath_overrides_runpath=no
26382 shlibpath_overrides_runpath=yes
26386 shlibpath_overrides_runpath=yes
26391 libname_spec='$name'
26394 library_names_spec='$libname${shared_ext} $libname.a'
26395 dynamic_linker='OS/2 ld.exe'
26396 shlibpath_var=LIBPATH
26399 osf3* | osf4* | osf5*)
26403 soname_spec='${libname}${release}${shared_ext}$major'
26404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26405 shlibpath_var=LD_LIBRARY_PATH
26406 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26407 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26419 soname_spec='${libname}${release}${shared_ext}$major'
26420 shlibpath_var=LD_LIBRARY_PATH
26421 shlibpath_overrides_runpath=yes
26422 hardcode_into_libs=yes
26423 # ldd complains unless libraries are executable
26424 postinstall_cmds='chmod +x $lib'
26429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26430 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26431 shlibpath_var=LD_LIBRARY_PATH
26432 shlibpath_overrides_runpath=yes
26433 if test "$with_gnu_ld" = yes; then
26441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26442 soname_spec='${libname}${release}${shared_ext}$major'
26443 shlibpath_var=LD_LIBRARY_PATH
26444 case $host_vendor in
26446 shlibpath_overrides_runpath=no
26448 export_dynamic_flag_spec='${wl}-Blargedynsym'
26449 runpath_var=LD_RUN_PATH
26457 shlibpath_overrides_runpath=no
26458 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26464 if test -d /usr/nec ;then
26466 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26467 soname_spec='$libname${shared_ext}.$major'
26468 shlibpath_var=LD_LIBRARY_PATH
26472 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26473 version_type=freebsd-elf
26476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26477 soname_spec='${libname}${release}${shared_ext}$major'
26478 shlibpath_var=LD_LIBRARY_PATH
26479 hardcode_into_libs=yes
26480 if test "$with_gnu_ld" = yes; then
26481 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26482 shlibpath_overrides_runpath=no
26484 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26485 shlibpath_overrides_runpath=yes
26488 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26492 sys_lib_dlsearch_path_spec='/usr/lib'
26497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26498 soname_spec='${libname}${release}${shared_ext}$major'
26499 shlibpath_var=LD_LIBRARY_PATH
26506 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26507 echo "${ECHO_T}$dynamic_linker" >&6; }
26508 test "$dynamic_linker" = no && can_build_shared=no
26510 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26511 if test "$GCC" = yes; then
26512 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26515 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26516 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
26517 hardcode_action_GCJ=
26518 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26519 test -n "$runpath_var_GCJ" || \
26520 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26522 # We can hardcode non-existant directories.
26523 if test "$hardcode_direct_GCJ" != no &&
26524 # If the only mechanism to avoid hardcoding is shlibpath_var, we
26525 # have to relink, otherwise we might link with an installed library
26526 # when we should be linking with a yet-to-be-installed one
26527 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26528 test "$hardcode_minus_L_GCJ" != no; then
26529 # Linking always hardcodes the temporary library directory.
26530 hardcode_action_GCJ=relink
26532 # We can link without hardcoding, and we can hardcode nonexisting dirs.
26533 hardcode_action_GCJ=immediate
26536 # We cannot hardcode anything, or else we can only hardcode existing
26538 hardcode_action_GCJ=unsupported
26540 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26541 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
26543 if test "$hardcode_action_GCJ" = relink; then
26544 # Fast installation is not supported
26545 enable_fast_install=no
26546 elif test "$shlibpath_overrides_runpath" = yes ||
26547 test "$enable_shared" = no; then
26548 # Fast installation is not necessary
26549 enable_fast_install=needless
26553 # The else clause should only fire when bootstrapping the
26554 # libtool distribution, otherwise you forgot to ship ltmain.sh
26555 # with your package, and you will get complaints that there are
26556 # no rules to generate ltmain.sh.
26557 if test -f "$ltmain"; then
26558 # See if we are running on zsh, and set the options which allow our commands through
26559 # without removal of \ escapes.
26560 if test -n "${ZSH_VERSION+set}" ; then
26561 setopt NO_GLOB_SUBST
26563 # Now quote all the things that may contain metacharacters while being
26564 # careful not to overquote the AC_SUBSTed values. We take copies of the
26565 # variables and quote the copies for generation of the libtool script.
26566 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26568 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26569 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26570 deplibs_check_method reload_flag reload_cmds need_locks \
26571 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26572 lt_cv_sys_global_symbol_to_c_name_address \
26573 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26574 old_postinstall_cmds old_postuninstall_cmds \
26578 lt_prog_compiler_wl_GCJ \
26579 lt_prog_compiler_pic_GCJ \
26580 lt_prog_compiler_static_GCJ \
26581 lt_prog_compiler_no_builtin_flag_GCJ \
26582 export_dynamic_flag_spec_GCJ \
26583 thread_safe_flag_spec_GCJ \
26584 whole_archive_flag_spec_GCJ \
26585 enable_shared_with_static_runtimes_GCJ \
26586 old_archive_cmds_GCJ \
26587 old_archive_from_new_cmds_GCJ \
26588 predep_objects_GCJ \
26589 postdep_objects_GCJ \
26592 compiler_lib_search_path_GCJ \
26594 archive_expsym_cmds_GCJ \
26595 postinstall_cmds_GCJ \
26596 postuninstall_cmds_GCJ \
26597 old_archive_from_expsyms_cmds_GCJ \
26598 allow_undefined_flag_GCJ \
26599 no_undefined_flag_GCJ \
26600 export_symbols_cmds_GCJ \
26601 hardcode_libdir_flag_spec_GCJ \
26602 hardcode_libdir_flag_spec_ld_GCJ \
26603 hardcode_libdir_separator_GCJ \
26604 hardcode_automatic_GCJ \
26606 module_expsym_cmds_GCJ \
26607 lt_cv_prog_compiler_c_o_GCJ \
26608 fix_srcfile_path_GCJ \
26609 exclude_expsyms_GCJ \
26610 include_expsyms_GCJ; do
26613 old_archive_cmds_GCJ | \
26614 old_archive_from_new_cmds_GCJ | \
26615 archive_cmds_GCJ | \
26616 archive_expsym_cmds_GCJ | \
26617 module_cmds_GCJ | \
26618 module_expsym_cmds_GCJ | \
26619 old_archive_from_expsyms_cmds_GCJ | \
26620 export_symbols_cmds_GCJ | \
26621 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26622 postinstall_cmds | postuninstall_cmds | \
26623 old_postinstall_cmds | old_postuninstall_cmds | \
26624 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26625 # Double-quote double-evaled strings.
26626 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26629 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26635 *'\$0 --fallback-echo"')
26636 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26642 cat <<__EOF__ >> "$cfgfile"
26643 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26645 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26647 # Shell to use when invoking shell scripts.
26650 # Whether or not to build shared libraries.
26651 build_libtool_libs=$enable_shared
26653 # Whether or not to build static libraries.
26654 build_old_libs=$enable_static
26656 # Whether or not to add -lc for building shared libraries.
26657 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26659 # Whether or not to disallow shared libs when runtime libs are static
26660 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26662 # Whether or not to optimize for fast installation.
26663 fast_install=$enable_fast_install
26666 host_alias=$host_alias
26670 # The build system.
26671 build_alias=$build_alias
26675 # An echo program that does not interpret backslashes.
26680 AR_FLAGS=$lt_AR_FLAGS
26685 # LTCC compiler flags.
26686 LTCFLAGS=$lt_LTCFLAGS
26688 # A language-specific compiler.
26689 CC=$lt_compiler_GCJ
26691 # Is the compiler the GNU C compiler?
26697 # The linker used to build libraries.
26700 # Whether we need hard or soft links.
26703 # A BSD-compatible nm program.
26706 # A symbol stripping program
26709 # Used to examine libraries when file_magic_cmd begins "file"
26710 MAGIC_CMD=$MAGIC_CMD
26712 # Used on cygwin: DLL creation program.
26715 # Used on cygwin: object dumper.
26718 # Used on cygwin: assembler.
26721 # The name of the directory that contains temporary libtool files.
26724 # How to create reloadable object files.
26725 reload_flag=$lt_reload_flag
26726 reload_cmds=$lt_reload_cmds
26728 # How to pass a linker flag through the compiler.
26729 wl=$lt_lt_prog_compiler_wl_GCJ
26731 # Object file suffix (normally "o").
26732 objext="$ac_objext"
26734 # Old archive suffix (normally "a").
26737 # Shared library suffix (normally ".so").
26738 shrext_cmds='$shrext_cmds'
26740 # Executable file suffix (normally "").
26743 # Additional compiler flags for building library objects.
26744 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26747 # What is the maximum length of a command?
26748 max_cmd_len=$lt_cv_sys_max_cmd_len
26750 # Does compiler simultaneously support -c and -o options?
26751 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26753 # Must we lock files when doing compilation?
26754 need_locks=$lt_need_locks
26756 # Do we need the lib prefix for modules?
26757 need_lib_prefix=$need_lib_prefix
26759 # Do we need a version for libraries?
26760 need_version=$need_version
26762 # Whether dlopen is supported.
26763 dlopen_support=$enable_dlopen
26765 # Whether dlopen of programs is supported.
26766 dlopen_self=$enable_dlopen_self
26768 # Whether dlopen of statically linked programs is supported.
26769 dlopen_self_static=$enable_dlopen_self_static
26771 # Compiler flag to prevent dynamic linking.
26772 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26774 # Compiler flag to turn off builtin functions.
26775 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26777 # Compiler flag to allow reflexive dlopens.
26778 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26780 # Compiler flag to generate shared objects directly from archives.
26781 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26783 # Compiler flag to generate thread-safe objects.
26784 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26786 # Library versioning type.
26787 version_type=$version_type
26789 # Format of library name prefix.
26790 libname_spec=$lt_libname_spec
26792 # List of archive names. First name is the real one, the rest are links.
26793 # The last name is the one that the linker finds with -lNAME.
26794 library_names_spec=$lt_library_names_spec
26796 # The coded name of the library, if different from the real name.
26797 soname_spec=$lt_soname_spec
26799 # Commands used to build and install an old-style archive.
26801 old_archive_cmds=$lt_old_archive_cmds_GCJ
26802 old_postinstall_cmds=$lt_old_postinstall_cmds
26803 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26805 # Create an old-style archive from a shared archive.
26806 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26808 # Create a temporary old-style archive to link instead of a shared archive.
26809 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26811 # Commands used to build and install a shared archive.
26812 archive_cmds=$lt_archive_cmds_GCJ
26813 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26814 postinstall_cmds=$lt_postinstall_cmds
26815 postuninstall_cmds=$lt_postuninstall_cmds
26817 # Commands used to build a loadable module (assumed same as above if empty)
26818 module_cmds=$lt_module_cmds_GCJ
26819 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26821 # Commands to strip libraries.
26822 old_striplib=$lt_old_striplib
26823 striplib=$lt_striplib
26825 # Dependencies to place before the objects being linked to create a
26827 predep_objects=$lt_predep_objects_GCJ
26829 # Dependencies to place after the objects being linked to create a
26831 postdep_objects=$lt_postdep_objects_GCJ
26833 # Dependencies to place before the objects being linked to create a
26835 predeps=$lt_predeps_GCJ
26837 # Dependencies to place after the objects being linked to create a
26839 postdeps=$lt_postdeps_GCJ
26841 # The library search path used internally by the compiler when linking
26842 # a shared library.
26843 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26845 # Method to check whether dependent libraries are shared objects.
26846 deplibs_check_method=$lt_deplibs_check_method
26848 # Command to use when deplibs_check_method == file_magic.
26849 file_magic_cmd=$lt_file_magic_cmd
26851 # Flag that allows shared libraries with undefined symbols to be built.
26852 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26854 # Flag that forces no undefined symbols.
26855 no_undefined_flag=$lt_no_undefined_flag_GCJ
26857 # Commands used to finish a libtool library installation in a directory.
26858 finish_cmds=$lt_finish_cmds
26860 # Same as above, but a single script fragment to be evaled but not shown.
26861 finish_eval=$lt_finish_eval
26863 # Take the output of nm and produce a listing of raw symbols and C names.
26864 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26866 # Transform the output of nm in a proper C declaration
26867 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26869 # Transform the output of nm in a C name address pair
26870 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26872 # This is the shared library runtime path variable.
26873 runpath_var=$runpath_var
26875 # This is the shared library path variable.
26876 shlibpath_var=$shlibpath_var
26878 # Is shlibpath searched before the hard-coded library search path?
26879 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26881 # How to hardcode a shared library path into an executable.
26882 hardcode_action=$hardcode_action_GCJ
26884 # Whether we should hardcode library paths into libraries.
26885 hardcode_into_libs=$hardcode_into_libs
26887 # Flag to hardcode \$libdir into a binary during linking.
26888 # This must work even if \$libdir does not exist.
26889 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26891 # If ld is used when linking, flag to hardcode \$libdir into
26892 # a binary during linking. This must work even if \$libdir does
26894 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26896 # Whether we need a single -rpath flag with a separated argument.
26897 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26899 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26900 # resulting binary.
26901 hardcode_direct=$hardcode_direct_GCJ
26903 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26904 # resulting binary.
26905 hardcode_minus_L=$hardcode_minus_L_GCJ
26907 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26908 # the resulting binary.
26909 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26911 # Set to yes if building a shared library automatically hardcodes DIR into the library
26912 # and all subsequent libraries and executables linked against it.
26913 hardcode_automatic=$hardcode_automatic_GCJ
26915 # Variables whose values should be saved in libtool wrapper scripts and
26916 # restored at relink time.
26917 variables_saved_for_relink="$variables_saved_for_relink"
26919 # Whether libtool must link a program against all its dependency libraries.
26920 link_all_deplibs=$link_all_deplibs_GCJ
26922 # Compile-time system search path for libraries
26923 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26925 # Run-time system search path for libraries
26926 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26928 # Fix the shell variable \$srcfile for the compiler.
26929 fix_srcfile_path=$lt_fix_srcfile_path
26931 # Set to yes if exported symbols are required.
26932 always_export_symbols=$always_export_symbols_GCJ
26934 # The commands to list exported symbols.
26935 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26937 # The commands to extract the exported symbol list from a shared archive.
26938 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26940 # Symbols that should not be listed in the preloaded symbols.
26941 exclude_expsyms=$lt_exclude_expsyms_GCJ
26943 # Symbols that must always be exported.
26944 include_expsyms=$lt_include_expsyms_GCJ
26946 # ### END LIBTOOL TAG CONFIG: $tagname
26952 # If there is no Makefile yet, we rely on a make rule to execute
26953 # `config.status --recheck' to rerun these tests and create the
26954 # libtool script then.
26955 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26956 if test -f "$ltmain_in"; then
26957 test -f Makefile && make "$ltmain"
26963 ac_cpp='$CPP $CPPFLAGS'
26964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26978 # Source file extension for RC test sources.
26981 # Object file extension for compiled RC test sources.
26985 # Code to be used in simple compile tests
26986 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
26988 # Code to be used in simple link tests
26989 lt_simple_link_test_code="$lt_simple_compile_test_code"
26991 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26993 # If no C compiler was specified, use CC.
26996 # If no C compiler flags were specified, use CFLAGS.
26997 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26999 # Allow CC to be a program name with arguments.
27003 # save warnings/boilerplate of simple test code
27004 ac_outfile=conftest.$ac_objext
27005 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
27006 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
27007 _lt_compiler_boilerplate=`cat conftest.err`
27010 ac_outfile=conftest.$ac_objext
27011 echo "$lt_simple_link_test_code" >conftest.$ac_ext
27012 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
27013 _lt_linker_boilerplate=`cat conftest.err`
27017 # Allow CC to be a program name with arguments.
27022 for cc_temp in $compiler""; do
27024 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
27025 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
27030 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
27032 lt_cv_prog_compiler_c_o_RC=yes
27034 # The else clause should only fire when bootstrapping the
27035 # libtool distribution, otherwise you forgot to ship ltmain.sh
27036 # with your package, and you will get complaints that there are
27037 # no rules to generate ltmain.sh.
27038 if test -f "$ltmain"; then
27039 # See if we are running on zsh, and set the options which allow our commands through
27040 # without removal of \ escapes.
27041 if test -n "${ZSH_VERSION+set}" ; then
27042 setopt NO_GLOB_SUBST
27044 # Now quote all the things that may contain metacharacters while being
27045 # careful not to overquote the AC_SUBSTed values. We take copies of the
27046 # variables and quote the copies for generation of the libtool script.
27047 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
27049 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
27050 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
27051 deplibs_check_method reload_flag reload_cmds need_locks \
27052 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
27053 lt_cv_sys_global_symbol_to_c_name_address \
27054 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
27055 old_postinstall_cmds old_postuninstall_cmds \
27059 lt_prog_compiler_wl_RC \
27060 lt_prog_compiler_pic_RC \
27061 lt_prog_compiler_static_RC \
27062 lt_prog_compiler_no_builtin_flag_RC \
27063 export_dynamic_flag_spec_RC \
27064 thread_safe_flag_spec_RC \
27065 whole_archive_flag_spec_RC \
27066 enable_shared_with_static_runtimes_RC \
27067 old_archive_cmds_RC \
27068 old_archive_from_new_cmds_RC \
27069 predep_objects_RC \
27070 postdep_objects_RC \
27073 compiler_lib_search_path_RC \
27075 archive_expsym_cmds_RC \
27076 postinstall_cmds_RC \
27077 postuninstall_cmds_RC \
27078 old_archive_from_expsyms_cmds_RC \
27079 allow_undefined_flag_RC \
27080 no_undefined_flag_RC \
27081 export_symbols_cmds_RC \
27082 hardcode_libdir_flag_spec_RC \
27083 hardcode_libdir_flag_spec_ld_RC \
27084 hardcode_libdir_separator_RC \
27085 hardcode_automatic_RC \
27087 module_expsym_cmds_RC \
27088 lt_cv_prog_compiler_c_o_RC \
27089 fix_srcfile_path_RC \
27090 exclude_expsyms_RC \
27091 include_expsyms_RC; do
27094 old_archive_cmds_RC | \
27095 old_archive_from_new_cmds_RC | \
27096 archive_cmds_RC | \
27097 archive_expsym_cmds_RC | \
27099 module_expsym_cmds_RC | \
27100 old_archive_from_expsyms_cmds_RC | \
27101 export_symbols_cmds_RC | \
27102 extract_expsyms_cmds | reload_cmds | finish_cmds | \
27103 postinstall_cmds | postuninstall_cmds | \
27104 old_postinstall_cmds | old_postuninstall_cmds | \
27105 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
27106 # Double-quote double-evaled strings.
27107 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
27110 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
27116 *'\$0 --fallback-echo"')
27117 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
27123 cat <<__EOF__ >> "$cfgfile"
27124 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
27126 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
27128 # Shell to use when invoking shell scripts.
27131 # Whether or not to build shared libraries.
27132 build_libtool_libs=$enable_shared
27134 # Whether or not to build static libraries.
27135 build_old_libs=$enable_static
27137 # Whether or not to add -lc for building shared libraries.
27138 build_libtool_need_lc=$archive_cmds_need_lc_RC
27140 # Whether or not to disallow shared libs when runtime libs are static
27141 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
27143 # Whether or not to optimize for fast installation.
27144 fast_install=$enable_fast_install
27147 host_alias=$host_alias
27151 # The build system.
27152 build_alias=$build_alias
27156 # An echo program that does not interpret backslashes.
27161 AR_FLAGS=$lt_AR_FLAGS
27166 # LTCC compiler flags.
27167 LTCFLAGS=$lt_LTCFLAGS
27169 # A language-specific compiler.
27172 # Is the compiler the GNU C compiler?
27178 # The linker used to build libraries.
27181 # Whether we need hard or soft links.
27184 # A BSD-compatible nm program.
27187 # A symbol stripping program
27190 # Used to examine libraries when file_magic_cmd begins "file"
27191 MAGIC_CMD=$MAGIC_CMD
27193 # Used on cygwin: DLL creation program.
27196 # Used on cygwin: object dumper.
27199 # Used on cygwin: assembler.
27202 # The name of the directory that contains temporary libtool files.
27205 # How to create reloadable object files.
27206 reload_flag=$lt_reload_flag
27207 reload_cmds=$lt_reload_cmds
27209 # How to pass a linker flag through the compiler.
27210 wl=$lt_lt_prog_compiler_wl_RC
27212 # Object file suffix (normally "o").
27213 objext="$ac_objext"
27215 # Old archive suffix (normally "a").
27218 # Shared library suffix (normally ".so").
27219 shrext_cmds='$shrext_cmds'
27221 # Executable file suffix (normally "").
27224 # Additional compiler flags for building library objects.
27225 pic_flag=$lt_lt_prog_compiler_pic_RC
27228 # What is the maximum length of a command?
27229 max_cmd_len=$lt_cv_sys_max_cmd_len
27231 # Does compiler simultaneously support -c and -o options?
27232 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
27234 # Must we lock files when doing compilation?
27235 need_locks=$lt_need_locks
27237 # Do we need the lib prefix for modules?
27238 need_lib_prefix=$need_lib_prefix
27240 # Do we need a version for libraries?
27241 need_version=$need_version
27243 # Whether dlopen is supported.
27244 dlopen_support=$enable_dlopen
27246 # Whether dlopen of programs is supported.
27247 dlopen_self=$enable_dlopen_self
27249 # Whether dlopen of statically linked programs is supported.
27250 dlopen_self_static=$enable_dlopen_self_static
27252 # Compiler flag to prevent dynamic linking.
27253 link_static_flag=$lt_lt_prog_compiler_static_RC
27255 # Compiler flag to turn off builtin functions.
27256 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
27258 # Compiler flag to allow reflexive dlopens.
27259 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
27261 # Compiler flag to generate shared objects directly from archives.
27262 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
27264 # Compiler flag to generate thread-safe objects.
27265 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
27267 # Library versioning type.
27268 version_type=$version_type
27270 # Format of library name prefix.
27271 libname_spec=$lt_libname_spec
27273 # List of archive names. First name is the real one, the rest are links.
27274 # The last name is the one that the linker finds with -lNAME.
27275 library_names_spec=$lt_library_names_spec
27277 # The coded name of the library, if different from the real name.
27278 soname_spec=$lt_soname_spec
27280 # Commands used to build and install an old-style archive.
27282 old_archive_cmds=$lt_old_archive_cmds_RC
27283 old_postinstall_cmds=$lt_old_postinstall_cmds
27284 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27286 # Create an old-style archive from a shared archive.
27287 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
27289 # Create a temporary old-style archive to link instead of a shared archive.
27290 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
27292 # Commands used to build and install a shared archive.
27293 archive_cmds=$lt_archive_cmds_RC
27294 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
27295 postinstall_cmds=$lt_postinstall_cmds
27296 postuninstall_cmds=$lt_postuninstall_cmds
27298 # Commands used to build a loadable module (assumed same as above if empty)
27299 module_cmds=$lt_module_cmds_RC
27300 module_expsym_cmds=$lt_module_expsym_cmds_RC
27302 # Commands to strip libraries.
27303 old_striplib=$lt_old_striplib
27304 striplib=$lt_striplib
27306 # Dependencies to place before the objects being linked to create a
27308 predep_objects=$lt_predep_objects_RC
27310 # Dependencies to place after the objects being linked to create a
27312 postdep_objects=$lt_postdep_objects_RC
27314 # Dependencies to place before the objects being linked to create a
27316 predeps=$lt_predeps_RC
27318 # Dependencies to place after the objects being linked to create a
27320 postdeps=$lt_postdeps_RC
27322 # The library search path used internally by the compiler when linking
27323 # a shared library.
27324 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
27326 # Method to check whether dependent libraries are shared objects.
27327 deplibs_check_method=$lt_deplibs_check_method
27329 # Command to use when deplibs_check_method == file_magic.
27330 file_magic_cmd=$lt_file_magic_cmd
27332 # Flag that allows shared libraries with undefined symbols to be built.
27333 allow_undefined_flag=$lt_allow_undefined_flag_RC
27335 # Flag that forces no undefined symbols.
27336 no_undefined_flag=$lt_no_undefined_flag_RC
27338 # Commands used to finish a libtool library installation in a directory.
27339 finish_cmds=$lt_finish_cmds
27341 # Same as above, but a single script fragment to be evaled but not shown.
27342 finish_eval=$lt_finish_eval
27344 # Take the output of nm and produce a listing of raw symbols and C names.
27345 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27347 # Transform the output of nm in a proper C declaration
27348 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27350 # Transform the output of nm in a C name address pair
27351 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27353 # This is the shared library runtime path variable.
27354 runpath_var=$runpath_var
27356 # This is the shared library path variable.
27357 shlibpath_var=$shlibpath_var
27359 # Is shlibpath searched before the hard-coded library search path?
27360 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27362 # How to hardcode a shared library path into an executable.
27363 hardcode_action=$hardcode_action_RC
27365 # Whether we should hardcode library paths into libraries.
27366 hardcode_into_libs=$hardcode_into_libs
27368 # Flag to hardcode \$libdir into a binary during linking.
27369 # This must work even if \$libdir does not exist.
27370 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27372 # If ld is used when linking, flag to hardcode \$libdir into
27373 # a binary during linking. This must work even if \$libdir does
27375 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27377 # Whether we need a single -rpath flag with a separated argument.
27378 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27380 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27381 # resulting binary.
27382 hardcode_direct=$hardcode_direct_RC
27384 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27385 # resulting binary.
27386 hardcode_minus_L=$hardcode_minus_L_RC
27388 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27389 # the resulting binary.
27390 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27392 # Set to yes if building a shared library automatically hardcodes DIR into the library
27393 # and all subsequent libraries and executables linked against it.
27394 hardcode_automatic=$hardcode_automatic_RC
27396 # Variables whose values should be saved in libtool wrapper scripts and
27397 # restored at relink time.
27398 variables_saved_for_relink="$variables_saved_for_relink"
27400 # Whether libtool must link a program against all its dependency libraries.
27401 link_all_deplibs=$link_all_deplibs_RC
27403 # Compile-time system search path for libraries
27404 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27406 # Run-time system search path for libraries
27407 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27409 # Fix the shell variable \$srcfile for the compiler.
27410 fix_srcfile_path=$lt_fix_srcfile_path
27412 # Set to yes if exported symbols are required.
27413 always_export_symbols=$always_export_symbols_RC
27415 # The commands to list exported symbols.
27416 export_symbols_cmds=$lt_export_symbols_cmds_RC
27418 # The commands to extract the exported symbol list from a shared archive.
27419 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27421 # Symbols that should not be listed in the preloaded symbols.
27422 exclude_expsyms=$lt_exclude_expsyms_RC
27424 # Symbols that must always be exported.
27425 include_expsyms=$lt_include_expsyms_RC
27427 # ### END LIBTOOL TAG CONFIG: $tagname
27433 # If there is no Makefile yet, we rely on a make rule to execute
27434 # `config.status --recheck' to rerun these tests and create the
27435 # libtool script then.
27436 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27437 if test -f "$ltmain_in"; then
27438 test -f Makefile && make "$ltmain"
27444 ac_cpp='$CPP $CPPFLAGS'
27445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27454 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27455 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27456 { (exit 1); exit 1; }; }
27460 # Append the new tag name to the list of available tags.
27461 if test -n "$tagname" ; then
27462 available_tags="$available_tags $tagname"
27468 # Now substitute the updated list of available tags.
27469 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27470 mv "${ofile}T" "$ofile"
27474 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27475 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27476 { (exit 1); exit 1; }; }
27482 # This can be used to rebuild libtool when needed
27483 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27485 # Always use our own libtool.
27486 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
27488 # Prevent multiple expansion
27509 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
27510 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
27511 if test "${ac_cv_c_const+set}" = set; then
27512 echo $ECHO_N "(cached) $ECHO_C" >&6
27514 cat >conftest.$ac_ext <<_ACEOF
27517 cat confdefs.h >>conftest.$ac_ext
27518 cat >>conftest.$ac_ext <<_ACEOF
27519 /* end confdefs.h. */
27524 /* FIXME: Include the comments suggested by Paul. */
27525 #ifndef __cplusplus
27526 /* Ultrix mips cc rejects this. */
27527 typedef int charset[2];
27529 /* SunOS 4.1.1 cc rejects this. */
27530 char const *const *pcpcc;
27532 /* NEC SVR4.0.2 mips cc rejects this. */
27533 struct point {int x, y;};
27534 static struct point const zero = {0,0};
27535 /* AIX XL C 1.02.0.0 rejects this.
27536 It does not let you subtract one const X* pointer from another in
27537 an arm of an if-expression whose if-part is not a constant
27539 const char *g = "string";
27540 pcpcc = &g + (g ? g-g : 0);
27541 /* HPUX 7.0 cc rejects these. */
27543 ppc = (char**) pcpcc;
27544 pcpcc = (char const *const *) ppc;
27545 { /* SCO 3.2v4 cc rejects this. */
27547 char const *s = 0 ? (char *) 0 : (char const *) 0;
27552 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
27553 int x[] = {25, 17};
27554 const int *foo = &x[0];
27557 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27558 typedef const int *iptr;
27562 { /* AIX XL C 1.02.0.0 rejects this saying
27563 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27564 struct s { int j; const int *ap[3]; };
27565 struct s *b; b->j = 5;
27567 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27568 const int foo = 10;
27569 if (!foo) return 0;
27571 return !cs[0] && !zero.x;
27578 rm -f conftest.$ac_objext
27579 if { (ac_try="$ac_compile"
27580 case "(($ac_try" in
27581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27582 *) ac_try_echo=$ac_try;;
27584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27585 (eval "$ac_compile") 2>conftest.er1
27587 grep -v '^ *+' conftest.er1 >conftest.err
27589 cat conftest.err >&5
27590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27591 (exit $ac_status); } && {
27592 test -z "$ac_c_werror_flag" ||
27593 test ! -s conftest.err
27594 } && test -s conftest.$ac_objext; then
27597 echo "$as_me: failed program was:" >&5
27598 sed 's/^/| /' conftest.$ac_ext >&5
27603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27605 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
27606 echo "${ECHO_T}$ac_cv_c_const" >&6; }
27607 if test $ac_cv_c_const = no; then
27609 cat >>confdefs.h <<\_ACEOF
27620 ac_header_dirent=no
27621 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27622 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27623 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27624 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27626 echo $ECHO_N "(cached) $ECHO_C" >&6
27628 cat >conftest.$ac_ext <<_ACEOF
27631 cat confdefs.h >>conftest.$ac_ext
27632 cat >>conftest.$ac_ext <<_ACEOF
27633 /* end confdefs.h. */
27634 #include <sys/types.h>
27646 rm -f conftest.$ac_objext
27647 if { (ac_try="$ac_compile"
27648 case "(($ac_try" in
27649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27650 *) ac_try_echo=$ac_try;;
27652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27653 (eval "$ac_compile") 2>conftest.er1
27655 grep -v '^ *+' conftest.er1 >conftest.err
27657 cat conftest.err >&5
27658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27659 (exit $ac_status); } && {
27660 test -z "$ac_c_werror_flag" ||
27661 test ! -s conftest.err
27662 } && test -s conftest.$ac_objext; then
27663 eval "$as_ac_Header=yes"
27665 echo "$as_me: failed program was:" >&5
27666 sed 's/^/| /' conftest.$ac_ext >&5
27668 eval "$as_ac_Header=no"
27671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27673 ac_res=`eval echo '${'$as_ac_Header'}'`
27674 { echo "$as_me:$LINENO: result: $ac_res" >&5
27675 echo "${ECHO_T}$ac_res" >&6; }
27676 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27677 cat >>confdefs.h <<_ACEOF
27678 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27681 ac_header_dirent=$ac_hdr; break
27685 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27686 if test $ac_header_dirent = dirent.h; then
27687 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27688 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27689 if test "${ac_cv_search_opendir+set}" = set; then
27690 echo $ECHO_N "(cached) $ECHO_C" >&6
27692 ac_func_search_save_LIBS=$LIBS
27693 cat >conftest.$ac_ext <<_ACEOF
27696 cat confdefs.h >>conftest.$ac_ext
27697 cat >>conftest.$ac_ext <<_ACEOF
27698 /* end confdefs.h. */
27700 /* Override any GCC internal prototype to avoid an error.
27701 Use char because int might match the return type of a GCC
27702 builtin and then its argument prototype would still apply. */
27715 for ac_lib in '' dir; do
27716 if test -z "$ac_lib"; then
27717 ac_res="none required"
27720 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27722 rm -f conftest.$ac_objext conftest$ac_exeext
27723 if { (ac_try="$ac_link"
27724 case "(($ac_try" in
27725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27726 *) ac_try_echo=$ac_try;;
27728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27729 (eval "$ac_link") 2>conftest.er1
27731 grep -v '^ *+' conftest.er1 >conftest.err
27733 cat conftest.err >&5
27734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27735 (exit $ac_status); } && {
27736 test -z "$ac_c_werror_flag" ||
27737 test ! -s conftest.err
27738 } && test -s conftest$ac_exeext &&
27739 $as_test_x conftest$ac_exeext; then
27740 ac_cv_search_opendir=$ac_res
27742 echo "$as_me: failed program was:" >&5
27743 sed 's/^/| /' conftest.$ac_ext >&5
27748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27750 if test "${ac_cv_search_opendir+set}" = set; then
27754 if test "${ac_cv_search_opendir+set}" = set; then
27757 ac_cv_search_opendir=no
27759 rm conftest.$ac_ext
27760 LIBS=$ac_func_search_save_LIBS
27762 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27763 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27764 ac_res=$ac_cv_search_opendir
27765 if test "$ac_res" != no; then
27766 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27771 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27772 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27773 if test "${ac_cv_search_opendir+set}" = set; then
27774 echo $ECHO_N "(cached) $ECHO_C" >&6
27776 ac_func_search_save_LIBS=$LIBS
27777 cat >conftest.$ac_ext <<_ACEOF
27780 cat confdefs.h >>conftest.$ac_ext
27781 cat >>conftest.$ac_ext <<_ACEOF
27782 /* end confdefs.h. */
27784 /* Override any GCC internal prototype to avoid an error.
27785 Use char because int might match the return type of a GCC
27786 builtin and then its argument prototype would still apply. */
27799 for ac_lib in '' x; do
27800 if test -z "$ac_lib"; then
27801 ac_res="none required"
27804 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27806 rm -f conftest.$ac_objext conftest$ac_exeext
27807 if { (ac_try="$ac_link"
27808 case "(($ac_try" in
27809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27810 *) ac_try_echo=$ac_try;;
27812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27813 (eval "$ac_link") 2>conftest.er1
27815 grep -v '^ *+' conftest.er1 >conftest.err
27817 cat conftest.err >&5
27818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27819 (exit $ac_status); } && {
27820 test -z "$ac_c_werror_flag" ||
27821 test ! -s conftest.err
27822 } && test -s conftest$ac_exeext &&
27823 $as_test_x conftest$ac_exeext; then
27824 ac_cv_search_opendir=$ac_res
27826 echo "$as_me: failed program was:" >&5
27827 sed 's/^/| /' conftest.$ac_ext >&5
27832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27834 if test "${ac_cv_search_opendir+set}" = set; then
27838 if test "${ac_cv_search_opendir+set}" = set; then
27841 ac_cv_search_opendir=no
27843 rm conftest.$ac_ext
27844 LIBS=$ac_func_search_save_LIBS
27846 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27847 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27848 ac_res=$ac_cv_search_opendir
27849 if test "$ac_res" != no; then
27850 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27856 # Check whether --enable-ltdl-install was given.
27857 if test "${enable_ltdl_install+set}" = set; then
27858 enableval=$enable_ltdl_install;
27864 if test x"${enable_ltdl_install-no}" != xno; then
27866 INSTALL_LTDL_FALSE='#'
27868 INSTALL_LTDL_TRUE='#'
27869 INSTALL_LTDL_FALSE=
27874 if test x"${enable_ltdl_convenience-no}" != xno; then
27875 CONVENIENCE_LTDL_TRUE=
27876 CONVENIENCE_LTDL_FALSE='#'
27878 CONVENIENCE_LTDL_TRUE='#'
27879 CONVENIENCE_LTDL_FALSE=
27884 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
27885 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
27886 if test "${libltdl_cv_shlibext+set}" = set; then
27887 echo $ECHO_N "(cached) $ECHO_C" >&6
27891 eval libltdl_cv_shlibext=$shrext_cmds
27894 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
27895 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
27896 if test -n "$libltdl_cv_shlibext"; then
27898 cat >>confdefs.h <<_ACEOF
27899 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
27905 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
27906 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
27907 if test "${libltdl_cv_shlibpath_var+set}" = set; then
27908 echo $ECHO_N "(cached) $ECHO_C" >&6
27910 libltdl_cv_shlibpath_var="$shlibpath_var"
27912 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
27913 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
27914 if test -n "$libltdl_cv_shlibpath_var"; then
27916 cat >>confdefs.h <<_ACEOF
27917 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
27923 { echo "$as_me:$LINENO: checking for the default library search path" >&5
27924 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
27925 if test "${libltdl_cv_sys_search_path+set}" = set; then
27926 echo $ECHO_N "(cached) $ECHO_C" >&6
27928 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
27930 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
27931 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
27932 if test -n "$libltdl_cv_sys_search_path"; then
27934 for dir in $libltdl_cv_sys_search_path; do
27935 if test -z "$sys_search_path"; then
27936 sys_search_path="$dir"
27938 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
27942 cat >>confdefs.h <<_ACEOF
27943 #define LTDL_SYSSEARCHPATH "$sys_search_path"
27948 { echo "$as_me:$LINENO: checking for objdir" >&5
27949 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
27950 if test "${libltdl_cv_objdir+set}" = set; then
27951 echo $ECHO_N "(cached) $ECHO_C" >&6
27953 libltdl_cv_objdir="$objdir"
27954 if test -n "$objdir"; then
27957 rm -f .libs 2>/dev/null
27958 mkdir .libs 2>/dev/null
27959 if test -d .libs; then
27960 libltdl_cv_objdir=.libs
27962 # MS-DOS does not allow filenames that begin with a dot.
27963 libltdl_cv_objdir=_libs
27965 rmdir .libs 2>/dev/null
27969 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
27970 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
27972 cat >>confdefs.h <<_ACEOF
27973 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
27978 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
27979 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
27980 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
27981 echo $ECHO_N "(cached) $ECHO_C" >&6
27983 if test -n "$lt_cv_sys_global_symbol_pipe"; then
27984 libltdl_cv_preloaded_symbols=yes
27986 libltdl_cv_preloaded_symbols=no
27990 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
27991 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
27992 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
27994 cat >>confdefs.h <<\_ACEOF
27995 #define HAVE_PRELOADED_SYMBOLS 1
28003 ac_cpp='$CPP $CPPFLAGS'
28004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28009 { echo "$as_me:$LINENO: checking for shl_load" >&5
28010 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
28011 if test "${ac_cv_func_shl_load+set}" = set; then
28012 echo $ECHO_N "(cached) $ECHO_C" >&6
28014 cat >conftest.$ac_ext <<_ACEOF
28017 cat confdefs.h >>conftest.$ac_ext
28018 cat >>conftest.$ac_ext <<_ACEOF
28019 /* end confdefs.h. */
28020 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
28021 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28022 #define shl_load innocuous_shl_load
28024 /* System header to define __stub macros and hopefully few prototypes,
28025 which can conflict with char shl_load (); below.
28026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28027 <limits.h> exists even on freestanding compilers. */
28030 # include <limits.h>
28032 # include <assert.h>
28037 /* Override any GCC internal prototype to avoid an error.
28038 Use char because int might match the return type of a GCC
28039 builtin and then its argument prototype would still apply. */
28044 /* The GNU C library defines this for functions which it implements
28045 to always fail with ENOSYS. Some functions are actually named
28046 something starting with __ and the normal name is an alias. */
28047 #if defined __stub_shl_load || defined __stub___shl_load
28054 return shl_load ();
28059 rm -f conftest.$ac_objext conftest$ac_exeext
28060 if { (ac_try="$ac_link"
28061 case "(($ac_try" in
28062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28063 *) ac_try_echo=$ac_try;;
28065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28066 (eval "$ac_link") 2>conftest.er1
28068 grep -v '^ *+' conftest.er1 >conftest.err
28070 cat conftest.err >&5
28071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28072 (exit $ac_status); } && {
28073 test -z "$ac_c_werror_flag" ||
28074 test ! -s conftest.err
28075 } && test -s conftest$ac_exeext &&
28076 $as_test_x conftest$ac_exeext; then
28077 ac_cv_func_shl_load=yes
28079 echo "$as_me: failed program was:" >&5
28080 sed 's/^/| /' conftest.$ac_ext >&5
28082 ac_cv_func_shl_load=no
28085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28086 conftest$ac_exeext conftest.$ac_ext
28088 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
28089 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
28090 if test $ac_cv_func_shl_load = yes; then
28092 cat >>confdefs.h <<\_ACEOF
28093 #define HAVE_SHL_LOAD 1
28097 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
28098 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
28099 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
28100 echo $ECHO_N "(cached) $ECHO_C" >&6
28102 ac_check_lib_save_LIBS=$LIBS
28104 cat >conftest.$ac_ext <<_ACEOF
28107 cat confdefs.h >>conftest.$ac_ext
28108 cat >>conftest.$ac_ext <<_ACEOF
28109 /* end confdefs.h. */
28111 /* Override any GCC internal prototype to avoid an error.
28112 Use char because int might match the return type of a GCC
28113 builtin and then its argument prototype would still apply. */
28121 return shl_load ();
28126 rm -f conftest.$ac_objext conftest$ac_exeext
28127 if { (ac_try="$ac_link"
28128 case "(($ac_try" in
28129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28130 *) ac_try_echo=$ac_try;;
28132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28133 (eval "$ac_link") 2>conftest.er1
28135 grep -v '^ *+' conftest.er1 >conftest.err
28137 cat conftest.err >&5
28138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28139 (exit $ac_status); } && {
28140 test -z "$ac_c_werror_flag" ||
28141 test ! -s conftest.err
28142 } && test -s conftest$ac_exeext &&
28143 $as_test_x conftest$ac_exeext; then
28144 ac_cv_lib_dld_shl_load=yes
28146 echo "$as_me: failed program was:" >&5
28147 sed 's/^/| /' conftest.$ac_ext >&5
28149 ac_cv_lib_dld_shl_load=no
28152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28153 conftest$ac_exeext conftest.$ac_ext
28154 LIBS=$ac_check_lib_save_LIBS
28156 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
28157 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
28158 if test $ac_cv_lib_dld_shl_load = yes; then
28160 cat >>confdefs.h <<\_ACEOF
28161 #define HAVE_SHL_LOAD 1
28164 LIBADD_DL="$LIBADD_DL -ldld"
28166 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
28167 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
28168 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
28169 echo $ECHO_N "(cached) $ECHO_C" >&6
28171 ac_check_lib_save_LIBS=$LIBS
28173 cat >conftest.$ac_ext <<_ACEOF
28176 cat confdefs.h >>conftest.$ac_ext
28177 cat >>conftest.$ac_ext <<_ACEOF
28178 /* end confdefs.h. */
28180 /* Override any GCC internal prototype to avoid an error.
28181 Use char because int might match the return type of a GCC
28182 builtin and then its argument prototype would still apply. */
28195 rm -f conftest.$ac_objext conftest$ac_exeext
28196 if { (ac_try="$ac_link"
28197 case "(($ac_try" in
28198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28199 *) ac_try_echo=$ac_try;;
28201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28202 (eval "$ac_link") 2>conftest.er1
28204 grep -v '^ *+' conftest.er1 >conftest.err
28206 cat conftest.err >&5
28207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28208 (exit $ac_status); } && {
28209 test -z "$ac_c_werror_flag" ||
28210 test ! -s conftest.err
28211 } && test -s conftest$ac_exeext &&
28212 $as_test_x conftest$ac_exeext; then
28213 ac_cv_lib_dl_dlopen=yes
28215 echo "$as_me: failed program was:" >&5
28216 sed 's/^/| /' conftest.$ac_ext >&5
28218 ac_cv_lib_dl_dlopen=no
28221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28222 conftest$ac_exeext conftest.$ac_ext
28223 LIBS=$ac_check_lib_save_LIBS
28225 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
28226 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
28227 if test $ac_cv_lib_dl_dlopen = yes; then
28229 cat >>confdefs.h <<\_ACEOF
28230 #define HAVE_LIBDL 1
28233 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
28235 cat >conftest.$ac_ext <<_ACEOF
28238 cat confdefs.h >>conftest.$ac_ext
28239 cat >>conftest.$ac_ext <<_ACEOF
28240 /* end confdefs.h. */
28242 # include <dlfcn.h>
28253 rm -f conftest.$ac_objext conftest$ac_exeext
28254 if { (ac_try="$ac_link"
28255 case "(($ac_try" in
28256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28257 *) ac_try_echo=$ac_try;;
28259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28260 (eval "$ac_link") 2>conftest.er1
28262 grep -v '^ *+' conftest.er1 >conftest.err
28264 cat conftest.err >&5
28265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28266 (exit $ac_status); } && {
28267 test -z "$ac_c_werror_flag" ||
28268 test ! -s conftest.err
28269 } && test -s conftest$ac_exeext &&
28270 $as_test_x conftest$ac_exeext; then
28272 cat >>confdefs.h <<\_ACEOF
28273 #define HAVE_LIBDL 1
28275 libltdl_cv_func_dlopen="yes"
28277 echo "$as_me: failed program was:" >&5
28278 sed 's/^/| /' conftest.$ac_ext >&5
28280 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
28281 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
28282 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
28283 echo $ECHO_N "(cached) $ECHO_C" >&6
28285 ac_check_lib_save_LIBS=$LIBS
28286 LIBS="-lsvld $LIBS"
28287 cat >conftest.$ac_ext <<_ACEOF
28290 cat confdefs.h >>conftest.$ac_ext
28291 cat >>conftest.$ac_ext <<_ACEOF
28292 /* end confdefs.h. */
28294 /* Override any GCC internal prototype to avoid an error.
28295 Use char because int might match the return type of a GCC
28296 builtin and then its argument prototype would still apply. */
28309 rm -f conftest.$ac_objext conftest$ac_exeext
28310 if { (ac_try="$ac_link"
28311 case "(($ac_try" in
28312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28313 *) ac_try_echo=$ac_try;;
28315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28316 (eval "$ac_link") 2>conftest.er1
28318 grep -v '^ *+' conftest.er1 >conftest.err
28320 cat conftest.err >&5
28321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28322 (exit $ac_status); } && {
28323 test -z "$ac_c_werror_flag" ||
28324 test ! -s conftest.err
28325 } && test -s conftest$ac_exeext &&
28326 $as_test_x conftest$ac_exeext; then
28327 ac_cv_lib_svld_dlopen=yes
28329 echo "$as_me: failed program was:" >&5
28330 sed 's/^/| /' conftest.$ac_ext >&5
28332 ac_cv_lib_svld_dlopen=no
28335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28336 conftest$ac_exeext conftest.$ac_ext
28337 LIBS=$ac_check_lib_save_LIBS
28339 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
28340 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
28341 if test $ac_cv_lib_svld_dlopen = yes; then
28343 cat >>confdefs.h <<\_ACEOF
28344 #define HAVE_LIBDL 1
28347 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
28349 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
28350 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
28351 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
28352 echo $ECHO_N "(cached) $ECHO_C" >&6
28354 ac_check_lib_save_LIBS=$LIBS
28356 cat >conftest.$ac_ext <<_ACEOF
28359 cat confdefs.h >>conftest.$ac_ext
28360 cat >>conftest.$ac_ext <<_ACEOF
28361 /* end confdefs.h. */
28363 /* Override any GCC internal prototype to avoid an error.
28364 Use char because int might match the return type of a GCC
28365 builtin and then its argument prototype would still apply. */
28373 return dld_link ();
28378 rm -f conftest.$ac_objext conftest$ac_exeext
28379 if { (ac_try="$ac_link"
28380 case "(($ac_try" in
28381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28382 *) ac_try_echo=$ac_try;;
28384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28385 (eval "$ac_link") 2>conftest.er1
28387 grep -v '^ *+' conftest.er1 >conftest.err
28389 cat conftest.err >&5
28390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28391 (exit $ac_status); } && {
28392 test -z "$ac_c_werror_flag" ||
28393 test ! -s conftest.err
28394 } && test -s conftest$ac_exeext &&
28395 $as_test_x conftest$ac_exeext; then
28396 ac_cv_lib_dld_dld_link=yes
28398 echo "$as_me: failed program was:" >&5
28399 sed 's/^/| /' conftest.$ac_ext >&5
28401 ac_cv_lib_dld_dld_link=no
28404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28405 conftest$ac_exeext conftest.$ac_ext
28406 LIBS=$ac_check_lib_save_LIBS
28408 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
28409 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
28410 if test $ac_cv_lib_dld_dld_link = yes; then
28412 cat >>confdefs.h <<\_ACEOF
28416 LIBADD_DL="$LIBADD_DL -ldld"
28418 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
28419 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
28420 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
28421 echo $ECHO_N "(cached) $ECHO_C" >&6
28423 cat >conftest.$ac_ext <<_ACEOF
28426 cat confdefs.h >>conftest.$ac_ext
28427 cat >>conftest.$ac_ext <<_ACEOF
28428 /* end confdefs.h. */
28429 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
28430 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28431 #define _dyld_func_lookup innocuous__dyld_func_lookup
28433 /* System header to define __stub macros and hopefully few prototypes,
28434 which can conflict with char _dyld_func_lookup (); below.
28435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28436 <limits.h> exists even on freestanding compilers. */
28439 # include <limits.h>
28441 # include <assert.h>
28444 #undef _dyld_func_lookup
28446 /* Override any GCC internal prototype to avoid an error.
28447 Use char because int might match the return type of a GCC
28448 builtin and then its argument prototype would still apply. */
28452 char _dyld_func_lookup ();
28453 /* The GNU C library defines this for functions which it implements
28454 to always fail with ENOSYS. Some functions are actually named
28455 something starting with __ and the normal name is an alias. */
28456 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
28463 return _dyld_func_lookup ();
28468 rm -f conftest.$ac_objext conftest$ac_exeext
28469 if { (ac_try="$ac_link"
28470 case "(($ac_try" in
28471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28472 *) ac_try_echo=$ac_try;;
28474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28475 (eval "$ac_link") 2>conftest.er1
28477 grep -v '^ *+' conftest.er1 >conftest.err
28479 cat conftest.err >&5
28480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28481 (exit $ac_status); } && {
28482 test -z "$ac_c_werror_flag" ||
28483 test ! -s conftest.err
28484 } && test -s conftest$ac_exeext &&
28485 $as_test_x conftest$ac_exeext; then
28486 ac_cv_func__dyld_func_lookup=yes
28488 echo "$as_me: failed program was:" >&5
28489 sed 's/^/| /' conftest.$ac_ext >&5
28491 ac_cv_func__dyld_func_lookup=no
28494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28495 conftest$ac_exeext conftest.$ac_ext
28497 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
28498 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
28499 if test $ac_cv_func__dyld_func_lookup = yes; then
28501 cat >>confdefs.h <<\_ACEOF
28502 #define HAVE_DYLD 1
28516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28517 conftest$ac_exeext conftest.$ac_ext
28528 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
28530 lt_save_LIBS="$LIBS"
28531 LIBS="$LIBS $LIBADD_DL"
28533 for ac_func in dlerror
28535 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28536 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28537 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28538 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28539 echo $ECHO_N "(cached) $ECHO_C" >&6
28541 cat >conftest.$ac_ext <<_ACEOF
28544 cat confdefs.h >>conftest.$ac_ext
28545 cat >>conftest.$ac_ext <<_ACEOF
28546 /* end confdefs.h. */
28547 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28548 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28549 #define $ac_func innocuous_$ac_func
28551 /* System header to define __stub macros and hopefully few prototypes,
28552 which can conflict with char $ac_func (); below.
28553 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28554 <limits.h> exists even on freestanding compilers. */
28557 # include <limits.h>
28559 # include <assert.h>
28564 /* Override any GCC internal prototype to avoid an error.
28565 Use char because int might match the return type of a GCC
28566 builtin and then its argument prototype would still apply. */
28571 /* The GNU C library defines this for functions which it implements
28572 to always fail with ENOSYS. Some functions are actually named
28573 something starting with __ and the normal name is an alias. */
28574 #if defined __stub_$ac_func || defined __stub___$ac_func
28581 return $ac_func ();
28586 rm -f conftest.$ac_objext conftest$ac_exeext
28587 if { (ac_try="$ac_link"
28588 case "(($ac_try" in
28589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28590 *) ac_try_echo=$ac_try;;
28592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28593 (eval "$ac_link") 2>conftest.er1
28595 grep -v '^ *+' conftest.er1 >conftest.err
28597 cat conftest.err >&5
28598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28599 (exit $ac_status); } && {
28600 test -z "$ac_c_werror_flag" ||
28601 test ! -s conftest.err
28602 } && test -s conftest$ac_exeext &&
28603 $as_test_x conftest$ac_exeext; then
28604 eval "$as_ac_var=yes"
28606 echo "$as_me: failed program was:" >&5
28607 sed 's/^/| /' conftest.$ac_ext >&5
28609 eval "$as_ac_var=no"
28612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28613 conftest$ac_exeext conftest.$ac_ext
28615 ac_res=`eval echo '${'$as_ac_var'}'`
28616 { echo "$as_me:$LINENO: result: $ac_res" >&5
28617 echo "${ECHO_T}$ac_res" >&6; }
28618 if test `eval echo '${'$as_ac_var'}'` = yes; then
28619 cat >>confdefs.h <<_ACEOF
28620 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28626 LIBS="$lt_save_LIBS"
28629 ac_cpp='$CPP $CPPFLAGS'
28630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28636 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
28637 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
28638 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
28639 echo $ECHO_N "(cached) $ECHO_C" >&6
28641 ac_cv_sys_symbol_underscore=no
28642 cat > conftest.$ac_ext <<EOF
28643 void nm_test_func(){}
28644 int main(){nm_test_func;return 0;}
28646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28647 (eval $ac_compile) 2>&5
28649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28650 (exit $ac_status); }; then
28651 # Now try to grab the symbols.
28652 ac_nlist=conftest.nm
28653 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
28654 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
28656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28657 (exit $ac_status); } && test -s "$ac_nlist"; then
28658 # See whether the symbols have a leading underscore.
28659 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
28660 ac_cv_sys_symbol_underscore=yes
28662 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
28665 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
28669 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
28672 echo "configure: failed program was:" >&5
28678 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
28679 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
28682 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
28683 if test x"$libltdl_cv_func_dlopen" = xyes ||
28684 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
28685 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
28686 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
28687 if test "${libltdl_cv_need_uscore+set}" = set; then
28688 echo $ECHO_N "(cached) $ECHO_C" >&6
28690 libltdl_cv_need_uscore=unknown
28692 LIBS="$LIBS $LIBADD_DL"
28693 if test "$cross_compiling" = yes; then :
28694 libltdl_cv_need_uscore=cross
28696 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
28697 lt_status=$lt_dlunknown
28698 cat > conftest.$ac_ext <<EOF
28699 #line 28699 "configure"
28700 #include "confdefs.h"
28709 # define LT_DLGLOBAL RTLD_GLOBAL
28712 # define LT_DLGLOBAL DL_GLOBAL
28714 # define LT_DLGLOBAL 0
28718 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
28719 find out it does not work in some platform. */
28720 #ifndef LT_DLLAZY_OR_NOW
28722 # define LT_DLLAZY_OR_NOW RTLD_LAZY
28725 # define LT_DLLAZY_OR_NOW DL_LAZY
28728 # define LT_DLLAZY_OR_NOW RTLD_NOW
28731 # define LT_DLLAZY_OR_NOW DL_NOW
28733 # define LT_DLLAZY_OR_NOW 0
28741 extern "C" void exit (int);
28744 void fnord() { int i=42;}
28747 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
28748 int status = $lt_dlunknown;
28752 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
28753 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
28754 /* dlclose (self); */
28762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28763 (eval $ac_link) 2>&5
28765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28766 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
28767 (./conftest; exit; ) >&5 2>/dev/null
28769 case x$lt_status in
28770 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
28771 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
28772 x$lt_dlunknown|x*) ;;
28775 # compilation failed
28784 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
28785 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
28789 if test x"$libltdl_cv_need_uscore" = xyes; then
28791 cat >>confdefs.h <<\_ACEOF
28792 #define NEED_USCORE 1
28798 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
28799 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
28800 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
28801 echo $ECHO_N "(cached) $ECHO_C" >&6
28803 # PORTME does your system automatically load deplibs for dlopen?
28804 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
28805 # For now, we just catch OSes we know something about -- in the
28806 # future, we'll try test this programmatically.
28807 libltdl_cv_sys_dlopen_deplibs=unknown
28809 aix3*|aix4.1.*|aix4.2.*)
28810 # Unknown whether this is true for these versions of AIX, but
28811 # we want this `case' here to explicitly catch those versions.
28812 libltdl_cv_sys_dlopen_deplibs=unknown
28815 libltdl_cv_sys_dlopen_deplibs=yes
28818 # Assuming the user has installed a libdl from somewhere, this is true
28819 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
28820 libltdl_cv_sys_dlopen_deplibs=yes
28822 gnu* | linux* | k*bsd*-gnu)
28823 # GNU and its variants, using gnu ld.so (Glibc)
28824 libltdl_cv_sys_dlopen_deplibs=yes
28827 libltdl_cv_sys_dlopen_deplibs=yes
28830 libltdl_cv_sys_dlopen_deplibs=yes
28832 irix[12345]*|irix6.[01]*)
28833 # Catch all versions of IRIX before 6.2, and indicate that we don't
28834 # know how it worked for any of those versions.
28835 libltdl_cv_sys_dlopen_deplibs=unknown
28838 # The case above catches anything before 6.2, and it's known that
28839 # at 6.2 and later dlopen does load deplibs.
28840 libltdl_cv_sys_dlopen_deplibs=yes
28842 netbsd* | netbsdelf*-gnu)
28843 libltdl_cv_sys_dlopen_deplibs=yes
28846 libltdl_cv_sys_dlopen_deplibs=yes
28849 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
28850 # it did *not* use an RPATH in a shared library to find objects the
28851 # library depends on, so we explictly say `no'.
28852 libltdl_cv_sys_dlopen_deplibs=no
28854 osf5.0|osf5.0a|osf5.1)
28855 # dlopen *does* load deplibs and with the right loader patch applied
28856 # it even uses RPATH in a shared library to search for shared objects
28857 # that the library depends on, but there's no easy way to know if that
28858 # patch is installed. Since this is the case, all we can really
28859 # say is unknown -- it depends on the patch being installed. If
28860 # it is, this changes to `yes'. Without it, it would be `no'.
28861 libltdl_cv_sys_dlopen_deplibs=unknown
28864 # the two cases above should catch all versions of osf <= 5.1. Read
28865 # the comments above for what we know about them.
28866 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
28867 # is used to find them so we can finally say `yes'.
28868 libltdl_cv_sys_dlopen_deplibs=yes
28871 libltdl_cv_sys_dlopen_deplibs=yes
28873 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
28874 libltdl_cv_sys_dlopen_deplibs=yes
28879 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
28880 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
28881 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
28883 cat >>confdefs.h <<\_ACEOF
28884 #define LTDL_DLOPEN_DEPLIBS 1
28890 for ac_header in argz.h
28892 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28893 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28894 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28897 echo $ECHO_N "(cached) $ECHO_C" >&6
28899 ac_res=`eval echo '${'$as_ac_Header'}'`
28900 { echo "$as_me:$LINENO: result: $ac_res" >&5
28901 echo "${ECHO_T}$ac_res" >&6; }
28903 # Is the header compilable?
28904 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28905 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28906 cat >conftest.$ac_ext <<_ACEOF
28909 cat confdefs.h >>conftest.$ac_ext
28910 cat >>conftest.$ac_ext <<_ACEOF
28911 /* end confdefs.h. */
28912 $ac_includes_default
28913 #include <$ac_header>
28915 rm -f conftest.$ac_objext
28916 if { (ac_try="$ac_compile"
28917 case "(($ac_try" in
28918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28919 *) ac_try_echo=$ac_try;;
28921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28922 (eval "$ac_compile") 2>conftest.er1
28924 grep -v '^ *+' conftest.er1 >conftest.err
28926 cat conftest.err >&5
28927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28928 (exit $ac_status); } && {
28929 test -z "$ac_c_werror_flag" ||
28930 test ! -s conftest.err
28931 } && test -s conftest.$ac_objext; then
28932 ac_header_compiler=yes
28934 echo "$as_me: failed program was:" >&5
28935 sed 's/^/| /' conftest.$ac_ext >&5
28937 ac_header_compiler=no
28940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28941 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28942 echo "${ECHO_T}$ac_header_compiler" >&6; }
28944 # Is the header present?
28945 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28946 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28947 cat >conftest.$ac_ext <<_ACEOF
28950 cat confdefs.h >>conftest.$ac_ext
28951 cat >>conftest.$ac_ext <<_ACEOF
28952 /* end confdefs.h. */
28953 #include <$ac_header>
28955 if { (ac_try="$ac_cpp conftest.$ac_ext"
28956 case "(($ac_try" in
28957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28958 *) ac_try_echo=$ac_try;;
28960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28963 grep -v '^ *+' conftest.er1 >conftest.err
28965 cat conftest.err >&5
28966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28967 (exit $ac_status); } >/dev/null && {
28968 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28969 test ! -s conftest.err
28971 ac_header_preproc=yes
28973 echo "$as_me: failed program was:" >&5
28974 sed 's/^/| /' conftest.$ac_ext >&5
28976 ac_header_preproc=no
28979 rm -f conftest.err conftest.$ac_ext
28980 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28981 echo "${ECHO_T}$ac_header_preproc" >&6; }
28983 # So? What about this header?
28984 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28986 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28987 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28989 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28990 ac_header_preproc=yes
28993 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28994 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28995 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28996 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28997 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28998 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28999 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29000 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29002 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29003 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29004 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29006 ## -------------------------------------- ##
29007 ## Report this to choe.hwanjing@gmail.com ##
29008 ## -------------------------------------- ##
29010 ) | sed "s/^/$as_me: WARNING: /" >&2
29013 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29016 echo $ECHO_N "(cached) $ECHO_C" >&6
29018 eval "$as_ac_Header=\$ac_header_preproc"
29020 ac_res=`eval echo '${'$as_ac_Header'}'`
29021 { echo "$as_me:$LINENO: result: $ac_res" >&5
29022 echo "${ECHO_T}$ac_res" >&6; }
29025 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29026 cat >>confdefs.h <<_ACEOF
29027 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29035 { echo "$as_me:$LINENO: checking for error_t" >&5
29036 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
29037 if test "${ac_cv_type_error_t+set}" = set; then
29038 echo $ECHO_N "(cached) $ECHO_C" >&6
29040 cat >conftest.$ac_ext <<_ACEOF
29043 cat confdefs.h >>conftest.$ac_ext
29044 cat >>conftest.$ac_ext <<_ACEOF
29045 /* end confdefs.h. */
29050 typedef error_t ac__type_new_;
29054 if ((ac__type_new_ *) 0)
29056 if (sizeof (ac__type_new_))
29062 rm -f conftest.$ac_objext
29063 if { (ac_try="$ac_compile"
29064 case "(($ac_try" in
29065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29066 *) ac_try_echo=$ac_try;;
29068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29069 (eval "$ac_compile") 2>conftest.er1
29071 grep -v '^ *+' conftest.er1 >conftest.err
29073 cat conftest.err >&5
29074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29075 (exit $ac_status); } && {
29076 test -z "$ac_c_werror_flag" ||
29077 test ! -s conftest.err
29078 } && test -s conftest.$ac_objext; then
29079 ac_cv_type_error_t=yes
29081 echo "$as_me: failed program was:" >&5
29082 sed 's/^/| /' conftest.$ac_ext >&5
29084 ac_cv_type_error_t=no
29087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29089 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
29090 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
29091 if test $ac_cv_type_error_t = yes; then
29093 cat >>confdefs.h <<_ACEOF
29094 #define HAVE_ERROR_T 1
29100 cat >>confdefs.h <<\_ACEOF
29101 #define error_t int
29112 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
29114 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29115 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29116 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29117 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29118 echo $ECHO_N "(cached) $ECHO_C" >&6
29120 cat >conftest.$ac_ext <<_ACEOF
29123 cat confdefs.h >>conftest.$ac_ext
29124 cat >>conftest.$ac_ext <<_ACEOF
29125 /* end confdefs.h. */
29126 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29127 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29128 #define $ac_func innocuous_$ac_func
29130 /* System header to define __stub macros and hopefully few prototypes,
29131 which can conflict with char $ac_func (); below.
29132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29133 <limits.h> exists even on freestanding compilers. */
29136 # include <limits.h>
29138 # include <assert.h>
29143 /* Override any GCC internal prototype to avoid an error.
29144 Use char because int might match the return type of a GCC
29145 builtin and then its argument prototype would still apply. */
29150 /* The GNU C library defines this for functions which it implements
29151 to always fail with ENOSYS. Some functions are actually named
29152 something starting with __ and the normal name is an alias. */
29153 #if defined __stub_$ac_func || defined __stub___$ac_func
29160 return $ac_func ();
29165 rm -f conftest.$ac_objext conftest$ac_exeext
29166 if { (ac_try="$ac_link"
29167 case "(($ac_try" in
29168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29169 *) ac_try_echo=$ac_try;;
29171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29172 (eval "$ac_link") 2>conftest.er1
29174 grep -v '^ *+' conftest.er1 >conftest.err
29176 cat conftest.err >&5
29177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29178 (exit $ac_status); } && {
29179 test -z "$ac_c_werror_flag" ||
29180 test ! -s conftest.err
29181 } && test -s conftest$ac_exeext &&
29182 $as_test_x conftest$ac_exeext; then
29183 eval "$as_ac_var=yes"
29185 echo "$as_me: failed program was:" >&5
29186 sed 's/^/| /' conftest.$ac_ext >&5
29188 eval "$as_ac_var=no"
29191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29192 conftest$ac_exeext conftest.$ac_ext
29194 ac_res=`eval echo '${'$as_ac_var'}'`
29195 { echo "$as_me:$LINENO: result: $ac_res" >&5
29196 echo "${ECHO_T}$ac_res" >&6; }
29197 if test `eval echo '${'$as_ac_var'}'` = yes; then
29198 cat >>confdefs.h <<_ACEOF
29199 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29232 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
29235 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29237 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29240 echo $ECHO_N "(cached) $ECHO_C" >&6
29242 ac_res=`eval echo '${'$as_ac_Header'}'`
29243 { echo "$as_me:$LINENO: result: $ac_res" >&5
29244 echo "${ECHO_T}$ac_res" >&6; }
29246 # Is the header compilable?
29247 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29248 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29249 cat >conftest.$ac_ext <<_ACEOF
29252 cat confdefs.h >>conftest.$ac_ext
29253 cat >>conftest.$ac_ext <<_ACEOF
29254 /* end confdefs.h. */
29255 $ac_includes_default
29256 #include <$ac_header>
29258 rm -f conftest.$ac_objext
29259 if { (ac_try="$ac_compile"
29260 case "(($ac_try" in
29261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29262 *) ac_try_echo=$ac_try;;
29264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29265 (eval "$ac_compile") 2>conftest.er1
29267 grep -v '^ *+' conftest.er1 >conftest.err
29269 cat conftest.err >&5
29270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29271 (exit $ac_status); } && {
29272 test -z "$ac_c_werror_flag" ||
29273 test ! -s conftest.err
29274 } && test -s conftest.$ac_objext; then
29275 ac_header_compiler=yes
29277 echo "$as_me: failed program was:" >&5
29278 sed 's/^/| /' conftest.$ac_ext >&5
29280 ac_header_compiler=no
29283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29284 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29285 echo "${ECHO_T}$ac_header_compiler" >&6; }
29287 # Is the header present?
29288 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29289 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29290 cat >conftest.$ac_ext <<_ACEOF
29293 cat confdefs.h >>conftest.$ac_ext
29294 cat >>conftest.$ac_ext <<_ACEOF
29295 /* end confdefs.h. */
29296 #include <$ac_header>
29298 if { (ac_try="$ac_cpp conftest.$ac_ext"
29299 case "(($ac_try" in
29300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29301 *) ac_try_echo=$ac_try;;
29303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29304 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29306 grep -v '^ *+' conftest.er1 >conftest.err
29308 cat conftest.err >&5
29309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29310 (exit $ac_status); } >/dev/null && {
29311 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29312 test ! -s conftest.err
29314 ac_header_preproc=yes
29316 echo "$as_me: failed program was:" >&5
29317 sed 's/^/| /' conftest.$ac_ext >&5
29319 ac_header_preproc=no
29322 rm -f conftest.err conftest.$ac_ext
29323 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29324 echo "${ECHO_T}$ac_header_preproc" >&6; }
29326 # So? What about this header?
29327 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29329 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29330 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29332 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29333 ac_header_preproc=yes
29336 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29337 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29338 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29339 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29340 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29341 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29342 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29343 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29345 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29346 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29347 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29349 ## -------------------------------------- ##
29350 ## Report this to choe.hwanjing@gmail.com ##
29351 ## -------------------------------------- ##
29353 ) | sed "s/^/$as_me: WARNING: /" >&2
29356 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29359 echo $ECHO_N "(cached) $ECHO_C" >&6
29361 eval "$as_ac_Header=\$ac_header_preproc"
29363 ac_res=`eval echo '${'$as_ac_Header'}'`
29364 { echo "$as_me:$LINENO: result: $ac_res" >&5
29365 echo "${ECHO_T}$ac_res" >&6; }
29368 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29369 cat >>confdefs.h <<_ACEOF
29370 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29381 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
29383 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29385 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29388 echo $ECHO_N "(cached) $ECHO_C" >&6
29390 ac_res=`eval echo '${'$as_ac_Header'}'`
29391 { echo "$as_me:$LINENO: result: $ac_res" >&5
29392 echo "${ECHO_T}$ac_res" >&6; }
29394 # Is the header compilable?
29395 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29396 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29397 cat >conftest.$ac_ext <<_ACEOF
29400 cat confdefs.h >>conftest.$ac_ext
29401 cat >>conftest.$ac_ext <<_ACEOF
29402 /* end confdefs.h. */
29403 $ac_includes_default
29404 #include <$ac_header>
29406 rm -f conftest.$ac_objext
29407 if { (ac_try="$ac_compile"
29408 case "(($ac_try" in
29409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29410 *) ac_try_echo=$ac_try;;
29412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29413 (eval "$ac_compile") 2>conftest.er1
29415 grep -v '^ *+' conftest.er1 >conftest.err
29417 cat conftest.err >&5
29418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29419 (exit $ac_status); } && {
29420 test -z "$ac_c_werror_flag" ||
29421 test ! -s conftest.err
29422 } && test -s conftest.$ac_objext; then
29423 ac_header_compiler=yes
29425 echo "$as_me: failed program was:" >&5
29426 sed 's/^/| /' conftest.$ac_ext >&5
29428 ac_header_compiler=no
29431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29432 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29433 echo "${ECHO_T}$ac_header_compiler" >&6; }
29435 # Is the header present?
29436 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29437 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29438 cat >conftest.$ac_ext <<_ACEOF
29441 cat confdefs.h >>conftest.$ac_ext
29442 cat >>conftest.$ac_ext <<_ACEOF
29443 /* end confdefs.h. */
29444 #include <$ac_header>
29446 if { (ac_try="$ac_cpp conftest.$ac_ext"
29447 case "(($ac_try" in
29448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29449 *) ac_try_echo=$ac_try;;
29451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29452 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29454 grep -v '^ *+' conftest.er1 >conftest.err
29456 cat conftest.err >&5
29457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29458 (exit $ac_status); } >/dev/null && {
29459 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29460 test ! -s conftest.err
29462 ac_header_preproc=yes
29464 echo "$as_me: failed program was:" >&5
29465 sed 's/^/| /' conftest.$ac_ext >&5
29467 ac_header_preproc=no
29470 rm -f conftest.err conftest.$ac_ext
29471 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29472 echo "${ECHO_T}$ac_header_preproc" >&6; }
29474 # So? What about this header?
29475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29477 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29478 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29480 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29481 ac_header_preproc=yes
29484 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29485 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29486 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29487 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29488 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29489 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29490 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29491 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29493 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29494 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29495 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29497 ## -------------------------------------- ##
29498 ## Report this to choe.hwanjing@gmail.com ##
29499 ## -------------------------------------- ##
29501 ) | sed "s/^/$as_me: WARNING: /" >&2
29504 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29507 echo $ECHO_N "(cached) $ECHO_C" >&6
29509 eval "$as_ac_Header=\$ac_header_preproc"
29511 ac_res=`eval echo '${'$as_ac_Header'}'`
29512 { echo "$as_me:$LINENO: result: $ac_res" >&5
29513 echo "${ECHO_T}$ac_res" >&6; }
29516 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29517 cat >>confdefs.h <<_ACEOF
29518 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29527 for ac_header in string.h strings.h
29529 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29531 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29534 echo $ECHO_N "(cached) $ECHO_C" >&6
29536 ac_res=`eval echo '${'$as_ac_Header'}'`
29537 { echo "$as_me:$LINENO: result: $ac_res" >&5
29538 echo "${ECHO_T}$ac_res" >&6; }
29540 # Is the header compilable?
29541 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29542 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29543 cat >conftest.$ac_ext <<_ACEOF
29546 cat confdefs.h >>conftest.$ac_ext
29547 cat >>conftest.$ac_ext <<_ACEOF
29548 /* end confdefs.h. */
29549 $ac_includes_default
29550 #include <$ac_header>
29552 rm -f conftest.$ac_objext
29553 if { (ac_try="$ac_compile"
29554 case "(($ac_try" in
29555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29556 *) ac_try_echo=$ac_try;;
29558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29559 (eval "$ac_compile") 2>conftest.er1
29561 grep -v '^ *+' conftest.er1 >conftest.err
29563 cat conftest.err >&5
29564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29565 (exit $ac_status); } && {
29566 test -z "$ac_c_werror_flag" ||
29567 test ! -s conftest.err
29568 } && test -s conftest.$ac_objext; then
29569 ac_header_compiler=yes
29571 echo "$as_me: failed program was:" >&5
29572 sed 's/^/| /' conftest.$ac_ext >&5
29574 ac_header_compiler=no
29577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29578 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29579 echo "${ECHO_T}$ac_header_compiler" >&6; }
29581 # Is the header present?
29582 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29583 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29584 cat >conftest.$ac_ext <<_ACEOF
29587 cat confdefs.h >>conftest.$ac_ext
29588 cat >>conftest.$ac_ext <<_ACEOF
29589 /* end confdefs.h. */
29590 #include <$ac_header>
29592 if { (ac_try="$ac_cpp conftest.$ac_ext"
29593 case "(($ac_try" in
29594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29595 *) ac_try_echo=$ac_try;;
29597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29598 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29600 grep -v '^ *+' conftest.er1 >conftest.err
29602 cat conftest.err >&5
29603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29604 (exit $ac_status); } >/dev/null && {
29605 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29606 test ! -s conftest.err
29608 ac_header_preproc=yes
29610 echo "$as_me: failed program was:" >&5
29611 sed 's/^/| /' conftest.$ac_ext >&5
29613 ac_header_preproc=no
29616 rm -f conftest.err conftest.$ac_ext
29617 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29618 echo "${ECHO_T}$ac_header_preproc" >&6; }
29620 # So? What about this header?
29621 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29623 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29624 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29625 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29626 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29627 ac_header_preproc=yes
29630 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29631 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29632 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29633 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29634 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29635 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29636 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29637 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29638 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29639 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29640 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29641 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29643 ## -------------------------------------- ##
29644 ## Report this to choe.hwanjing@gmail.com ##
29645 ## -------------------------------------- ##
29647 ) | sed "s/^/$as_me: WARNING: /" >&2
29650 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29653 echo $ECHO_N "(cached) $ECHO_C" >&6
29655 eval "$as_ac_Header=\$ac_header_preproc"
29657 ac_res=`eval echo '${'$as_ac_Header'}'`
29658 { echo "$as_me:$LINENO: result: $ac_res" >&5
29659 echo "${ECHO_T}$ac_res" >&6; }
29662 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29663 cat >>confdefs.h <<_ACEOF
29664 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29674 for ac_func in strchr index
29676 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29677 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29678 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29679 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29680 echo $ECHO_N "(cached) $ECHO_C" >&6
29682 cat >conftest.$ac_ext <<_ACEOF
29685 cat confdefs.h >>conftest.$ac_ext
29686 cat >>conftest.$ac_ext <<_ACEOF
29687 /* end confdefs.h. */
29688 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29690 #define $ac_func innocuous_$ac_func
29692 /* System header to define __stub macros and hopefully few prototypes,
29693 which can conflict with char $ac_func (); below.
29694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29695 <limits.h> exists even on freestanding compilers. */
29698 # include <limits.h>
29700 # include <assert.h>
29705 /* Override any GCC internal prototype to avoid an error.
29706 Use char because int might match the return type of a GCC
29707 builtin and then its argument prototype would still apply. */
29712 /* The GNU C library defines this for functions which it implements
29713 to always fail with ENOSYS. Some functions are actually named
29714 something starting with __ and the normal name is an alias. */
29715 #if defined __stub_$ac_func || defined __stub___$ac_func
29722 return $ac_func ();
29727 rm -f conftest.$ac_objext conftest$ac_exeext
29728 if { (ac_try="$ac_link"
29729 case "(($ac_try" in
29730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29731 *) ac_try_echo=$ac_try;;
29733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29734 (eval "$ac_link") 2>conftest.er1
29736 grep -v '^ *+' conftest.er1 >conftest.err
29738 cat conftest.err >&5
29739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29740 (exit $ac_status); } && {
29741 test -z "$ac_c_werror_flag" ||
29742 test ! -s conftest.err
29743 } && test -s conftest$ac_exeext &&
29744 $as_test_x conftest$ac_exeext; then
29745 eval "$as_ac_var=yes"
29747 echo "$as_me: failed program was:" >&5
29748 sed 's/^/| /' conftest.$ac_ext >&5
29750 eval "$as_ac_var=no"
29753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29754 conftest$ac_exeext conftest.$ac_ext
29756 ac_res=`eval echo '${'$as_ac_var'}'`
29757 { echo "$as_me:$LINENO: result: $ac_res" >&5
29758 echo "${ECHO_T}$ac_res" >&6; }
29759 if test `eval echo '${'$as_ac_var'}'` = yes; then
29760 cat >>confdefs.h <<_ACEOF
29761 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29769 for ac_func in strrchr rindex
29771 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29772 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29773 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29774 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29775 echo $ECHO_N "(cached) $ECHO_C" >&6
29777 cat >conftest.$ac_ext <<_ACEOF
29780 cat confdefs.h >>conftest.$ac_ext
29781 cat >>conftest.$ac_ext <<_ACEOF
29782 /* end confdefs.h. */
29783 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29785 #define $ac_func innocuous_$ac_func
29787 /* System header to define __stub macros and hopefully few prototypes,
29788 which can conflict with char $ac_func (); below.
29789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29790 <limits.h> exists even on freestanding compilers. */
29793 # include <limits.h>
29795 # include <assert.h>
29800 /* Override any GCC internal prototype to avoid an error.
29801 Use char because int might match the return type of a GCC
29802 builtin and then its argument prototype would still apply. */
29807 /* The GNU C library defines this for functions which it implements
29808 to always fail with ENOSYS. Some functions are actually named
29809 something starting with __ and the normal name is an alias. */
29810 #if defined __stub_$ac_func || defined __stub___$ac_func
29817 return $ac_func ();
29822 rm -f conftest.$ac_objext conftest$ac_exeext
29823 if { (ac_try="$ac_link"
29824 case "(($ac_try" in
29825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29826 *) ac_try_echo=$ac_try;;
29828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29829 (eval "$ac_link") 2>conftest.er1
29831 grep -v '^ *+' conftest.er1 >conftest.err
29833 cat conftest.err >&5
29834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29835 (exit $ac_status); } && {
29836 test -z "$ac_c_werror_flag" ||
29837 test ! -s conftest.err
29838 } && test -s conftest$ac_exeext &&
29839 $as_test_x conftest$ac_exeext; then
29840 eval "$as_ac_var=yes"
29842 echo "$as_me: failed program was:" >&5
29843 sed 's/^/| /' conftest.$ac_ext >&5
29845 eval "$as_ac_var=no"
29848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29849 conftest$ac_exeext conftest.$ac_ext
29851 ac_res=`eval echo '${'$as_ac_var'}'`
29852 { echo "$as_me:$LINENO: result: $ac_res" >&5
29853 echo "${ECHO_T}$ac_res" >&6; }
29854 if test `eval echo '${'$as_ac_var'}'` = yes; then
29855 cat >>confdefs.h <<_ACEOF
29856 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29864 for ac_func in memcpy bcopy
29866 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29867 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29868 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29869 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29870 echo $ECHO_N "(cached) $ECHO_C" >&6
29872 cat >conftest.$ac_ext <<_ACEOF
29875 cat confdefs.h >>conftest.$ac_ext
29876 cat >>conftest.$ac_ext <<_ACEOF
29877 /* end confdefs.h. */
29878 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29879 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29880 #define $ac_func innocuous_$ac_func
29882 /* System header to define __stub macros and hopefully few prototypes,
29883 which can conflict with char $ac_func (); below.
29884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29885 <limits.h> exists even on freestanding compilers. */
29888 # include <limits.h>
29890 # include <assert.h>
29895 /* Override any GCC internal prototype to avoid an error.
29896 Use char because int might match the return type of a GCC
29897 builtin and then its argument prototype would still apply. */
29902 /* The GNU C library defines this for functions which it implements
29903 to always fail with ENOSYS. Some functions are actually named
29904 something starting with __ and the normal name is an alias. */
29905 #if defined __stub_$ac_func || defined __stub___$ac_func
29912 return $ac_func ();
29917 rm -f conftest.$ac_objext conftest$ac_exeext
29918 if { (ac_try="$ac_link"
29919 case "(($ac_try" in
29920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29921 *) ac_try_echo=$ac_try;;
29923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29924 (eval "$ac_link") 2>conftest.er1
29926 grep -v '^ *+' conftest.er1 >conftest.err
29928 cat conftest.err >&5
29929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29930 (exit $ac_status); } && {
29931 test -z "$ac_c_werror_flag" ||
29932 test ! -s conftest.err
29933 } && test -s conftest$ac_exeext &&
29934 $as_test_x conftest$ac_exeext; then
29935 eval "$as_ac_var=yes"
29937 echo "$as_me: failed program was:" >&5
29938 sed 's/^/| /' conftest.$ac_ext >&5
29940 eval "$as_ac_var=no"
29943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29944 conftest$ac_exeext conftest.$ac_ext
29946 ac_res=`eval echo '${'$as_ac_var'}'`
29947 { echo "$as_me:$LINENO: result: $ac_res" >&5
29948 echo "${ECHO_T}$ac_res" >&6; }
29949 if test `eval echo '${'$as_ac_var'}'` = yes; then
29950 cat >>confdefs.h <<_ACEOF
29951 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29959 for ac_func in memmove strcmp
29961 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29962 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29963 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29964 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29965 echo $ECHO_N "(cached) $ECHO_C" >&6
29967 cat >conftest.$ac_ext <<_ACEOF
29970 cat confdefs.h >>conftest.$ac_ext
29971 cat >>conftest.$ac_ext <<_ACEOF
29972 /* end confdefs.h. */
29973 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29975 #define $ac_func innocuous_$ac_func
29977 /* System header to define __stub macros and hopefully few prototypes,
29978 which can conflict with char $ac_func (); below.
29979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29980 <limits.h> exists even on freestanding compilers. */
29983 # include <limits.h>
29985 # include <assert.h>
29990 /* Override any GCC internal prototype to avoid an error.
29991 Use char because int might match the return type of a GCC
29992 builtin and then its argument prototype would still apply. */
29997 /* The GNU C library defines this for functions which it implements
29998 to always fail with ENOSYS. Some functions are actually named
29999 something starting with __ and the normal name is an alias. */
30000 #if defined __stub_$ac_func || defined __stub___$ac_func
30007 return $ac_func ();
30012 rm -f conftest.$ac_objext conftest$ac_exeext
30013 if { (ac_try="$ac_link"
30014 case "(($ac_try" in
30015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30016 *) ac_try_echo=$ac_try;;
30018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30019 (eval "$ac_link") 2>conftest.er1
30021 grep -v '^ *+' conftest.er1 >conftest.err
30023 cat conftest.err >&5
30024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30025 (exit $ac_status); } && {
30026 test -z "$ac_c_werror_flag" ||
30027 test ! -s conftest.err
30028 } && test -s conftest$ac_exeext &&
30029 $as_test_x conftest$ac_exeext; then
30030 eval "$as_ac_var=yes"
30032 echo "$as_me: failed program was:" >&5
30033 sed 's/^/| /' conftest.$ac_ext >&5
30035 eval "$as_ac_var=no"
30038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30039 conftest$ac_exeext conftest.$ac_ext
30041 ac_res=`eval echo '${'$as_ac_var'}'`
30042 { echo "$as_me:$LINENO: result: $ac_res" >&5
30043 echo "${ECHO_T}$ac_res" >&6; }
30044 if test `eval echo '${'$as_ac_var'}'` = yes; then
30045 cat >>confdefs.h <<_ACEOF
30046 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30055 for ac_func in closedir opendir readdir
30057 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30058 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30059 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30060 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30061 echo $ECHO_N "(cached) $ECHO_C" >&6
30063 cat >conftest.$ac_ext <<_ACEOF
30066 cat confdefs.h >>conftest.$ac_ext
30067 cat >>conftest.$ac_ext <<_ACEOF
30068 /* end confdefs.h. */
30069 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30070 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30071 #define $ac_func innocuous_$ac_func
30073 /* System header to define __stub macros and hopefully few prototypes,
30074 which can conflict with char $ac_func (); below.
30075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30076 <limits.h> exists even on freestanding compilers. */
30079 # include <limits.h>
30081 # include <assert.h>
30086 /* Override any GCC internal prototype to avoid an error.
30087 Use char because int might match the return type of a GCC
30088 builtin and then its argument prototype would still apply. */
30093 /* The GNU C library defines this for functions which it implements
30094 to always fail with ENOSYS. Some functions are actually named
30095 something starting with __ and the normal name is an alias. */
30096 #if defined __stub_$ac_func || defined __stub___$ac_func
30103 return $ac_func ();
30108 rm -f conftest.$ac_objext conftest$ac_exeext
30109 if { (ac_try="$ac_link"
30110 case "(($ac_try" in
30111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30112 *) ac_try_echo=$ac_try;;
30114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30115 (eval "$ac_link") 2>conftest.er1
30117 grep -v '^ *+' conftest.er1 >conftest.err
30119 cat conftest.err >&5
30120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30121 (exit $ac_status); } && {
30122 test -z "$ac_c_werror_flag" ||
30123 test ! -s conftest.err
30124 } && test -s conftest$ac_exeext &&
30125 $as_test_x conftest$ac_exeext; then
30126 eval "$as_ac_var=yes"
30128 echo "$as_me: failed program was:" >&5
30129 sed 's/^/| /' conftest.$ac_ext >&5
30131 eval "$as_ac_var=no"
30134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30135 conftest$ac_exeext conftest.$ac_ext
30137 ac_res=`eval echo '${'$as_ac_var'}'`
30138 { echo "$as_me:$LINENO: result: $ac_res" >&5
30139 echo "${ECHO_T}$ac_res" >&6; }
30140 if test `eval echo '${'$as_ac_var'}'` = yes; then
30141 cat >>confdefs.h <<_ACEOF
30142 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30151 # Checks for programs.
30153 ac_cpp='$CXXCPP $CPPFLAGS'
30154 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30155 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30156 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30157 if test -z "$CXX"; then
30158 if test -n "$CCC"; then
30161 if test -n "$ac_tool_prefix"; then
30162 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
30164 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
30165 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
30166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30168 if test "${ac_cv_prog_CXX+set}" = set; then
30169 echo $ECHO_N "(cached) $ECHO_C" >&6
30171 if test -n "$CXX"; then
30172 ac_cv_prog_CXX="$CXX" # Let the user override the test.
30174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30175 for as_dir in $PATH
30178 test -z "$as_dir" && as_dir=.
30179 for ac_exec_ext in '' $ac_executable_extensions; do
30180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30181 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
30182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30191 CXX=$ac_cv_prog_CXX
30192 if test -n "$CXX"; then
30193 { echo "$as_me:$LINENO: result: $CXX" >&5
30194 echo "${ECHO_T}$CXX" >&6; }
30196 { echo "$as_me:$LINENO: result: no" >&5
30197 echo "${ECHO_T}no" >&6; }
30201 test -n "$CXX" && break
30204 if test -z "$CXX"; then
30206 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
30208 # Extract the first word of "$ac_prog", so it can be a program name with args.
30209 set dummy $ac_prog; ac_word=$2
30210 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30212 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
30213 echo $ECHO_N "(cached) $ECHO_C" >&6
30215 if test -n "$ac_ct_CXX"; then
30216 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
30218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30219 for as_dir in $PATH
30222 test -z "$as_dir" && as_dir=.
30223 for ac_exec_ext in '' $ac_executable_extensions; do
30224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30225 ac_cv_prog_ac_ct_CXX="$ac_prog"
30226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30235 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
30236 if test -n "$ac_ct_CXX"; then
30237 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
30238 echo "${ECHO_T}$ac_ct_CXX" >&6; }
30240 { echo "$as_me:$LINENO: result: no" >&5
30241 echo "${ECHO_T}no" >&6; }
30245 test -n "$ac_ct_CXX" && break
30248 if test "x$ac_ct_CXX" = x; then
30251 case $cross_compiling:$ac_tool_warned in
30253 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
30254 whose name does not start with the host triplet. If you think this
30255 configuration is useful to you, please write to autoconf@gnu.org." >&5
30256 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
30257 whose name does not start with the host triplet. If you think this
30258 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
30259 ac_tool_warned=yes ;;
30267 # Provide some information about the compiler.
30268 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
30269 ac_compiler=`set X $ac_compile; echo $2`
30270 { (ac_try="$ac_compiler --version >&5"
30271 case "(($ac_try" in
30272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30273 *) ac_try_echo=$ac_try;;
30275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30276 (eval "$ac_compiler --version >&5") 2>&5
30278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30279 (exit $ac_status); }
30280 { (ac_try="$ac_compiler -v >&5"
30281 case "(($ac_try" in
30282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30283 *) ac_try_echo=$ac_try;;
30285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30286 (eval "$ac_compiler -v >&5") 2>&5
30288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30289 (exit $ac_status); }
30290 { (ac_try="$ac_compiler -V >&5"
30291 case "(($ac_try" in
30292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30293 *) ac_try_echo=$ac_try;;
30295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30296 (eval "$ac_compiler -V >&5") 2>&5
30298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30299 (exit $ac_status); }
30301 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
30302 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
30303 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
30304 echo $ECHO_N "(cached) $ECHO_C" >&6
30306 cat >conftest.$ac_ext <<_ACEOF
30309 cat confdefs.h >>conftest.$ac_ext
30310 cat >>conftest.$ac_ext <<_ACEOF
30311 /* end confdefs.h. */
30324 rm -f conftest.$ac_objext
30325 if { (ac_try="$ac_compile"
30326 case "(($ac_try" in
30327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30328 *) ac_try_echo=$ac_try;;
30330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30331 (eval "$ac_compile") 2>conftest.er1
30333 grep -v '^ *+' conftest.er1 >conftest.err
30335 cat conftest.err >&5
30336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30337 (exit $ac_status); } && {
30338 test -z "$ac_cxx_werror_flag" ||
30339 test ! -s conftest.err
30340 } && test -s conftest.$ac_objext; then
30341 ac_compiler_gnu=yes
30343 echo "$as_me: failed program was:" >&5
30344 sed 's/^/| /' conftest.$ac_ext >&5
30349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30350 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
30353 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
30354 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
30355 GXX=`test $ac_compiler_gnu = yes && echo yes`
30356 ac_test_CXXFLAGS=${CXXFLAGS+set}
30357 ac_save_CXXFLAGS=$CXXFLAGS
30358 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
30359 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
30360 if test "${ac_cv_prog_cxx_g+set}" = set; then
30361 echo $ECHO_N "(cached) $ECHO_C" >&6
30363 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
30364 ac_cxx_werror_flag=yes
30365 ac_cv_prog_cxx_g=no
30367 cat >conftest.$ac_ext <<_ACEOF
30370 cat confdefs.h >>conftest.$ac_ext
30371 cat >>conftest.$ac_ext <<_ACEOF
30372 /* end confdefs.h. */
30382 rm -f conftest.$ac_objext
30383 if { (ac_try="$ac_compile"
30384 case "(($ac_try" in
30385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30386 *) ac_try_echo=$ac_try;;
30388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30389 (eval "$ac_compile") 2>conftest.er1
30391 grep -v '^ *+' conftest.er1 >conftest.err
30393 cat conftest.err >&5
30394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30395 (exit $ac_status); } && {
30396 test -z "$ac_cxx_werror_flag" ||
30397 test ! -s conftest.err
30398 } && test -s conftest.$ac_objext; then
30399 ac_cv_prog_cxx_g=yes
30401 echo "$as_me: failed program was:" >&5
30402 sed 's/^/| /' conftest.$ac_ext >&5
30405 cat >conftest.$ac_ext <<_ACEOF
30408 cat confdefs.h >>conftest.$ac_ext
30409 cat >>conftest.$ac_ext <<_ACEOF
30410 /* end confdefs.h. */
30420 rm -f conftest.$ac_objext
30421 if { (ac_try="$ac_compile"
30422 case "(($ac_try" in
30423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30424 *) ac_try_echo=$ac_try;;
30426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30427 (eval "$ac_compile") 2>conftest.er1
30429 grep -v '^ *+' conftest.er1 >conftest.err
30431 cat conftest.err >&5
30432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30433 (exit $ac_status); } && {
30434 test -z "$ac_cxx_werror_flag" ||
30435 test ! -s conftest.err
30436 } && test -s conftest.$ac_objext; then
30439 echo "$as_me: failed program was:" >&5
30440 sed 's/^/| /' conftest.$ac_ext >&5
30442 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
30444 cat >conftest.$ac_ext <<_ACEOF
30447 cat confdefs.h >>conftest.$ac_ext
30448 cat >>conftest.$ac_ext <<_ACEOF
30449 /* end confdefs.h. */
30459 rm -f conftest.$ac_objext
30460 if { (ac_try="$ac_compile"
30461 case "(($ac_try" in
30462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30463 *) ac_try_echo=$ac_try;;
30465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30466 (eval "$ac_compile") 2>conftest.er1
30468 grep -v '^ *+' conftest.er1 >conftest.err
30470 cat conftest.err >&5
30471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30472 (exit $ac_status); } && {
30473 test -z "$ac_cxx_werror_flag" ||
30474 test ! -s conftest.err
30475 } && test -s conftest.$ac_objext; then
30476 ac_cv_prog_cxx_g=yes
30478 echo "$as_me: failed program was:" >&5
30479 sed 's/^/| /' conftest.$ac_ext >&5
30484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30491 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
30493 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
30494 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
30495 if test "$ac_test_CXXFLAGS" = set; then
30496 CXXFLAGS=$ac_save_CXXFLAGS
30497 elif test $ac_cv_prog_cxx_g = yes; then
30498 if test "$GXX" = yes; then
30504 if test "$GXX" = yes; then
30511 ac_cpp='$CPP $CPPFLAGS'
30512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30516 depcc="$CXX" am_compiler_list=
30518 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
30519 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
30520 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
30521 echo $ECHO_N "(cached) $ECHO_C" >&6
30523 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
30524 # We make a subdir and do the tests there. Otherwise we can end up
30525 # making bogus files that we don't know about and never remove. For
30526 # instance it was reported that on HP-UX the gcc test will end up
30527 # making a dummy file named `D' -- because `-MD' means `put the output
30530 # Copy depcomp to subdir because otherwise we won't find it if we're
30531 # using a relative directory.
30532 cp "$am_depcomp" conftest.dir
30534 # We will build objects and dependencies in a subdirectory because
30535 # it helps to detect inapplicable dependency modes. For instance
30536 # both Tru64's cc and ICC support -MD to output dependencies as a
30537 # side effect of compilation, but ICC will put the dependencies in
30538 # the current directory while Tru64 will put them in the object
30542 am_cv_CXX_dependencies_compiler_type=none
30543 if test "$am_compiler_list" = ""; then
30544 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
30546 for depmode in $am_compiler_list; do
30547 # Setup a source with many dependencies, because some compilers
30548 # like to wrap large dependency lists on column 80 (with \), and
30549 # we should not choose a depcomp mode which is confused by this.
30551 # We need to recreate these files for each test, as the compiler may
30552 # overwrite some of them when testing with obscure command lines.
30553 # This happens at least with the AIX C compiler.
30555 for i in 1 2 3 4 5 6; do
30556 echo '#include "conftst'$i'.h"' >> sub/conftest.c
30557 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
30558 # Solaris 8's {/usr,}/bin/sh.
30559 touch sub/conftst$i.h
30561 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
30565 # after this tag, mechanisms are not by side-effect, so they'll
30566 # only be used when explicitly requested
30567 if test "x$enable_dependency_tracking" = xyes; then
30575 # We check with `-c' and `-o' for the sake of the "dashmstdout"
30576 # mode. It turns out that the SunPro C++ compiler does not properly
30577 # handle `-M -o', and we need to detect this.
30578 if depmode=$depmode \
30579 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
30580 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
30581 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
30582 >/dev/null 2>conftest.err &&
30583 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
30584 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
30585 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
30586 # icc doesn't choke on unknown options, it will just issue warnings
30587 # or remarks (even with -Werror). So we grep stderr for any message
30588 # that says an option was ignored or not supported.
30589 # When given -MP, icc 7.0 and 7.1 complain thusly:
30590 # icc: Command line warning: ignoring option '-M'; no argument required
30591 # The diagnosis changed in icc 8.0:
30592 # icc: Command line remark: option '-MP' not supported
30593 if (grep 'ignoring option' conftest.err ||
30594 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
30595 am_cv_CXX_dependencies_compiler_type=$depmode
30602 rm -rf conftest.dir
30604 am_cv_CXX_dependencies_compiler_type=none
30608 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
30609 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
30610 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
30615 test "x$enable_dependency_tracking" != xno \
30616 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
30617 am__fastdepCXX_TRUE=
30618 am__fastdepCXX_FALSE='#'
30620 am__fastdepCXX_TRUE='#'
30621 am__fastdepCXX_FALSE=
30626 ac_cpp='$CPP $CPPFLAGS'
30627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30630 if test -n "$ac_tool_prefix"; then
30631 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
30632 set dummy ${ac_tool_prefix}gcc; ac_word=$2
30633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30635 if test "${ac_cv_prog_CC+set}" = set; then
30636 echo $ECHO_N "(cached) $ECHO_C" >&6
30638 if test -n "$CC"; then
30639 ac_cv_prog_CC="$CC" # Let the user override the test.
30641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30642 for as_dir in $PATH
30645 test -z "$as_dir" && as_dir=.
30646 for ac_exec_ext in '' $ac_executable_extensions; do
30647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30648 ac_cv_prog_CC="${ac_tool_prefix}gcc"
30649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30659 if test -n "$CC"; then
30660 { echo "$as_me:$LINENO: result: $CC" >&5
30661 echo "${ECHO_T}$CC" >&6; }
30663 { echo "$as_me:$LINENO: result: no" >&5
30664 echo "${ECHO_T}no" >&6; }
30669 if test -z "$ac_cv_prog_CC"; then
30671 # Extract the first word of "gcc", so it can be a program name with args.
30672 set dummy gcc; ac_word=$2
30673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30675 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
30676 echo $ECHO_N "(cached) $ECHO_C" >&6
30678 if test -n "$ac_ct_CC"; then
30679 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
30681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30682 for as_dir in $PATH
30685 test -z "$as_dir" && as_dir=.
30686 for ac_exec_ext in '' $ac_executable_extensions; do
30687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30688 ac_cv_prog_ac_ct_CC="gcc"
30689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30698 ac_ct_CC=$ac_cv_prog_ac_ct_CC
30699 if test -n "$ac_ct_CC"; then
30700 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
30701 echo "${ECHO_T}$ac_ct_CC" >&6; }
30703 { echo "$as_me:$LINENO: result: no" >&5
30704 echo "${ECHO_T}no" >&6; }
30707 if test "x$ac_ct_CC" = x; then
30710 case $cross_compiling:$ac_tool_warned in
30712 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
30713 whose name does not start with the host triplet. If you think this
30714 configuration is useful to you, please write to autoconf@gnu.org." >&5
30715 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
30716 whose name does not start with the host triplet. If you think this
30717 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
30718 ac_tool_warned=yes ;;
30723 CC="$ac_cv_prog_CC"
30726 if test -z "$CC"; then
30727 if test -n "$ac_tool_prefix"; then
30728 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
30729 set dummy ${ac_tool_prefix}cc; ac_word=$2
30730 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30732 if test "${ac_cv_prog_CC+set}" = set; then
30733 echo $ECHO_N "(cached) $ECHO_C" >&6
30735 if test -n "$CC"; then
30736 ac_cv_prog_CC="$CC" # Let the user override the test.
30738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30739 for as_dir in $PATH
30742 test -z "$as_dir" && as_dir=.
30743 for ac_exec_ext in '' $ac_executable_extensions; do
30744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30745 ac_cv_prog_CC="${ac_tool_prefix}cc"
30746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30756 if test -n "$CC"; then
30757 { echo "$as_me:$LINENO: result: $CC" >&5
30758 echo "${ECHO_T}$CC" >&6; }
30760 { echo "$as_me:$LINENO: result: no" >&5
30761 echo "${ECHO_T}no" >&6; }
30767 if test -z "$CC"; then
30768 # Extract the first word of "cc", so it can be a program name with args.
30769 set dummy cc; ac_word=$2
30770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30772 if test "${ac_cv_prog_CC+set}" = set; then
30773 echo $ECHO_N "(cached) $ECHO_C" >&6
30775 if test -n "$CC"; then
30776 ac_cv_prog_CC="$CC" # Let the user override the test.
30778 ac_prog_rejected=no
30779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30780 for as_dir in $PATH
30783 test -z "$as_dir" && as_dir=.
30784 for ac_exec_ext in '' $ac_executable_extensions; do
30785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30786 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
30787 ac_prog_rejected=yes
30791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30798 if test $ac_prog_rejected = yes; then
30799 # We found a bogon in the path, so make sure we never use it.
30800 set dummy $ac_cv_prog_CC
30802 if test $# != 0; then
30803 # We chose a different compiler from the bogus one.
30804 # However, it has the same basename, so the bogon will be chosen
30805 # first if we set CC to just the basename; use the full file name.
30807 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
30813 if test -n "$CC"; then
30814 { echo "$as_me:$LINENO: result: $CC" >&5
30815 echo "${ECHO_T}$CC" >&6; }
30817 { echo "$as_me:$LINENO: result: no" >&5
30818 echo "${ECHO_T}no" >&6; }
30823 if test -z "$CC"; then
30824 if test -n "$ac_tool_prefix"; then
30825 for ac_prog in cl.exe
30827 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
30828 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
30829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30831 if test "${ac_cv_prog_CC+set}" = set; then
30832 echo $ECHO_N "(cached) $ECHO_C" >&6
30834 if test -n "$CC"; then
30835 ac_cv_prog_CC="$CC" # Let the user override the test.
30837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30838 for as_dir in $PATH
30841 test -z "$as_dir" && as_dir=.
30842 for ac_exec_ext in '' $ac_executable_extensions; do
30843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30844 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
30845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30855 if test -n "$CC"; then
30856 { echo "$as_me:$LINENO: result: $CC" >&5
30857 echo "${ECHO_T}$CC" >&6; }
30859 { echo "$as_me:$LINENO: result: no" >&5
30860 echo "${ECHO_T}no" >&6; }
30864 test -n "$CC" && break
30867 if test -z "$CC"; then
30869 for ac_prog in cl.exe
30871 # Extract the first word of "$ac_prog", so it can be a program name with args.
30872 set dummy $ac_prog; ac_word=$2
30873 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30875 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
30876 echo $ECHO_N "(cached) $ECHO_C" >&6
30878 if test -n "$ac_ct_CC"; then
30879 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
30881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30882 for as_dir in $PATH
30885 test -z "$as_dir" && as_dir=.
30886 for ac_exec_ext in '' $ac_executable_extensions; do
30887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30888 ac_cv_prog_ac_ct_CC="$ac_prog"
30889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30898 ac_ct_CC=$ac_cv_prog_ac_ct_CC
30899 if test -n "$ac_ct_CC"; then
30900 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
30901 echo "${ECHO_T}$ac_ct_CC" >&6; }
30903 { echo "$as_me:$LINENO: result: no" >&5
30904 echo "${ECHO_T}no" >&6; }
30908 test -n "$ac_ct_CC" && break
30911 if test "x$ac_ct_CC" = x; then
30914 case $cross_compiling:$ac_tool_warned in
30916 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
30917 whose name does not start with the host triplet. If you think this
30918 configuration is useful to you, please write to autoconf@gnu.org." >&5
30919 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
30920 whose name does not start with the host triplet. If you think this
30921 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
30922 ac_tool_warned=yes ;;
30931 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
30932 See \`config.log' for more details." >&5
30933 echo "$as_me: error: no acceptable C compiler found in \$PATH
30934 See \`config.log' for more details." >&2;}
30935 { (exit 1); exit 1; }; }
30937 # Provide some information about the compiler.
30938 echo "$as_me:$LINENO: checking for C compiler version" >&5
30939 ac_compiler=`set X $ac_compile; echo $2`
30940 { (ac_try="$ac_compiler --version >&5"
30941 case "(($ac_try" in
30942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30943 *) ac_try_echo=$ac_try;;
30945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30946 (eval "$ac_compiler --version >&5") 2>&5
30948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30949 (exit $ac_status); }
30950 { (ac_try="$ac_compiler -v >&5"
30951 case "(($ac_try" in
30952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30953 *) ac_try_echo=$ac_try;;
30955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30956 (eval "$ac_compiler -v >&5") 2>&5
30958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30959 (exit $ac_status); }
30960 { (ac_try="$ac_compiler -V >&5"
30961 case "(($ac_try" in
30962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30963 *) ac_try_echo=$ac_try;;
30965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30966 (eval "$ac_compiler -V >&5") 2>&5
30968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30969 (exit $ac_status); }
30971 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
30972 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
30973 if test "${ac_cv_c_compiler_gnu+set}" = set; then
30974 echo $ECHO_N "(cached) $ECHO_C" >&6
30976 cat >conftest.$ac_ext <<_ACEOF
30979 cat confdefs.h >>conftest.$ac_ext
30980 cat >>conftest.$ac_ext <<_ACEOF
30981 /* end confdefs.h. */
30994 rm -f conftest.$ac_objext
30995 if { (ac_try="$ac_compile"
30996 case "(($ac_try" in
30997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30998 *) ac_try_echo=$ac_try;;
31000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31001 (eval "$ac_compile") 2>conftest.er1
31003 grep -v '^ *+' conftest.er1 >conftest.err
31005 cat conftest.err >&5
31006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31007 (exit $ac_status); } && {
31008 test -z "$ac_c_werror_flag" ||
31009 test ! -s conftest.err
31010 } && test -s conftest.$ac_objext; then
31011 ac_compiler_gnu=yes
31013 echo "$as_me: failed program was:" >&5
31014 sed 's/^/| /' conftest.$ac_ext >&5
31019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31020 ac_cv_c_compiler_gnu=$ac_compiler_gnu
31023 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
31024 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
31025 GCC=`test $ac_compiler_gnu = yes && echo yes`
31026 ac_test_CFLAGS=${CFLAGS+set}
31027 ac_save_CFLAGS=$CFLAGS
31028 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
31029 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
31030 if test "${ac_cv_prog_cc_g+set}" = set; then
31031 echo $ECHO_N "(cached) $ECHO_C" >&6
31033 ac_save_c_werror_flag=$ac_c_werror_flag
31034 ac_c_werror_flag=yes
31037 cat >conftest.$ac_ext <<_ACEOF
31040 cat confdefs.h >>conftest.$ac_ext
31041 cat >>conftest.$ac_ext <<_ACEOF
31042 /* end confdefs.h. */
31052 rm -f conftest.$ac_objext
31053 if { (ac_try="$ac_compile"
31054 case "(($ac_try" in
31055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31056 *) ac_try_echo=$ac_try;;
31058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31059 (eval "$ac_compile") 2>conftest.er1
31061 grep -v '^ *+' conftest.er1 >conftest.err
31063 cat conftest.err >&5
31064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31065 (exit $ac_status); } && {
31066 test -z "$ac_c_werror_flag" ||
31067 test ! -s conftest.err
31068 } && test -s conftest.$ac_objext; then
31069 ac_cv_prog_cc_g=yes
31071 echo "$as_me: failed program was:" >&5
31072 sed 's/^/| /' conftest.$ac_ext >&5
31075 cat >conftest.$ac_ext <<_ACEOF
31078 cat confdefs.h >>conftest.$ac_ext
31079 cat >>conftest.$ac_ext <<_ACEOF
31080 /* end confdefs.h. */
31090 rm -f conftest.$ac_objext
31091 if { (ac_try="$ac_compile"
31092 case "(($ac_try" in
31093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31094 *) ac_try_echo=$ac_try;;
31096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31097 (eval "$ac_compile") 2>conftest.er1
31099 grep -v '^ *+' conftest.er1 >conftest.err
31101 cat conftest.err >&5
31102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31103 (exit $ac_status); } && {
31104 test -z "$ac_c_werror_flag" ||
31105 test ! -s conftest.err
31106 } && test -s conftest.$ac_objext; then
31109 echo "$as_me: failed program was:" >&5
31110 sed 's/^/| /' conftest.$ac_ext >&5
31112 ac_c_werror_flag=$ac_save_c_werror_flag
31114 cat >conftest.$ac_ext <<_ACEOF
31117 cat confdefs.h >>conftest.$ac_ext
31118 cat >>conftest.$ac_ext <<_ACEOF
31119 /* end confdefs.h. */
31129 rm -f conftest.$ac_objext
31130 if { (ac_try="$ac_compile"
31131 case "(($ac_try" in
31132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31133 *) ac_try_echo=$ac_try;;
31135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31136 (eval "$ac_compile") 2>conftest.er1
31138 grep -v '^ *+' conftest.er1 >conftest.err
31140 cat conftest.err >&5
31141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31142 (exit $ac_status); } && {
31143 test -z "$ac_c_werror_flag" ||
31144 test ! -s conftest.err
31145 } && test -s conftest.$ac_objext; then
31146 ac_cv_prog_cc_g=yes
31148 echo "$as_me: failed program was:" >&5
31149 sed 's/^/| /' conftest.$ac_ext >&5
31154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31161 ac_c_werror_flag=$ac_save_c_werror_flag
31163 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
31164 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
31165 if test "$ac_test_CFLAGS" = set; then
31166 CFLAGS=$ac_save_CFLAGS
31167 elif test $ac_cv_prog_cc_g = yes; then
31168 if test "$GCC" = yes; then
31174 if test "$GCC" = yes; then
31180 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
31181 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
31182 if test "${ac_cv_prog_cc_c89+set}" = set; then
31183 echo $ECHO_N "(cached) $ECHO_C" >&6
31185 ac_cv_prog_cc_c89=no
31187 cat >conftest.$ac_ext <<_ACEOF
31190 cat confdefs.h >>conftest.$ac_ext
31191 cat >>conftest.$ac_ext <<_ACEOF
31192 /* end confdefs.h. */
31193 #include <stdarg.h>
31195 #include <sys/types.h>
31196 #include <sys/stat.h>
31197 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
31198 struct buf { int x; };
31199 FILE * (*rcsopen) (struct buf *, struct stat *, int);
31200 static char *e (p, i)
31206 static char *f (char * (*g) (char **, int), char **p, ...)
31211 s = g (p, va_arg (v,int));
31216 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
31217 function prototypes and stuff, but not '\xHH' hex character constants.
31218 These don't provoke an error unfortunately, instead are silently treated
31219 as 'x'. The following induces an error, until -std is added to get
31220 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
31221 array size at least. It's necessary to write '\x00'==0 to get something
31222 that's true only with -std. */
31223 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
31225 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
31226 inside strings and character constants. */
31228 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
31230 int test (int i, double x);
31231 struct s1 {int (*f) (int a);};
31232 struct s2 {int (*f) (double a);};
31233 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
31239 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
31244 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
31245 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
31247 CC="$ac_save_CC $ac_arg"
31248 rm -f conftest.$ac_objext
31249 if { (ac_try="$ac_compile"
31250 case "(($ac_try" in
31251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31252 *) ac_try_echo=$ac_try;;
31254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31255 (eval "$ac_compile") 2>conftest.er1
31257 grep -v '^ *+' conftest.er1 >conftest.err
31259 cat conftest.err >&5
31260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31261 (exit $ac_status); } && {
31262 test -z "$ac_c_werror_flag" ||
31263 test ! -s conftest.err
31264 } && test -s conftest.$ac_objext; then
31265 ac_cv_prog_cc_c89=$ac_arg
31267 echo "$as_me: failed program was:" >&5
31268 sed 's/^/| /' conftest.$ac_ext >&5
31273 rm -f core conftest.err conftest.$ac_objext
31274 test "x$ac_cv_prog_cc_c89" != "xno" && break
31276 rm -f conftest.$ac_ext
31281 case "x$ac_cv_prog_cc_c89" in
31283 { echo "$as_me:$LINENO: result: none needed" >&5
31284 echo "${ECHO_T}none needed" >&6; } ;;
31286 { echo "$as_me:$LINENO: result: unsupported" >&5
31287 echo "${ECHO_T}unsupported" >&6; } ;;
31289 CC="$CC $ac_cv_prog_cc_c89"
31290 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
31291 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
31296 ac_cpp='$CPP $CPPFLAGS'
31297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31301 depcc="$CC" am_compiler_list=
31303 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
31304 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
31305 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
31306 echo $ECHO_N "(cached) $ECHO_C" >&6
31308 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
31309 # We make a subdir and do the tests there. Otherwise we can end up
31310 # making bogus files that we don't know about and never remove. For
31311 # instance it was reported that on HP-UX the gcc test will end up
31312 # making a dummy file named `D' -- because `-MD' means `put the output
31315 # Copy depcomp to subdir because otherwise we won't find it if we're
31316 # using a relative directory.
31317 cp "$am_depcomp" conftest.dir
31319 # We will build objects and dependencies in a subdirectory because
31320 # it helps to detect inapplicable dependency modes. For instance
31321 # both Tru64's cc and ICC support -MD to output dependencies as a
31322 # side effect of compilation, but ICC will put the dependencies in
31323 # the current directory while Tru64 will put them in the object
31327 am_cv_CC_dependencies_compiler_type=none
31328 if test "$am_compiler_list" = ""; then
31329 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
31331 for depmode in $am_compiler_list; do
31332 # Setup a source with many dependencies, because some compilers
31333 # like to wrap large dependency lists on column 80 (with \), and
31334 # we should not choose a depcomp mode which is confused by this.
31336 # We need to recreate these files for each test, as the compiler may
31337 # overwrite some of them when testing with obscure command lines.
31338 # This happens at least with the AIX C compiler.
31340 for i in 1 2 3 4 5 6; do
31341 echo '#include "conftst'$i'.h"' >> sub/conftest.c
31342 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
31343 # Solaris 8's {/usr,}/bin/sh.
31344 touch sub/conftst$i.h
31346 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
31350 # after this tag, mechanisms are not by side-effect, so they'll
31351 # only be used when explicitly requested
31352 if test "x$enable_dependency_tracking" = xyes; then
31360 # We check with `-c' and `-o' for the sake of the "dashmstdout"
31361 # mode. It turns out that the SunPro C++ compiler does not properly
31362 # handle `-M -o', and we need to detect this.
31363 if depmode=$depmode \
31364 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
31365 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
31366 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
31367 >/dev/null 2>conftest.err &&
31368 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
31369 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
31370 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
31371 # icc doesn't choke on unknown options, it will just issue warnings
31372 # or remarks (even with -Werror). So we grep stderr for any message
31373 # that says an option was ignored or not supported.
31374 # When given -MP, icc 7.0 and 7.1 complain thusly:
31375 # icc: Command line warning: ignoring option '-M'; no argument required
31376 # The diagnosis changed in icc 8.0:
31377 # icc: Command line remark: option '-MP' not supported
31378 if (grep 'ignoring option' conftest.err ||
31379 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
31380 am_cv_CC_dependencies_compiler_type=$depmode
31387 rm -rf conftest.dir
31389 am_cv_CC_dependencies_compiler_type=none
31393 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
31394 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
31395 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
31400 test "x$enable_dependency_tracking" != xno \
31401 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
31402 am__fastdepCC_TRUE=
31403 am__fastdepCC_FALSE='#'
31405 am__fastdepCC_TRUE='#'
31406 am__fastdepCC_FALSE=
31411 ac_cpp='$CXXCPP $CPPFLAGS'
31412 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31413 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31414 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31417 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
31418 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
31419 if test "${ac_cv_c_const+set}" = set; then
31420 echo $ECHO_N "(cached) $ECHO_C" >&6
31422 cat >conftest.$ac_ext <<_ACEOF
31425 cat confdefs.h >>conftest.$ac_ext
31426 cat >>conftest.$ac_ext <<_ACEOF
31427 /* end confdefs.h. */
31432 /* FIXME: Include the comments suggested by Paul. */
31433 #ifndef __cplusplus
31434 /* Ultrix mips cc rejects this. */
31435 typedef int charset[2];
31437 /* SunOS 4.1.1 cc rejects this. */
31438 char const *const *pcpcc;
31440 /* NEC SVR4.0.2 mips cc rejects this. */
31441 struct point {int x, y;};
31442 static struct point const zero = {0,0};
31443 /* AIX XL C 1.02.0.0 rejects this.
31444 It does not let you subtract one const X* pointer from another in
31445 an arm of an if-expression whose if-part is not a constant
31447 const char *g = "string";
31448 pcpcc = &g + (g ? g-g : 0);
31449 /* HPUX 7.0 cc rejects these. */
31451 ppc = (char**) pcpcc;
31452 pcpcc = (char const *const *) ppc;
31453 { /* SCO 3.2v4 cc rejects this. */
31455 char const *s = 0 ? (char *) 0 : (char const *) 0;
31460 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
31461 int x[] = {25, 17};
31462 const int *foo = &x[0];
31465 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
31466 typedef const int *iptr;
31470 { /* AIX XL C 1.02.0.0 rejects this saying
31471 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
31472 struct s { int j; const int *ap[3]; };
31473 struct s *b; b->j = 5;
31475 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
31476 const int foo = 10;
31477 if (!foo) return 0;
31479 return !cs[0] && !zero.x;
31486 rm -f conftest.$ac_objext
31487 if { (ac_try="$ac_compile"
31488 case "(($ac_try" in
31489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31490 *) ac_try_echo=$ac_try;;
31492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31493 (eval "$ac_compile") 2>conftest.er1
31495 grep -v '^ *+' conftest.er1 >conftest.err
31497 cat conftest.err >&5
31498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31499 (exit $ac_status); } && {
31500 test -z "$ac_cxx_werror_flag" ||
31501 test ! -s conftest.err
31502 } && test -s conftest.$ac_objext; then
31505 echo "$as_me: failed program was:" >&5
31506 sed 's/^/| /' conftest.$ac_ext >&5
31511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31513 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
31514 echo "${ECHO_T}$ac_cv_c_const" >&6; }
31515 if test $ac_cv_c_const = no; then
31517 cat >>confdefs.h <<\_ACEOF
31523 { echo "$as_me:$LINENO: checking for size_t" >&5
31524 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
31525 if test "${ac_cv_type_size_t+set}" = set; then
31526 echo $ECHO_N "(cached) $ECHO_C" >&6
31528 cat >conftest.$ac_ext <<_ACEOF
31531 cat confdefs.h >>conftest.$ac_ext
31532 cat >>conftest.$ac_ext <<_ACEOF
31533 /* end confdefs.h. */
31534 $ac_includes_default
31535 typedef size_t ac__type_new_;
31539 if ((ac__type_new_ *) 0)
31541 if (sizeof (ac__type_new_))
31547 rm -f conftest.$ac_objext
31548 if { (ac_try="$ac_compile"
31549 case "(($ac_try" in
31550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31551 *) ac_try_echo=$ac_try;;
31553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31554 (eval "$ac_compile") 2>conftest.er1
31556 grep -v '^ *+' conftest.er1 >conftest.err
31558 cat conftest.err >&5
31559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31560 (exit $ac_status); } && {
31561 test -z "$ac_cxx_werror_flag" ||
31562 test ! -s conftest.err
31563 } && test -s conftest.$ac_objext; then
31564 ac_cv_type_size_t=yes
31566 echo "$as_me: failed program was:" >&5
31567 sed 's/^/| /' conftest.$ac_ext >&5
31569 ac_cv_type_size_t=no
31572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31574 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31575 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
31576 if test $ac_cv_type_size_t = yes; then
31580 cat >>confdefs.h <<_ACEOF
31581 #define size_t unsigned int
31587 # Checks for libraries.
31590 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
31591 if test -n "$ac_tool_prefix"; then
31592 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31593 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31596 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
31597 echo $ECHO_N "(cached) $ECHO_C" >&6
31599 case $PKG_CONFIG in
31601 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
31604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31605 for as_dir in $PATH
31608 test -z "$as_dir" && as_dir=.
31609 for ac_exec_ext in '' $ac_executable_extensions; do
31610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31611 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31622 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
31623 if test -n "$PKG_CONFIG"; then
31624 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
31625 echo "${ECHO_T}$PKG_CONFIG" >&6; }
31627 { echo "$as_me:$LINENO: result: no" >&5
31628 echo "${ECHO_T}no" >&6; }
31633 if test -z "$ac_cv_path_PKG_CONFIG"; then
31634 ac_pt_PKG_CONFIG=$PKG_CONFIG
31635 # Extract the first word of "pkg-config", so it can be a program name with args.
31636 set dummy pkg-config; ac_word=$2
31637 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31639 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
31640 echo $ECHO_N "(cached) $ECHO_C" >&6
31642 case $ac_pt_PKG_CONFIG in
31644 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
31647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31648 for as_dir in $PATH
31651 test -z "$as_dir" && as_dir=.
31652 for ac_exec_ext in '' $ac_executable_extensions; do
31653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31654 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31665 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
31666 if test -n "$ac_pt_PKG_CONFIG"; then
31667 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
31668 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
31670 { echo "$as_me:$LINENO: result: no" >&5
31671 echo "${ECHO_T}no" >&6; }
31674 if test "x$ac_pt_PKG_CONFIG" = x; then
31677 case $cross_compiling:$ac_tool_warned in
31679 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
31680 whose name does not start with the host triplet. If you think this
31681 configuration is useful to you, please write to autoconf@gnu.org." >&5
31682 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
31683 whose name does not start with the host triplet. If you think this
31684 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
31685 ac_tool_warned=yes ;;
31687 PKG_CONFIG=$ac_pt_PKG_CONFIG
31690 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
31694 if test -n "$PKG_CONFIG"; then
31695 _pkg_min_version=0.9.0
31696 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
31697 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
31698 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
31699 { echo "$as_me:$LINENO: result: yes" >&5
31700 echo "${ECHO_T}yes" >&6; }
31702 { echo "$as_me:$LINENO: result: no" >&5
31703 echo "${ECHO_T}no" >&6; }
31710 { echo "$as_me:$LINENO: checking for LIBHANGUL" >&5
31711 echo $ECHO_N "checking for LIBHANGUL... $ECHO_C" >&6; }
31713 if test -n "$PKG_CONFIG"; then
31714 if test -n "$LIBHANGUL_CFLAGS"; then
31715 pkg_cv_LIBHANGUL_CFLAGS="$LIBHANGUL_CFLAGS"
31717 if test -n "$PKG_CONFIG" && \
31718 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libhangul >= 0.0.4\"") >&5
31719 ($PKG_CONFIG --exists --print-errors "libhangul >= 0.0.4") 2>&5
31721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31722 (exit $ac_status); }; then
31723 pkg_cv_LIBHANGUL_CFLAGS=`$PKG_CONFIG --cflags "libhangul >= 0.0.4" 2>/dev/null`
31731 if test -n "$PKG_CONFIG"; then
31732 if test -n "$LIBHANGUL_LIBS"; then
31733 pkg_cv_LIBHANGUL_LIBS="$LIBHANGUL_LIBS"
31735 if test -n "$PKG_CONFIG" && \
31736 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libhangul >= 0.0.4\"") >&5
31737 ($PKG_CONFIG --exists --print-errors "libhangul >= 0.0.4") 2>&5
31739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31740 (exit $ac_status); }; then
31741 pkg_cv_LIBHANGUL_LIBS=`$PKG_CONFIG --libs "libhangul >= 0.0.4" 2>/dev/null`
31752 if test $pkg_failed = yes; then
31754 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31755 _pkg_short_errors_supported=yes
31757 _pkg_short_errors_supported=no
31759 if test $_pkg_short_errors_supported = yes; then
31760 LIBHANGUL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libhangul >= 0.0.4"`
31762 LIBHANGUL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libhangul >= 0.0.4"`
31764 # Put the nasty error message in config.log where it belongs
31765 echo "$LIBHANGUL_PKG_ERRORS" >&5
31767 { { echo "$as_me:$LINENO: error: Package requirements (libhangul >= 0.0.4) were not met:
31769 $LIBHANGUL_PKG_ERRORS
31771 Consider adjusting the PKG_CONFIG_PATH environment variable if you
31772 installed software in a non-standard prefix.
31774 Alternatively, you may set the environment variables LIBHANGUL_CFLAGS
31775 and LIBHANGUL_LIBS to avoid the need to call pkg-config.
31776 See the pkg-config man page for more details.
31778 echo "$as_me: error: Package requirements (libhangul >= 0.0.4) were not met:
31780 $LIBHANGUL_PKG_ERRORS
31782 Consider adjusting the PKG_CONFIG_PATH environment variable if you
31783 installed software in a non-standard prefix.
31785 Alternatively, you may set the environment variables LIBHANGUL_CFLAGS
31786 and LIBHANGUL_LIBS to avoid the need to call pkg-config.
31787 See the pkg-config man page for more details.
31789 { (exit 1); exit 1; }; }
31790 elif test $pkg_failed = untried; then
31791 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
31792 is in your PATH or set the PKG_CONFIG environment variable to the full
31793 path to pkg-config.
31795 Alternatively, you may set the environment variables LIBHANGUL_CFLAGS
31796 and LIBHANGUL_LIBS to avoid the need to call pkg-config.
31797 See the pkg-config man page for more details.
31799 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
31800 See \`config.log' for more details." >&5
31801 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
31802 is in your PATH or set the PKG_CONFIG environment variable to the full
31803 path to pkg-config.
31805 Alternatively, you may set the environment variables LIBHANGUL_CFLAGS
31806 and LIBHANGUL_LIBS to avoid the need to call pkg-config.
31807 See the pkg-config man page for more details.
31809 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
31810 See \`config.log' for more details." >&2;}
31811 { (exit 1); exit 1; }; }
31813 LIBHANGUL_CFLAGS=$pkg_cv_LIBHANGUL_CFLAGS
31814 LIBHANGUL_LIBS=$pkg_cv_LIBHANGUL_LIBS
31815 { echo "$as_me:$LINENO: result: yes" >&5
31816 echo "${ECHO_T}yes" >&6; }
31820 SCIM_VERSION=0.99.8
31824 { echo "$as_me:$LINENO: checking for SCIM" >&5
31825 echo $ECHO_N "checking for SCIM... $ECHO_C" >&6; }
31827 if test -n "$PKG_CONFIG"; then
31828 if test -n "$SCIM_CFLAGS"; then
31829 pkg_cv_SCIM_CFLAGS="$SCIM_CFLAGS"
31831 if test -n "$PKG_CONFIG" && \
31832 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"scim >= \$SCIM_VERSION\"") >&5
31833 ($PKG_CONFIG --exists --print-errors "scim >= $SCIM_VERSION") 2>&5
31835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31836 (exit $ac_status); }; then
31837 pkg_cv_SCIM_CFLAGS=`$PKG_CONFIG --cflags "scim >= $SCIM_VERSION" 2>/dev/null`
31845 if test -n "$PKG_CONFIG"; then
31846 if test -n "$SCIM_LIBS"; then
31847 pkg_cv_SCIM_LIBS="$SCIM_LIBS"
31849 if test -n "$PKG_CONFIG" && \
31850 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"scim >= \$SCIM_VERSION\"") >&5
31851 ($PKG_CONFIG --exists --print-errors "scim >= $SCIM_VERSION") 2>&5
31853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31854 (exit $ac_status); }; then
31855 pkg_cv_SCIM_LIBS=`$PKG_CONFIG --libs "scim >= $SCIM_VERSION" 2>/dev/null`
31866 if test $pkg_failed = yes; then
31868 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31869 _pkg_short_errors_supported=yes
31871 _pkg_short_errors_supported=no
31873 if test $_pkg_short_errors_supported = yes; then
31874 SCIM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "scim >= $SCIM_VERSION"`
31876 SCIM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "scim >= $SCIM_VERSION"`
31878 # Put the nasty error message in config.log where it belongs
31879 echo "$SCIM_PKG_ERRORS" >&5
31881 { { echo "$as_me:$LINENO: error: Package requirements (scim >= $SCIM_VERSION) were not met:
31885 Consider adjusting the PKG_CONFIG_PATH environment variable if you
31886 installed software in a non-standard prefix.
31888 Alternatively, you may set the environment variables SCIM_CFLAGS
31889 and SCIM_LIBS to avoid the need to call pkg-config.
31890 See the pkg-config man page for more details.
31892 echo "$as_me: error: Package requirements (scim >= $SCIM_VERSION) were not met:
31896 Consider adjusting the PKG_CONFIG_PATH environment variable if you
31897 installed software in a non-standard prefix.
31899 Alternatively, you may set the environment variables SCIM_CFLAGS
31900 and SCIM_LIBS to avoid the need to call pkg-config.
31901 See the pkg-config man page for more details.
31903 { (exit 1); exit 1; }; }
31904 elif test $pkg_failed = untried; then
31905 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
31906 is in your PATH or set the PKG_CONFIG environment variable to the full
31907 path to pkg-config.
31909 Alternatively, you may set the environment variables SCIM_CFLAGS
31910 and SCIM_LIBS to avoid the need to call pkg-config.
31911 See the pkg-config man page for more details.
31913 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
31914 See \`config.log' for more details." >&5
31915 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
31916 is in your PATH or set the PKG_CONFIG environment variable to the full
31917 path to pkg-config.
31919 Alternatively, you may set the environment variables SCIM_CFLAGS
31920 and SCIM_LIBS to avoid the need to call pkg-config.
31921 See the pkg-config man page for more details.
31923 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
31924 See \`config.log' for more details." >&2;}
31925 { (exit 1); exit 1; }; }
31927 SCIM_CFLAGS=$pkg_cv_SCIM_CFLAGS
31928 SCIM_LIBS=$pkg_cv_SCIM_LIBS
31929 { echo "$as_me:$LINENO: result: yes" >&5
31930 echo "${ECHO_T}yes" >&6; }
31934 # Check if we should build setup module
31937 { echo "$as_me:$LINENO: checking for SCIM_GTKUTILS" >&5
31938 echo $ECHO_N "checking for SCIM_GTKUTILS... $ECHO_C" >&6; }
31940 if test -n "$PKG_CONFIG"; then
31941 if test -n "$SCIM_GTKUTILS_CFLAGS"; then
31942 pkg_cv_SCIM_GTKUTILS_CFLAGS="$SCIM_GTKUTILS_CFLAGS"
31944 if test -n "$PKG_CONFIG" && \
31945 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"scim-gtkutils >= \$SCIM_VERSION\"") >&5
31946 ($PKG_CONFIG --exists --print-errors "scim-gtkutils >= $SCIM_VERSION") 2>&5
31948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31949 (exit $ac_status); }; then
31950 pkg_cv_SCIM_GTKUTILS_CFLAGS=`$PKG_CONFIG --cflags "scim-gtkutils >= $SCIM_VERSION" 2>/dev/null`
31958 if test -n "$PKG_CONFIG"; then
31959 if test -n "$SCIM_GTKUTILS_LIBS"; then
31960 pkg_cv_SCIM_GTKUTILS_LIBS="$SCIM_GTKUTILS_LIBS"
31962 if test -n "$PKG_CONFIG" && \
31963 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"scim-gtkutils >= \$SCIM_VERSION\"") >&5
31964 ($PKG_CONFIG --exists --print-errors "scim-gtkutils >= $SCIM_VERSION") 2>&5
31966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31967 (exit $ac_status); }; then
31968 pkg_cv_SCIM_GTKUTILS_LIBS=`$PKG_CONFIG --libs "scim-gtkutils >= $SCIM_VERSION" 2>/dev/null`
31979 if test $pkg_failed = yes; then
31981 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31982 _pkg_short_errors_supported=yes
31984 _pkg_short_errors_supported=no
31986 if test $_pkg_short_errors_supported = yes; then
31987 SCIM_GTKUTILS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "scim-gtkutils >= $SCIM_VERSION"`
31989 SCIM_GTKUTILS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "scim-gtkutils >= $SCIM_VERSION"`
31991 # Put the nasty error message in config.log where it belongs
31992 echo "$SCIM_GTKUTILS_PKG_ERRORS" >&5
31994 { echo "$as_me:$LINENO: result: no" >&5
31995 echo "${ECHO_T}no" >&6; }
31996 SCIM_HAS_GTKUTILS=no
31997 elif test $pkg_failed = untried; then
31998 SCIM_HAS_GTKUTILS=no
32000 SCIM_GTKUTILS_CFLAGS=$pkg_cv_SCIM_GTKUTILS_CFLAGS
32001 SCIM_GTKUTILS_LIBS=$pkg_cv_SCIM_GTKUTILS_LIBS
32002 { echo "$as_me:$LINENO: result: yes" >&5
32003 echo "${ECHO_T}yes" >&6; }
32004 SCIM_HAS_GTKUTILS=yes
32012 if test "$SCIM_HAS_GTKUTILS" = "yes"; then
32013 SCIM_BUILD_SETUP_TRUE=
32014 SCIM_BUILD_SETUP_FALSE='#'
32016 SCIM_BUILD_SETUP_TRUE='#'
32017 SCIM_BUILD_SETUP_FALSE=
32021 if test "$SCIM_HAS_GTKUTILS" = "yes"; then
32029 # Checks for header files.
32031 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
32032 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
32033 if test "${ac_cv_header_stdc+set}" = set; then
32034 echo $ECHO_N "(cached) $ECHO_C" >&6
32036 cat >conftest.$ac_ext <<_ACEOF
32039 cat confdefs.h >>conftest.$ac_ext
32040 cat >>conftest.$ac_ext <<_ACEOF
32041 /* end confdefs.h. */
32042 #include <stdlib.h>
32043 #include <stdarg.h>
32044 #include <string.h>
32055 rm -f conftest.$ac_objext
32056 if { (ac_try="$ac_compile"
32057 case "(($ac_try" in
32058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32059 *) ac_try_echo=$ac_try;;
32061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32062 (eval "$ac_compile") 2>conftest.er1
32064 grep -v '^ *+' conftest.er1 >conftest.err
32066 cat conftest.err >&5
32067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32068 (exit $ac_status); } && {
32069 test -z "$ac_cxx_werror_flag" ||
32070 test ! -s conftest.err
32071 } && test -s conftest.$ac_objext; then
32072 ac_cv_header_stdc=yes
32074 echo "$as_me: failed program was:" >&5
32075 sed 's/^/| /' conftest.$ac_ext >&5
32077 ac_cv_header_stdc=no
32080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32082 if test $ac_cv_header_stdc = yes; then
32083 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
32084 cat >conftest.$ac_ext <<_ACEOF
32087 cat confdefs.h >>conftest.$ac_ext
32088 cat >>conftest.$ac_ext <<_ACEOF
32089 /* end confdefs.h. */
32090 #include <string.h>
32093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32094 $EGREP "memchr" >/dev/null 2>&1; then
32097 ac_cv_header_stdc=no
32103 if test $ac_cv_header_stdc = yes; then
32104 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
32105 cat >conftest.$ac_ext <<_ACEOF
32108 cat confdefs.h >>conftest.$ac_ext
32109 cat >>conftest.$ac_ext <<_ACEOF
32110 /* end confdefs.h. */
32111 #include <stdlib.h>
32114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32115 $EGREP "free" >/dev/null 2>&1; then
32118 ac_cv_header_stdc=no
32124 if test $ac_cv_header_stdc = yes; then
32125 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
32126 if test "$cross_compiling" = yes; then
32129 cat >conftest.$ac_ext <<_ACEOF
32132 cat confdefs.h >>conftest.$ac_ext
32133 cat >>conftest.$ac_ext <<_ACEOF
32134 /* end confdefs.h. */
32136 #include <stdlib.h>
32137 #if ((' ' & 0x0FF) == 0x020)
32138 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
32139 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
32141 # define ISLOWER(c) \
32142 (('a' <= (c) && (c) <= 'i') \
32143 || ('j' <= (c) && (c) <= 'r') \
32144 || ('s' <= (c) && (c) <= 'z'))
32145 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
32148 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
32153 for (i = 0; i < 256; i++)
32154 if (XOR (islower (i), ISLOWER (i))
32155 || toupper (i) != TOUPPER (i))
32160 rm -f conftest$ac_exeext
32161 if { (ac_try="$ac_link"
32162 case "(($ac_try" in
32163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32164 *) ac_try_echo=$ac_try;;
32166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32167 (eval "$ac_link") 2>&5
32169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32170 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32171 { (case "(($ac_try" in
32172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32173 *) ac_try_echo=$ac_try;;
32175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32176 (eval "$ac_try") 2>&5
32178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32179 (exit $ac_status); }; }; then
32182 echo "$as_me: program exited with status $ac_status" >&5
32183 echo "$as_me: failed program was:" >&5
32184 sed 's/^/| /' conftest.$ac_ext >&5
32186 ( exit $ac_status )
32187 ac_cv_header_stdc=no
32189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32195 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
32196 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
32197 if test $ac_cv_header_stdc = yes; then
32199 cat >>confdefs.h <<\_ACEOF
32200 #define STDC_HEADERS 1
32206 # Checks for library functions.
32209 # libtool option to control which symbols are exported
32210 # right now, symbols starting with _ are not exported
32211 LIBTOOL_EXPORT_OPTIONS='-export-symbols-regex "^[^_].*"'
32215 # Check whether --enable-debug was given.
32216 if test "${enable_debug+set}" = set; then
32217 enableval=$enable_debug; enable_debug=yes
32222 if test "$enable_debug" = "yes"; then
32224 cat >>confdefs.h <<\_ACEOF
32225 #define ENABLE_DEBUG 1
32228 CFLAGS="$CFLAGS -g"
32229 CXXFLAGS="$CXXFLAGS -g"
32232 # Check whether --enable-skim-support was given.
32233 if test "${enable_skim_support+set}" = set; then
32234 enableval=$enable_skim_support; skim_support=no
32242 if test "$skim_support" = "yes"; then
32243 SCIM_BUILD_SKIM_SETUP_TRUE=
32244 SCIM_BUILD_SKIM_SETUP_FALSE='#'
32246 SCIM_BUILD_SKIM_SETUP_TRUE='#'
32247 SCIM_BUILD_SKIM_SETUP_FALSE=
32251 SCIM_ICONDIR=`$PKG_CONFIG --variable=icondir scim`
32252 SCIM_MODULEDIR=`$PKG_CONFIG --variable=moduledir scim`
32253 SCIM_DATADIR=`$PKG_CONFIG --variable=scimdatadir scim`
32255 if test "x$SCIM_ICONDIR" = "x"; then
32256 SCIM_ICONDIR=${datadir}/scim/icons
32259 if test "x$SCIM_MODULEDIR" = "x"; then
32260 SCIM_MODULEDIR=${libdir}/scim-1.0
32263 if test "x$SCIM_DATADIR" = "x"; then
32264 SCIM_DATADIR=${datadir}/scim
32271 SCIM_HANGUL_DATADIR=${SCIM_DATADIR}/hangul
32274 ac_config_files="$ac_config_files Makefile intl/Makefile po/Makefile.in m4/Makefile src/Makefile data/Makefile scim-hangul.spec"
32277 if test "$skim_support" = "yes"; then
32278 REQUIRED_SKIM_VERSION=1.2.1
32279 kde_libsuffix=`kde-config --libsuffix`
32280 test -z "$KDEDIR" && KDEDIR=`kde-config --prefix`
32282 export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$KDEDIR/lib${kde_libsuffix}/pkgconfig
32285 { echo "$as_me:$LINENO: checking for SKIM" >&5
32286 echo $ECHO_N "checking for SKIM... $ECHO_C" >&6; }
32288 if test -n "$PKG_CONFIG"; then
32289 if test -n "$SKIM_CFLAGS"; then
32290 pkg_cv_SKIM_CFLAGS="$SKIM_CFLAGS"
32292 if test -n "$PKG_CONFIG" && \
32293 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"skim >= \$REQUIRED_SKIM_VERSION\"") >&5
32294 ($PKG_CONFIG --exists --print-errors "skim >= $REQUIRED_SKIM_VERSION") 2>&5
32296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32297 (exit $ac_status); }; then
32298 pkg_cv_SKIM_CFLAGS=`$PKG_CONFIG --cflags "skim >= $REQUIRED_SKIM_VERSION" 2>/dev/null`
32306 if test -n "$PKG_CONFIG"; then
32307 if test -n "$SKIM_LIBS"; then
32308 pkg_cv_SKIM_LIBS="$SKIM_LIBS"
32310 if test -n "$PKG_CONFIG" && \
32311 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"skim >= \$REQUIRED_SKIM_VERSION\"") >&5
32312 ($PKG_CONFIG --exists --print-errors "skim >= $REQUIRED_SKIM_VERSION") 2>&5
32314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32315 (exit $ac_status); }; then
32316 pkg_cv_SKIM_LIBS=`$PKG_CONFIG --libs "skim >= $REQUIRED_SKIM_VERSION" 2>/dev/null`
32327 if test $pkg_failed = yes; then
32329 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32330 _pkg_short_errors_supported=yes
32332 _pkg_short_errors_supported=no
32334 if test $_pkg_short_errors_supported = yes; then
32335 SKIM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "skim >= $REQUIRED_SKIM_VERSION"`
32337 SKIM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "skim >= $REQUIRED_SKIM_VERSION"`
32339 # Put the nasty error message in config.log where it belongs
32340 echo "$SKIM_PKG_ERRORS" >&5
32342 { echo "$as_me:$LINENO: result: no" >&5
32343 echo "${ECHO_T}no" >&6; }
32345 elif test $pkg_failed = untried; then
32348 SKIM_CFLAGS=$pkg_cv_SKIM_CFLAGS
32349 SKIM_LIBS=$pkg_cv_SKIM_LIBS
32350 { echo "$as_me:$LINENO: result: yes" >&5
32351 echo "${ECHO_T}yes" >&6; }
32358 if test "x$HAS_SKIM" = "xyes"; then
32362 { echo "$as_me:$LINENO: checking for SCIM_KDEUTILS" >&5
32363 echo $ECHO_N "checking for SCIM_KDEUTILS... $ECHO_C" >&6; }
32365 if test -n "$PKG_CONFIG"; then
32366 if test -n "$SCIM_KDEUTILS_CFLAGS"; then
32367 pkg_cv_SCIM_KDEUTILS_CFLAGS="$SCIM_KDEUTILS_CFLAGS"
32369 if test -n "$PKG_CONFIG" && \
32370 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"scim_kdeutils >= \$REQUIRED_SKIM_VERSION\"") >&5
32371 ($PKG_CONFIG --exists --print-errors "scim_kdeutils >= $REQUIRED_SKIM_VERSION") 2>&5
32373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32374 (exit $ac_status); }; then
32375 pkg_cv_SCIM_KDEUTILS_CFLAGS=`$PKG_CONFIG --cflags "scim_kdeutils >= $REQUIRED_SKIM_VERSION" 2>/dev/null`
32383 if test -n "$PKG_CONFIG"; then
32384 if test -n "$SCIM_KDEUTILS_LIBS"; then
32385 pkg_cv_SCIM_KDEUTILS_LIBS="$SCIM_KDEUTILS_LIBS"
32387 if test -n "$PKG_CONFIG" && \
32388 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"scim_kdeutils >= \$REQUIRED_SKIM_VERSION\"") >&5
32389 ($PKG_CONFIG --exists --print-errors "scim_kdeutils >= $REQUIRED_SKIM_VERSION") 2>&5
32391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32392 (exit $ac_status); }; then
32393 pkg_cv_SCIM_KDEUTILS_LIBS=`$PKG_CONFIG --libs "scim_kdeutils >= $REQUIRED_SKIM_VERSION" 2>/dev/null`
32404 if test $pkg_failed = yes; then
32406 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32407 _pkg_short_errors_supported=yes
32409 _pkg_short_errors_supported=no
32411 if test $_pkg_short_errors_supported = yes; then
32412 SCIM_KDEUTILS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "scim_kdeutils >= $REQUIRED_SKIM_VERSION"`
32414 SCIM_KDEUTILS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "scim_kdeutils >= $REQUIRED_SKIM_VERSION"`
32416 # Put the nasty error message in config.log where it belongs
32417 echo "$SCIM_KDEUTILS_PKG_ERRORS" >&5
32419 { echo "$as_me:$LINENO: result: no" >&5
32420 echo "${ECHO_T}no" >&6; }
32422 elif test $pkg_failed = untried; then
32425 SCIM_KDEUTILS_CFLAGS=$pkg_cv_SCIM_KDEUTILS_CFLAGS
32426 SCIM_KDEUTILS_LIBS=$pkg_cv_SCIM_KDEUTILS_LIBS
32427 { echo "$as_me:$LINENO: result: yes" >&5
32428 echo "${ECHO_T}yes" >&6; }
32432 if test "x$HAS_KDEUTILS" = "xyes"; then
32433 SCIM_HANGUL_ENABLE_SKIM_SUPPORT=1
32434 subdirs="$subdirs skim"
32437 SCIM_HANGUL_ENABLE_SKIM_SUPPORT=0
32443 if test "$HAS_KDEUTILS" = "yes"; then
32444 SCIM_HANGUL_ENABLE_SKIM_SUPPORT_TRUE=
32445 SCIM_HANGUL_ENABLE_SKIM_SUPPORT_FALSE='#'
32447 SCIM_HANGUL_ENABLE_SKIM_SUPPORT_TRUE='#'
32448 SCIM_HANGUL_ENABLE_SKIM_SUPPORT_FALSE=
32453 cat >confcache <<\_ACEOF
32454 # This file is a shell script that caches the results of configure
32455 # tests run on this system so they can be shared between configure
32456 # scripts and configure runs, see configure's option --config-cache.
32457 # It is not useful on other systems. If it contains results you don't
32458 # want to keep, you may remove or edit it.
32460 # config.status only pays attention to the cache file if you give it
32461 # the --recheck option to rerun configure.
32463 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32464 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32465 # following values.
32469 # The following way of writing the cache mishandles newlines in values,
32470 # but we know of no workaround that is simple, portable, and efficient.
32471 # So, we kill variables containing newlines.
32472 # Ultrix sh set writes to stderr and can't be redirected directly,
32473 # and sets the high bit in the cache file unless we assign to the vars.
32475 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32476 eval ac_val=\$$ac_var
32480 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
32481 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
32484 _ | IFS | as_nl) ;; #(
32485 *) $as_unset $ac_var ;;
32491 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32492 *${as_nl}ac_space=\ *)
32493 # `set' does not quote correctly, so add quotes (double-quote
32494 # substitution turns \\\\ into \\, and sed turns \\ into \).
32497 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32500 # `set' quotes correctly as required by POSIX, so do not add quotes.
32501 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32510 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32512 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32514 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32515 if test -w "$cache_file"; then
32516 test "x$cache_file" != "x/dev/null" &&
32517 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
32518 echo "$as_me: updating cache $cache_file" >&6;}
32519 cat confcache >$cache_file
32521 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
32522 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32527 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32528 # Let make expand exec_prefix.
32529 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32531 DEFS=-DHAVE_CONFIG_H
32535 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32536 # 1. Remove the extension, and $U if already installed.
32537 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32538 ac_i=`echo "$ac_i" | sed "$ac_script"`
32539 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32540 # will be set to the directory where LIBOBJS objects are built.
32541 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32542 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
32544 LIBOBJS=$ac_libobjs
32546 LTLIBOBJS=$ac_ltlibobjs
32549 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
32550 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
32551 Usually this means the macro was only invoked conditionally." >&5
32552 echo "$as_me: error: conditional \"AMDEP\" was never defined.
32553 Usually this means the macro was only invoked conditionally." >&2;}
32554 { (exit 1); exit 1; }; }
32556 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32557 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
32558 Usually this means the macro was only invoked conditionally." >&5
32559 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
32560 Usually this means the macro was only invoked conditionally." >&2;}
32561 { (exit 1); exit 1; }; }
32563 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32564 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
32565 Usually this means the macro was only invoked conditionally." >&5
32566 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
32567 Usually this means the macro was only invoked conditionally." >&2;}
32568 { (exit 1); exit 1; }; }
32570 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
32571 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
32572 Usually this means the macro was only invoked conditionally." >&5
32573 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
32574 Usually this means the macro was only invoked conditionally." >&2;}
32575 { (exit 1); exit 1; }; }
32577 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
32578 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
32579 Usually this means the macro was only invoked conditionally." >&5
32580 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
32581 Usually this means the macro was only invoked conditionally." >&2;}
32582 { (exit 1); exit 1; }; }
32584 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32585 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
32586 Usually this means the macro was only invoked conditionally." >&5
32587 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
32588 Usually this means the macro was only invoked conditionally." >&2;}
32589 { (exit 1); exit 1; }; }
32591 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32592 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
32593 Usually this means the macro was only invoked conditionally." >&5
32594 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
32595 Usually this means the macro was only invoked conditionally." >&2;}
32596 { (exit 1); exit 1; }; }
32598 if test -z "${SCIM_BUILD_SETUP_TRUE}" && test -z "${SCIM_BUILD_SETUP_FALSE}"; then
32599 { { echo "$as_me:$LINENO: error: conditional \"SCIM_BUILD_SETUP\" was never defined.
32600 Usually this means the macro was only invoked conditionally." >&5
32601 echo "$as_me: error: conditional \"SCIM_BUILD_SETUP\" was never defined.
32602 Usually this means the macro was only invoked conditionally." >&2;}
32603 { (exit 1); exit 1; }; }
32605 if test -z "${SCIM_BUILD_SKIM_SETUP_TRUE}" && test -z "${SCIM_BUILD_SKIM_SETUP_FALSE}"; then
32606 { { echo "$as_me:$LINENO: error: conditional \"SCIM_BUILD_SKIM_SETUP\" was never defined.
32607 Usually this means the macro was only invoked conditionally." >&5
32608 echo "$as_me: error: conditional \"SCIM_BUILD_SKIM_SETUP\" was never defined.
32609 Usually this means the macro was only invoked conditionally." >&2;}
32610 { (exit 1); exit 1; }; }
32612 if test -z "${SCIM_HANGUL_ENABLE_SKIM_SUPPORT_TRUE}" && test -z "${SCIM_HANGUL_ENABLE_SKIM_SUPPORT_FALSE}"; then
32613 { { echo "$as_me:$LINENO: error: conditional \"SCIM_HANGUL_ENABLE_SKIM_SUPPORT\" was never defined.
32614 Usually this means the macro was only invoked conditionally." >&5
32615 echo "$as_me: error: conditional \"SCIM_HANGUL_ENABLE_SKIM_SUPPORT\" was never defined.
32616 Usually this means the macro was only invoked conditionally." >&2;}
32617 { (exit 1); exit 1; }; }
32620 : ${CONFIG_STATUS=./config.status}
32621 ac_clean_files_save=$ac_clean_files
32622 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32623 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
32624 echo "$as_me: creating $CONFIG_STATUS" >&6;}
32625 cat >$CONFIG_STATUS <<_ACEOF
32627 # Generated by $as_me.
32628 # Run this file to recreate the current configuration.
32629 # Compiler output produced by configure, useful for debugging
32630 # configure, is in config.log if it exists.
32633 ac_cs_recheck=false
32635 SHELL=\${CONFIG_SHELL-$SHELL}
32638 cat >>$CONFIG_STATUS <<\_ACEOF
32639 ## --------------------- ##
32640 ## M4sh Initialization. ##
32641 ## --------------------- ##
32643 # Be more Bourne compatible
32644 DUALCASE=1; export DUALCASE # for MKS sh
32645 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
32648 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
32649 # is contrary to our usage. Disable this feature.
32650 alias -g '${1+"$@"}'='"$@"'
32651 setopt NO_GLOB_SUBST
32653 case `(set -o) 2>/dev/null` in
32654 *posix*) set -o posix ;;
32663 # Avoid depending upon Character Ranges.
32664 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32665 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32666 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32667 as_cr_digits='0123456789'
32668 as_cr_alnum=$as_cr_Letters$as_cr_digits
32670 # The user is always right.
32671 if test "${PATH_SEPARATOR+set}" != set; then
32672 echo "#! /bin/sh" >conf$$.sh
32673 echo "exit 0" >>conf$$.sh
32675 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
32683 # Support unset when possible.
32684 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32692 # We need space, tab and new line, in precisely that order. Quoting is
32693 # there to prevent editors from complaining about space-tab.
32694 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32695 # splitting by setting IFS to empty value.)
32700 # Find who we are. Look in the path if we contain no directory separator.
32702 *[\\/]* ) as_myself=$0 ;;
32703 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32704 for as_dir in $PATH
32707 test -z "$as_dir" && as_dir=.
32708 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32714 # We did not find ourselves, most probably we were run as `sh COMMAND'
32715 # in which case we are not to be found in the path.
32716 if test "x$as_myself" = x; then
32719 if test ! -f "$as_myself"; then
32720 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32721 { (exit 1); exit 1; }
32724 # Work around bugs in pre-3.0 UWIN ksh.
32725 for as_var in ENV MAIL MAILPATH
32726 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32734 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
32735 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
32736 LC_TELEPHONE LC_TIME
32738 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
32739 eval $as_var=C; export $as_var
32741 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32745 # Required to use basename.
32746 if expr a : '\(a\)' >/dev/null 2>&1 &&
32747 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32753 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32754 as_basename=basename
32760 # Name of the executable.
32761 as_me=`$as_basename -- "$0" ||
32762 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32763 X"$0" : 'X\(//\)$' \| \
32764 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32766 sed '/^.*\/\([^/][^/]*\)\/*$/{
32785 as_lineno_1=$LINENO
32786 as_lineno_2=$LINENO
32787 test "x$as_lineno_1" != "x$as_lineno_2" &&
32788 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
32790 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
32791 # uniformly replaced by the line number. The first 'sed' inserts a
32792 # line-number line after each line using $LINENO; the second 'sed'
32793 # does the real work. The second script uses 'N' to pair each
32794 # line-number line with the line containing $LINENO, and appends
32795 # trailing '-' during substitution so that $LINENO is not a special
32796 # case at line end.
32797 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
32798 # scripts with optimization help from Paolo Bonzini. Blame Lee
32799 # E. McMahon (1931-1989) for sed's syntax. :-)
32811 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
32814 ' >$as_me.lineno &&
32815 chmod +x "$as_me.lineno" ||
32816 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
32817 { (exit 1); exit 1; }; }
32819 # Don't try to exec as it changes $[0], causing all sort of problems
32820 # (the dirname of $[0] is not the place where we might find the
32821 # original and so on. Autoconf is especially sensitive to this).
32822 . "./$as_me.lineno"
32823 # Exit status is that of the last command.
32828 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32834 ECHO_C= ECHO_N= ECHO_T=
32835 case `echo -n x` in
32837 case `echo 'x\c'` in
32838 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
32845 if expr a : '\(a\)' >/dev/null 2>&1 &&
32846 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32852 rm -f conf$$ conf$$.exe conf$$.file
32853 if test -d conf$$.dir; then
32854 rm -f conf$$.dir/conf$$.file
32860 if ln -s conf$$.file conf$$ 2>/dev/null; then
32862 # ... but there are two gotchas:
32863 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32864 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32865 # In both cases, we have to default to `cp -p'.
32866 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
32868 elif ln conf$$.file conf$$ 2>/dev/null; then
32873 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32874 rmdir conf$$.dir 2>/dev/null
32876 if mkdir -p . 2>/dev/null; then
32879 test -d ./-p && rmdir ./-p
32883 if test -x / >/dev/null 2>&1; then
32884 as_test_x='test -x'
32886 if ls -dL / >/dev/null 2>&1; then
32893 if test -d "$1"; then
32899 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
32900 ???[sx]*):;;*)false;;esac;fi
32904 as_executable_p=$as_test_x
32906 # Sed expression to map a string onto a valid CPP name.
32907 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32909 # Sed expression to map a string onto a valid variable name.
32910 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32915 # Save the log message, to keep $[0] and so on meaningful, and to
32916 # report actual input values of CONFIG_FILES etc. instead of their
32917 # values after options handling.
32919 This file was extended by scim-hangul $as_me 0.3.2, which was
32920 generated by GNU Autoconf 2.61. Invocation command line was
32922 CONFIG_FILES = $CONFIG_FILES
32923 CONFIG_HEADERS = $CONFIG_HEADERS
32924 CONFIG_LINKS = $CONFIG_LINKS
32925 CONFIG_COMMANDS = $CONFIG_COMMANDS
32928 on `(hostname || uname -n) 2>/dev/null | sed 1q`
32933 cat >>$CONFIG_STATUS <<_ACEOF
32934 # Files that config.status was made for.
32935 config_files="$ac_config_files"
32936 config_headers="$ac_config_headers"
32937 config_commands="$ac_config_commands"
32941 cat >>$CONFIG_STATUS <<\_ACEOF
32943 \`$as_me' instantiates files from templates according to the
32944 current configuration.
32946 Usage: $0 [OPTIONS] [FILE]...
32948 -h, --help print this help, then exit
32949 -V, --version print version number and configuration settings, then exit
32950 -q, --quiet do not print progress messages
32951 -d, --debug don't remove temporary files
32952 --recheck update $as_me by reconfiguring in the same conditions
32953 --file=FILE[:TEMPLATE]
32954 instantiate the configuration file FILE
32955 --header=FILE[:TEMPLATE]
32956 instantiate the configuration header FILE
32958 Configuration files:
32961 Configuration headers:
32964 Configuration commands:
32967 Report bugs to <bug-autoconf@gnu.org>."
32970 cat >>$CONFIG_STATUS <<_ACEOF
32972 scim-hangul config.status 0.3.2
32973 configured by $0, generated by GNU Autoconf 2.61,
32974 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
32976 Copyright (C) 2006 Free Software Foundation, Inc.
32977 This config.status script is free software; the Free Software Foundation
32978 gives unlimited permission to copy, distribute and modify it."
32985 cat >>$CONFIG_STATUS <<\_ACEOF
32986 # If no file are specified by the user, then we need to provide default
32987 # value. By we need to know if files were specified by the user.
32993 ac_option=`expr "X$1" : 'X\([^=]*\)='`
32994 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33005 # Handling of the options.
33006 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33008 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33009 echo "$ac_cs_version"; exit ;;
33010 --debug | --debu | --deb | --de | --d | -d )
33012 --file | --fil | --fi | --f )
33014 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
33015 ac_need_defaults=false;;
33016 --header | --heade | --head | --hea )
33018 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
33019 ac_need_defaults=false;;
33021 # Conflict between --help and --header
33022 { echo "$as_me: error: ambiguous option: $1
33023 Try \`$0 --help' for more information." >&2
33024 { (exit 1); exit 1; }; };;
33025 --help | --hel | -h )
33026 echo "$ac_cs_usage"; exit ;;
33027 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33028 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33031 # This is an error.
33032 -*) { echo "$as_me: error: unrecognized option: $1
33033 Try \`$0 --help' for more information." >&2
33034 { (exit 1); exit 1; }; } ;;
33036 *) ac_config_targets="$ac_config_targets $1"
33037 ac_need_defaults=false ;;
33043 ac_configure_extra_args=
33045 if $ac_cs_silent; then
33047 ac_configure_extra_args="$ac_configure_extra_args --silent"
33051 cat >>$CONFIG_STATUS <<_ACEOF
33052 if \$ac_cs_recheck; then
33053 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
33054 CONFIG_SHELL=$SHELL
33055 export CONFIG_SHELL
33056 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33060 cat >>$CONFIG_STATUS <<\_ACEOF
33064 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33065 ## Running $as_me. ##
33071 cat >>$CONFIG_STATUS <<_ACEOF
33075 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
33076 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
33078 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
33079 # Capture the value of LINGUAS because we need it to compute CATALOGS.
33080 LINGUAS="${LINGUAS-%UNSET%}"
33082 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33086 cat >>$CONFIG_STATUS <<\_ACEOF
33088 # Handling of arguments.
33089 for ac_config_target in $ac_config_targets
33091 case $ac_config_target in
33092 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
33093 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
33094 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
33095 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33096 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
33097 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
33098 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
33099 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
33100 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
33101 "scim-hangul.spec") CONFIG_FILES="$CONFIG_FILES scim-hangul.spec" ;;
33103 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
33104 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
33105 { (exit 1); exit 1; }; };;
33110 # If the user did not use the arguments to specify the items to instantiate,
33111 # then the envvar interface is used. Set only those that are not.
33112 # We use the long form for the default assignment because of an extremely
33113 # bizarre bug on SunOS 4.1.3.
33114 if $ac_need_defaults; then
33115 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33116 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33117 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33120 # Have a temporary directory for convenience. Make it in the build tree
33121 # simply because there is no reason against having it here, and in addition,
33122 # creating and moving files from /tmp can sometimes cause problems.
33123 # Hook for its removal unless debugging.
33124 # Note that there is a small window in which the directory will not be cleaned:
33125 # after its creation but before its name has been assigned to `$tmp'.
33129 trap 'exit_status=$?
33130 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
33132 trap '{ (exit 1); exit 1; }' 1 2 13 15
33134 # Create a (secure) tmp directory for tmp files.
33137 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33138 test -n "$tmp" && test -d "$tmp"
33141 tmp=./conf$$-$RANDOM
33142 (umask 077 && mkdir "$tmp")
33145 echo "$me: cannot create a temporary directory in ." >&2
33146 { (exit 1); exit 1; }
33150 # Set up the sed scripts for CONFIG_FILES section.
33153 # No need to generate the scripts if there are no CONFIG_FILES.
33154 # This happens for instance when ./config.status config.h
33155 if test -n "$CONFIG_FILES"; then
33162 for ac_last_try in false false false false false :; do
33163 cat >conf$$subs.sed <<_ACEOF
33164 SHELL!$SHELL$ac_delim
33165 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
33166 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
33167 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
33168 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
33169 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
33170 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
33171 exec_prefix!$exec_prefix$ac_delim
33172 prefix!$prefix$ac_delim
33173 program_transform_name!$program_transform_name$ac_delim
33174 bindir!$bindir$ac_delim
33175 sbindir!$sbindir$ac_delim
33176 libexecdir!$libexecdir$ac_delim
33177 datarootdir!$datarootdir$ac_delim
33178 datadir!$datadir$ac_delim
33179 sysconfdir!$sysconfdir$ac_delim
33180 sharedstatedir!$sharedstatedir$ac_delim
33181 localstatedir!$localstatedir$ac_delim
33182 includedir!$includedir$ac_delim
33183 oldincludedir!$oldincludedir$ac_delim
33184 docdir!$docdir$ac_delim
33185 infodir!$infodir$ac_delim
33186 htmldir!$htmldir$ac_delim
33187 dvidir!$dvidir$ac_delim
33188 pdfdir!$pdfdir$ac_delim
33189 psdir!$psdir$ac_delim
33190 libdir!$libdir$ac_delim
33191 localedir!$localedir$ac_delim
33192 mandir!$mandir$ac_delim
33193 DEFS!$DEFS$ac_delim
33194 ECHO_C!$ECHO_C$ac_delim
33195 ECHO_N!$ECHO_N$ac_delim
33196 ECHO_T!$ECHO_T$ac_delim
33197 LIBS!$LIBS$ac_delim
33198 build_alias!$build_alias$ac_delim
33199 host_alias!$host_alias$ac_delim
33200 target_alias!$target_alias$ac_delim
33201 SCIM_HANGUL_MAJOR_VERSION!$SCIM_HANGUL_MAJOR_VERSION$ac_delim
33202 SCIM_HANGUL_MINOR_VERSION!$SCIM_HANGUL_MINOR_VERSION$ac_delim
33203 SCIM_HANGUL_MICRO_VERSION!$SCIM_HANGUL_MICRO_VERSION$ac_delim
33204 SCIM_HANGUL_VERSION!$SCIM_HANGUL_VERSION$ac_delim
33205 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
33206 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
33207 INSTALL_DATA!$INSTALL_DATA$ac_delim
33208 CYGPATH_W!$CYGPATH_W$ac_delim
33209 PACKAGE!$PACKAGE$ac_delim
33210 VERSION!$VERSION$ac_delim
33211 ACLOCAL!$ACLOCAL$ac_delim
33212 AUTOCONF!$AUTOCONF$ac_delim
33213 AUTOMAKE!$AUTOMAKE$ac_delim
33214 AUTOHEADER!$AUTOHEADER$ac_delim
33215 MAKEINFO!$MAKEINFO$ac_delim
33216 install_sh!$install_sh$ac_delim
33217 STRIP!$STRIP$ac_delim
33218 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
33219 mkdir_p!$mkdir_p$ac_delim
33221 SET_MAKE!$SET_MAKE$ac_delim
33222 am__leading_dot!$am__leading_dot$ac_delim
33223 AMTAR!$AMTAR$ac_delim
33224 am__tar!$am__tar$ac_delim
33225 am__untar!$am__untar$ac_delim
33226 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
33227 USE_NLS!$USE_NLS$ac_delim
33228 MSGFMT!$MSGFMT$ac_delim
33229 GMSGFMT!$GMSGFMT$ac_delim
33230 XGETTEXT!$XGETTEXT$ac_delim
33231 MSGMERGE!$MSGMERGE$ac_delim
33233 CFLAGS!$CFLAGS$ac_delim
33234 LDFLAGS!$LDFLAGS$ac_delim
33235 CPPFLAGS!$CPPFLAGS$ac_delim
33236 ac_ct_CC!$ac_ct_CC$ac_delim
33237 EXEEXT!$EXEEXT$ac_delim
33238 OBJEXT!$OBJEXT$ac_delim
33239 DEPDIR!$DEPDIR$ac_delim
33240 am__include!$am__include$ac_delim
33241 am__quote!$am__quote$ac_delim
33242 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
33243 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
33244 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
33245 CCDEPMODE!$CCDEPMODE$ac_delim
33246 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
33247 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
33248 build!$build$ac_delim
33249 build_cpu!$build_cpu$ac_delim
33250 build_vendor!$build_vendor$ac_delim
33251 build_os!$build_os$ac_delim
33252 host!$host$ac_delim
33253 host_cpu!$host_cpu$ac_delim
33254 host_vendor!$host_vendor$ac_delim
33255 host_os!$host_os$ac_delim
33257 GREP!$GREP$ac_delim
33258 EGREP!$EGREP$ac_delim
33259 GLIBC2!$GLIBC2$ac_delim
33260 RANLIB!$RANLIB$ac_delim
33263 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
33265 elif $ac_last_try; then
33266 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
33267 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
33268 { (exit 1); exit 1; }; }
33270 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33274 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
33275 if test -n "$ac_eof"; then
33276 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
33277 ac_eof=`expr $ac_eof + 1`
33280 cat >>$CONFIG_STATUS <<_ACEOF
33281 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
33282 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33285 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
33286 s/^/s,@/; s/!/@,|#_!!_#|/
33289 s/'"$ac_delim"'$/,g/; t
33291 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
33292 ' >>$CONFIG_STATUS <conf$$subs.sed
33293 rm -f conf$$subs.sed
33294 cat >>$CONFIG_STATUS <<_ACEOF
33300 for ac_last_try in false false false false false :; do
33301 cat >conf$$subs.sed <<_ACEOF
33302 CFLAG_VISIBILITY!$CFLAG_VISIBILITY$ac_delim
33303 HAVE_VISIBILITY!$HAVE_VISIBILITY$ac_delim
33304 ALLOCA!$ALLOCA$ac_delim
33305 LIBPTH!$LIBPTH$ac_delim
33306 LTLIBPTH!$LTLIBPTH$ac_delim
33307 LIBTHREAD!$LIBTHREAD$ac_delim
33308 LTLIBTHREAD!$LTLIBTHREAD$ac_delim
33309 LIBMULTITHREAD!$LIBMULTITHREAD$ac_delim
33310 LTLIBMULTITHREAD!$LTLIBMULTITHREAD$ac_delim
33311 LIBICONV!$LIBICONV$ac_delim
33312 LTLIBICONV!$LTLIBICONV$ac_delim
33313 INTLBISON!$INTLBISON$ac_delim
33314 GLIBC21!$GLIBC21$ac_delim
33315 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
33316 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
33317 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
33318 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
33319 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
33320 WOE32DLL!$WOE32DLL$ac_delim
33321 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
33322 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
33323 CATOBJEXT!$CATOBJEXT$ac_delim
33324 DATADIRNAME!$DATADIRNAME$ac_delim
33325 INSTOBJEXT!$INSTOBJEXT$ac_delim
33326 GENCAT!$GENCAT$ac_delim
33327 INTLOBJS!$INTLOBJS$ac_delim
33328 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
33329 INTLLIBS!$INTLLIBS$ac_delim
33330 LIBINTL!$LIBINTL$ac_delim
33331 LTLIBINTL!$LTLIBINTL$ac_delim
33332 POSUB!$POSUB$ac_delim
33333 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
33335 LN_S!$LN_S$ac_delim
33336 ECHO!$ECHO$ac_delim
33339 CXXFLAGS!$CXXFLAGS$ac_delim
33340 ac_ct_CXX!$ac_ct_CXX$ac_delim
33341 CXXDEPMODE!$CXXDEPMODE$ac_delim
33342 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
33343 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
33344 CXXCPP!$CXXCPP$ac_delim
33346 FFLAGS!$FFLAGS$ac_delim
33347 ac_ct_F77!$ac_ct_F77$ac_delim
33348 LIBTOOL!$LIBTOOL$ac_delim
33349 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
33350 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
33351 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
33352 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
33353 LIBADD_DL!$LIBADD_DL$ac_delim
33354 LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
33355 PKG_CONFIG!$PKG_CONFIG$ac_delim
33356 LIBHANGUL_CFLAGS!$LIBHANGUL_CFLAGS$ac_delim
33357 LIBHANGUL_LIBS!$LIBHANGUL_LIBS$ac_delim
33358 SCIM_CFLAGS!$SCIM_CFLAGS$ac_delim
33359 SCIM_LIBS!$SCIM_LIBS$ac_delim
33360 SCIM_GTKUTILS_CFLAGS!$SCIM_GTKUTILS_CFLAGS$ac_delim
33361 SCIM_GTKUTILS_LIBS!$SCIM_GTKUTILS_LIBS$ac_delim
33362 SCIM_VERSION!$SCIM_VERSION$ac_delim
33363 SCIM_BUILD_SETUP_TRUE!$SCIM_BUILD_SETUP_TRUE$ac_delim
33364 SCIM_BUILD_SETUP_FALSE!$SCIM_BUILD_SETUP_FALSE$ac_delim
33365 SCIM_BUILD_SETUP!$SCIM_BUILD_SETUP$ac_delim
33366 ac_aux_dir!$ac_aux_dir$ac_delim
33367 LIBTOOL_EXPORT_OPTIONS!$LIBTOOL_EXPORT_OPTIONS$ac_delim
33368 SCIM_BUILD_SKIM_SETUP_TRUE!$SCIM_BUILD_SKIM_SETUP_TRUE$ac_delim
33369 SCIM_BUILD_SKIM_SETUP_FALSE!$SCIM_BUILD_SKIM_SETUP_FALSE$ac_delim
33370 SCIM_ICONDIR!$SCIM_ICONDIR$ac_delim
33371 SCIM_MODULEDIR!$SCIM_MODULEDIR$ac_delim
33372 SCIM_DATADIR!$SCIM_DATADIR$ac_delim
33373 SCIM_HANGUL_DATADIR!$SCIM_HANGUL_DATADIR$ac_delim
33374 KDEDIR!$KDEDIR$ac_delim
33375 SKIM_CFLAGS!$SKIM_CFLAGS$ac_delim
33376 SKIM_LIBS!$SKIM_LIBS$ac_delim
33377 SCIM_KDEUTILS_CFLAGS!$SCIM_KDEUTILS_CFLAGS$ac_delim
33378 SCIM_KDEUTILS_LIBS!$SCIM_KDEUTILS_LIBS$ac_delim
33379 subdirs!$subdirs$ac_delim
33380 SCIM_HANGUL_ENABLE_SKIM_SUPPORT_TRUE!$SCIM_HANGUL_ENABLE_SKIM_SUPPORT_TRUE$ac_delim
33381 SCIM_HANGUL_ENABLE_SKIM_SUPPORT_FALSE!$SCIM_HANGUL_ENABLE_SKIM_SUPPORT_FALSE$ac_delim
33382 SCIM_HANGUL_ENABLE_SKIM_SUPPORT!$SCIM_HANGUL_ENABLE_SKIM_SUPPORT$ac_delim
33383 LIBOBJS!$LIBOBJS$ac_delim
33384 LTLIBOBJS!$LTLIBOBJS$ac_delim
33387 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 83; then
33389 elif $ac_last_try; then
33390 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
33391 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
33392 { (exit 1); exit 1; }; }
33394 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33398 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
33399 if test -n "$ac_eof"; then
33400 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
33401 ac_eof=`expr $ac_eof + 1`
33404 cat >>$CONFIG_STATUS <<_ACEOF
33405 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
33406 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
33409 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
33410 s/^/s,@/; s/!/@,|#_!!_#|/
33413 s/'"$ac_delim"'$/,g/; t
33415 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
33416 ' >>$CONFIG_STATUS <conf$$subs.sed
33417 rm -f conf$$subs.sed
33418 cat >>$CONFIG_STATUS <<_ACEOF
33425 # VPATH may cause trouble with some makes, so we remove $(srcdir),
33426 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
33427 # trailing colons and then remove the whole line if VPATH becomes empty
33428 # (actually we leave an empty line to preserve line numbers).
33429 if test "x$srcdir" = x.; then
33430 ac_vpsub='/^[ ]*VPATH[ ]*=/{
33431 s/:*\$(srcdir):*/:/
33432 s/:*\${srcdir}:*/:/
33434 s/^\([^=]*=[ ]*\):*/\1/
33440 cat >>$CONFIG_STATUS <<\_ACEOF
33441 fi # test -n "$CONFIG_FILES"
33444 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
33447 :[FHLC]) ac_mode=$ac_tag; continue;;
33449 case $ac_mode$ac_tag in
33451 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
33452 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
33453 { (exit 1); exit 1; }; };;
33454 :[FH]-) ac_tag=-:-;;
33455 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33472 -) ac_f="$tmp/stdin";;
33473 *) # Look for the file first in the build tree, then in the source tree
33474 # (if the path is not absolute). The absolute path cannot be DOS-style,
33475 # because $ac_f cannot contain `:'.
33479 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33481 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
33482 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
33483 { (exit 1); exit 1; }; };;
33485 ac_file_inputs="$ac_file_inputs $ac_f"
33488 # Let's still pretend it is `configure' which instantiates (i.e., don't
33489 # use $as_me), people would be surprised to read:
33490 # /* config.h. Generated by config.status. */
33491 configure_input="Generated from "`IFS=:
33492 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
33493 if test x"$ac_file" != x-; then
33494 configure_input="$ac_file. $configure_input"
33495 { echo "$as_me:$LINENO: creating $ac_file" >&5
33496 echo "$as_me: creating $ac_file" >&6;}
33500 *:-:* | *:-) cat >"$tmp/stdin";;
33505 ac_dir=`$as_dirname -- "$ac_file" ||
33506 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33507 X"$ac_file" : 'X\(//\)[^/]' \| \
33508 X"$ac_file" : 'X\(//\)$' \| \
33509 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33511 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33515 /^X\(\/\/\)[^/].*/{
33530 -*) as_dir=./$as_dir;;
33532 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
33536 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
33537 *) as_qdir=$as_dir;;
33539 as_dirs="'$as_qdir' $as_dirs"
33540 as_dir=`$as_dirname -- "$as_dir" ||
33541 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33542 X"$as_dir" : 'X\(//\)[^/]' \| \
33543 X"$as_dir" : 'X\(//\)$' \| \
33544 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33546 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33550 /^X\(\/\/\)[^/].*/{
33563 test -d "$as_dir" && break
33565 test -z "$as_dirs" || eval "mkdir $as_dirs"
33566 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
33567 echo "$as_me: error: cannot create directory $as_dir" >&2;}
33568 { (exit 1); exit 1; }; }; }
33572 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33574 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
33575 # A ".." for each directory in $ac_dir_suffix.
33576 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
33577 case $ac_top_builddir_sub in
33578 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33579 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33582 ac_abs_top_builddir=$ac_pwd
33583 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33584 # for backward compatibility:
33585 ac_top_builddir=$ac_top_build_prefix
33588 .) # We are building in place.
33590 ac_top_srcdir=$ac_top_builddir_sub
33591 ac_abs_top_srcdir=$ac_pwd ;;
33592 [\\/]* | ?:[\\/]* ) # Absolute name.
33593 ac_srcdir=$srcdir$ac_dir_suffix;
33594 ac_top_srcdir=$srcdir
33595 ac_abs_top_srcdir=$srcdir ;;
33596 *) # Relative name.
33597 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33598 ac_top_srcdir=$ac_top_build_prefix$srcdir
33599 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33601 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33611 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
33612 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
33616 cat >>$CONFIG_STATUS <<\_ACEOF
33617 # If the template does not know about datarootdir, expand it.
33618 # FIXME: This hack should be removed a few years after 2.60.
33619 ac_datarootdir_hack=; ac_datarootdir_seen=
33621 case `sed -n '/datarootdir/ {
33630 ' $ac_file_inputs` in
33631 *datarootdir*) ac_datarootdir_seen=yes;;
33632 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33633 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33634 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33636 cat >>$CONFIG_STATUS <<_ACEOF
33637 ac_datarootdir_hack='
33638 s&@datadir@&$datadir&g
33639 s&@docdir@&$docdir&g
33640 s&@infodir@&$infodir&g
33641 s&@localedir@&$localedir&g
33642 s&@mandir@&$mandir&g
33643 s&\\\${datarootdir}&$datarootdir&g' ;;
33647 # Neutralize VPATH when `$srcdir' = `.'.
33648 # Shell code in configure.ac might set extrasub.
33649 # FIXME: do we really want to maintain this feature?
33650 cat >>$CONFIG_STATUS <<_ACEOF
33654 cat >>$CONFIG_STATUS <<\_ACEOF
33656 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33657 s&@configure_input@&$configure_input&;t t
33658 s&@top_builddir@&$ac_top_builddir_sub&;t t
33659 s&@srcdir@&$ac_srcdir&;t t
33660 s&@abs_srcdir@&$ac_abs_srcdir&;t t
33661 s&@top_srcdir@&$ac_top_srcdir&;t t
33662 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33663 s&@builddir@&$ac_builddir&;t t
33664 s&@abs_builddir@&$ac_abs_builddir&;t t
33665 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33666 s&@INSTALL@&$ac_INSTALL&;t t
33667 $ac_datarootdir_hack
33668 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
33670 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33671 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
33672 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
33673 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33674 which seems to be undefined. Please make sure it is defined." >&5
33675 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33676 which seems to be undefined. Please make sure it is defined." >&2;}
33680 -) cat "$tmp/out"; rm -f "$tmp/out";;
33681 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
33690 # Transform confdefs.h into a sed script `conftest.defines', that
33691 # substitutes the proper values into config.h.in to produce config.h.
33692 rm -f conftest.defines conftest.tail
33693 # First, append a space to every undef/define line, to ease matching.
33694 echo 's/$/ /' >conftest.defines
33695 # Then, protect against being on the right side of a sed subst, or in
33696 # an unquoted here document, in config.status. If some macros were
33697 # called several times there might be several #defines for the same
33698 # symbol, which is useless. But do not sort them, since the last
33699 # AC_DEFINE must be honored.
33700 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33701 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
33702 # NAME is the cpp macro being defined, VALUE is the value it is being given.
33703 # PARAMS is the parameter list in the macro definition--in most cases, it's
33704 # just an empty string.
33705 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
33706 ac_dB='\\)[ (].*,\\1define\\2'
33714 s/^[ ]*#[ ]*define[ ][ ]*//
33719 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
33720 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
33721 ' >>conftest.defines
33723 # Remove the space that was appended to ease matching.
33724 # Then replace #undef with comments. This is necessary, for
33725 # example, in the case of _POSIX_SOURCE, which is predefined and required
33726 # on some systems where configure will not decide to define it.
33727 # (The regexp can be short, since the line contains either #define or #undef.)
33729 s,^[ #]*u.*,/* & */,' >>conftest.defines
33731 # Break up conftest.defines:
33732 ac_max_sed_lines=50
33734 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
33735 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
33736 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
33738 ac_in='$ac_file_inputs'
33739 ac_out='"$tmp/out1"'
33740 ac_nxt='"$tmp/out2"'
33744 # Write a here document:
33745 cat >>$CONFIG_STATUS <<_ACEOF
33746 # First, check the format of the line:
33747 cat >"\$tmp/defines.sed" <<\\CEOF
33748 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
33749 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
33753 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
33755 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
33756 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
33757 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
33758 grep . conftest.tail >/dev/null || break
33759 rm -f conftest.defines
33760 mv conftest.tail conftest.defines
33762 rm -f conftest.defines conftest.tail
33764 echo "ac_result=$ac_in" >>$CONFIG_STATUS
33765 cat >>$CONFIG_STATUS <<\_ACEOF
33766 if test x"$ac_file" != x-; then
33767 echo "/* $configure_input */" >"$tmp/config.h"
33768 cat "$ac_result" >>"$tmp/config.h"
33769 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
33770 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
33771 echo "$as_me: $ac_file is unchanged" >&6;}
33774 mv "$tmp/config.h" $ac_file
33777 echo "/* $configure_input */"
33781 # Compute $ac_file's index in $config_headers.
33783 for _am_header in $config_headers :; do
33784 case $_am_header in
33785 $ac_file | $ac_file:* )
33788 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
33791 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
33792 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33793 X$ac_file : 'X\(//\)[^/]' \| \
33794 X$ac_file : 'X\(//\)$' \| \
33795 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
33797 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33801 /^X\(\/\/\)[^/].*/{
33813 s/.*/./; q'`/stamp-h$_am_stamp_count
33816 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
33817 echo "$as_me: executing $ac_file commands" >&6;}
33822 case $ac_file$ac_mode in
33824 for ac_file in $CONFIG_FILES; do
33825 # Support "outfile[:infile[:infile...]]"
33827 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
33829 # PO directories have a Makefile.in generated from Makefile.in.in.
33830 case "$ac_file" in */Makefile.in)
33831 # Adjust a relative srcdir.
33832 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
33833 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
33834 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
33835 # In autoconf-2.13 it is called $ac_given_srcdir.
33836 # In autoconf-2.50 it is called $srcdir.
33837 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
33838 case "$ac_given_srcdir" in
33839 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
33840 /*) top_srcdir="$ac_given_srcdir" ;;
33841 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
33843 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
33844 rm -f "$ac_dir/POTFILES"
33845 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
33846 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
33847 POMAKEFILEDEPS="POTFILES.in"
33848 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
33849 # on $ac_dir but don't depend on user-specified configuration
33851 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
33852 # The LINGUAS file contains the set of available languages.
33853 if test -n "$OBSOLETE_ALL_LINGUAS"; then
33854 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
33856 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
33857 # Hide the ALL_LINGUAS assigment from automake.
33858 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
33859 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
33861 # The set of available languages was given in configure.in.
33862 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
33865 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
33866 # Compute UPDATEPOFILES
33867 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
33868 # Compute DUMMYPOFILES
33869 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
33871 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
33872 case "$ac_given_srcdir" in
33874 *) srcdirpre='$(srcdir)/' ;;
33880 for lang in $ALL_LINGUAS; do
33881 POFILES="$POFILES $srcdirpre$lang.po"
33882 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
33883 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
33884 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
33886 # CATALOGS depends on both $ac_dir and the user's LINGUAS
33887 # environment variable.
33889 if test -n "$ALL_LINGUAS"; then
33890 for presentlang in $ALL_LINGUAS; do
33892 if test "%UNSET%" != "$LINGUAS"; then
33893 desiredlanguages="$LINGUAS"
33895 desiredlanguages="$ALL_LINGUAS"
33897 for desiredlang in $desiredlanguages; do
33898 # Use the presentlang catalog if desiredlang is
33899 # a. equal to presentlang, or
33900 # b. a variant of presentlang (because in this case,
33901 # presentlang can be used as a fallback for messages
33902 # which are not translated in the desiredlang catalog).
33903 case "$desiredlang" in
33904 "$presentlang"*) useit=yes;;
33907 if test $useit = yes; then
33908 INST_LINGUAS="$INST_LINGUAS $presentlang"
33913 if test -n "$INST_LINGUAS"; then
33914 for lang in $INST_LINGUAS; do
33915 CATALOGS="$CATALOGS $lang.gmo"
33918 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
33919 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"
33920 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
33921 if test -f "$f"; then
33923 *.orig | *.bak | *~) ;;
33924 *) cat "$f" >> "$ac_dir/Makefile" ;;
33932 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
33933 # Strip MF so we end up with the name of the file.
33934 mf=`echo "$mf" | sed -e 's/:.*$//'`
33935 # Check whether this is an Automake generated Makefile or not.
33936 # We used to match only the files named `Makefile.in', but
33937 # some people rename them; so instead we look at the file content.
33938 # Grep'ing the first line is not enough: some people post-process
33939 # each Makefile.in and add a new line on top of each file to say so.
33940 # So let's grep whole file.
33941 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
33942 dirpart=`$as_dirname -- "$mf" ||
33943 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33944 X"$mf" : 'X\(//\)[^/]' \| \
33945 X"$mf" : 'X\(//\)$' \| \
33946 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
33948 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33952 /^X\(\/\/\)[^/].*/{
33968 # Extract the definition of DEPDIR, am__include, and am__quote
33969 # from the Makefile without running `make'.
33970 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
33971 test -z "$DEPDIR" && continue
33972 am__include=`sed -n 's/^am__include = //p' < "$mf"`
33973 test -z "am__include" && continue
33974 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
33975 # When using ansi2knr, U may be empty or an underscore; expand it
33976 U=`sed -n 's/^U = //p' < "$mf"`
33977 # Find all dependency output files, they are included files with
33978 # $(DEPDIR) in their names. We invoke sed twice because it is the
33979 # simplest approach to changing $(DEPDIR) to its actual value in the
33981 for file in `sed -n "
33982 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
33983 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
33984 # Make sure the directory exists.
33985 test -f "$dirpart/$file" && continue
33986 fdir=`$as_dirname -- "$file" ||
33987 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33988 X"$file" : 'X\(//\)[^/]' \| \
33989 X"$file" : 'X\(//\)$' \| \
33990 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
33992 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33996 /^X\(\/\/\)[^/].*/{
34009 { as_dir=$dirpart/$fdir
34011 -*) as_dir=./$as_dir;;
34013 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34017 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34018 *) as_qdir=$as_dir;;
34020 as_dirs="'$as_qdir' $as_dirs"
34021 as_dir=`$as_dirname -- "$as_dir" ||
34022 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34023 X"$as_dir" : 'X\(//\)[^/]' \| \
34024 X"$as_dir" : 'X\(//\)$' \| \
34025 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34027 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34031 /^X\(\/\/\)[^/].*/{
34044 test -d "$as_dir" && break
34046 test -z "$as_dirs" || eval "mkdir $as_dirs"
34047 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34048 echo "$as_me: error: cannot create directory $as_dir" >&2;}
34049 { (exit 1); exit 1; }; }; }
34050 # echo "creating $dirpart/$file"
34051 echo '# dummy' > "$dirpart/$file"
34060 { (exit 0); exit 0; }
34062 chmod +x $CONFIG_STATUS
34063 ac_clean_files=$ac_clean_files_save
34066 # configure is writing to config.log, and then calls config.status.
34067 # config.status does its own redirection, appending to config.log.
34068 # Unfortunately, on DOS this fails, as config.log is still kept open
34069 # by configure, so config.status won't be able to write to it; its
34070 # output is simply discarded. So we exec the FD to /dev/null,
34071 # effectively closing config.log, so it can be properly (re)opened and
34072 # appended to by config.status. When coming back to configure, we
34073 # need to make the FD available again.
34074 if test "$no_create" != yes; then
34076 ac_config_status_args=
34077 test "$silent" = yes &&
34078 ac_config_status_args="$ac_config_status_args --quiet"
34080 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34082 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34083 # would make configure fail if this is the last instruction.
34084 $ac_cs_success || { (exit 1); exit 1; }
34088 # CONFIG_SUBDIRS section.
34090 if test "$no_recursion" != yes; then
34092 # Remove --cache-file and --srcdir arguments so they do not pile up.
34093 ac_sub_configure_args=
34095 eval "set x $ac_configure_args"
34099 if test -n "$ac_prev"; then
34104 -cache-file | --cache-file | --cache-fil | --cache-fi \
34105 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
34106 ac_prev=cache_file ;;
34107 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
34108 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
34111 --config-cache | -C)
34113 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
34115 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
34117 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
34119 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
34123 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34125 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
34129 # Always prepend --prefix to ensure using the same prefix
34130 # in subdir configurations.
34131 ac_arg="--prefix=$prefix"
34133 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34135 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
34138 if test "$silent" = yes; then
34139 ac_sub_configure_args="--silent $ac_sub_configure_args"
34143 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
34145 # Do not complain, so a configure script can configure whichever
34146 # parts of a large source tree are present.
34147 test -d "$srcdir/$ac_dir" || continue
34149 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
34150 echo "$as_me:$LINENO: $ac_msg" >&5
34154 -*) as_dir=./$as_dir;;
34156 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34160 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34161 *) as_qdir=$as_dir;;
34163 as_dirs="'$as_qdir' $as_dirs"
34164 as_dir=`$as_dirname -- "$as_dir" ||
34165 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34166 X"$as_dir" : 'X\(//\)[^/]' \| \
34167 X"$as_dir" : 'X\(//\)$' \| \
34168 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34170 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34174 /^X\(\/\/\)[^/].*/{
34187 test -d "$as_dir" && break
34189 test -z "$as_dirs" || eval "mkdir $as_dirs"
34190 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34191 echo "$as_me: error: cannot create directory $as_dir" >&2;}
34192 { (exit 1); exit 1; }; }; }
34196 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34198 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34199 # A ".." for each directory in $ac_dir_suffix.
34200 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34201 case $ac_top_builddir_sub in
34202 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34203 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34206 ac_abs_top_builddir=$ac_pwd
34207 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34208 # for backward compatibility:
34209 ac_top_builddir=$ac_top_build_prefix
34212 .) # We are building in place.
34214 ac_top_srcdir=$ac_top_builddir_sub
34215 ac_abs_top_srcdir=$ac_pwd ;;
34216 [\\/]* | ?:[\\/]* ) # Absolute name.
34217 ac_srcdir=$srcdir$ac_dir_suffix;
34218 ac_top_srcdir=$srcdir
34219 ac_abs_top_srcdir=$srcdir ;;
34220 *) # Relative name.
34221 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34222 ac_top_srcdir=$ac_top_build_prefix$srcdir
34223 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34225 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34230 # Check for guested configure; otherwise get Cygnus style configure.
34231 if test -f "$ac_srcdir/configure.gnu"; then
34232 ac_sub_configure=$ac_srcdir/configure.gnu
34233 elif test -f "$ac_srcdir/configure"; then
34234 ac_sub_configure=$ac_srcdir/configure
34235 elif test -f "$ac_srcdir/configure.in"; then
34236 # This should be Cygnus configure.
34237 ac_sub_configure=$ac_aux_dir/configure
34239 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
34240 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
34244 # The recursion is here.
34245 if test -n "$ac_sub_configure"; then
34246 # Make the cache file name correct relative to the subdirectory.
34247 case $cache_file in
34248 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
34249 *) # Relative name.
34250 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
34253 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
34254 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
34255 # The eval makes quoting arguments work.
34256 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
34257 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
34258 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
34259 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
34260 { (exit 1); exit 1; }; }