2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for libhangul 0.0.7.
5 # Report bugs to <http://kldp.net/projects/hangul/>.
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='libhangul'
730 PACKAGE_TARNAME='libhangul'
731 PACKAGE_VERSION='0.0.7'
732 PACKAGE_STRING='libhangul 0.0.7'
733 PACKAGE_BUGREPORT='http://kldp.net/projects/hangul/'
735 ac_unique_file="hangul/hangul.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
823 INSTALL_STRIP_PROGRAM
880 ac_precious_vars='build_alias
897 # Initialize some variables set by options.
899 ac_init_version=false
900 # The variables have the same names as the options, with
901 # dashes changed to underlines.
909 program_transform_name=s,x,x,
917 # Installation directory options.
918 # These are left unexpanded so users can "make install exec_prefix=/foo"
919 # and all the variables that are supposed to be based on exec_prefix
920 # by default will actually change.
921 # Use braces instead of parens because sh, perl, etc. also accept them.
922 # (The list follows the same order as the GNU Coding Standards.)
923 bindir='${exec_prefix}/bin'
924 sbindir='${exec_prefix}/sbin'
925 libexecdir='${exec_prefix}/libexec'
926 datarootdir='${prefix}/share'
927 datadir='${datarootdir}'
928 sysconfdir='${prefix}/etc'
929 sharedstatedir='${prefix}/com'
930 localstatedir='${prefix}/var'
931 includedir='${prefix}/include'
932 oldincludedir='/usr/include'
933 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
934 infodir='${datarootdir}/info'
939 libdir='${exec_prefix}/lib'
940 localedir='${datarootdir}/locale'
941 mandir='${datarootdir}/man'
947 # If the previous option needs an argument, assign it.
948 if test -n "$ac_prev"; then
949 eval $ac_prev=\$ac_option
955 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
959 # Accept the important Cygnus configure options, so we can diagnose typos.
961 case $ac_dashdash$ac_option in
965 -bindir | --bindir | --bindi | --bind | --bin | --bi)
967 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
970 -build | --build | --buil | --bui | --bu)
971 ac_prev=build_alias ;;
972 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
973 build_alias=$ac_optarg ;;
975 -cache-file | --cache-file | --cache-fil | --cache-fi \
976 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
977 ac_prev=cache_file ;;
978 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
979 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
980 cache_file=$ac_optarg ;;
983 cache_file=config.cache ;;
985 -datadir | --datadir | --datadi | --datad)
987 -datadir=* | --datadir=* | --datadi=* | --datad=*)
988 datadir=$ac_optarg ;;
990 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
991 | --dataroo | --dataro | --datar)
992 ac_prev=datarootdir ;;
993 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
994 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
995 datarootdir=$ac_optarg ;;
997 -disable-* | --disable-*)
998 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
999 # Reject names that are not valid shell variable names.
1000 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1001 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1002 { (exit 1); exit 1; }; }
1003 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1004 eval enable_$ac_feature=no ;;
1006 -docdir | --docdir | --docdi | --doc | --do)
1008 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1009 docdir=$ac_optarg ;;
1011 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1013 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1014 dvidir=$ac_optarg ;;
1016 -enable-* | --enable-*)
1017 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1018 # Reject names that are not valid shell variable names.
1019 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1020 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1021 { (exit 1); exit 1; }; }
1022 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1023 eval enable_$ac_feature=\$ac_optarg ;;
1025 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1026 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1027 | --exec | --exe | --ex)
1028 ac_prev=exec_prefix ;;
1029 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1030 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1031 | --exec=* | --exe=* | --ex=*)
1032 exec_prefix=$ac_optarg ;;
1034 -gas | --gas | --ga | --g)
1035 # Obsolete; use --with-gas.
1038 -help | --help | --hel | --he | -h)
1039 ac_init_help=long ;;
1040 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1041 ac_init_help=recursive ;;
1042 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1043 ac_init_help=short ;;
1045 -host | --host | --hos | --ho)
1046 ac_prev=host_alias ;;
1047 -host=* | --host=* | --hos=* | --ho=*)
1048 host_alias=$ac_optarg ;;
1050 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1052 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1054 htmldir=$ac_optarg ;;
1056 -includedir | --includedir | --includedi | --included | --include \
1057 | --includ | --inclu | --incl | --inc)
1058 ac_prev=includedir ;;
1059 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1060 | --includ=* | --inclu=* | --incl=* | --inc=*)
1061 includedir=$ac_optarg ;;
1063 -infodir | --infodir | --infodi | --infod | --info | --inf)
1065 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1066 infodir=$ac_optarg ;;
1068 -libdir | --libdir | --libdi | --libd)
1070 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1071 libdir=$ac_optarg ;;
1073 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1074 | --libexe | --libex | --libe)
1075 ac_prev=libexecdir ;;
1076 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1077 | --libexe=* | --libex=* | --libe=*)
1078 libexecdir=$ac_optarg ;;
1080 -localedir | --localedir | --localedi | --localed | --locale)
1081 ac_prev=localedir ;;
1082 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1083 localedir=$ac_optarg ;;
1085 -localstatedir | --localstatedir | --localstatedi | --localstated \
1086 | --localstate | --localstat | --localsta | --localst | --locals)
1087 ac_prev=localstatedir ;;
1088 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1089 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1090 localstatedir=$ac_optarg ;;
1092 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1094 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1095 mandir=$ac_optarg ;;
1097 -nfp | --nfp | --nf)
1098 # Obsolete; use --without-fp.
1101 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1102 | --no-cr | --no-c | -n)
1105 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1106 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1109 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1110 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1111 | --oldin | --oldi | --old | --ol | --o)
1112 ac_prev=oldincludedir ;;
1113 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1114 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1115 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1116 oldincludedir=$ac_optarg ;;
1118 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1120 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1121 prefix=$ac_optarg ;;
1123 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1124 | --program-pre | --program-pr | --program-p)
1125 ac_prev=program_prefix ;;
1126 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1127 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1128 program_prefix=$ac_optarg ;;
1130 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1131 | --program-suf | --program-su | --program-s)
1132 ac_prev=program_suffix ;;
1133 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1134 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1135 program_suffix=$ac_optarg ;;
1137 -program-transform-name | --program-transform-name \
1138 | --program-transform-nam | --program-transform-na \
1139 | --program-transform-n | --program-transform- \
1140 | --program-transform | --program-transfor \
1141 | --program-transfo | --program-transf \
1142 | --program-trans | --program-tran \
1143 | --progr-tra | --program-tr | --program-t)
1144 ac_prev=program_transform_name ;;
1145 -program-transform-name=* | --program-transform-name=* \
1146 | --program-transform-nam=* | --program-transform-na=* \
1147 | --program-transform-n=* | --program-transform-=* \
1148 | --program-transform=* | --program-transfor=* \
1149 | --program-transfo=* | --program-transf=* \
1150 | --program-trans=* | --program-tran=* \
1151 | --progr-tra=* | --program-tr=* | --program-t=*)
1152 program_transform_name=$ac_optarg ;;
1154 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1156 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1157 pdfdir=$ac_optarg ;;
1159 -psdir | --psdir | --psdi | --psd | --ps)
1161 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1164 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1165 | -silent | --silent | --silen | --sile | --sil)
1168 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1170 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1172 sbindir=$ac_optarg ;;
1174 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1175 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1176 | --sharedst | --shareds | --shared | --share | --shar \
1178 ac_prev=sharedstatedir ;;
1179 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1180 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1181 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1183 sharedstatedir=$ac_optarg ;;
1185 -site | --site | --sit)
1187 -site=* | --site=* | --sit=*)
1190 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1192 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1193 srcdir=$ac_optarg ;;
1195 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1196 | --syscon | --sysco | --sysc | --sys | --sy)
1197 ac_prev=sysconfdir ;;
1198 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1199 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1200 sysconfdir=$ac_optarg ;;
1202 -target | --target | --targe | --targ | --tar | --ta | --t)
1203 ac_prev=target_alias ;;
1204 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1205 target_alias=$ac_optarg ;;
1207 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1210 -version | --version | --versio | --versi | --vers | -V)
1211 ac_init_version=: ;;
1214 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1215 # Reject names that are not valid shell variable names.
1216 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1217 { echo "$as_me: error: invalid package name: $ac_package" >&2
1218 { (exit 1); exit 1; }; }
1219 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1220 eval with_$ac_package=\$ac_optarg ;;
1222 -without-* | --without-*)
1223 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1224 # Reject names that are not valid shell variable names.
1225 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1226 { echo "$as_me: error: invalid package name: $ac_package" >&2
1227 { (exit 1); exit 1; }; }
1228 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1229 eval with_$ac_package=no ;;
1232 # Obsolete; use --with-x.
1235 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1236 | --x-incl | --x-inc | --x-in | --x-i)
1237 ac_prev=x_includes ;;
1238 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1239 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1240 x_includes=$ac_optarg ;;
1242 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1243 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1244 ac_prev=x_libraries ;;
1245 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1246 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1247 x_libraries=$ac_optarg ;;
1249 -*) { echo "$as_me: error: unrecognized option: $ac_option
1250 Try \`$0 --help' for more information." >&2
1251 { (exit 1); exit 1; }; }
1255 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1256 # Reject names that are not valid shell variable names.
1257 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1258 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1259 { (exit 1); exit 1; }; }
1260 eval $ac_envvar=\$ac_optarg
1261 export $ac_envvar ;;
1264 # FIXME: should be removed in autoconf 3.0.
1265 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1266 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1267 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1268 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1274 if test -n "$ac_prev"; then
1275 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1276 { echo "$as_me: error: missing argument to $ac_option" >&2
1277 { (exit 1); exit 1; }; }
1280 # Be sure to have absolute directory names.
1281 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1282 datadir sysconfdir sharedstatedir localstatedir includedir \
1283 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1284 libdir localedir mandir
1286 eval ac_val=\$$ac_var
1288 [\\/$]* | ?:[\\/]* ) continue;;
1289 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1291 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1292 { (exit 1); exit 1; }; }
1295 # There might be people who depend on the old broken behavior: `$host'
1296 # used to hold the argument of --host etc.
1297 # FIXME: To remove some day.
1300 target=$target_alias
1302 # FIXME: To remove some day.
1303 if test "x$host_alias" != x; then
1304 if test "x$build_alias" = x; then
1305 cross_compiling=maybe
1306 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1307 If a cross compiler is detected then cross compile mode will be used." >&2
1308 elif test "x$build_alias" != "x$host_alias"; then
1314 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1316 test "$silent" = yes && exec 6>/dev/null
1319 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1320 ac_ls_di=`ls -di .` &&
1321 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1322 { echo "$as_me: error: Working directory cannot be determined" >&2
1323 { (exit 1); exit 1; }; }
1324 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1325 { echo "$as_me: error: pwd does not report name of working directory" >&2
1326 { (exit 1); exit 1; }; }
1329 # Find the source files, if location was not specified.
1330 if test -z "$srcdir"; then
1331 ac_srcdir_defaulted=yes
1332 # Try the directory containing this script, then the parent directory.
1333 ac_confdir=`$as_dirname -- "$0" ||
1334 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1335 X"$0" : 'X\(//\)[^/]' \| \
1336 X"$0" : 'X\(//\)$' \| \
1337 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1357 if test ! -r "$srcdir/$ac_unique_file"; then
1361 ac_srcdir_defaulted=no
1363 if test ! -r "$srcdir/$ac_unique_file"; then
1364 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1365 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1366 { (exit 1); exit 1; }; }
1368 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1370 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1371 { (exit 1); exit 1; }; }
1373 # When building in place, set srcdir=.
1374 if test "$ac_abs_confdir" = "$ac_pwd"; then
1377 # Remove unnecessary trailing slashes from srcdir.
1378 # Double slashes in file names in object file debugging info
1379 # mess up M-x gdb in Emacs.
1381 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1383 for ac_var in $ac_precious_vars; do
1384 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_env_${ac_var}_value=\$${ac_var}
1386 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1387 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1391 # Report the --help message.
1393 if test "$ac_init_help" = "long"; then
1394 # Omit some internal or obsolete options to make the list less imposing.
1395 # This message is too long to be a string in the A/UX 3.1 sh.
1397 \`configure' configures libhangul 0.0.7 to adapt to many kinds of systems.
1399 Usage: $0 [OPTION]... [VAR=VALUE]...
1401 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1402 VAR=VALUE. See below for descriptions of some of the useful variables.
1404 Defaults for the options are specified in brackets.
1407 -h, --help display this help and exit
1408 --help=short display options specific to this package
1409 --help=recursive display the short help of all the included packages
1410 -V, --version display version information and exit
1411 -q, --quiet, --silent do not print \`checking...' messages
1412 --cache-file=FILE cache test results in FILE [disabled]
1413 -C, --config-cache alias for \`--cache-file=config.cache'
1414 -n, --no-create do not create output files
1415 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1417 Installation directories:
1418 --prefix=PREFIX install architecture-independent files in PREFIX
1419 [$ac_default_prefix]
1420 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1423 By default, \`make install' will install all the files in
1424 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1425 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1426 for instance \`--prefix=\$HOME'.
1428 For better control, use the options below.
1430 Fine tuning of the installation directories:
1431 --bindir=DIR user executables [EPREFIX/bin]
1432 --sbindir=DIR system admin executables [EPREFIX/sbin]
1433 --libexecdir=DIR program executables [EPREFIX/libexec]
1434 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1435 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1436 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1437 --libdir=DIR object code libraries [EPREFIX/lib]
1438 --includedir=DIR C header files [PREFIX/include]
1439 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1440 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1441 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1442 --infodir=DIR info documentation [DATAROOTDIR/info]
1443 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1444 --mandir=DIR man documentation [DATAROOTDIR/man]
1445 --docdir=DIR documentation root [DATAROOTDIR/doc/libhangul]
1446 --htmldir=DIR html documentation [DOCDIR]
1447 --dvidir=DIR dvi documentation [DOCDIR]
1448 --pdfdir=DIR pdf documentation [DOCDIR]
1449 --psdir=DIR ps documentation [DOCDIR]
1455 --program-prefix=PREFIX prepend PREFIX to installed program names
1456 --program-suffix=SUFFIX append SUFFIX to installed program names
1457 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1460 --build=BUILD configure for building on BUILD [guessed]
1461 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1465 if test -n "$ac_init_help"; then
1466 case $ac_init_help in
1467 short | recursive ) echo "Configuration of libhangul 0.0.7:";;
1472 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1473 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1474 --disable-dependency-tracking speeds up one-time build
1475 --enable-dependency-tracking do not reject slow dependency extractors
1476 --enable-shared[=PKGS] build shared libraries [default=yes]
1477 --enable-static[=PKGS] build static libraries [default=yes]
1478 --enable-fast-install[=PKGS]
1479 optimize for fast installation [default=yes]
1480 --disable-libtool-lock avoid locking (might break parallel builds)
1483 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1484 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1485 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1486 --with-pic try to use only PIC/non-PIC objects [default=use
1488 --with-tags[=TAGS] include additional configurations [automatic]
1490 Some influential environment variables:
1491 CC C compiler command
1492 CFLAGS C compiler flags
1493 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1494 nonstandard directory <lib dir>
1495 LIBS libraries to pass to the linker, e.g. -l<library>
1496 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1497 you have headers in a nonstandard directory <include dir>
1499 CXX C++ compiler command
1500 CXXFLAGS C++ compiler flags
1501 CXXCPP C++ preprocessor
1502 F77 Fortran 77 compiler command
1503 FFLAGS Fortran 77 compiler flags
1505 Use these variables to override the choices made by `configure' or to help
1506 it to find libraries and programs with nonstandard names/locations.
1508 Report bugs to <http://kldp.net/projects/hangul/>.
1513 if test "$ac_init_help" = "recursive"; then
1514 # If there are subdirs, report their specific --help.
1515 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1516 test -d "$ac_dir" || continue
1520 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1523 # A ".." for each directory in $ac_dir_suffix.
1524 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1525 case $ac_top_builddir_sub in
1526 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1527 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1530 ac_abs_top_builddir=$ac_pwd
1531 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1532 # for backward compatibility:
1533 ac_top_builddir=$ac_top_build_prefix
1536 .) # We are building in place.
1538 ac_top_srcdir=$ac_top_builddir_sub
1539 ac_abs_top_srcdir=$ac_pwd ;;
1540 [\\/]* | ?:[\\/]* ) # Absolute name.
1541 ac_srcdir=$srcdir$ac_dir_suffix;
1542 ac_top_srcdir=$srcdir
1543 ac_abs_top_srcdir=$srcdir ;;
1545 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1546 ac_top_srcdir=$ac_top_build_prefix$srcdir
1547 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1549 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1551 cd "$ac_dir" || { ac_status=$?; continue; }
1552 # Check for guested configure.
1553 if test -f "$ac_srcdir/configure.gnu"; then
1555 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1556 elif test -f "$ac_srcdir/configure"; then
1558 $SHELL "$ac_srcdir/configure" --help=recursive
1560 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1562 cd "$ac_pwd" || { ac_status=$?; break; }
1566 test -n "$ac_init_help" && exit $ac_status
1567 if $ac_init_version; then
1569 libhangul configure 0.0.7
1570 generated by GNU Autoconf 2.61
1572 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1573 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1574 This configure script is free software; the Free Software Foundation
1575 gives unlimited permission to copy, distribute and modify it.
1579 cat >config.log <<_ACEOF
1580 This file contains any messages produced by compilers while
1581 running configure, to aid debugging if configure makes a mistake.
1583 It was created by libhangul $as_me 0.0.7, which was
1584 generated by GNU Autoconf 2.61. Invocation command line was
1596 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1597 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1598 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1599 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1600 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1602 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1603 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1605 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1606 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1607 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1608 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1609 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1610 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1611 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1619 test -z "$as_dir" && as_dir=.
1620 echo "PATH: $as_dir"
1636 # Keep a trace of the command line.
1637 # Strip out --no-create and --no-recursion so they do not pile up.
1638 # Strip out --silent because we don't want to record it for future runs.
1639 # Also quote any args containing shell meta-characters.
1640 # Make two passes to allow for proper duplicate-argument suppression.
1644 ac_must_keep_next=false
1650 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1651 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1652 | -silent | --silent | --silen | --sile | --sil)
1655 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1658 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1660 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1661 if test $ac_must_keep_next = true; then
1662 ac_must_keep_next=false # Got value, back to normal.
1665 *=* | --config-cache | -C | -disable-* | --disable-* \
1666 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1667 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1668 | -with-* | --with-* | -without-* | --without-* | --x)
1669 case "$ac_configure_args0 " in
1670 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1673 -* ) ac_must_keep_next=true ;;
1676 ac_configure_args="$ac_configure_args '$ac_arg'"
1681 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1682 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1684 # When interrupted or exit'd, cleanup temporary files, and complete
1685 # config.log. We remove comments because anyway the quotes in there
1686 # would cause problems or look ugly.
1687 # WARNING: Use '\'' to represent an apostrophe within the trap.
1688 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1689 trap 'exit_status=$?
1690 # Save into config.log some information that might help in debugging.
1695 ## ---------------- ##
1696 ## Cache variables. ##
1697 ## ---------------- ##
1700 # The following way of writing the cache mishandles newlines in values,
1702 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1703 eval ac_val=\$$ac_var
1707 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1708 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1711 _ | IFS | as_nl) ;; #(
1712 *) $as_unset $ac_var ;;
1717 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1718 *${as_nl}ac_space=\ *)
1720 "s/'\''/'\''\\\\'\'''\''/g;
1721 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1724 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1732 ## ----------------- ##
1733 ## Output variables. ##
1734 ## ----------------- ##
1737 for ac_var in $ac_subst_vars
1739 eval ac_val=\$$ac_var
1741 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1743 echo "$ac_var='\''$ac_val'\''"
1747 if test -n "$ac_subst_files"; then
1749 ## ------------------- ##
1750 ## File substitutions. ##
1751 ## ------------------- ##
1754 for ac_var in $ac_subst_files
1756 eval ac_val=\$$ac_var
1758 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1760 echo "$ac_var='\''$ac_val'\''"
1765 if test -s confdefs.h; then
1775 test "$ac_signal" != 0 &&
1776 echo "$as_me: caught signal $ac_signal"
1777 echo "$as_me: exit $exit_status"
1779 rm -f core *.core core.conftest.* &&
1780 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1783 for ac_signal in 1 2 13 15; do
1784 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1788 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1789 rm -f -r conftest* confdefs.h
1791 # Predefined preprocessor variables.
1793 cat >>confdefs.h <<_ACEOF
1794 #define PACKAGE_NAME "$PACKAGE_NAME"
1798 cat >>confdefs.h <<_ACEOF
1799 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1803 cat >>confdefs.h <<_ACEOF
1804 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1808 cat >>confdefs.h <<_ACEOF
1809 #define PACKAGE_STRING "$PACKAGE_STRING"
1813 cat >>confdefs.h <<_ACEOF
1814 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1818 # Let the site file select an alternate cache file if it wants to.
1819 # Prefer explicitly selected file to automatically selected ones.
1820 if test -n "$CONFIG_SITE"; then
1821 set x "$CONFIG_SITE"
1822 elif test "x$prefix" != xNONE; then
1823 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1825 set x "$ac_default_prefix/share/config.site" \
1826 "$ac_default_prefix/etc/config.site"
1831 if test -r "$ac_site_file"; then
1832 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1833 echo "$as_me: loading site script $ac_site_file" >&6;}
1834 sed 's/^/| /' "$ac_site_file" >&5
1839 if test -r "$cache_file"; then
1840 # Some versions of bash will fail to source /dev/null (special
1841 # files actually), so we avoid doing that.
1842 if test -f "$cache_file"; then
1843 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1844 echo "$as_me: loading cache $cache_file" >&6;}
1846 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1847 *) . "./$cache_file";;
1851 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1852 echo "$as_me: creating cache $cache_file" >&6;}
1856 # Check that the precious variables saved in the cache have kept the same
1858 ac_cache_corrupted=false
1859 for ac_var in $ac_precious_vars; do
1860 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1861 eval ac_new_set=\$ac_env_${ac_var}_set
1862 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1863 eval ac_new_val=\$ac_env_${ac_var}_value
1864 case $ac_old_set,$ac_new_set in
1866 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1867 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1868 ac_cache_corrupted=: ;;
1870 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1871 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1872 ac_cache_corrupted=: ;;
1875 if test "x$ac_old_val" != "x$ac_new_val"; then
1876 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1877 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1878 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1879 echo "$as_me: former value: $ac_old_val" >&2;}
1880 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1881 echo "$as_me: current value: $ac_new_val" >&2;}
1882 ac_cache_corrupted=:
1885 # Pass precious variables to config.status.
1886 if test "$ac_new_set" = set; then
1888 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1889 *) ac_arg=$ac_var=$ac_new_val ;;
1891 case " $ac_configure_args " in
1892 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1893 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1897 if $ac_cache_corrupted; then
1898 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1899 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1900 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1901 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1902 { (exit 1); exit 1; }; }
1930 ac_cpp='$CPP $CPPFLAGS'
1931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1936 am__api_version='1.10'
1939 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1940 if test -f "$ac_dir/install-sh"; then
1942 ac_install_sh="$ac_aux_dir/install-sh -c"
1944 elif test -f "$ac_dir/install.sh"; then
1946 ac_install_sh="$ac_aux_dir/install.sh -c"
1948 elif test -f "$ac_dir/shtool"; then
1950 ac_install_sh="$ac_aux_dir/shtool install -c"
1954 if test -z "$ac_aux_dir"; then
1955 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1956 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1957 { (exit 1); exit 1; }; }
1960 # These three variables are undocumented and unsupported,
1961 # and are intended to be withdrawn in a future Autoconf release.
1962 # They can cause serious problems if a builder's source tree is in a directory
1963 # whose full name contains unusual characters.
1964 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1965 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1966 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1969 # Find a good install program. We prefer a C program (faster),
1970 # so one script is as good as another. But avoid the broken or
1971 # incompatible versions:
1972 # SysV /etc/install, /usr/sbin/install
1973 # SunOS /usr/etc/install
1974 # IRIX /sbin/install
1976 # AmigaOS /C/install, which installs bootblocks on floppy discs
1977 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1978 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1979 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1980 # OS/2's system install, which has a completely different semantic
1981 # ./install, which can be erroneously created by make from ./install.sh.
1982 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1983 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1984 if test -z "$INSTALL"; then
1985 if test "${ac_cv_path_install+set}" = set; then
1986 echo $ECHO_N "(cached) $ECHO_C" >&6
1988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1992 test -z "$as_dir" && as_dir=.
1993 # Account for people who put trailing slashes in PATH elements.
1995 ./ | .// | /cC/* | \
1996 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1997 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2000 # OSF1 and SCO ODT 3.0 have their own names for install.
2001 # Don't use installbsd from OSF since it installs stuff as root
2003 for ac_prog in ginstall scoinst install; do
2004 for ac_exec_ext in '' $ac_executable_extensions; do
2005 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2006 if test $ac_prog = install &&
2007 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2008 # AIX install. It has an incompatible calling convention.
2010 elif test $ac_prog = install &&
2011 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2012 # program-specific install script used by HP pwplus--don't use.
2015 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2028 if test "${ac_cv_path_install+set}" = set; then
2029 INSTALL=$ac_cv_path_install
2031 # As a last resort, use the slow shell script. Don't cache a
2032 # value for INSTALL within a source directory, because that will
2033 # break other packages using the cache if that directory is
2034 # removed, or if the value is a relative name.
2035 INSTALL=$ac_install_sh
2038 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2039 echo "${ECHO_T}$INSTALL" >&6; }
2041 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2042 # It thinks the first close brace ends the variable substitution.
2043 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2045 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2047 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2049 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2050 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2053 echo timestamp > conftest.file
2054 # Do `set' in a subshell so we don't clobber the current shell's
2055 # arguments. Must try -L first in case configure is actually a
2056 # symlink; some systems play weird games with the mod time of symlinks
2057 # (eg FreeBSD returns the mod time of the symlink's containing
2060 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2061 if test "$*" = "X"; then
2063 set X `ls -t $srcdir/configure conftest.file`
2066 if test "$*" != "X $srcdir/configure conftest.file" \
2067 && test "$*" != "X conftest.file $srcdir/configure"; then
2069 # If neither matched, then we have a broken ls. This can happen
2070 # if, for instance, CONFIG_SHELL is bash and it inherits a
2071 # broken ls alias from the environment. This has actually
2072 # happened. Such a system could not be considered "sane".
2073 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2074 alias in your environment" >&5
2075 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2076 alias in your environment" >&2;}
2077 { (exit 1); exit 1; }; }
2080 test "$2" = conftest.file
2086 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2087 Check your system clock" >&5
2088 echo "$as_me: error: newly created file is older than distributed files!
2089 Check your system clock" >&2;}
2090 { (exit 1); exit 1; }; }
2092 { echo "$as_me:$LINENO: result: yes" >&5
2093 echo "${ECHO_T}yes" >&6; }
2094 test "$program_prefix" != NONE &&
2095 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2096 # Use a double $ so make ignores it.
2097 test "$program_suffix" != NONE &&
2098 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2099 # Double any \ or $. echo might interpret backslashes.
2100 # By default was `s,x,x', remove it if useless.
2101 cat <<\_ACEOF >conftest.sed
2102 s/[\\$]/&&/g;s/;s,x,x,$//
2104 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2107 # expand $ac_aux_dir to an absolute path
2108 am_aux_dir=`cd $ac_aux_dir && pwd`
2110 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2111 # Use eval to expand $SHELL
2112 if eval "$MISSING --run true"; then
2113 am_missing_run="$MISSING --run "
2116 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2117 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2120 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2121 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2122 if test -z "$MKDIR_P"; then
2123 if test "${ac_cv_path_mkdir+set}" = set; then
2124 echo $ECHO_N "(cached) $ECHO_C" >&6
2126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2127 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2130 test -z "$as_dir" && as_dir=.
2131 for ac_prog in mkdir gmkdir; do
2132 for ac_exec_ext in '' $ac_executable_extensions; do
2133 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2134 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2135 'mkdir (GNU coreutils) '* | \
2136 'mkdir (coreutils) '* | \
2137 'mkdir (fileutils) '4.1*)
2138 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2148 if test "${ac_cv_path_mkdir+set}" = set; then
2149 MKDIR_P="$ac_cv_path_mkdir -p"
2151 # As a last resort, use the slow shell script. Don't cache a
2152 # value for MKDIR_P within a source directory, because that will
2153 # break other packages using the cache if that directory is
2154 # removed, or if the value is a relative name.
2155 test -d ./--version && rmdir ./--version
2156 MKDIR_P="$ac_install_sh -d"
2159 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2160 echo "${ECHO_T}$MKDIR_P" >&6; }
2164 [\\/$]* | ?:[\\/]*) ;;
2165 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2168 for ac_prog in gawk mawk nawk awk
2170 # Extract the first word of "$ac_prog", so it can be a program name with args.
2171 set dummy $ac_prog; ac_word=$2
2172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2174 if test "${ac_cv_prog_AWK+set}" = set; then
2175 echo $ECHO_N "(cached) $ECHO_C" >&6
2177 if test -n "$AWK"; then
2178 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2184 test -z "$as_dir" && as_dir=.
2185 for ac_exec_ext in '' $ac_executable_extensions; do
2186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2187 ac_cv_prog_AWK="$ac_prog"
2188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2198 if test -n "$AWK"; then
2199 { echo "$as_me:$LINENO: result: $AWK" >&5
2200 echo "${ECHO_T}$AWK" >&6; }
2202 { echo "$as_me:$LINENO: result: no" >&5
2203 echo "${ECHO_T}no" >&6; }
2207 test -n "$AWK" && break
2210 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2211 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2212 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2213 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2214 echo $ECHO_N "(cached) $ECHO_C" >&6
2216 cat >conftest.make <<\_ACEOF
2219 @echo '@@@%%%=$(MAKE)=@@@%%%'
2221 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2222 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2224 eval ac_cv_prog_make_${ac_make}_set=yes;;
2226 eval ac_cv_prog_make_${ac_make}_set=no;;
2230 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2231 { echo "$as_me:$LINENO: result: yes" >&5
2232 echo "${ECHO_T}yes" >&6; }
2235 { echo "$as_me:$LINENO: result: no" >&5
2236 echo "${ECHO_T}no" >&6; }
2237 SET_MAKE="MAKE=${MAKE-make}"
2240 rm -rf .tst 2>/dev/null
2241 mkdir .tst 2>/dev/null
2242 if test -d .tst; then
2247 rmdir .tst 2>/dev/null
2249 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2250 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2251 # is not polluted with repeated "-I."
2252 am__isrc=' -I$(srcdir)'
2253 # test to see if srcdir already configured
2254 if test -f $srcdir/config.status; then
2255 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2256 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2257 { (exit 1); exit 1; }; }
2261 # test whether we have cygpath
2262 if test -z "$CYGPATH_W"; then
2263 if (cygpath --version) >/dev/null 2>/dev/null; then
2264 CYGPATH_W='cygpath -w'
2271 # Define the identity of the package.
2276 cat >>confdefs.h <<_ACEOF
2277 #define PACKAGE "$PACKAGE"
2281 cat >>confdefs.h <<_ACEOF
2282 #define VERSION "$VERSION"
2285 # Some tools Automake needs.
2287 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2290 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2293 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2296 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2299 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2301 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2303 # Installed binaries are usually stripped using `strip' when the user
2304 # run `make install-strip'. However `strip' might not be the right
2305 # tool to use in cross-compilation environments, therefore Automake
2306 # will honor the `STRIP' environment variable to overrule this program.
2307 if test "$cross_compiling" != no; then
2308 if test -n "$ac_tool_prefix"; then
2309 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2310 set dummy ${ac_tool_prefix}strip; ac_word=$2
2311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2313 if test "${ac_cv_prog_STRIP+set}" = set; then
2314 echo $ECHO_N "(cached) $ECHO_C" >&6
2316 if test -n "$STRIP"; then
2317 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2323 test -z "$as_dir" && as_dir=.
2324 for ac_exec_ext in '' $ac_executable_extensions; do
2325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2326 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2336 STRIP=$ac_cv_prog_STRIP
2337 if test -n "$STRIP"; then
2338 { echo "$as_me:$LINENO: result: $STRIP" >&5
2339 echo "${ECHO_T}$STRIP" >&6; }
2341 { echo "$as_me:$LINENO: result: no" >&5
2342 echo "${ECHO_T}no" >&6; }
2347 if test -z "$ac_cv_prog_STRIP"; then
2349 # Extract the first word of "strip", so it can be a program name with args.
2350 set dummy strip; ac_word=$2
2351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2353 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2354 echo $ECHO_N "(cached) $ECHO_C" >&6
2356 if test -n "$ac_ct_STRIP"; then
2357 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2363 test -z "$as_dir" && as_dir=.
2364 for ac_exec_ext in '' $ac_executable_extensions; do
2365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2366 ac_cv_prog_ac_ct_STRIP="strip"
2367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2376 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2377 if test -n "$ac_ct_STRIP"; then
2378 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2379 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2381 { echo "$as_me:$LINENO: result: no" >&5
2382 echo "${ECHO_T}no" >&6; }
2385 if test "x$ac_ct_STRIP" = x; then
2388 case $cross_compiling:$ac_tool_warned in
2390 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2391 whose name does not start with the host triplet. If you think this
2392 configuration is useful to you, please write to autoconf@gnu.org." >&5
2393 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2394 whose name does not start with the host triplet. If you think this
2395 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2396 ac_tool_warned=yes ;;
2401 STRIP="$ac_cv_prog_STRIP"
2405 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2407 # We need awk for the "check" target. The system "awk" is bad on
2409 # Always define AMTAR for backward compatibility.
2411 AMTAR=${AMTAR-"${am_missing_run}tar"}
2413 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2420 ac_config_headers="$ac_config_headers config.h"
2425 LIBHANGUL_REVISION=0
2432 # Checks for programs.
2434 ac_cpp='$CPP $CPPFLAGS'
2435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2438 if test -n "$ac_tool_prefix"; then
2439 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2440 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2441 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2443 if test "${ac_cv_prog_CC+set}" = set; then
2444 echo $ECHO_N "(cached) $ECHO_C" >&6
2446 if test -n "$CC"; then
2447 ac_cv_prog_CC="$CC" # Let the user override the test.
2449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453 test -z "$as_dir" && as_dir=.
2454 for ac_exec_ext in '' $ac_executable_extensions; do
2455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2456 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2467 if test -n "$CC"; then
2468 { echo "$as_me:$LINENO: result: $CC" >&5
2469 echo "${ECHO_T}$CC" >&6; }
2471 { echo "$as_me:$LINENO: result: no" >&5
2472 echo "${ECHO_T}no" >&6; }
2477 if test -z "$ac_cv_prog_CC"; then
2479 # Extract the first word of "gcc", so it can be a program name with args.
2480 set dummy gcc; ac_word=$2
2481 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2483 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2484 echo $ECHO_N "(cached) $ECHO_C" >&6
2486 if test -n "$ac_ct_CC"; then
2487 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493 test -z "$as_dir" && as_dir=.
2494 for ac_exec_ext in '' $ac_executable_extensions; do
2495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2496 ac_cv_prog_ac_ct_CC="gcc"
2497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2506 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2507 if test -n "$ac_ct_CC"; then
2508 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2509 echo "${ECHO_T}$ac_ct_CC" >&6; }
2511 { echo "$as_me:$LINENO: result: no" >&5
2512 echo "${ECHO_T}no" >&6; }
2515 if test "x$ac_ct_CC" = x; then
2518 case $cross_compiling:$ac_tool_warned in
2520 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2521 whose name does not start with the host triplet. If you think this
2522 configuration is useful to you, please write to autoconf@gnu.org." >&5
2523 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2524 whose name does not start with the host triplet. If you think this
2525 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2526 ac_tool_warned=yes ;;
2534 if test -z "$CC"; then
2535 if test -n "$ac_tool_prefix"; then
2536 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2537 set dummy ${ac_tool_prefix}cc; ac_word=$2
2538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2540 if test "${ac_cv_prog_CC+set}" = set; then
2541 echo $ECHO_N "(cached) $ECHO_C" >&6
2543 if test -n "$CC"; then
2544 ac_cv_prog_CC="$CC" # Let the user override the test.
2546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550 test -z "$as_dir" && as_dir=.
2551 for ac_exec_ext in '' $ac_executable_extensions; do
2552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2553 ac_cv_prog_CC="${ac_tool_prefix}cc"
2554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2564 if test -n "$CC"; then
2565 { echo "$as_me:$LINENO: result: $CC" >&5
2566 echo "${ECHO_T}$CC" >&6; }
2568 { echo "$as_me:$LINENO: result: no" >&5
2569 echo "${ECHO_T}no" >&6; }
2575 if test -z "$CC"; then
2576 # Extract the first word of "cc", so it can be a program name with args.
2577 set dummy cc; ac_word=$2
2578 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2580 if test "${ac_cv_prog_CC+set}" = set; then
2581 echo $ECHO_N "(cached) $ECHO_C" >&6
2583 if test -n "$CC"; then
2584 ac_cv_prog_CC="$CC" # Let the user override the test.
2587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2591 test -z "$as_dir" && as_dir=.
2592 for ac_exec_ext in '' $ac_executable_extensions; do
2593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2594 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2595 ac_prog_rejected=yes
2599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2606 if test $ac_prog_rejected = yes; then
2607 # We found a bogon in the path, so make sure we never use it.
2608 set dummy $ac_cv_prog_CC
2610 if test $# != 0; then
2611 # We chose a different compiler from the bogus one.
2612 # However, it has the same basename, so the bogon will be chosen
2613 # first if we set CC to just the basename; use the full file name.
2615 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2621 if test -n "$CC"; then
2622 { echo "$as_me:$LINENO: result: $CC" >&5
2623 echo "${ECHO_T}$CC" >&6; }
2625 { echo "$as_me:$LINENO: result: no" >&5
2626 echo "${ECHO_T}no" >&6; }
2631 if test -z "$CC"; then
2632 if test -n "$ac_tool_prefix"; then
2633 for ac_prog in cl.exe
2635 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2636 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2637 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2639 if test "${ac_cv_prog_CC+set}" = set; then
2640 echo $ECHO_N "(cached) $ECHO_C" >&6
2642 if test -n "$CC"; then
2643 ac_cv_prog_CC="$CC" # Let the user override the test.
2645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649 test -z "$as_dir" && as_dir=.
2650 for ac_exec_ext in '' $ac_executable_extensions; do
2651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2652 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2663 if test -n "$CC"; then
2664 { echo "$as_me:$LINENO: result: $CC" >&5
2665 echo "${ECHO_T}$CC" >&6; }
2667 { echo "$as_me:$LINENO: result: no" >&5
2668 echo "${ECHO_T}no" >&6; }
2672 test -n "$CC" && break
2675 if test -z "$CC"; then
2677 for ac_prog in cl.exe
2679 # Extract the first word of "$ac_prog", so it can be a program name with args.
2680 set dummy $ac_prog; ac_word=$2
2681 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2683 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2684 echo $ECHO_N "(cached) $ECHO_C" >&6
2686 if test -n "$ac_ct_CC"; then
2687 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693 test -z "$as_dir" && as_dir=.
2694 for ac_exec_ext in '' $ac_executable_extensions; do
2695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2696 ac_cv_prog_ac_ct_CC="$ac_prog"
2697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2706 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2707 if test -n "$ac_ct_CC"; then
2708 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2709 echo "${ECHO_T}$ac_ct_CC" >&6; }
2711 { echo "$as_me:$LINENO: result: no" >&5
2712 echo "${ECHO_T}no" >&6; }
2716 test -n "$ac_ct_CC" && break
2719 if test "x$ac_ct_CC" = x; then
2722 case $cross_compiling:$ac_tool_warned in
2724 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2725 whose name does not start with the host triplet. If you think this
2726 configuration is useful to you, please write to autoconf@gnu.org." >&5
2727 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2728 whose name does not start with the host triplet. If you think this
2729 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2730 ac_tool_warned=yes ;;
2739 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2740 See \`config.log' for more details." >&5
2741 echo "$as_me: error: no acceptable C compiler found in \$PATH
2742 See \`config.log' for more details." >&2;}
2743 { (exit 1); exit 1; }; }
2745 # Provide some information about the compiler.
2746 echo "$as_me:$LINENO: checking for C compiler version" >&5
2747 ac_compiler=`set X $ac_compile; echo $2`
2748 { (ac_try="$ac_compiler --version >&5"
2750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751 *) ac_try_echo=$ac_try;;
2753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2754 (eval "$ac_compiler --version >&5") 2>&5
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); }
2758 { (ac_try="$ac_compiler -v >&5"
2760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2761 *) ac_try_echo=$ac_try;;
2763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2764 (eval "$ac_compiler -v >&5") 2>&5
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); }
2768 { (ac_try="$ac_compiler -V >&5"
2770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2771 *) ac_try_echo=$ac_try;;
2773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2774 (eval "$ac_compiler -V >&5") 2>&5
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); }
2779 cat >conftest.$ac_ext <<_ACEOF
2782 cat confdefs.h >>conftest.$ac_ext
2783 cat >>conftest.$ac_ext <<_ACEOF
2784 /* end confdefs.h. */
2794 ac_clean_files_save=$ac_clean_files
2795 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2796 # Try to create an executable without -o first, disregard a.out.
2797 # It will help us diagnose broken compilers, and finding out an intuition
2799 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2800 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2801 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2803 # List of possible output files, starting from the most likely.
2804 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2805 # only as a last resort. b.out is created by i960 compilers.
2806 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2808 # The IRIX 6 linker writes into existing files which may not be
2809 # executable, retaining their permissions. Remove them first so a
2810 # subsequent execution test works.
2812 for ac_file in $ac_files
2815 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2816 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2821 if { (ac_try="$ac_link_default"
2823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2824 *) ac_try_echo=$ac_try;;
2826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2827 (eval "$ac_link_default") 2>&5
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); }; then
2831 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2832 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2833 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2834 # so that the user can short-circuit this test for compilers unknown to
2836 for ac_file in $ac_files ''
2838 test -f "$ac_file" || continue
2840 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2843 # We found the default executable, but exeext='' is most
2847 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2849 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2851 # We set ac_cv_exeext here because the later test for it is not
2852 # safe: cross compilers may not add the suffix if given an `-o'
2853 # argument, so we may need to know it at that point already.
2854 # Even if this section looks crufty: it has the advantage of
2861 test "$ac_cv_exeext" = no && ac_cv_exeext=
2867 { echo "$as_me:$LINENO: result: $ac_file" >&5
2868 echo "${ECHO_T}$ac_file" >&6; }
2869 if test -z "$ac_file"; then
2870 echo "$as_me: failed program was:" >&5
2871 sed 's/^/| /' conftest.$ac_ext >&5
2873 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2874 See \`config.log' for more details." >&5
2875 echo "$as_me: error: C compiler cannot create executables
2876 See \`config.log' for more details." >&2;}
2877 { (exit 77); exit 77; }; }
2880 ac_exeext=$ac_cv_exeext
2882 # Check that the compiler produces executables we can run. If not, either
2883 # the compiler is broken, or we cross compile.
2884 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2885 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2886 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2887 # If not cross compiling, check that we can run a simple program.
2888 if test "$cross_compiling" != yes; then
2889 if { ac_try='./$ac_file'
2890 { (case "(($ac_try" in
2891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2892 *) ac_try_echo=$ac_try;;
2894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2895 (eval "$ac_try") 2>&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); }; }; then
2901 if test "$cross_compiling" = maybe; then
2904 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2905 If you meant to cross compile, use \`--host'.
2906 See \`config.log' for more details." >&5
2907 echo "$as_me: error: cannot run C compiled programs.
2908 If you meant to cross compile, use \`--host'.
2909 See \`config.log' for more details." >&2;}
2910 { (exit 1); exit 1; }; }
2914 { echo "$as_me:$LINENO: result: yes" >&5
2915 echo "${ECHO_T}yes" >&6; }
2917 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2918 ac_clean_files=$ac_clean_files_save
2919 # Check that the compiler produces executables we can run. If not, either
2920 # the compiler is broken, or we cross compile.
2921 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2922 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2923 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2924 echo "${ECHO_T}$cross_compiling" >&6; }
2926 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2927 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2928 if { (ac_try="$ac_link"
2930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2931 *) ac_try_echo=$ac_try;;
2933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2934 (eval "$ac_link") 2>&5
2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937 (exit $ac_status); }; then
2938 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2939 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2940 # work properly (i.e., refer to `conftest.exe'), while it won't with
2942 for ac_file in conftest.exe conftest conftest.*; do
2943 test -f "$ac_file" || continue
2945 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2946 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2952 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2953 See \`config.log' for more details." >&5
2954 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2955 See \`config.log' for more details." >&2;}
2956 { (exit 1); exit 1; }; }
2959 rm -f conftest$ac_cv_exeext
2960 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2961 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2963 rm -f conftest.$ac_ext
2964 EXEEXT=$ac_cv_exeext
2966 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2967 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2968 if test "${ac_cv_objext+set}" = set; then
2969 echo $ECHO_N "(cached) $ECHO_C" >&6
2971 cat >conftest.$ac_ext <<_ACEOF
2974 cat confdefs.h >>conftest.$ac_ext
2975 cat >>conftest.$ac_ext <<_ACEOF
2976 /* end confdefs.h. */
2986 rm -f conftest.o conftest.obj
2987 if { (ac_try="$ac_compile"
2989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990 *) ac_try_echo=$ac_try;;
2992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2993 (eval "$ac_compile") 2>&5
2995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996 (exit $ac_status); }; then
2997 for ac_file in conftest.o conftest.obj conftest.*; do
2998 test -f "$ac_file" || continue;
3000 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3001 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3006 echo "$as_me: failed program was:" >&5
3007 sed 's/^/| /' conftest.$ac_ext >&5
3009 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3010 See \`config.log' for more details." >&5
3011 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3012 See \`config.log' for more details." >&2;}
3013 { (exit 1); exit 1; }; }
3016 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3018 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3019 echo "${ECHO_T}$ac_cv_objext" >&6; }
3020 OBJEXT=$ac_cv_objext
3022 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3023 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3024 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3025 echo $ECHO_N "(cached) $ECHO_C" >&6
3027 cat >conftest.$ac_ext <<_ACEOF
3030 cat confdefs.h >>conftest.$ac_ext
3031 cat >>conftest.$ac_ext <<_ACEOF
3032 /* end confdefs.h. */
3045 rm -f conftest.$ac_objext
3046 if { (ac_try="$ac_compile"
3048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049 *) ac_try_echo=$ac_try;;
3051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3052 (eval "$ac_compile") 2>conftest.er1
3054 grep -v '^ *+' conftest.er1 >conftest.err
3056 cat conftest.err >&5
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); } && {
3059 test -z "$ac_c_werror_flag" ||
3060 test ! -s conftest.err
3061 } && test -s conftest.$ac_objext; then
3064 echo "$as_me: failed program was:" >&5
3065 sed 's/^/| /' conftest.$ac_ext >&5
3070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3071 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3074 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3075 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3076 GCC=`test $ac_compiler_gnu = yes && echo yes`
3077 ac_test_CFLAGS=${CFLAGS+set}
3078 ac_save_CFLAGS=$CFLAGS
3079 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3080 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3081 if test "${ac_cv_prog_cc_g+set}" = set; then
3082 echo $ECHO_N "(cached) $ECHO_C" >&6
3084 ac_save_c_werror_flag=$ac_c_werror_flag
3085 ac_c_werror_flag=yes
3088 cat >conftest.$ac_ext <<_ACEOF
3091 cat confdefs.h >>conftest.$ac_ext
3092 cat >>conftest.$ac_ext <<_ACEOF
3093 /* end confdefs.h. */
3103 rm -f conftest.$ac_objext
3104 if { (ac_try="$ac_compile"
3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107 *) ac_try_echo=$ac_try;;
3109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3110 (eval "$ac_compile") 2>conftest.er1
3112 grep -v '^ *+' conftest.er1 >conftest.err
3114 cat conftest.err >&5
3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116 (exit $ac_status); } && {
3117 test -z "$ac_c_werror_flag" ||
3118 test ! -s conftest.err
3119 } && test -s conftest.$ac_objext; then
3122 echo "$as_me: failed program was:" >&5
3123 sed 's/^/| /' conftest.$ac_ext >&5
3126 cat >conftest.$ac_ext <<_ACEOF
3129 cat confdefs.h >>conftest.$ac_ext
3130 cat >>conftest.$ac_ext <<_ACEOF
3131 /* end confdefs.h. */
3141 rm -f conftest.$ac_objext
3142 if { (ac_try="$ac_compile"
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3148 (eval "$ac_compile") 2>conftest.er1
3150 grep -v '^ *+' conftest.er1 >conftest.err
3152 cat conftest.err >&5
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); } && {
3155 test -z "$ac_c_werror_flag" ||
3156 test ! -s conftest.err
3157 } && test -s conftest.$ac_objext; then
3160 echo "$as_me: failed program was:" >&5
3161 sed 's/^/| /' conftest.$ac_ext >&5
3163 ac_c_werror_flag=$ac_save_c_werror_flag
3165 cat >conftest.$ac_ext <<_ACEOF
3168 cat confdefs.h >>conftest.$ac_ext
3169 cat >>conftest.$ac_ext <<_ACEOF
3170 /* end confdefs.h. */
3180 rm -f conftest.$ac_objext
3181 if { (ac_try="$ac_compile"
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187 (eval "$ac_compile") 2>conftest.er1
3189 grep -v '^ *+' conftest.er1 >conftest.err
3191 cat conftest.err >&5
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); } && {
3194 test -z "$ac_c_werror_flag" ||
3195 test ! -s conftest.err
3196 } && test -s conftest.$ac_objext; then
3199 echo "$as_me: failed program was:" >&5
3200 sed 's/^/| /' conftest.$ac_ext >&5
3205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3212 ac_c_werror_flag=$ac_save_c_werror_flag
3214 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3215 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3216 if test "$ac_test_CFLAGS" = set; then
3217 CFLAGS=$ac_save_CFLAGS
3218 elif test $ac_cv_prog_cc_g = yes; then
3219 if test "$GCC" = yes; then
3225 if test "$GCC" = yes; then
3231 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3232 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3233 if test "${ac_cv_prog_cc_c89+set}" = set; then
3234 echo $ECHO_N "(cached) $ECHO_C" >&6
3236 ac_cv_prog_cc_c89=no
3238 cat >conftest.$ac_ext <<_ACEOF
3241 cat confdefs.h >>conftest.$ac_ext
3242 cat >>conftest.$ac_ext <<_ACEOF
3243 /* end confdefs.h. */
3246 #include <sys/types.h>
3247 #include <sys/stat.h>
3248 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3249 struct buf { int x; };
3250 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3251 static char *e (p, i)
3257 static char *f (char * (*g) (char **, int), char **p, ...)
3262 s = g (p, va_arg (v,int));
3267 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3268 function prototypes and stuff, but not '\xHH' hex character constants.
3269 These don't provoke an error unfortunately, instead are silently treated
3270 as 'x'. The following induces an error, until -std is added to get
3271 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3272 array size at least. It's necessary to write '\x00'==0 to get something
3273 that's true only with -std. */
3274 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3276 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3277 inside strings and character constants. */
3279 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3281 int test (int i, double x);
3282 struct s1 {int (*f) (int a);};
3283 struct s2 {int (*f) (double a);};
3284 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3290 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3295 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3296 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3298 CC="$ac_save_CC $ac_arg"
3299 rm -f conftest.$ac_objext
3300 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3308 grep -v '^ *+' conftest.er1 >conftest.err
3310 cat conftest.err >&5
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); } && {
3313 test -z "$ac_c_werror_flag" ||
3314 test ! -s conftest.err
3315 } && test -s conftest.$ac_objext; then
3316 ac_cv_prog_cc_c89=$ac_arg
3318 echo "$as_me: failed program was:" >&5
3319 sed 's/^/| /' conftest.$ac_ext >&5
3324 rm -f core conftest.err conftest.$ac_objext
3325 test "x$ac_cv_prog_cc_c89" != "xno" && break
3327 rm -f conftest.$ac_ext
3332 case "x$ac_cv_prog_cc_c89" in
3334 { echo "$as_me:$LINENO: result: none needed" >&5
3335 echo "${ECHO_T}none needed" >&6; } ;;
3337 { echo "$as_me:$LINENO: result: unsupported" >&5
3338 echo "${ECHO_T}unsupported" >&6; } ;;
3340 CC="$CC $ac_cv_prog_cc_c89"
3341 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3342 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3347 ac_cpp='$CPP $CPPFLAGS'
3348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3351 DEPDIR="${am__leading_dot}deps"
3353 ac_config_commands="$ac_config_commands depfiles"
3356 am_make=${MAKE-make}
3357 cat > confinc << 'END'
3362 # If we don't find an include directive, just comment out the code.
3363 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3364 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3368 # First try GNU make style include.
3369 echo "include confinc" > confmf
3370 # We grep out `Entering directory' and `Leaving directory'
3371 # messages which can occur if `w' ends up in MAKEFLAGS.
3372 # In particular we don't look at `^make:' because GNU make might
3373 # be invoked under some other name (usually "gmake"), in which
3374 # case it prints its new name instead of `make'.
3375 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3380 # Now try BSD make style include.
3381 if test "$am__include" = "#"; then
3382 echo '.include "confinc"' > confmf
3383 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3384 am__include=.include
3391 { echo "$as_me:$LINENO: result: $_am_result" >&5
3392 echo "${ECHO_T}$_am_result" >&6; }
3393 rm -f confinc confmf
3395 # Check whether --enable-dependency-tracking was given.
3396 if test "${enable_dependency_tracking+set}" = set; then
3397 enableval=$enable_dependency_tracking;
3400 if test "x$enable_dependency_tracking" != xno; then
3401 am_depcomp="$ac_aux_dir/depcomp"
3404 if test "x$enable_dependency_tracking" != xno; then
3414 depcc="$CC" am_compiler_list=
3416 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3417 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3418 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3419 echo $ECHO_N "(cached) $ECHO_C" >&6
3421 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3422 # We make a subdir and do the tests there. Otherwise we can end up
3423 # making bogus files that we don't know about and never remove. For
3424 # instance it was reported that on HP-UX the gcc test will end up
3425 # making a dummy file named `D' -- because `-MD' means `put the output
3428 # Copy depcomp to subdir because otherwise we won't find it if we're
3429 # using a relative directory.
3430 cp "$am_depcomp" conftest.dir
3432 # We will build objects and dependencies in a subdirectory because
3433 # it helps to detect inapplicable dependency modes. For instance
3434 # both Tru64's cc and ICC support -MD to output dependencies as a
3435 # side effect of compilation, but ICC will put the dependencies in
3436 # the current directory while Tru64 will put them in the object
3440 am_cv_CC_dependencies_compiler_type=none
3441 if test "$am_compiler_list" = ""; then
3442 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3444 for depmode in $am_compiler_list; do
3445 # Setup a source with many dependencies, because some compilers
3446 # like to wrap large dependency lists on column 80 (with \), and
3447 # we should not choose a depcomp mode which is confused by this.
3449 # We need to recreate these files for each test, as the compiler may
3450 # overwrite some of them when testing with obscure command lines.
3451 # This happens at least with the AIX C compiler.
3453 for i in 1 2 3 4 5 6; do
3454 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3455 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3456 # Solaris 8's {/usr,}/bin/sh.
3457 touch sub/conftst$i.h
3459 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3463 # after this tag, mechanisms are not by side-effect, so they'll
3464 # only be used when explicitly requested
3465 if test "x$enable_dependency_tracking" = xyes; then
3473 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3474 # mode. It turns out that the SunPro C++ compiler does not properly
3475 # handle `-M -o', and we need to detect this.
3476 if depmode=$depmode \
3477 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3478 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3479 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3480 >/dev/null 2>conftest.err &&
3481 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3482 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3483 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3484 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3485 # icc doesn't choke on unknown options, it will just issue warnings
3486 # or remarks (even with -Werror). So we grep stderr for any message
3487 # that says an option was ignored or not supported.
3488 # When given -MP, icc 7.0 and 7.1 complain thusly:
3489 # icc: Command line warning: ignoring option '-M'; no argument required
3490 # The diagnosis changed in icc 8.0:
3491 # icc: Command line remark: option '-MP' not supported
3492 if (grep 'ignoring option' conftest.err ||
3493 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3494 am_cv_CC_dependencies_compiler_type=$depmode
3503 am_cv_CC_dependencies_compiler_type=none
3507 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3508 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3509 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3512 test "x$enable_dependency_tracking" != xno \
3513 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3515 am__fastdepCC_FALSE='#'
3517 am__fastdepCC_TRUE='#'
3518 am__fastdepCC_FALSE=
3522 if test "x$CC" != xcc; then
3523 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3524 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3526 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3527 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3529 set dummy $CC; ac_cc=`echo $2 |
3530 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3531 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3532 echo $ECHO_N "(cached) $ECHO_C" >&6
3534 cat >conftest.$ac_ext <<_ACEOF
3537 cat confdefs.h >>conftest.$ac_ext
3538 cat >>conftest.$ac_ext <<_ACEOF
3539 /* end confdefs.h. */
3549 # Make sure it works both with $CC and with simple cc.
3550 # We do the test twice because some compilers refuse to overwrite an
3551 # existing .o file with -o, though they will create one.
3552 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3554 if { (case "(($ac_try" in
3555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3556 *) ac_try_echo=$ac_try;;
3558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3559 (eval "$ac_try") 2>&5
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); } &&
3563 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565 *) ac_try_echo=$ac_try;;
3567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3568 (eval "$ac_try") 2>&5
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); };
3573 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3574 if test "x$CC" != xcc; then
3575 # Test first that cc exists at all.
3576 if { ac_try='cc -c conftest.$ac_ext >&5'
3577 { (case "(($ac_try" in
3578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3579 *) ac_try_echo=$ac_try;;
3581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3582 (eval "$ac_try") 2>&5
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); }; }; then
3586 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3588 if { (case "(($ac_try" in
3589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3590 *) ac_try_echo=$ac_try;;
3592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3593 (eval "$ac_try") 2>&5
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); } &&
3597 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599 *) ac_try_echo=$ac_try;;
3601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3602 (eval "$ac_try") 2>&5
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); };
3610 # cc exists but doesn't like -o.
3611 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3616 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3618 rm -f core conftest*
3621 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3622 { echo "$as_me:$LINENO: result: yes" >&5
3623 echo "${ECHO_T}yes" >&6; }
3625 { echo "$as_me:$LINENO: result: no" >&5
3626 echo "${ECHO_T}no" >&6; }
3628 cat >>confdefs.h <<\_ACEOF
3629 #define NO_MINUS_C_MINUS_O 1
3634 # FIXME: we rely on the cache variable name because
3635 # there is no other way.
3637 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3638 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3639 # Losing compiler, so override with the script.
3640 # FIXME: It is wrong to rewrite CC.
3641 # But if we don't then we get into trouble of one sort or another.
3642 # A longer-term fix would be to have automake use am__CC in this case,
3643 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3644 CC="$am_aux_dir/compile $CC"
3648 # Check whether --enable-shared was given.
3649 if test "${enable_shared+set}" = set; then
3650 enableval=$enable_shared; p=${PACKAGE-default}
3652 yes) enable_shared=yes ;;
3653 no) enable_shared=no ;;
3656 # Look at the argument we got. We use all the common list separators.
3657 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3658 for pkg in $enableval; do
3660 if test "X$pkg" = "X$p"; then
3672 # Check whether --enable-static was given.
3673 if test "${enable_static+set}" = set; then
3674 enableval=$enable_static; p=${PACKAGE-default}
3676 yes) enable_static=yes ;;
3677 no) enable_static=no ;;
3680 # Look at the argument we got. We use all the common list separators.
3681 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3682 for pkg in $enableval; do
3684 if test "X$pkg" = "X$p"; then
3696 # Check whether --enable-fast-install was given.
3697 if test "${enable_fast_install+set}" = set; then
3698 enableval=$enable_fast_install; p=${PACKAGE-default}
3700 yes) enable_fast_install=yes ;;
3701 no) enable_fast_install=no ;;
3703 enable_fast_install=no
3704 # Look at the argument we got. We use all the common list separators.
3705 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3706 for pkg in $enableval; do
3708 if test "X$pkg" = "X$p"; then
3709 enable_fast_install=yes
3716 enable_fast_install=yes
3720 # Make sure we can run config.sub.
3721 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3722 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3723 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3724 { (exit 1); exit 1; }; }
3726 { echo "$as_me:$LINENO: checking build system type" >&5
3727 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3728 if test "${ac_cv_build+set}" = set; then
3729 echo $ECHO_N "(cached) $ECHO_C" >&6
3731 ac_build_alias=$build_alias
3732 test "x$ac_build_alias" = x &&
3733 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3734 test "x$ac_build_alias" = x &&
3735 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3736 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3737 { (exit 1); exit 1; }; }
3738 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3739 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3740 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3741 { (exit 1); exit 1; }; }
3744 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3745 echo "${ECHO_T}$ac_cv_build" >&6; }
3746 case $ac_cv_build in
3748 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3749 echo "$as_me: error: invalid value of canonical build" >&2;}
3750 { (exit 1); exit 1; }; };;
3753 ac_save_IFS=$IFS; IFS='-'
3759 # Remember, the first character of IFS is used to create $*,
3760 # except with old shells:
3763 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3766 { echo "$as_me:$LINENO: checking host system type" >&5
3767 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3768 if test "${ac_cv_host+set}" = set; then
3769 echo $ECHO_N "(cached) $ECHO_C" >&6
3771 if test "x$host_alias" = x; then
3772 ac_cv_host=$ac_cv_build
3774 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3775 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3776 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3777 { (exit 1); exit 1; }; }
3781 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3782 echo "${ECHO_T}$ac_cv_host" >&6; }
3785 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3786 echo "$as_me: error: invalid value of canonical host" >&2;}
3787 { (exit 1); exit 1; }; };;
3790 ac_save_IFS=$IFS; IFS='-'
3796 # Remember, the first character of IFS is used to create $*,
3797 # except with old shells:
3800 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3803 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3804 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3805 if test "${lt_cv_path_SED+set}" = set; then
3806 echo $ECHO_N "(cached) $ECHO_C" >&6
3808 # Loop through the user's path and test for sed and gsed.
3809 # Then use that list of sed's as ones to test for truncation.
3810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814 test -z "$as_dir" && as_dir=.
3815 for lt_ac_prog in sed gsed; do
3816 for ac_exec_ext in '' $ac_executable_extensions; do
3817 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3818 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3826 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3827 # along with /bin/sed that truncates output.
3828 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3829 test ! -f $lt_ac_sed && continue
3830 cat /dev/null > conftest.in
3832 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3833 # Check for GNU sed and select it if it is found.
3834 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3835 lt_cv_path_SED=$lt_ac_sed
3839 cat conftest.in conftest.in >conftest.tmp
3840 mv conftest.tmp conftest.in
3841 cp conftest.in conftest.nl
3843 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3844 cmp -s conftest.out conftest.nl || break
3845 # 10000 chars as input seems more than enough
3846 test $lt_ac_count -gt 10 && break
3847 lt_ac_count=`expr $lt_ac_count + 1`
3848 if test $lt_ac_count -gt $lt_ac_max; then
3849 lt_ac_max=$lt_ac_count
3850 lt_cv_path_SED=$lt_ac_sed
3859 { echo "$as_me:$LINENO: result: $SED" >&5
3860 echo "${ECHO_T}$SED" >&6; }
3862 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3863 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3864 if test "${ac_cv_path_GREP+set}" = set; then
3865 echo $ECHO_N "(cached) $ECHO_C" >&6
3867 # Extract the first word of "grep ggrep" to use in msg output
3868 if test -z "$GREP"; then
3869 set dummy grep ggrep; ac_prog_name=$2
3870 if test "${ac_cv_path_GREP+set}" = set; then
3871 echo $ECHO_N "(cached) $ECHO_C" >&6
3873 ac_path_GREP_found=false
3874 # Loop through the user's path and test for each of PROGNAME-LIST
3875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3876 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3879 test -z "$as_dir" && as_dir=.
3880 for ac_prog in grep ggrep; do
3881 for ac_exec_ext in '' $ac_executable_extensions; do
3882 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3883 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3884 # Check for GNU ac_path_GREP and select it if it is found.
3885 # Check for GNU $ac_path_GREP
3886 case `"$ac_path_GREP" --version 2>&1` in
3888 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3891 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3894 cat "conftest.in" "conftest.in" >"conftest.tmp"
3895 mv "conftest.tmp" "conftest.in"
3896 cp "conftest.in" "conftest.nl"
3897 echo 'GREP' >> "conftest.nl"
3898 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3899 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3900 ac_count=`expr $ac_count + 1`
3901 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3902 # Best one so far, save it but keep looking for a better one
3903 ac_cv_path_GREP="$ac_path_GREP"
3904 ac_path_GREP_max=$ac_count
3906 # 10*(2^10) chars as input seems more than enough
3907 test $ac_count -gt 10 && break
3909 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3913 $ac_path_GREP_found && break 3
3923 GREP="$ac_cv_path_GREP"
3924 if test -z "$GREP"; then
3925 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3926 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3927 { (exit 1); exit 1; }; }
3931 ac_cv_path_GREP=$GREP
3936 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3937 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3938 GREP="$ac_cv_path_GREP"
3941 { echo "$as_me:$LINENO: checking for egrep" >&5
3942 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3943 if test "${ac_cv_path_EGREP+set}" = set; then
3944 echo $ECHO_N "(cached) $ECHO_C" >&6
3946 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3947 then ac_cv_path_EGREP="$GREP -E"
3949 # Extract the first word of "egrep" to use in msg output
3950 if test -z "$EGREP"; then
3951 set dummy egrep; ac_prog_name=$2
3952 if test "${ac_cv_path_EGREP+set}" = set; then
3953 echo $ECHO_N "(cached) $ECHO_C" >&6
3955 ac_path_EGREP_found=false
3956 # Loop through the user's path and test for each of PROGNAME-LIST
3957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3958 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3961 test -z "$as_dir" && as_dir=.
3962 for ac_prog in egrep; do
3963 for ac_exec_ext in '' $ac_executable_extensions; do
3964 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3965 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3966 # Check for GNU ac_path_EGREP and select it if it is found.
3967 # Check for GNU $ac_path_EGREP
3968 case `"$ac_path_EGREP" --version 2>&1` in
3970 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3973 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3976 cat "conftest.in" "conftest.in" >"conftest.tmp"
3977 mv "conftest.tmp" "conftest.in"
3978 cp "conftest.in" "conftest.nl"
3979 echo 'EGREP' >> "conftest.nl"
3980 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3981 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3982 ac_count=`expr $ac_count + 1`
3983 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3984 # Best one so far, save it but keep looking for a better one
3985 ac_cv_path_EGREP="$ac_path_EGREP"
3986 ac_path_EGREP_max=$ac_count
3988 # 10*(2^10) chars as input seems more than enough
3989 test $ac_count -gt 10 && break
3991 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3995 $ac_path_EGREP_found && break 3
4005 EGREP="$ac_cv_path_EGREP"
4006 if test -z "$EGREP"; then
4007 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4008 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4009 { (exit 1); exit 1; }; }
4013 ac_cv_path_EGREP=$EGREP
4019 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4020 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4021 EGREP="$ac_cv_path_EGREP"
4025 # Check whether --with-gnu-ld was given.
4026 if test "${with_gnu_ld+set}" = set; then
4027 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4033 if test "$GCC" = yes; then
4034 # Check if gcc -print-prog-name=ld gives a path.
4035 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4036 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4039 # gcc leaves a trailing carriage return which upsets mingw
4040 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4042 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4045 # Accept absolute paths.
4047 re_direlt='/[^/][^/]*/\.\./'
4048 # Canonicalize the pathname of ld
4049 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4050 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4051 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4053 test -z "$LD" && LD="$ac_prog"
4056 # If it fails, then pretend we aren't using GCC.
4060 # If it is relative, then search for the first ld in PATH.
4064 elif test "$with_gnu_ld" = yes; then
4065 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4066 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4068 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4069 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4071 if test "${lt_cv_path_LD+set}" = set; then
4072 echo $ECHO_N "(cached) $ECHO_C" >&6
4074 if test -z "$LD"; then
4075 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4076 for ac_dir in $PATH; do
4078 test -z "$ac_dir" && ac_dir=.
4079 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4080 lt_cv_path_LD="$ac_dir/$ac_prog"
4081 # Check to see if the program is GNU ld. I'd rather use --version,
4082 # but apparently some variants of GNU ld only accept -v.
4083 # Break only if it was the GNU/non-GNU ld that we prefer.
4084 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4085 *GNU* | *'with BFD'*)
4086 test "$with_gnu_ld" != no && break
4089 test "$with_gnu_ld" != yes && break
4096 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4101 if test -n "$LD"; then
4102 { echo "$as_me:$LINENO: result: $LD" >&5
4103 echo "${ECHO_T}$LD" >&6; }
4105 { echo "$as_me:$LINENO: result: no" >&5
4106 echo "${ECHO_T}no" >&6; }
4108 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4109 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4110 { (exit 1); exit 1; }; }
4111 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4112 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4113 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4114 echo $ECHO_N "(cached) $ECHO_C" >&6
4116 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4117 case `$LD -v 2>&1 </dev/null` in
4118 *GNU* | *'with BFD'*)
4119 lt_cv_prog_gnu_ld=yes
4122 lt_cv_prog_gnu_ld=no
4126 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4127 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4128 with_gnu_ld=$lt_cv_prog_gnu_ld
4131 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4132 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4133 if test "${lt_cv_ld_reload_flag+set}" = set; then
4134 echo $ECHO_N "(cached) $ECHO_C" >&6
4136 lt_cv_ld_reload_flag='-r'
4138 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4139 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4140 reload_flag=$lt_cv_ld_reload_flag
4141 case $reload_flag in
4143 *) reload_flag=" $reload_flag" ;;
4145 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4148 if test "$GCC" = yes; then
4149 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4151 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4156 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4157 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4158 if test "${lt_cv_path_NM+set}" = set; then
4159 echo $ECHO_N "(cached) $ECHO_C" >&6
4161 if test -n "$NM"; then
4162 # Let the user override the test.
4165 lt_nm_to_check="${ac_tool_prefix}nm"
4166 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4167 lt_nm_to_check="$lt_nm_to_check nm"
4169 for lt_tmp_nm in $lt_nm_to_check; do
4170 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4171 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4173 test -z "$ac_dir" && ac_dir=.
4174 tmp_nm="$ac_dir/$lt_tmp_nm"
4175 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4176 # Check to see if the nm accepts a BSD-compat flag.
4177 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4178 # nm: unknown option "B" ignored
4179 # Tru64's nm complains that /dev/null is an invalid object file
4180 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4181 */dev/null* | *'Invalid file or object type'*)
4182 lt_cv_path_NM="$tmp_nm -B"
4186 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4188 lt_cv_path_NM="$tmp_nm -p"
4192 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4193 continue # so that we can try to find one that supports BSD flags
4202 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4205 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4206 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4209 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4210 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4212 if test "$LN_S" = "ln -s"; then
4213 { echo "$as_me:$LINENO: result: yes" >&5
4214 echo "${ECHO_T}yes" >&6; }
4216 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4217 echo "${ECHO_T}no, using $LN_S" >&6; }
4220 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4221 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4222 if test "${lt_cv_deplibs_check_method+set}" = set; then
4223 echo $ECHO_N "(cached) $ECHO_C" >&6
4225 lt_cv_file_magic_cmd='$MAGIC_CMD'
4226 lt_cv_file_magic_test_file=
4227 lt_cv_deplibs_check_method='unknown'
4228 # Need to set the preceding variable on all platforms that support
4229 # interlibrary dependencies.
4230 # 'none' -- dependencies not supported.
4231 # `unknown' -- same as none, but documents that we really don't know.
4232 # 'pass_all' -- all dependencies passed with no checks.
4233 # 'test_compile' -- check by making test program.
4234 # 'file_magic [[regex]]' -- check by looking for files in library path
4235 # which responds to the $file_magic_cmd with a given extended regex.
4236 # If you have `file' or equivalent on your system and you're not sure
4237 # whether `pass_all' will *always* work, you probably want this one.
4241 lt_cv_deplibs_check_method=pass_all
4245 lt_cv_deplibs_check_method=pass_all
4249 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4250 lt_cv_file_magic_cmd='/usr/bin/file -L'
4251 lt_cv_file_magic_test_file=/shlib/libc.so
4255 # func_win32_libid is a shell function defined in ltmain.sh
4256 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4257 lt_cv_file_magic_cmd='func_win32_libid'
4261 # Base MSYS/MinGW do not provide the 'file' command needed by
4262 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4263 # unless we find 'file', for example because we are cross-compiling.
4264 if ( file / ) >/dev/null 2>&1; then
4265 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4266 lt_cv_file_magic_cmd='func_win32_libid'
4268 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4269 lt_cv_file_magic_cmd='$OBJDUMP -f'
4273 darwin* | rhapsody*)
4274 lt_cv_deplibs_check_method=pass_all
4277 freebsd* | dragonfly*)
4278 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4281 # Not sure whether the presence of OpenBSD here was a mistake.
4282 # Let's accept both of them until this is cleared up.
4283 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4284 lt_cv_file_magic_cmd=/usr/bin/file
4285 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4289 lt_cv_deplibs_check_method=pass_all
4294 lt_cv_deplibs_check_method=pass_all
4297 hpux10.20* | hpux11*)
4298 lt_cv_file_magic_cmd=/usr/bin/file
4301 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4302 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4305 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]'
4306 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4309 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4310 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4316 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4317 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4320 irix5* | irix6* | nonstopux*)
4322 *-32|*"-32 ") libmagic=32-bit;;
4323 *-n32|*"-n32 ") libmagic=N32;;
4324 *-64|*"-64 ") libmagic=64-bit;;
4325 *) libmagic=never-match;;
4327 lt_cv_deplibs_check_method=pass_all
4330 # This must be Linux ELF.
4331 linux* | k*bsd*-gnu)
4332 lt_cv_deplibs_check_method=pass_all
4335 netbsd* | netbsdelf*-gnu)
4336 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4337 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4339 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4344 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4345 lt_cv_file_magic_cmd=/usr/bin/file
4346 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4350 lt_cv_deplibs_check_method=unknown
4354 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4355 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4357 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4361 osf3* | osf4* | osf5*)
4362 lt_cv_deplibs_check_method=pass_all
4366 lt_cv_deplibs_check_method=pass_all
4370 lt_cv_deplibs_check_method=pass_all
4374 case $host_vendor in
4376 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]'
4377 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4380 lt_cv_deplibs_check_method=pass_all
4383 lt_cv_file_magic_cmd='/bin/file'
4384 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4387 lt_cv_file_magic_cmd='/bin/file'
4388 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4389 lt_cv_file_magic_test_file=/lib/libc.so
4392 lt_cv_deplibs_check_method=pass_all
4395 lt_cv_deplibs_check_method=pass_all
4400 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4401 lt_cv_deplibs_check_method=pass_all
4406 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4407 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4408 file_magic_cmd=$lt_cv_file_magic_cmd
4409 deplibs_check_method=$lt_cv_deplibs_check_method
4410 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4415 # If no C compiler was specified, use CC.
4418 # If no C compiler flags were specified, use CFLAGS.
4419 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4421 # Allow CC to be a program name with arguments.
4425 # Check whether --enable-libtool-lock was given.
4426 if test "${enable_libtool_lock+set}" = set; then
4427 enableval=$enable_libtool_lock;
4430 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4432 # Some flags need to be propagated to the compiler or linker for good
4436 # Find out which ABI we are using.
4437 echo 'int i;' > conftest.$ac_ext
4438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4439 (eval $ac_compile) 2>&5
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); }; then
4443 case `/usr/bin/file conftest.$ac_objext` in
4455 # Find out which ABI we are using.
4456 echo '#line 4456 "configure"' > conftest.$ac_ext
4457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4458 (eval $ac_compile) 2>&5
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); }; then
4462 if test "$lt_cv_prog_gnu_ld" = yes; then
4463 case `/usr/bin/file conftest.$ac_objext` in
4465 LD="${LD-ld} -melf32bsmip"
4468 LD="${LD-ld} -melf32bmipn32"
4471 LD="${LD-ld} -melf64bmip"
4475 case `/usr/bin/file conftest.$ac_objext` in
4491 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4492 s390*-*linux*|sparc*-*linux*)
4493 # Find out which ABI we are using.
4494 echo 'int i;' > conftest.$ac_ext
4495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4496 (eval $ac_compile) 2>&5
4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); }; then
4500 case `/usr/bin/file conftest.o` in
4503 x86_64-*kfreebsd*-gnu)
4504 LD="${LD-ld} -m elf_i386_fbsd"
4507 LD="${LD-ld} -m elf_i386"
4509 ppc64-*linux*|powerpc64-*linux*)
4510 LD="${LD-ld} -m elf32ppclinux"
4513 LD="${LD-ld} -m elf_s390"
4516 LD="${LD-ld} -m elf32_sparc"
4522 x86_64-*kfreebsd*-gnu)
4523 LD="${LD-ld} -m elf_x86_64_fbsd"
4526 LD="${LD-ld} -m elf_x86_64"
4528 ppc*-*linux*|powerpc*-*linux*)
4529 LD="${LD-ld} -m elf64ppc"
4532 LD="${LD-ld} -m elf64_s390"
4535 LD="${LD-ld} -m elf64_sparc"
4545 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4546 SAVE_CFLAGS="$CFLAGS"
4547 CFLAGS="$CFLAGS -belf"
4548 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4549 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4550 if test "${lt_cv_cc_needs_belf+set}" = set; then
4551 echo $ECHO_N "(cached) $ECHO_C" >&6
4554 ac_cpp='$CPP $CPPFLAGS'
4555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4559 cat >conftest.$ac_ext <<_ACEOF
4562 cat confdefs.h >>conftest.$ac_ext
4563 cat >>conftest.$ac_ext <<_ACEOF
4564 /* end confdefs.h. */
4574 rm -f conftest.$ac_objext conftest$ac_exeext
4575 if { (ac_try="$ac_link"
4577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4578 *) ac_try_echo=$ac_try;;
4580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4581 (eval "$ac_link") 2>conftest.er1
4583 grep -v '^ *+' conftest.er1 >conftest.err
4585 cat conftest.err >&5
4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587 (exit $ac_status); } && {
4588 test -z "$ac_c_werror_flag" ||
4589 test ! -s conftest.err
4590 } && test -s conftest$ac_exeext &&
4591 $as_test_x conftest$ac_exeext; then
4592 lt_cv_cc_needs_belf=yes
4594 echo "$as_me: failed program was:" >&5
4595 sed 's/^/| /' conftest.$ac_ext >&5
4597 lt_cv_cc_needs_belf=no
4600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4601 conftest$ac_exeext conftest.$ac_ext
4603 ac_cpp='$CPP $CPPFLAGS'
4604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4609 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4610 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4611 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4612 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4613 CFLAGS="$SAVE_CFLAGS"
4617 # Find out which ABI we are using.
4618 echo 'int i;' > conftest.$ac_ext
4619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4620 (eval $ac_compile) 2>&5
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); }; then
4624 case `/usr/bin/file conftest.o` in
4626 case $lt_cv_prog_gnu_ld in
4627 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4628 *) LD="${LD-ld} -64" ;;
4639 need_locks="$enable_libtool_lock"
4643 ac_cpp='$CPP $CPPFLAGS'
4644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4647 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4648 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4649 # On Suns, sometimes $CPP names a directory.
4650 if test -n "$CPP" && test -d "$CPP"; then
4653 if test -z "$CPP"; then
4654 if test "${ac_cv_prog_CPP+set}" = set; then
4655 echo $ECHO_N "(cached) $ECHO_C" >&6
4657 # Double quotes because CPP needs to be expanded
4658 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4661 for ac_c_preproc_warn_flag in '' yes
4663 # Use a header file that comes with gcc, so configuring glibc
4664 # with a fresh cross-compiler works.
4665 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4666 # <limits.h> exists even on freestanding compilers.
4667 # On the NeXT, cc -E runs the code through the compiler's parser,
4668 # not just through cpp. "Syntax error" is here to catch this case.
4669 cat >conftest.$ac_ext <<_ACEOF
4672 cat confdefs.h >>conftest.$ac_ext
4673 cat >>conftest.$ac_ext <<_ACEOF
4674 /* end confdefs.h. */
4676 # include <limits.h>
4678 # include <assert.h>
4682 if { (ac_try="$ac_cpp conftest.$ac_ext"
4684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4685 *) ac_try_echo=$ac_try;;
4687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4690 grep -v '^ *+' conftest.er1 >conftest.err
4692 cat conftest.err >&5
4693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694 (exit $ac_status); } >/dev/null && {
4695 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4696 test ! -s conftest.err
4700 echo "$as_me: failed program was:" >&5
4701 sed 's/^/| /' conftest.$ac_ext >&5
4703 # Broken: fails on valid input.
4707 rm -f conftest.err conftest.$ac_ext
4709 # OK, works on sane cases. Now check whether nonexistent headers
4710 # can be detected and how.
4711 cat >conftest.$ac_ext <<_ACEOF
4714 cat confdefs.h >>conftest.$ac_ext
4715 cat >>conftest.$ac_ext <<_ACEOF
4716 /* end confdefs.h. */
4717 #include <ac_nonexistent.h>
4719 if { (ac_try="$ac_cpp conftest.$ac_ext"
4721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4722 *) ac_try_echo=$ac_try;;
4724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4727 grep -v '^ *+' conftest.er1 >conftest.err
4729 cat conftest.err >&5
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); } >/dev/null && {
4732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4733 test ! -s conftest.err
4735 # Broken: success on invalid input.
4738 echo "$as_me: failed program was:" >&5
4739 sed 's/^/| /' conftest.$ac_ext >&5
4741 # Passes both tests.
4746 rm -f conftest.err conftest.$ac_ext
4749 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4750 rm -f conftest.err conftest.$ac_ext
4751 if $ac_preproc_ok; then
4763 { echo "$as_me:$LINENO: result: $CPP" >&5
4764 echo "${ECHO_T}$CPP" >&6; }
4766 for ac_c_preproc_warn_flag in '' yes
4768 # Use a header file that comes with gcc, so configuring glibc
4769 # with a fresh cross-compiler works.
4770 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4771 # <limits.h> exists even on freestanding compilers.
4772 # On the NeXT, cc -E runs the code through the compiler's parser,
4773 # not just through cpp. "Syntax error" is here to catch this case.
4774 cat >conftest.$ac_ext <<_ACEOF
4777 cat confdefs.h >>conftest.$ac_ext
4778 cat >>conftest.$ac_ext <<_ACEOF
4779 /* end confdefs.h. */
4781 # include <limits.h>
4783 # include <assert.h>
4787 if { (ac_try="$ac_cpp conftest.$ac_ext"
4789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4790 *) ac_try_echo=$ac_try;;
4792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4793 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4795 grep -v '^ *+' conftest.er1 >conftest.err
4797 cat conftest.err >&5
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); } >/dev/null && {
4800 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4801 test ! -s conftest.err
4805 echo "$as_me: failed program was:" >&5
4806 sed 's/^/| /' conftest.$ac_ext >&5
4808 # Broken: fails on valid input.
4812 rm -f conftest.err conftest.$ac_ext
4814 # OK, works on sane cases. Now check whether nonexistent headers
4815 # can be detected and how.
4816 cat >conftest.$ac_ext <<_ACEOF
4819 cat confdefs.h >>conftest.$ac_ext
4820 cat >>conftest.$ac_ext <<_ACEOF
4821 /* end confdefs.h. */
4822 #include <ac_nonexistent.h>
4824 if { (ac_try="$ac_cpp conftest.$ac_ext"
4826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4827 *) ac_try_echo=$ac_try;;
4829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4832 grep -v '^ *+' conftest.er1 >conftest.err
4834 cat conftest.err >&5
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); } >/dev/null && {
4837 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4838 test ! -s conftest.err
4840 # Broken: success on invalid input.
4843 echo "$as_me: failed program was:" >&5
4844 sed 's/^/| /' conftest.$ac_ext >&5
4846 # Passes both tests.
4851 rm -f conftest.err conftest.$ac_ext
4854 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4855 rm -f conftest.err conftest.$ac_ext
4856 if $ac_preproc_ok; then
4859 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4860 See \`config.log' for more details." >&5
4861 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4862 See \`config.log' for more details." >&2;}
4863 { (exit 1); exit 1; }; }
4867 ac_cpp='$CPP $CPPFLAGS'
4868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4873 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4874 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4875 if test "${ac_cv_header_stdc+set}" = set; then
4876 echo $ECHO_N "(cached) $ECHO_C" >&6
4878 cat >conftest.$ac_ext <<_ACEOF
4881 cat confdefs.h >>conftest.$ac_ext
4882 cat >>conftest.$ac_ext <<_ACEOF
4883 /* end confdefs.h. */
4897 rm -f conftest.$ac_objext
4898 if { (ac_try="$ac_compile"
4900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4901 *) ac_try_echo=$ac_try;;
4903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4904 (eval "$ac_compile") 2>conftest.er1
4906 grep -v '^ *+' conftest.er1 >conftest.err
4908 cat conftest.err >&5
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); } && {
4911 test -z "$ac_c_werror_flag" ||
4912 test ! -s conftest.err
4913 } && test -s conftest.$ac_objext; then
4914 ac_cv_header_stdc=yes
4916 echo "$as_me: failed program was:" >&5
4917 sed 's/^/| /' conftest.$ac_ext >&5
4919 ac_cv_header_stdc=no
4922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4924 if test $ac_cv_header_stdc = yes; then
4925 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4926 cat >conftest.$ac_ext <<_ACEOF
4929 cat confdefs.h >>conftest.$ac_ext
4930 cat >>conftest.$ac_ext <<_ACEOF
4931 /* end confdefs.h. */
4935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4936 $EGREP "memchr" >/dev/null 2>&1; then
4939 ac_cv_header_stdc=no
4945 if test $ac_cv_header_stdc = yes; then
4946 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4947 cat >conftest.$ac_ext <<_ACEOF
4950 cat confdefs.h >>conftest.$ac_ext
4951 cat >>conftest.$ac_ext <<_ACEOF
4952 /* end confdefs.h. */
4956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4957 $EGREP "free" >/dev/null 2>&1; then
4960 ac_cv_header_stdc=no
4966 if test $ac_cv_header_stdc = yes; then
4967 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4968 if test "$cross_compiling" = yes; then
4971 cat >conftest.$ac_ext <<_ACEOF
4974 cat confdefs.h >>conftest.$ac_ext
4975 cat >>conftest.$ac_ext <<_ACEOF
4976 /* end confdefs.h. */
4979 #if ((' ' & 0x0FF) == 0x020)
4980 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4981 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4983 # define ISLOWER(c) \
4984 (('a' <= (c) && (c) <= 'i') \
4985 || ('j' <= (c) && (c) <= 'r') \
4986 || ('s' <= (c) && (c) <= 'z'))
4987 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4990 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4995 for (i = 0; i < 256; i++)
4996 if (XOR (islower (i), ISLOWER (i))
4997 || toupper (i) != TOUPPER (i))
5002 rm -f conftest$ac_exeext
5003 if { (ac_try="$ac_link"
5005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5006 *) ac_try_echo=$ac_try;;
5008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5009 (eval "$ac_link") 2>&5
5011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5013 { (case "(($ac_try" in
5014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5015 *) ac_try_echo=$ac_try;;
5017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5018 (eval "$ac_try") 2>&5
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); }; }; then
5024 echo "$as_me: program exited with status $ac_status" >&5
5025 echo "$as_me: failed program was:" >&5
5026 sed 's/^/| /' conftest.$ac_ext >&5
5029 ac_cv_header_stdc=no
5031 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5037 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5038 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5039 if test $ac_cv_header_stdc = yes; then
5041 cat >>confdefs.h <<\_ACEOF
5042 #define STDC_HEADERS 1
5047 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5057 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5058 inttypes.h stdint.h unistd.h
5060 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5061 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5063 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5064 echo $ECHO_N "(cached) $ECHO_C" >&6
5066 cat >conftest.$ac_ext <<_ACEOF
5069 cat confdefs.h >>conftest.$ac_ext
5070 cat >>conftest.$ac_ext <<_ACEOF
5071 /* end confdefs.h. */
5072 $ac_includes_default
5074 #include <$ac_header>
5076 rm -f conftest.$ac_objext
5077 if { (ac_try="$ac_compile"
5079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5080 *) ac_try_echo=$ac_try;;
5082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5083 (eval "$ac_compile") 2>conftest.er1
5085 grep -v '^ *+' conftest.er1 >conftest.err
5087 cat conftest.err >&5
5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 (exit $ac_status); } && {
5090 test -z "$ac_c_werror_flag" ||
5091 test ! -s conftest.err
5092 } && test -s conftest.$ac_objext; then
5093 eval "$as_ac_Header=yes"
5095 echo "$as_me: failed program was:" >&5
5096 sed 's/^/| /' conftest.$ac_ext >&5
5098 eval "$as_ac_Header=no"
5101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5103 ac_res=`eval echo '${'$as_ac_Header'}'`
5104 { echo "$as_me:$LINENO: result: $ac_res" >&5
5105 echo "${ECHO_T}$ac_res" >&6; }
5106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5107 cat >>confdefs.h <<_ACEOF
5108 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5117 for ac_header in dlfcn.h
5119 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5121 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5124 echo $ECHO_N "(cached) $ECHO_C" >&6
5126 ac_res=`eval echo '${'$as_ac_Header'}'`
5127 { echo "$as_me:$LINENO: result: $ac_res" >&5
5128 echo "${ECHO_T}$ac_res" >&6; }
5130 # Is the header compilable?
5131 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5132 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5133 cat >conftest.$ac_ext <<_ACEOF
5136 cat confdefs.h >>conftest.$ac_ext
5137 cat >>conftest.$ac_ext <<_ACEOF
5138 /* end confdefs.h. */
5139 $ac_includes_default
5140 #include <$ac_header>
5142 rm -f conftest.$ac_objext
5143 if { (ac_try="$ac_compile"
5145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5146 *) ac_try_echo=$ac_try;;
5148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5149 (eval "$ac_compile") 2>conftest.er1
5151 grep -v '^ *+' conftest.er1 >conftest.err
5153 cat conftest.err >&5
5154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5155 (exit $ac_status); } && {
5156 test -z "$ac_c_werror_flag" ||
5157 test ! -s conftest.err
5158 } && test -s conftest.$ac_objext; then
5159 ac_header_compiler=yes
5161 echo "$as_me: failed program was:" >&5
5162 sed 's/^/| /' conftest.$ac_ext >&5
5164 ac_header_compiler=no
5167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5168 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5169 echo "${ECHO_T}$ac_header_compiler" >&6; }
5171 # Is the header present?
5172 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5173 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5174 cat >conftest.$ac_ext <<_ACEOF
5177 cat confdefs.h >>conftest.$ac_ext
5178 cat >>conftest.$ac_ext <<_ACEOF
5179 /* end confdefs.h. */
5180 #include <$ac_header>
5182 if { (ac_try="$ac_cpp conftest.$ac_ext"
5184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5185 *) ac_try_echo=$ac_try;;
5187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5188 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5190 grep -v '^ *+' conftest.er1 >conftest.err
5192 cat conftest.err >&5
5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194 (exit $ac_status); } >/dev/null && {
5195 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5196 test ! -s conftest.err
5198 ac_header_preproc=yes
5200 echo "$as_me: failed program was:" >&5
5201 sed 's/^/| /' conftest.$ac_ext >&5
5203 ac_header_preproc=no
5206 rm -f conftest.err conftest.$ac_ext
5207 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5208 echo "${ECHO_T}$ac_header_preproc" >&6; }
5210 # So? What about this header?
5211 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5213 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5214 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5216 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5217 ac_header_preproc=yes
5220 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5221 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5222 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5223 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5224 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5225 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5226 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5227 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5229 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5230 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5231 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5233 ## ----------------------------------------------- ##
5234 ## Report this to http://kldp.net/projects/hangul/ ##
5235 ## ----------------------------------------------- ##
5237 ) | sed "s/^/$as_me: WARNING: /" >&2
5240 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5243 echo $ECHO_N "(cached) $ECHO_C" >&6
5245 eval "$as_ac_Header=\$ac_header_preproc"
5247 ac_res=`eval echo '${'$as_ac_Header'}'`
5248 { echo "$as_me:$LINENO: result: $ac_res" >&5
5249 echo "${ECHO_T}$ac_res" >&6; }
5252 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5253 cat >>confdefs.h <<_ACEOF
5254 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5262 ac_cpp='$CXXCPP $CPPFLAGS'
5263 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5264 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5265 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5266 if test -z "$CXX"; then
5267 if test -n "$CCC"; then
5270 if test -n "$ac_tool_prefix"; then
5271 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5273 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5274 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5277 if test "${ac_cv_prog_CXX+set}" = set; then
5278 echo $ECHO_N "(cached) $ECHO_C" >&6
5280 if test -n "$CXX"; then
5281 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5287 test -z "$as_dir" && as_dir=.
5288 for ac_exec_ext in '' $ac_executable_extensions; do
5289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5290 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5301 if test -n "$CXX"; then
5302 { echo "$as_me:$LINENO: result: $CXX" >&5
5303 echo "${ECHO_T}$CXX" >&6; }
5305 { echo "$as_me:$LINENO: result: no" >&5
5306 echo "${ECHO_T}no" >&6; }
5310 test -n "$CXX" && break
5313 if test -z "$CXX"; then
5315 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5317 # Extract the first word of "$ac_prog", so it can be a program name with args.
5318 set dummy $ac_prog; ac_word=$2
5319 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5321 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5322 echo $ECHO_N "(cached) $ECHO_C" >&6
5324 if test -n "$ac_ct_CXX"; then
5325 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5331 test -z "$as_dir" && as_dir=.
5332 for ac_exec_ext in '' $ac_executable_extensions; do
5333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5334 ac_cv_prog_ac_ct_CXX="$ac_prog"
5335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5344 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5345 if test -n "$ac_ct_CXX"; then
5346 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5347 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5349 { echo "$as_me:$LINENO: result: no" >&5
5350 echo "${ECHO_T}no" >&6; }
5354 test -n "$ac_ct_CXX" && break
5357 if test "x$ac_ct_CXX" = x; then
5360 case $cross_compiling:$ac_tool_warned in
5362 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5363 whose name does not start with the host triplet. If you think this
5364 configuration is useful to you, please write to autoconf@gnu.org." >&5
5365 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5366 whose name does not start with the host triplet. If you think this
5367 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5368 ac_tool_warned=yes ;;
5376 # Provide some information about the compiler.
5377 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5378 ac_compiler=`set X $ac_compile; echo $2`
5379 { (ac_try="$ac_compiler --version >&5"
5381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5382 *) ac_try_echo=$ac_try;;
5384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5385 (eval "$ac_compiler --version >&5") 2>&5
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); }
5389 { (ac_try="$ac_compiler -v >&5"
5391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5392 *) ac_try_echo=$ac_try;;
5394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5395 (eval "$ac_compiler -v >&5") 2>&5
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); }
5399 { (ac_try="$ac_compiler -V >&5"
5401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5402 *) ac_try_echo=$ac_try;;
5404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5405 (eval "$ac_compiler -V >&5") 2>&5
5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); }
5410 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5411 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5412 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5413 echo $ECHO_N "(cached) $ECHO_C" >&6
5415 cat >conftest.$ac_ext <<_ACEOF
5418 cat confdefs.h >>conftest.$ac_ext
5419 cat >>conftest.$ac_ext <<_ACEOF
5420 /* end confdefs.h. */
5433 rm -f conftest.$ac_objext
5434 if { (ac_try="$ac_compile"
5436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5437 *) ac_try_echo=$ac_try;;
5439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5440 (eval "$ac_compile") 2>conftest.er1
5442 grep -v '^ *+' conftest.er1 >conftest.err
5444 cat conftest.err >&5
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); } && {
5447 test -z "$ac_cxx_werror_flag" ||
5448 test ! -s conftest.err
5449 } && test -s conftest.$ac_objext; then
5452 echo "$as_me: failed program was:" >&5
5453 sed 's/^/| /' conftest.$ac_ext >&5
5458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5459 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5462 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5463 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5464 GXX=`test $ac_compiler_gnu = yes && echo yes`
5465 ac_test_CXXFLAGS=${CXXFLAGS+set}
5466 ac_save_CXXFLAGS=$CXXFLAGS
5467 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5468 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5469 if test "${ac_cv_prog_cxx_g+set}" = set; then
5470 echo $ECHO_N "(cached) $ECHO_C" >&6
5472 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5473 ac_cxx_werror_flag=yes
5476 cat >conftest.$ac_ext <<_ACEOF
5479 cat confdefs.h >>conftest.$ac_ext
5480 cat >>conftest.$ac_ext <<_ACEOF
5481 /* end confdefs.h. */
5491 rm -f conftest.$ac_objext
5492 if { (ac_try="$ac_compile"
5494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5495 *) ac_try_echo=$ac_try;;
5497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5498 (eval "$ac_compile") 2>conftest.er1
5500 grep -v '^ *+' conftest.er1 >conftest.err
5502 cat conftest.err >&5
5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); } && {
5505 test -z "$ac_cxx_werror_flag" ||
5506 test ! -s conftest.err
5507 } && test -s conftest.$ac_objext; then
5508 ac_cv_prog_cxx_g=yes
5510 echo "$as_me: failed program was:" >&5
5511 sed 's/^/| /' conftest.$ac_ext >&5
5514 cat >conftest.$ac_ext <<_ACEOF
5517 cat confdefs.h >>conftest.$ac_ext
5518 cat >>conftest.$ac_ext <<_ACEOF
5519 /* end confdefs.h. */
5529 rm -f conftest.$ac_objext
5530 if { (ac_try="$ac_compile"
5532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5533 *) ac_try_echo=$ac_try;;
5535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5536 (eval "$ac_compile") 2>conftest.er1
5538 grep -v '^ *+' conftest.er1 >conftest.err
5540 cat conftest.err >&5
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); } && {
5543 test -z "$ac_cxx_werror_flag" ||
5544 test ! -s conftest.err
5545 } && test -s conftest.$ac_objext; then
5548 echo "$as_me: failed program was:" >&5
5549 sed 's/^/| /' conftest.$ac_ext >&5
5551 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5553 cat >conftest.$ac_ext <<_ACEOF
5556 cat confdefs.h >>conftest.$ac_ext
5557 cat >>conftest.$ac_ext <<_ACEOF
5558 /* end confdefs.h. */
5568 rm -f conftest.$ac_objext
5569 if { (ac_try="$ac_compile"
5571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5572 *) ac_try_echo=$ac_try;;
5574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5575 (eval "$ac_compile") 2>conftest.er1
5577 grep -v '^ *+' conftest.er1 >conftest.err
5579 cat conftest.err >&5
5580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581 (exit $ac_status); } && {
5582 test -z "$ac_cxx_werror_flag" ||
5583 test ! -s conftest.err
5584 } && test -s conftest.$ac_objext; then
5585 ac_cv_prog_cxx_g=yes
5587 echo "$as_me: failed program was:" >&5
5588 sed 's/^/| /' conftest.$ac_ext >&5
5593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5600 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5602 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5603 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5604 if test "$ac_test_CXXFLAGS" = set; then
5605 CXXFLAGS=$ac_save_CXXFLAGS
5606 elif test $ac_cv_prog_cxx_g = yes; then
5607 if test "$GXX" = yes; then
5613 if test "$GXX" = yes; then
5620 ac_cpp='$CXXCPP $CPPFLAGS'
5621 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5622 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5623 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5625 depcc="$CXX" am_compiler_list=
5627 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5628 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5629 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5630 echo $ECHO_N "(cached) $ECHO_C" >&6
5632 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5633 # We make a subdir and do the tests there. Otherwise we can end up
5634 # making bogus files that we don't know about and never remove. For
5635 # instance it was reported that on HP-UX the gcc test will end up
5636 # making a dummy file named `D' -- because `-MD' means `put the output
5639 # Copy depcomp to subdir because otherwise we won't find it if we're
5640 # using a relative directory.
5641 cp "$am_depcomp" conftest.dir
5643 # We will build objects and dependencies in a subdirectory because
5644 # it helps to detect inapplicable dependency modes. For instance
5645 # both Tru64's cc and ICC support -MD to output dependencies as a
5646 # side effect of compilation, but ICC will put the dependencies in
5647 # the current directory while Tru64 will put them in the object
5651 am_cv_CXX_dependencies_compiler_type=none
5652 if test "$am_compiler_list" = ""; then
5653 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5655 for depmode in $am_compiler_list; do
5656 # Setup a source with many dependencies, because some compilers
5657 # like to wrap large dependency lists on column 80 (with \), and
5658 # we should not choose a depcomp mode which is confused by this.
5660 # We need to recreate these files for each test, as the compiler may
5661 # overwrite some of them when testing with obscure command lines.
5662 # This happens at least with the AIX C compiler.
5664 for i in 1 2 3 4 5 6; do
5665 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5666 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5667 # Solaris 8's {/usr,}/bin/sh.
5668 touch sub/conftst$i.h
5670 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5674 # after this tag, mechanisms are not by side-effect, so they'll
5675 # only be used when explicitly requested
5676 if test "x$enable_dependency_tracking" = xyes; then
5684 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5685 # mode. It turns out that the SunPro C++ compiler does not properly
5686 # handle `-M -o', and we need to detect this.
5687 if depmode=$depmode \
5688 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5689 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5690 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5691 >/dev/null 2>conftest.err &&
5692 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5693 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5694 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5695 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5696 # icc doesn't choke on unknown options, it will just issue warnings
5697 # or remarks (even with -Werror). So we grep stderr for any message
5698 # that says an option was ignored or not supported.
5699 # When given -MP, icc 7.0 and 7.1 complain thusly:
5700 # icc: Command line warning: ignoring option '-M'; no argument required
5701 # The diagnosis changed in icc 8.0:
5702 # icc: Command line remark: option '-MP' not supported
5703 if (grep 'ignoring option' conftest.err ||
5704 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5705 am_cv_CXX_dependencies_compiler_type=$depmode
5714 am_cv_CXX_dependencies_compiler_type=none
5718 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5719 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5720 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5723 test "x$enable_dependency_tracking" != xno \
5724 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5725 am__fastdepCXX_TRUE=
5726 am__fastdepCXX_FALSE='#'
5728 am__fastdepCXX_TRUE='#'
5729 am__fastdepCXX_FALSE=
5735 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5736 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5737 (test "X$CXX" != "Xg++"))) ; then
5739 ac_cpp='$CXXCPP $CPPFLAGS'
5740 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5741 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5742 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5743 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5744 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5745 if test -z "$CXXCPP"; then
5746 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5747 echo $ECHO_N "(cached) $ECHO_C" >&6
5749 # Double quotes because CXXCPP needs to be expanded
5750 for CXXCPP in "$CXX -E" "/lib/cpp"
5753 for ac_cxx_preproc_warn_flag in '' yes
5755 # Use a header file that comes with gcc, so configuring glibc
5756 # with a fresh cross-compiler works.
5757 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5758 # <limits.h> exists even on freestanding compilers.
5759 # On the NeXT, cc -E runs the code through the compiler's parser,
5760 # not just through cpp. "Syntax error" is here to catch this case.
5761 cat >conftest.$ac_ext <<_ACEOF
5764 cat confdefs.h >>conftest.$ac_ext
5765 cat >>conftest.$ac_ext <<_ACEOF
5766 /* end confdefs.h. */
5768 # include <limits.h>
5770 # include <assert.h>
5774 if { (ac_try="$ac_cpp conftest.$ac_ext"
5776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5777 *) ac_try_echo=$ac_try;;
5779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5780 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5782 grep -v '^ *+' conftest.er1 >conftest.err
5784 cat conftest.err >&5
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); } >/dev/null && {
5787 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5788 test ! -s conftest.err
5792 echo "$as_me: failed program was:" >&5
5793 sed 's/^/| /' conftest.$ac_ext >&5
5795 # Broken: fails on valid input.
5799 rm -f conftest.err conftest.$ac_ext
5801 # OK, works on sane cases. Now check whether nonexistent headers
5802 # can be detected and how.
5803 cat >conftest.$ac_ext <<_ACEOF
5806 cat confdefs.h >>conftest.$ac_ext
5807 cat >>conftest.$ac_ext <<_ACEOF
5808 /* end confdefs.h. */
5809 #include <ac_nonexistent.h>
5811 if { (ac_try="$ac_cpp conftest.$ac_ext"
5813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5814 *) ac_try_echo=$ac_try;;
5816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5817 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5819 grep -v '^ *+' conftest.er1 >conftest.err
5821 cat conftest.err >&5
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); } >/dev/null && {
5824 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5825 test ! -s conftest.err
5827 # Broken: success on invalid input.
5830 echo "$as_me: failed program was:" >&5
5831 sed 's/^/| /' conftest.$ac_ext >&5
5833 # Passes both tests.
5838 rm -f conftest.err conftest.$ac_ext
5841 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5842 rm -f conftest.err conftest.$ac_ext
5843 if $ac_preproc_ok; then
5848 ac_cv_prog_CXXCPP=$CXXCPP
5851 CXXCPP=$ac_cv_prog_CXXCPP
5853 ac_cv_prog_CXXCPP=$CXXCPP
5855 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5856 echo "${ECHO_T}$CXXCPP" >&6; }
5858 for ac_cxx_preproc_warn_flag in '' yes
5860 # Use a header file that comes with gcc, so configuring glibc
5861 # with a fresh cross-compiler works.
5862 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5863 # <limits.h> exists even on freestanding compilers.
5864 # On the NeXT, cc -E runs the code through the compiler's parser,
5865 # not just through cpp. "Syntax error" is here to catch this case.
5866 cat >conftest.$ac_ext <<_ACEOF
5869 cat confdefs.h >>conftest.$ac_ext
5870 cat >>conftest.$ac_ext <<_ACEOF
5871 /* end confdefs.h. */
5873 # include <limits.h>
5875 # include <assert.h>
5879 if { (ac_try="$ac_cpp conftest.$ac_ext"
5881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5882 *) ac_try_echo=$ac_try;;
5884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5887 grep -v '^ *+' conftest.er1 >conftest.err
5889 cat conftest.err >&5
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); } >/dev/null && {
5892 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5893 test ! -s conftest.err
5897 echo "$as_me: failed program was:" >&5
5898 sed 's/^/| /' conftest.$ac_ext >&5
5900 # Broken: fails on valid input.
5904 rm -f conftest.err conftest.$ac_ext
5906 # OK, works on sane cases. Now check whether nonexistent headers
5907 # can be detected and how.
5908 cat >conftest.$ac_ext <<_ACEOF
5911 cat confdefs.h >>conftest.$ac_ext
5912 cat >>conftest.$ac_ext <<_ACEOF
5913 /* end confdefs.h. */
5914 #include <ac_nonexistent.h>
5916 if { (ac_try="$ac_cpp conftest.$ac_ext"
5918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5919 *) ac_try_echo=$ac_try;;
5921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5922 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5924 grep -v '^ *+' conftest.er1 >conftest.err
5926 cat conftest.err >&5
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); } >/dev/null && {
5929 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5930 test ! -s conftest.err
5932 # Broken: success on invalid input.
5935 echo "$as_me: failed program was:" >&5
5936 sed 's/^/| /' conftest.$ac_ext >&5
5938 # Passes both tests.
5943 rm -f conftest.err conftest.$ac_ext
5946 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5947 rm -f conftest.err conftest.$ac_ext
5948 if $ac_preproc_ok; then
5951 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5952 See \`config.log' for more details." >&5
5953 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5954 See \`config.log' for more details." >&2;}
5955 { (exit 1); exit 1; }; }
5959 ac_cpp='$CXXCPP $CPPFLAGS'
5960 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5961 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5962 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5968 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5969 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5970 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5971 if test -n "$ac_tool_prefix"; then
5972 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
5974 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5975 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5976 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5978 if test "${ac_cv_prog_F77+set}" = set; then
5979 echo $ECHO_N "(cached) $ECHO_C" >&6
5981 if test -n "$F77"; then
5982 ac_cv_prog_F77="$F77" # Let the user override the test.
5984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5988 test -z "$as_dir" && as_dir=.
5989 for ac_exec_ext in '' $ac_executable_extensions; do
5990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5991 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6002 if test -n "$F77"; then
6003 { echo "$as_me:$LINENO: result: $F77" >&5
6004 echo "${ECHO_T}$F77" >&6; }
6006 { echo "$as_me:$LINENO: result: no" >&5
6007 echo "${ECHO_T}no" >&6; }
6011 test -n "$F77" && break
6014 if test -z "$F77"; then
6016 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
6018 # Extract the first word of "$ac_prog", so it can be a program name with args.
6019 set dummy $ac_prog; ac_word=$2
6020 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6022 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6023 echo $ECHO_N "(cached) $ECHO_C" >&6
6025 if test -n "$ac_ct_F77"; then
6026 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6032 test -z "$as_dir" && as_dir=.
6033 for ac_exec_ext in '' $ac_executable_extensions; do
6034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6035 ac_cv_prog_ac_ct_F77="$ac_prog"
6036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6045 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6046 if test -n "$ac_ct_F77"; then
6047 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6048 echo "${ECHO_T}$ac_ct_F77" >&6; }
6050 { echo "$as_me:$LINENO: result: no" >&5
6051 echo "${ECHO_T}no" >&6; }
6055 test -n "$ac_ct_F77" && break
6058 if test "x$ac_ct_F77" = x; then
6061 case $cross_compiling:$ac_tool_warned in
6063 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6064 whose name does not start with the host triplet. If you think this
6065 configuration is useful to you, please write to autoconf@gnu.org." >&5
6066 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6067 whose name does not start with the host triplet. If you think this
6068 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6069 ac_tool_warned=yes ;;
6076 # Provide some information about the compiler.
6077 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6078 ac_compiler=`set X $ac_compile; echo $2`
6079 { (ac_try="$ac_compiler --version >&5"
6081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6082 *) ac_try_echo=$ac_try;;
6084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6085 (eval "$ac_compiler --version >&5") 2>&5
6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 (exit $ac_status); }
6089 { (ac_try="$ac_compiler -v >&5"
6091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6092 *) ac_try_echo=$ac_try;;
6094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6095 (eval "$ac_compiler -v >&5") 2>&5
6097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098 (exit $ac_status); }
6099 { (ac_try="$ac_compiler -V >&5"
6101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6102 *) ac_try_echo=$ac_try;;
6104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6105 (eval "$ac_compiler -V >&5") 2>&5
6107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108 (exit $ac_status); }
6111 # If we don't use `.F' as extension, the preprocessor is not run on the
6112 # input file. (Note that this only needs to work for GNU compilers.)
6115 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6116 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6117 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6118 echo $ECHO_N "(cached) $ECHO_C" >&6
6120 cat >conftest.$ac_ext <<_ACEOF
6128 rm -f conftest.$ac_objext
6129 if { (ac_try="$ac_compile"
6131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6132 *) ac_try_echo=$ac_try;;
6134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6135 (eval "$ac_compile") 2>conftest.er1
6137 grep -v '^ *+' conftest.er1 >conftest.err
6139 cat conftest.err >&5
6140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141 (exit $ac_status); } && {
6142 test -z "$ac_f77_werror_flag" ||
6143 test ! -s conftest.err
6144 } && test -s conftest.$ac_objext; then
6147 echo "$as_me: failed program was:" >&5
6148 sed 's/^/| /' conftest.$ac_ext >&5
6153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6154 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6157 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6158 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6160 ac_test_FFLAGS=${FFLAGS+set}
6161 ac_save_FFLAGS=$FFLAGS
6163 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6164 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6165 if test "${ac_cv_prog_f77_g+set}" = set; then
6166 echo $ECHO_N "(cached) $ECHO_C" >&6
6169 cat >conftest.$ac_ext <<_ACEOF
6174 rm -f conftest.$ac_objext
6175 if { (ac_try="$ac_compile"
6177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6178 *) ac_try_echo=$ac_try;;
6180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6181 (eval "$ac_compile") 2>conftest.er1
6183 grep -v '^ *+' conftest.er1 >conftest.err
6185 cat conftest.err >&5
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); } && {
6188 test -z "$ac_f77_werror_flag" ||
6189 test ! -s conftest.err
6190 } && test -s conftest.$ac_objext; then
6191 ac_cv_prog_f77_g=yes
6193 echo "$as_me: failed program was:" >&5
6194 sed 's/^/| /' conftest.$ac_ext >&5
6199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6202 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6203 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6204 if test "$ac_test_FFLAGS" = set; then
6205 FFLAGS=$ac_save_FFLAGS
6206 elif test $ac_cv_prog_f77_g = yes; then
6207 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6213 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6220 G77=`test $ac_compiler_gnu = yes && echo yes`
6222 ac_cpp='$CPP $CPPFLAGS'
6223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6229 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6231 # find the maximum length of command line arguments
6232 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6233 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6234 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6235 echo $ECHO_N "(cached) $ECHO_C" >&6
6242 # On DJGPP, this test can blow up pretty badly due to problems in libc
6243 # (any single argument exceeding 2000 bytes causes a buffer overrun
6244 # during glob expansion). Even if it were fixed, the result of this
6245 # check would be larger than it should be.
6246 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6250 # Under GNU Hurd, this test is not required because there is
6251 # no limit to the length of command line arguments.
6252 # Libtool will interpret -1 as no limit whatsoever
6253 lt_cv_sys_max_cmd_len=-1;
6257 # On Win9x/ME, this test blows up -- it succeeds, but takes
6258 # about 5 minutes as the teststring grows exponentially.
6259 # Worse, since 9x/ME are not pre-emptively multitasking,
6260 # you end up with a "frozen" computer, even though with patience
6261 # the test eventually succeeds (with a max line length of 256k).
6262 # Instead, let's just punt: use the minimum linelength reported by
6263 # all of the supported platforms: 8192 (on NT/2K/XP).
6264 lt_cv_sys_max_cmd_len=8192;
6268 # On AmigaOS with pdksh, this test takes hours, literally.
6269 # So we just punt and use a minimum line length of 8192.
6270 lt_cv_sys_max_cmd_len=8192;
6273 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6274 # This has been around since 386BSD, at least. Likely further.
6275 if test -x /sbin/sysctl; then
6276 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6277 elif test -x /usr/sbin/sysctl; then
6278 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6280 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6282 # And add a safety zone
6283 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6284 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6288 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6289 lt_cv_sys_max_cmd_len=196608
6293 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6294 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6295 # nice to cause kernel panics so lets avoid the loop below.
6296 # First set a reasonable default.
6297 lt_cv_sys_max_cmd_len=16384
6299 if test -x /sbin/sysconfig; then
6300 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6301 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6306 lt_cv_sys_max_cmd_len=102400
6308 sysv5* | sco5v6* | sysv4.2uw2*)
6309 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6310 if test -n "$kargmax"; then
6311 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6313 lt_cv_sys_max_cmd_len=32768
6317 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6318 if test -n "$lt_cv_sys_max_cmd_len"; then
6319 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6320 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6322 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6323 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6324 = "XX$teststring") >/dev/null 2>&1 &&
6325 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6326 lt_cv_sys_max_cmd_len=$new_result &&
6327 test $i != 17 # 1/2 MB should be enough
6330 teststring=$teststring$teststring
6333 # Add a significant safety factor because C++ compilers can tack on massive
6334 # amounts of additional arguments before passing them to the linker.
6335 # It appears as though 1/2 is a usable value.
6336 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6343 if test -n $lt_cv_sys_max_cmd_len ; then
6344 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6345 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6347 { echo "$as_me:$LINENO: result: none" >&5
6348 echo "${ECHO_T}none" >&6; }
6355 # Check for command to grab the raw symbol name followed by C symbol from nm.
6356 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6357 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6358 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6359 echo $ECHO_N "(cached) $ECHO_C" >&6
6362 # These are sane defaults that work on at least a few old systems.
6363 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6365 # Character class describing NM global symbol codes.
6366 symcode='[BCDEGRST]'
6368 # Regexp to match symbols that can be accessed directly from C.
6369 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6371 # Transform an extracted symbol line into a proper C declaration
6372 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6374 # Transform an extracted symbol line into symbol name and symbol address
6375 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'"
6377 # Define system-specific variables.
6382 cygwin* | mingw* | pw32*)
6383 symcode='[ABCDGISTW]'
6385 hpux*) # Its linker distinguishes data from code symbols
6386 if test "$host_cpu" = ia64; then
6387 symcode='[ABCDEGRST]'
6389 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6390 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'"
6392 linux* | k*bsd*-gnu)
6393 if test "$host_cpu" = ia64; then
6394 symcode='[ABCDGIRSTW]'
6395 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6396 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'"
6400 symcode='[BCDEGRST]'
6403 symcode='[BCDEGQRST]'
6414 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6422 # Handle CRLF in mingw tool chain
6426 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6430 # If we're using GNU nm, then use its standard symbol codes.
6431 case `$NM -V 2>&1` in
6432 *GNU* | *'with BFD'*)
6433 symcode='[ABCDGIRSTW]' ;;
6436 # Try without a prefix undercore, then with it.
6437 for ac_symprfx in "" "_"; do
6439 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6440 symxfrm="\\1 $ac_symprfx\\2 \\2"
6442 # Write the raw and C identifiers.
6443 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6445 # Check to see that the pipe works correctly.
6449 cat > conftest.$ac_ext <<EOF
6454 void nm_test_func(){}
6458 int main(){nm_test_var='a';nm_test_func();return(0);}
6461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6462 (eval $ac_compile) 2>&5
6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); }; then
6466 # Now try to grab the symbols.
6468 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6469 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472 (exit $ac_status); } && test -s "$nlist"; then
6473 # Try sorting and uniquifying the output.
6474 if sort "$nlist" | uniq > "$nlist"T; then
6475 mv -f "$nlist"T "$nlist"
6480 # Make sure that we snagged all the symbols we need.
6481 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6482 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6483 cat <<EOF > conftest.$ac_ext
6489 # Now generate the symbol file.
6490 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6492 cat <<EOF >> conftest.$ac_ext
6493 #if defined (__STDC__) && __STDC__
6494 # define lt_ptr_t void *
6496 # define lt_ptr_t char *
6500 /* The mapping between symbol names and symbols. */
6505 lt_preloaded_symbols[] =
6508 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6509 cat <<\EOF >> conftest.$ac_ext
6517 # Now try linking the two files.
6518 mv conftest.$ac_objext conftstm.$ac_objext
6519 lt_save_LIBS="$LIBS"
6520 lt_save_CFLAGS="$CFLAGS"
6521 LIBS="conftstm.$ac_objext"
6522 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6524 (eval $ac_link) 2>&5
6526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6530 LIBS="$lt_save_LIBS"
6531 CFLAGS="$lt_save_CFLAGS"
6533 echo "cannot find nm_test_func in $nlist" >&5
6536 echo "cannot find nm_test_var in $nlist" >&5
6539 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6542 echo "$progname: failed program was:" >&5
6543 cat conftest.$ac_ext >&5
6545 rm -f conftest* conftst*
6547 # Do not use the global_symbol_pipe unless it works.
6548 if test "$pipe_works" = yes; then
6551 lt_cv_sys_global_symbol_pipe=
6557 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6558 lt_cv_sys_global_symbol_to_cdecl=
6560 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6561 { echo "$as_me:$LINENO: result: failed" >&5
6562 echo "${ECHO_T}failed" >&6; }
6564 { echo "$as_me:$LINENO: result: ok" >&5
6565 echo "${ECHO_T}ok" >&6; }
6568 { echo "$as_me:$LINENO: checking for objdir" >&5
6569 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6570 if test "${lt_cv_objdir+set}" = set; then
6571 echo $ECHO_N "(cached) $ECHO_C" >&6
6573 rm -f .libs 2>/dev/null
6574 mkdir .libs 2>/dev/null
6575 if test -d .libs; then
6578 # MS-DOS does not allow filenames that begin with a dot.
6581 rmdir .libs 2>/dev/null
6583 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6584 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6585 objdir=$lt_cv_objdir
6593 # AIX sometimes has problems with the GCC collect2 program. For some
6594 # reason, if we set the COLLECT_NAMES environment variable, the problems
6595 # vanish in a puff of smoke.
6596 if test "X${COLLECT_NAMES+set}" != Xset; then
6598 export COLLECT_NAMES
6603 # Sed substitution that helps us do robust quoting. It backslashifies
6604 # metacharacters that are still active within double-quoted strings.
6605 Xsed='sed -e 1s/^X//'
6606 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6608 # Same as above, but do not quote variable references.
6609 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6611 # Sed substitution to delay expansion of an escaped shell variable in a
6612 # double_quote_subst'ed string.
6613 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6615 # Sed substitution to avoid accidental globbing in evaled expressions
6616 no_glob_subst='s/\*/\\\*/g'
6622 default_ofile=libtool
6623 can_build_shared=yes
6625 # All known linkers require a `.a' archive for static linking (except MSVC,
6626 # which needs '.lib').
6628 ltmain="$ac_aux_dir/ltmain.sh"
6629 ofile="$default_ofile"
6630 with_gnu_ld="$lt_cv_prog_gnu_ld"
6632 if test -n "$ac_tool_prefix"; then
6633 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6634 set dummy ${ac_tool_prefix}ar; ac_word=$2
6635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6637 if test "${ac_cv_prog_AR+set}" = set; then
6638 echo $ECHO_N "(cached) $ECHO_C" >&6
6640 if test -n "$AR"; then
6641 ac_cv_prog_AR="$AR" # Let the user override the test.
6643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6647 test -z "$as_dir" && as_dir=.
6648 for ac_exec_ext in '' $ac_executable_extensions; do
6649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6650 ac_cv_prog_AR="${ac_tool_prefix}ar"
6651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6661 if test -n "$AR"; then
6662 { echo "$as_me:$LINENO: result: $AR" >&5
6663 echo "${ECHO_T}$AR" >&6; }
6665 { echo "$as_me:$LINENO: result: no" >&5
6666 echo "${ECHO_T}no" >&6; }
6671 if test -z "$ac_cv_prog_AR"; then
6673 # Extract the first word of "ar", so it can be a program name with args.
6674 set dummy ar; ac_word=$2
6675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6677 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6678 echo $ECHO_N "(cached) $ECHO_C" >&6
6680 if test -n "$ac_ct_AR"; then
6681 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687 test -z "$as_dir" && as_dir=.
6688 for ac_exec_ext in '' $ac_executable_extensions; do
6689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6690 ac_cv_prog_ac_ct_AR="ar"
6691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6700 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6701 if test -n "$ac_ct_AR"; then
6702 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6703 echo "${ECHO_T}$ac_ct_AR" >&6; }
6705 { echo "$as_me:$LINENO: result: no" >&5
6706 echo "${ECHO_T}no" >&6; }
6709 if test "x$ac_ct_AR" = x; then
6712 case $cross_compiling:$ac_tool_warned in
6714 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6715 whose name does not start with the host triplet. If you think this
6716 configuration is useful to you, please write to autoconf@gnu.org." >&5
6717 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6718 whose name does not start with the host triplet. If you think this
6719 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6720 ac_tool_warned=yes ;;
6728 if test -n "$ac_tool_prefix"; then
6729 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6730 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6731 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6733 if test "${ac_cv_prog_RANLIB+set}" = set; then
6734 echo $ECHO_N "(cached) $ECHO_C" >&6
6736 if test -n "$RANLIB"; then
6737 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743 test -z "$as_dir" && as_dir=.
6744 for ac_exec_ext in '' $ac_executable_extensions; do
6745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6746 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6756 RANLIB=$ac_cv_prog_RANLIB
6757 if test -n "$RANLIB"; then
6758 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6759 echo "${ECHO_T}$RANLIB" >&6; }
6761 { echo "$as_me:$LINENO: result: no" >&5
6762 echo "${ECHO_T}no" >&6; }
6767 if test -z "$ac_cv_prog_RANLIB"; then
6768 ac_ct_RANLIB=$RANLIB
6769 # Extract the first word of "ranlib", so it can be a program name with args.
6770 set dummy ranlib; ac_word=$2
6771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6773 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6774 echo $ECHO_N "(cached) $ECHO_C" >&6
6776 if test -n "$ac_ct_RANLIB"; then
6777 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783 test -z "$as_dir" && as_dir=.
6784 for ac_exec_ext in '' $ac_executable_extensions; do
6785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6786 ac_cv_prog_ac_ct_RANLIB="ranlib"
6787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6796 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6797 if test -n "$ac_ct_RANLIB"; then
6798 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6799 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6801 { echo "$as_me:$LINENO: result: no" >&5
6802 echo "${ECHO_T}no" >&6; }
6805 if test "x$ac_ct_RANLIB" = x; then
6808 case $cross_compiling:$ac_tool_warned in
6810 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6811 whose name does not start with the host triplet. If you think this
6812 configuration is useful to you, please write to autoconf@gnu.org." >&5
6813 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6814 whose name does not start with the host triplet. If you think this
6815 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6816 ac_tool_warned=yes ;;
6818 RANLIB=$ac_ct_RANLIB
6821 RANLIB="$ac_cv_prog_RANLIB"
6824 if test -n "$ac_tool_prefix"; then
6825 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6826 set dummy ${ac_tool_prefix}strip; ac_word=$2
6827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6829 if test "${ac_cv_prog_STRIP+set}" = set; then
6830 echo $ECHO_N "(cached) $ECHO_C" >&6
6832 if test -n "$STRIP"; then
6833 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6839 test -z "$as_dir" && as_dir=.
6840 for ac_exec_ext in '' $ac_executable_extensions; do
6841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6842 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6852 STRIP=$ac_cv_prog_STRIP
6853 if test -n "$STRIP"; then
6854 { echo "$as_me:$LINENO: result: $STRIP" >&5
6855 echo "${ECHO_T}$STRIP" >&6; }
6857 { echo "$as_me:$LINENO: result: no" >&5
6858 echo "${ECHO_T}no" >&6; }
6863 if test -z "$ac_cv_prog_STRIP"; then
6865 # Extract the first word of "strip", so it can be a program name with args.
6866 set dummy strip; ac_word=$2
6867 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6869 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6870 echo $ECHO_N "(cached) $ECHO_C" >&6
6872 if test -n "$ac_ct_STRIP"; then
6873 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879 test -z "$as_dir" && as_dir=.
6880 for ac_exec_ext in '' $ac_executable_extensions; do
6881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6882 ac_cv_prog_ac_ct_STRIP="strip"
6883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6892 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6893 if test -n "$ac_ct_STRIP"; then
6894 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6895 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6897 { echo "$as_me:$LINENO: result: no" >&5
6898 echo "${ECHO_T}no" >&6; }
6901 if test "x$ac_ct_STRIP" = x; then
6904 case $cross_compiling:$ac_tool_warned in
6906 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6907 whose name does not start with the host triplet. If you think this
6908 configuration is useful to you, please write to autoconf@gnu.org." >&5
6909 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6910 whose name does not start with the host triplet. If you think this
6911 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6912 ac_tool_warned=yes ;;
6917 STRIP="$ac_cv_prog_STRIP"
6922 old_CFLAGS="$CFLAGS"
6924 # Set sane defaults for various variables
6925 test -z "$AR" && AR=ar
6926 test -z "$AR_FLAGS" && AR_FLAGS=cru
6927 test -z "$AS" && AS=as
6928 test -z "$CC" && CC=cc
6929 test -z "$LTCC" && LTCC=$CC
6930 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6931 test -z "$DLLTOOL" && DLLTOOL=dlltool
6932 test -z "$LD" && LD=ld
6933 test -z "$LN_S" && LN_S="ln -s"
6934 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6935 test -z "$NM" && NM=nm
6936 test -z "$SED" && SED=sed
6937 test -z "$OBJDUMP" && OBJDUMP=objdump
6938 test -z "$RANLIB" && RANLIB=:
6939 test -z "$STRIP" && STRIP=:
6940 test -z "$ac_objext" && ac_objext=o
6942 # Determine commands to create old-style static archives.
6943 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6944 old_postinstall_cmds='chmod 644 $oldlib'
6945 old_postuninstall_cmds=
6947 if test -n "$RANLIB"; then
6950 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6953 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6956 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6959 for cc_temp in $compiler""; do
6961 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6962 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6967 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6970 # Only perform the check for file, if the check method requires it
6971 case $deplibs_check_method in
6973 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6974 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6975 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6976 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6977 echo $ECHO_N "(cached) $ECHO_C" >&6
6981 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6984 lt_save_MAGIC_CMD="$MAGIC_CMD"
6985 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6986 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6987 for ac_dir in $ac_dummy; do
6989 test -z "$ac_dir" && ac_dir=.
6990 if test -f $ac_dir/${ac_tool_prefix}file; then
6991 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6992 if test -n "$file_magic_test_file"; then
6993 case $deplibs_check_method in
6995 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6996 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6997 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6998 $EGREP "$file_magic_regex" > /dev/null; then
7003 *** Warning: the command libtool uses to detect shared libraries,
7004 *** $file_magic_cmd, produces output that libtool cannot recognize.
7005 *** The result is that libtool may fail to recognize shared libraries
7006 *** as such. This will affect the creation of libtool libraries that
7007 *** depend on shared libraries, but programs linked with such libtool
7008 *** libraries will work regardless of this problem. Nevertheless, you
7009 *** may want to report the problem to your system manager and/or to
7010 *** bug-libtool@gnu.org
7020 MAGIC_CMD="$lt_save_MAGIC_CMD"
7025 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7026 if test -n "$MAGIC_CMD"; then
7027 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7028 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7030 { echo "$as_me:$LINENO: result: no" >&5
7031 echo "${ECHO_T}no" >&6; }
7034 if test -z "$lt_cv_path_MAGIC_CMD"; then
7035 if test -n "$ac_tool_prefix"; then
7036 { echo "$as_me:$LINENO: checking for file" >&5
7037 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7038 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7039 echo $ECHO_N "(cached) $ECHO_C" >&6
7043 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7046 lt_save_MAGIC_CMD="$MAGIC_CMD"
7047 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7048 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7049 for ac_dir in $ac_dummy; do
7051 test -z "$ac_dir" && ac_dir=.
7052 if test -f $ac_dir/file; then
7053 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7054 if test -n "$file_magic_test_file"; then
7055 case $deplibs_check_method in
7057 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7058 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7059 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7060 $EGREP "$file_magic_regex" > /dev/null; then
7065 *** Warning: the command libtool uses to detect shared libraries,
7066 *** $file_magic_cmd, produces output that libtool cannot recognize.
7067 *** The result is that libtool may fail to recognize shared libraries
7068 *** as such. This will affect the creation of libtool libraries that
7069 *** depend on shared libraries, but programs linked with such libtool
7070 *** libraries will work regardless of this problem. Nevertheless, you
7071 *** may want to report the problem to your system manager and/or to
7072 *** bug-libtool@gnu.org
7082 MAGIC_CMD="$lt_save_MAGIC_CMD"
7087 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7088 if test -n "$MAGIC_CMD"; then
7089 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7090 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7092 { echo "$as_me:$LINENO: result: no" >&5
7093 echo "${ECHO_T}no" >&6; }
7108 # Check whether --enable-libtool-lock was given.
7109 if test "${enable_libtool_lock+set}" = set; then
7110 enableval=$enable_libtool_lock;
7113 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7116 # Check whether --with-pic was given.
7117 if test "${with_pic+set}" = set; then
7118 withval=$with_pic; pic_mode="$withval"
7123 test -z "$pic_mode" && pic_mode=default
7125 # Use C for the default configuration in the libtool script
7129 ac_cpp='$CPP $CPPFLAGS'
7130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7135 # Source file extension for C test sources.
7138 # Object file extension for compiled C test sources.
7142 # Code to be used in simple compile tests
7143 lt_simple_compile_test_code="int some_variable = 0;"
7145 # Code to be used in simple link tests
7146 lt_simple_link_test_code='int main(){return(0);}'
7149 # If no C compiler was specified, use CC.
7152 # If no C compiler flags were specified, use CFLAGS.
7153 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7155 # Allow CC to be a program name with arguments.
7159 # save warnings/boilerplate of simple test code
7160 ac_outfile=conftest.$ac_objext
7161 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7162 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7163 _lt_compiler_boilerplate=`cat conftest.err`
7166 ac_outfile=conftest.$ac_objext
7167 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7168 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7169 _lt_linker_boilerplate=`cat conftest.err`
7174 lt_prog_compiler_no_builtin_flag=
7176 if test "$GCC" = yes; then
7177 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7180 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7181 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7182 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7183 echo $ECHO_N "(cached) $ECHO_C" >&6
7185 lt_cv_prog_compiler_rtti_exceptions=no
7186 ac_outfile=conftest.$ac_objext
7187 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7188 lt_compiler_flag="-fno-rtti -fno-exceptions"
7189 # Insert the option either (1) after the last *FLAGS variable, or
7190 # (2) before a word containing "conftest.", or (3) at the end.
7191 # Note that $ac_compile itself does not contain backslashes and begins
7192 # with a dollar sign (not a hyphen), so the echo should work correctly.
7193 # The option is referenced via a variable to avoid confusing sed.
7194 lt_compile=`echo "$ac_compile" | $SED \
7195 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7196 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7197 -e 's:$: $lt_compiler_flag:'`
7198 (eval echo "\"\$as_me:7198: $lt_compile\"" >&5)
7199 (eval "$lt_compile" 2>conftest.err)
7201 cat conftest.err >&5
7202 echo "$as_me:7202: \$? = $ac_status" >&5
7203 if (exit $ac_status) && test -s "$ac_outfile"; then
7204 # The compiler can only warn and ignore the option if not recognized
7205 # So say no if there are warnings other than the usual output.
7206 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7207 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7208 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7209 lt_cv_prog_compiler_rtti_exceptions=yes
7215 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7216 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7218 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7219 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7226 lt_prog_compiler_wl=
7227 lt_prog_compiler_pic=
7228 lt_prog_compiler_static=
7230 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7231 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7233 if test "$GCC" = yes; then
7234 lt_prog_compiler_wl='-Wl,'
7235 lt_prog_compiler_static='-static'
7239 # All AIX code is PIC.
7240 if test "$host_cpu" = ia64; then
7241 # AIX 5 now supports IA64 processor
7242 lt_prog_compiler_static='-Bstatic'
7247 # FIXME: we need at least 68020 code to build shared libraries, but
7248 # adding the `-m68020' flag to GCC prevents building anything better,
7250 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7253 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7254 # PIC is the default for these OSes.
7257 mingw* | cygwin* | pw32* | os2*)
7258 # This hack is so that the source file can tell whether it is being
7259 # built for inclusion in a dll (and should export symbols for example).
7260 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7261 # (--disable-auto-import) libraries
7262 lt_prog_compiler_pic='-DDLL_EXPORT'
7265 darwin* | rhapsody*)
7266 # PIC is the default on this platform
7267 # Common symbols not allowed in MH_DYLIB files
7268 lt_prog_compiler_pic='-fno-common'
7272 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7273 # Instead, we relocate shared libraries at runtime.
7277 # Just because we use GCC doesn't mean we suddenly get shared libraries
7278 # on systems that don't support them.
7279 lt_prog_compiler_can_build_shared=no
7284 if test -d /usr/nec; then
7285 lt_prog_compiler_pic=-Kconform_pic
7290 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7297 lt_prog_compiler_pic='-fPIC'
7303 lt_prog_compiler_pic='-fPIC'
7307 # PORTME Check for flag to pass linker flags through the system compiler.
7310 lt_prog_compiler_wl='-Wl,'
7311 if test "$host_cpu" = ia64; then
7312 # AIX 5 now supports IA64 processor
7313 lt_prog_compiler_static='-Bstatic'
7315 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7319 # PIC is the default on this platform
7320 # Common symbols not allowed in MH_DYLIB files
7321 case $cc_basename in
7323 lt_prog_compiler_pic='-qnocommon'
7324 lt_prog_compiler_wl='-Wl,'
7329 mingw* | cygwin* | pw32* | os2*)
7330 # This hack is so that the source file can tell whether it is being
7331 # built for inclusion in a dll (and should export symbols for example).
7332 lt_prog_compiler_pic='-DDLL_EXPORT'
7335 hpux9* | hpux10* | hpux11*)
7336 lt_prog_compiler_wl='-Wl,'
7337 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7344 lt_prog_compiler_pic='+Z'
7347 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7348 lt_prog_compiler_static='${wl}-a ${wl}archive'
7351 irix5* | irix6* | nonstopux*)
7352 lt_prog_compiler_wl='-Wl,'
7353 # PIC (with -KPIC) is the default.
7354 lt_prog_compiler_static='-non_shared'
7358 lt_prog_compiler_pic='-KPIC'
7359 lt_prog_compiler_static='-Bstatic'
7362 linux* | k*bsd*-gnu)
7363 case $cc_basename in
7365 lt_prog_compiler_wl='-Wl,'
7366 lt_prog_compiler_pic='-KPIC'
7367 lt_prog_compiler_static='-static'
7369 pgcc* | pgf77* | pgf90* | pgf95*)
7370 # Portland Group compilers (*not* the Pentium gcc compiler,
7371 # which looks to be a dead project)
7372 lt_prog_compiler_wl='-Wl,'
7373 lt_prog_compiler_pic='-fpic'
7374 lt_prog_compiler_static='-Bstatic'
7377 lt_prog_compiler_wl='-Wl,'
7378 # All Alpha code is PIC.
7379 lt_prog_compiler_static='-non_shared'
7382 case `$CC -V 2>&1 | sed 5q` in
7385 lt_prog_compiler_pic='-KPIC'
7386 lt_prog_compiler_static='-Bstatic'
7387 lt_prog_compiler_wl='-Wl,'
7390 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7391 lt_prog_compiler_pic='-KPIC'
7392 lt_prog_compiler_static='-Bstatic'
7393 lt_prog_compiler_wl=''
7400 osf3* | osf4* | osf5*)
7401 lt_prog_compiler_wl='-Wl,'
7402 # All OSF/1 code is PIC.
7403 lt_prog_compiler_static='-non_shared'
7407 lt_prog_compiler_static='-non_shared'
7411 lt_prog_compiler_pic='-KPIC'
7412 lt_prog_compiler_static='-Bstatic'
7413 case $cc_basename in
7415 lt_prog_compiler_wl='-Qoption ld ';;
7417 lt_prog_compiler_wl='-Wl,';;
7422 lt_prog_compiler_wl='-Qoption ld '
7423 lt_prog_compiler_pic='-PIC'
7424 lt_prog_compiler_static='-Bstatic'
7427 sysv4 | sysv4.2uw2* | sysv4.3*)
7428 lt_prog_compiler_wl='-Wl,'
7429 lt_prog_compiler_pic='-KPIC'
7430 lt_prog_compiler_static='-Bstatic'
7434 if test -d /usr/nec ;then
7435 lt_prog_compiler_pic='-Kconform_pic'
7436 lt_prog_compiler_static='-Bstatic'
7440 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7441 lt_prog_compiler_wl='-Wl,'
7442 lt_prog_compiler_pic='-KPIC'
7443 lt_prog_compiler_static='-Bstatic'
7447 lt_prog_compiler_wl='-Wl,'
7448 lt_prog_compiler_can_build_shared=no
7452 lt_prog_compiler_pic='-pic'
7453 lt_prog_compiler_static='-Bstatic'
7457 lt_prog_compiler_can_build_shared=no
7462 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7463 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7466 # Check to make sure the PIC flag actually works.
7468 if test -n "$lt_prog_compiler_pic"; then
7470 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7471 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7472 if test "${lt_prog_compiler_pic_works+set}" = set; then
7473 echo $ECHO_N "(cached) $ECHO_C" >&6
7475 lt_prog_compiler_pic_works=no
7476 ac_outfile=conftest.$ac_objext
7477 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7478 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7479 # Insert the option either (1) after the last *FLAGS variable, or
7480 # (2) before a word containing "conftest.", or (3) at the end.
7481 # Note that $ac_compile itself does not contain backslashes and begins
7482 # with a dollar sign (not a hyphen), so the echo should work correctly.
7483 # The option is referenced via a variable to avoid confusing sed.
7484 lt_compile=`echo "$ac_compile" | $SED \
7485 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7486 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7487 -e 's:$: $lt_compiler_flag:'`
7488 (eval echo "\"\$as_me:7488: $lt_compile\"" >&5)
7489 (eval "$lt_compile" 2>conftest.err)
7491 cat conftest.err >&5
7492 echo "$as_me:7492: \$? = $ac_status" >&5
7493 if (exit $ac_status) && test -s "$ac_outfile"; then
7494 # The compiler can only warn and ignore the option if not recognized
7495 # So say no if there are warnings other than the usual output.
7496 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7497 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7498 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7499 lt_prog_compiler_pic_works=yes
7505 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7506 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7508 if test x"$lt_prog_compiler_pic_works" = xyes; then
7509 case $lt_prog_compiler_pic in
7511 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7514 lt_prog_compiler_pic=
7515 lt_prog_compiler_can_build_shared=no
7520 # For platforms which do not support PIC, -DPIC is meaningless:
7522 lt_prog_compiler_pic=
7525 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7530 # Check to make sure the static flag actually works.
7532 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7533 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7534 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7535 if test "${lt_prog_compiler_static_works+set}" = set; then
7536 echo $ECHO_N "(cached) $ECHO_C" >&6
7538 lt_prog_compiler_static_works=no
7539 save_LDFLAGS="$LDFLAGS"
7540 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7541 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7542 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7543 # The linker can only warn and ignore the option if not recognized
7544 # So say no if there are warnings
7545 if test -s conftest.err; then
7546 # Append any errors to the config.log.
7547 cat conftest.err 1>&5
7548 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7549 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7550 if diff conftest.exp conftest.er2 >/dev/null; then
7551 lt_prog_compiler_static_works=yes
7554 lt_prog_compiler_static_works=yes
7558 LDFLAGS="$save_LDFLAGS"
7561 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7562 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7564 if test x"$lt_prog_compiler_static_works" = xyes; then
7567 lt_prog_compiler_static=
7571 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7572 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7573 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7574 echo $ECHO_N "(cached) $ECHO_C" >&6
7576 lt_cv_prog_compiler_c_o=no
7577 $rm -r conftest 2>/dev/null
7581 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7583 lt_compiler_flag="-o out/conftest2.$ac_objext"
7584 # Insert the option either (1) after the last *FLAGS variable, or
7585 # (2) before a word containing "conftest.", or (3) at the end.
7586 # Note that $ac_compile itself does not contain backslashes and begins
7587 # with a dollar sign (not a hyphen), so the echo should work correctly.
7588 lt_compile=`echo "$ac_compile" | $SED \
7589 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7590 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7591 -e 's:$: $lt_compiler_flag:'`
7592 (eval echo "\"\$as_me:7592: $lt_compile\"" >&5)
7593 (eval "$lt_compile" 2>out/conftest.err)
7595 cat out/conftest.err >&5
7596 echo "$as_me:7596: \$? = $ac_status" >&5
7597 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7599 # The compiler can only warn and ignore the option if not recognized
7600 # So say no if there are warnings
7601 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7602 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7603 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7604 lt_cv_prog_compiler_c_o=yes
7609 # SGI C++ compiler will create directory out/ii_files/ for
7610 # template instantiation
7611 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7612 $rm out/* && rmdir out
7618 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7619 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7622 hard_links="nottested"
7623 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7624 # do not overwrite the value of need_locks provided by the user
7625 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7626 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7629 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7631 ln conftest.a conftest.b 2>&5 || hard_links=no
7632 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7633 { echo "$as_me:$LINENO: result: $hard_links" >&5
7634 echo "${ECHO_T}$hard_links" >&6; }
7635 if test "$hard_links" = no; then
7636 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7637 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7644 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7645 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7648 allow_undefined_flag=
7649 enable_shared_with_static_runtimes=no
7651 archive_expsym_cmds=
7652 old_archive_From_new_cmds=
7653 old_archive_from_expsyms_cmds=
7654 export_dynamic_flag_spec=
7655 whole_archive_flag_spec=
7656 thread_safe_flag_spec=
7657 hardcode_libdir_flag_spec=
7658 hardcode_libdir_flag_spec_ld=
7659 hardcode_libdir_separator=
7662 hardcode_shlibpath_var=unsupported
7663 link_all_deplibs=unknown
7664 hardcode_automatic=no
7667 always_export_symbols=no
7668 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7669 # include_expsyms should be a list of space-separated symbols to be *always*
7670 # included in the symbol list
7672 # exclude_expsyms can be an extended regexp of symbols to exclude
7673 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7674 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7675 # as well as any symbol that contains `d'.
7676 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7677 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7678 # platforms (ab)use it in PIC code, but their linkers get confused if
7679 # the symbol is explicitly referenced. Since portable code cannot
7680 # rely on this symbol name, it's probably fine to never include it in
7681 # preloaded symbol tables.
7682 extract_expsyms_cmds=
7683 # Just being paranoid about ensuring that cc_basename is set.
7684 for cc_temp in $compiler""; do
7686 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7687 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7692 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7695 cygwin* | mingw* | pw32*)
7696 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7697 # When not using gcc, we currently assume that we are using
7698 # Microsoft Visual C++.
7699 if test "$GCC" != yes; then
7704 # we just hope/assume this is gcc and not c89 (= MSVC++)
7713 if test "$with_gnu_ld" = yes; then
7714 # If archive_cmds runs LD, not CC, wlarc should be empty
7717 # Set some defaults for GNU ld with shared library support. These
7718 # are reset later if shared libraries are not supported. Putting them
7719 # here allows them to be overridden if necessary.
7720 runpath_var=LD_RUN_PATH
7721 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7722 export_dynamic_flag_spec='${wl}--export-dynamic'
7723 # ancient GNU ld didn't support --whole-archive et. al.
7724 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7725 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7727 whole_archive_flag_spec=
7729 supports_anon_versioning=no
7730 case `$LD -v 2>/dev/null` in
7731 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7732 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7733 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7734 *\ 2.11.*) ;; # other 2.11 versions
7735 *) supports_anon_versioning=yes ;;
7738 # See if GNU ld supports shared libraries.
7740 aix3* | aix4* | aix5*)
7741 # On AIX/PPC, the GNU linker is very broken
7742 if test "$host_cpu" != ia64; then
7746 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7747 *** to be unable to reliably create shared libraries on AIX.
7748 *** Therefore, libtool is disabling shared libraries support. If you
7749 *** really care for shared libraries, you may want to modify your PATH
7750 *** so that a non-GNU linker is found, and then restart.
7757 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)'
7758 hardcode_libdir_flag_spec='-L$libdir'
7759 hardcode_minus_L=yes
7761 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7762 # that the semantics of dynamic libraries on AmigaOS, at least up
7763 # to version 4, is to share data among multiple programs linked
7764 # with the same dynamic library. Since this doesn't match the
7765 # behavior of shared libraries on other platforms, we can't use
7771 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7772 allow_undefined_flag=unsupported
7773 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7774 # support --undefined. This deserves some investigation. FIXME
7775 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7781 cygwin* | mingw* | pw32*)
7782 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7783 # as there is no search path for DLLs.
7784 hardcode_libdir_flag_spec='-L$libdir'
7785 allow_undefined_flag=unsupported
7786 always_export_symbols=no
7787 enable_shared_with_static_runtimes=yes
7788 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7790 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7791 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7792 # If the export-symbols file already is a .def file (1st line
7793 # is EXPORTS), use it as is; otherwise, prepend...
7794 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7795 cp $export_symbols $output_objdir/$soname.def;
7797 echo EXPORTS > $output_objdir/$soname.def;
7798 cat $export_symbols >> $output_objdir/$soname.def;
7800 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7808 hardcode_shlibpath_var=no
7809 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7810 export_dynamic_flag_spec='${wl}-E'
7811 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7812 # Instead, shared libraries are loaded at an image base (0x10000000 by
7813 # default) and relocated if they conflict, which is a slow very memory
7814 # consuming and fragmenting process. To avoid this, we pick a random,
7815 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7816 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7817 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7818 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'
7821 gnu* | linux* | k*bsd*-gnu)
7822 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7824 case $cc_basename,$host_cpu in
7825 pgcc*) # Portland Group C compiler
7826 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'
7827 tmp_addflag=' $pic_flag'
7829 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7830 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'
7831 tmp_addflag=' $pic_flag -Mnomain' ;;
7832 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7833 tmp_addflag=' -i_dynamic' ;;
7834 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7835 tmp_addflag=' -i_dynamic -nofor_main' ;;
7836 ifc* | ifort*) # Intel Fortran compiler
7837 tmp_addflag=' -nofor_main' ;;
7839 case `$CC -V 2>&1 | sed 5q` in
7840 *Sun\ C*) # Sun C 5.9
7841 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'
7842 tmp_sharedflag='-G' ;;
7843 *Sun\ F*) # Sun Fortran 8.3
7844 tmp_sharedflag='-G' ;;
7846 tmp_sharedflag='-shared' ;;
7848 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7850 if test $supports_anon_versioning = yes; then
7851 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7852 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7853 $echo "local: *; };" >> $output_objdir/$libname.ver~
7854 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7862 netbsd* | netbsdelf*-gnu)
7863 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7864 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7867 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7868 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7873 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7877 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7878 *** create shared libraries on Solaris systems. Therefore, libtool
7879 *** is disabling shared libraries support. We urge you to upgrade GNU
7880 *** binutils to release 2.9.1 or newer. Another option is to modify
7881 *** your PATH or compiler configuration so that the native linker is
7882 *** used, and then restart.
7885 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7886 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7887 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7893 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7894 case `$LD -v 2>&1` in
7895 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7899 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7900 *** reliably create shared libraries on SCO systems. Therefore, libtool
7901 *** is disabling shared libraries support. We urge you to upgrade GNU
7902 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7903 *** your PATH or compiler configuration so that the native linker is
7904 *** used, and then restart.
7909 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7910 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7911 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7912 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7921 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7924 hardcode_shlibpath_var=no
7928 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7929 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7930 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7937 if test "$ld_shlibs" = no; then
7939 hardcode_libdir_flag_spec=
7940 export_dynamic_flag_spec=
7941 whole_archive_flag_spec=
7944 # PORTME fill in a description of your system's linker (not GNU ld)
7947 allow_undefined_flag=unsupported
7948 always_export_symbols=yes
7949 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'
7950 # Note: this linker hardcodes the directories in LIBPATH if there
7951 # are no directories specified by -L.
7952 hardcode_minus_L=yes
7953 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7954 # Neither direct hardcoding nor static linking is supported with a
7956 hardcode_direct=unsupported
7961 if test "$host_cpu" = ia64; then
7962 # On IA64, the linker does run time linking by default, so we don't
7963 # have to do anything special.
7964 aix_use_runtimelinking=no
7965 exp_sym_flag='-Bexport'
7968 # If we're using GNU nm, then we don't want the "-C" option.
7969 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7970 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7971 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'
7973 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'
7975 aix_use_runtimelinking=no
7977 # Test if we are trying to use run time linking or normal
7978 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7979 # need to do runtime linking.
7980 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7981 for ld_flag in $LDFLAGS; do
7982 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7983 aix_use_runtimelinking=yes
7990 exp_sym_flag='-bexport'
7991 no_entry_flag='-bnoentry'
7994 # When large executables or shared objects are built, AIX ld can
7995 # have problems creating the table of contents. If linking a library
7996 # or program results in "error TOC overflow" add -mminimal-toc to
7997 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7998 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8002 hardcode_libdir_separator=':'
8003 link_all_deplibs=yes
8005 if test "$GCC" = yes; then
8006 case $host_os in aix4.[012]|aix4.[012].*)
8007 # We only want to do this on AIX 4.2 and lower, the check
8008 # below for broken collect2 doesn't work under 4.3+
8009 collect2name=`${CC} -print-prog-name=collect2`
8010 if test -f "$collect2name" && \
8011 strings "$collect2name" | grep resolve_lib_name >/dev/null
8013 # We have reworked collect2
8016 # We have old collect2
8017 hardcode_direct=unsupported
8018 # It fails to find uninstalled libraries when the uninstalled
8019 # path is not listed in the libpath. Setting hardcode_minus_L
8020 # to unsupported forces relinking
8021 hardcode_minus_L=yes
8022 hardcode_libdir_flag_spec='-L$libdir'
8023 hardcode_libdir_separator=
8027 shared_flag='-shared'
8028 if test "$aix_use_runtimelinking" = yes; then
8029 shared_flag="$shared_flag "'${wl}-G'
8033 if test "$host_cpu" = ia64; then
8034 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8035 # chokes on -Wl,-G. The following line is correct:
8038 if test "$aix_use_runtimelinking" = yes; then
8039 shared_flag='${wl}-G'
8041 shared_flag='${wl}-bM:SRE'
8046 # It seems that -bexpall does not export symbols beginning with
8047 # underscore (_), so it is better to generate a list of symbols to export.
8048 always_export_symbols=yes
8049 if test "$aix_use_runtimelinking" = yes; then
8050 # Warning - without using the other runtime loading flags (-brtl),
8051 # -berok will link without error, but may produce a broken library.
8052 allow_undefined_flag='-berok'
8053 # Determine the default libpath from the value encoded in an empty executable.
8054 cat >conftest.$ac_ext <<_ACEOF
8057 cat confdefs.h >>conftest.$ac_ext
8058 cat >>conftest.$ac_ext <<_ACEOF
8059 /* end confdefs.h. */
8069 rm -f conftest.$ac_objext conftest$ac_exeext
8070 if { (ac_try="$ac_link"
8072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8073 *) ac_try_echo=$ac_try;;
8075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8076 (eval "$ac_link") 2>conftest.er1
8078 grep -v '^ *+' conftest.er1 >conftest.err
8080 cat conftest.err >&5
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); } && {
8083 test -z "$ac_c_werror_flag" ||
8084 test ! -s conftest.err
8085 } && test -s conftest$ac_exeext &&
8086 $as_test_x conftest$ac_exeext; then
8088 lt_aix_libpath_sed='
8089 /Import File Strings/,/^$/ {
8095 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8096 # Check for a 64-bit object if we didn't find anything.
8097 if test -z "$aix_libpath"; then
8098 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8101 echo "$as_me: failed program was:" >&5
8102 sed 's/^/| /' conftest.$ac_ext >&5
8107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8108 conftest$ac_exeext conftest.$ac_ext
8109 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8111 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8112 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"
8114 if test "$host_cpu" = ia64; then
8115 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8116 allow_undefined_flag="-z nodefs"
8117 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"
8119 # Determine the default libpath from the value encoded in an empty executable.
8120 cat >conftest.$ac_ext <<_ACEOF
8123 cat confdefs.h >>conftest.$ac_ext
8124 cat >>conftest.$ac_ext <<_ACEOF
8125 /* end confdefs.h. */
8135 rm -f conftest.$ac_objext conftest$ac_exeext
8136 if { (ac_try="$ac_link"
8138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8139 *) ac_try_echo=$ac_try;;
8141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8142 (eval "$ac_link") 2>conftest.er1
8144 grep -v '^ *+' conftest.er1 >conftest.err
8146 cat conftest.err >&5
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); } && {
8149 test -z "$ac_c_werror_flag" ||
8150 test ! -s conftest.err
8151 } && test -s conftest$ac_exeext &&
8152 $as_test_x conftest$ac_exeext; then
8154 lt_aix_libpath_sed='
8155 /Import File Strings/,/^$/ {
8161 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8162 # Check for a 64-bit object if we didn't find anything.
8163 if test -z "$aix_libpath"; then
8164 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8167 echo "$as_me: failed program was:" >&5
8168 sed 's/^/| /' conftest.$ac_ext >&5
8173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8174 conftest$ac_exeext conftest.$ac_ext
8175 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8177 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8178 # Warning - without using the other run time loading flags,
8179 # -berok will link without error, but may produce a broken library.
8180 no_undefined_flag=' ${wl}-bernotok'
8181 allow_undefined_flag=' ${wl}-berok'
8182 # Exported symbols can be pulled into shared objects from archives
8183 whole_archive_flag_spec='$convenience'
8184 archive_cmds_need_lc=yes
8185 # This is similar to how AIX traditionally builds its shared libraries.
8186 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'
8192 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)'
8193 hardcode_libdir_flag_spec='-L$libdir'
8194 hardcode_minus_L=yes
8195 # see comment about different semantics on the GNU ld section
8200 export_dynamic_flag_spec=-rdynamic
8203 cygwin* | mingw* | pw32*)
8204 # When not using gcc, we currently assume that we are using
8205 # Microsoft Visual C++.
8206 # hardcode_libdir_flag_spec is actually meaningless, as there is
8207 # no search path for DLLs.
8208 hardcode_libdir_flag_spec=' '
8209 allow_undefined_flag=unsupported
8210 # Tell ltmain to make .lib files, not .a files.
8212 # Tell ltmain to make .dll files, not .so files.
8214 # FIXME: Setting linknames here is a bad hack.
8215 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8216 # The linker will automatically build a .lib file if we build a DLL.
8217 old_archive_From_new_cmds='true'
8218 # FIXME: Should let the user specify the lib program.
8219 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8220 fix_srcfile_path='`cygpath -w "$srcfile"`'
8221 enable_shared_with_static_runtimes=yes
8224 darwin* | rhapsody*)
8226 rhapsody* | darwin1.[012])
8227 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8230 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8231 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8233 case ${MACOSX_DEPLOYMENT_TARGET} in
8235 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8238 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8244 archive_cmds_need_lc=no
8246 hardcode_automatic=yes
8247 hardcode_shlibpath_var=unsupported
8248 whole_archive_flag_spec=''
8249 link_all_deplibs=yes
8250 if test "$GCC" = yes ; then
8251 output_verbose_link_cmd='echo'
8252 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8253 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8254 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8255 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}'
8256 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}'
8258 case $cc_basename in
8260 output_verbose_link_cmd='echo'
8261 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8262 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8263 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8264 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}'
8265 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}'
8275 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8276 hardcode_libdir_flag_spec='-L$libdir'
8277 hardcode_shlibpath_var=no
8284 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8285 # support. Future versions do this automatically, but an explicit c++rt0.o
8286 # does not break anything, and helps significantly (at the cost of a little
8289 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8290 hardcode_libdir_flag_spec='-R$libdir'
8292 hardcode_shlibpath_var=no
8295 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8297 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8299 hardcode_minus_L=yes
8300 hardcode_shlibpath_var=no
8303 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8304 freebsd* | dragonfly*)
8305 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8306 hardcode_libdir_flag_spec='-R$libdir'
8308 hardcode_shlibpath_var=no
8312 if test "$GCC" = yes; then
8313 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'
8315 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'
8317 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8318 hardcode_libdir_separator=:
8321 # hardcode_minus_L: Not really in the search PATH,
8322 # but as the default location of the library.
8323 hardcode_minus_L=yes
8324 export_dynamic_flag_spec='${wl}-E'
8328 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8329 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8331 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8333 if test "$with_gnu_ld" = no; then
8334 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8335 hardcode_libdir_separator=:
8338 export_dynamic_flag_spec='${wl}-E'
8340 # hardcode_minus_L: Not really in the search PATH,
8341 # but as the default location of the library.
8342 hardcode_minus_L=yes
8347 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8350 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8353 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8356 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8362 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8365 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8368 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8372 if test "$with_gnu_ld" = no; then
8373 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8374 hardcode_libdir_separator=:
8378 hardcode_libdir_flag_spec_ld='+b $libdir'
8380 hardcode_shlibpath_var=no
8384 export_dynamic_flag_spec='${wl}-E'
8386 # hardcode_minus_L: Not really in the search PATH,
8387 # but as the default location of the library.
8388 hardcode_minus_L=yes
8394 irix5* | irix6* | nonstopux*)
8395 if test "$GCC" = yes; then
8396 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'
8398 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'
8399 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8401 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8402 hardcode_libdir_separator=:
8403 link_all_deplibs=yes
8406 netbsd* | netbsdelf*-gnu)
8407 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8408 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8410 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8412 hardcode_libdir_flag_spec='-R$libdir'
8414 hardcode_shlibpath_var=no
8418 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8420 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8421 hardcode_libdir_separator=:
8422 hardcode_shlibpath_var=no
8426 if test -f /usr/libexec/ld.so; then
8428 hardcode_shlibpath_var=no
8429 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8430 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8431 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8432 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8433 export_dynamic_flag_spec='${wl}-E'
8436 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8437 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8438 hardcode_libdir_flag_spec='-R$libdir'
8441 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8442 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8452 hardcode_libdir_flag_spec='-L$libdir'
8453 hardcode_minus_L=yes
8454 allow_undefined_flag=unsupported
8455 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'
8456 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8460 if test "$GCC" = yes; then
8461 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8462 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'
8464 allow_undefined_flag=' -expect_unresolved \*'
8465 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'
8467 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8468 hardcode_libdir_separator=:
8471 osf4* | osf5*) # as osf3* with the addition of -msym flag
8472 if test "$GCC" = yes; then
8473 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8474 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'
8475 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8477 allow_undefined_flag=' -expect_unresolved \*'
8478 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'
8479 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8480 $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'
8482 # Both c and cxx compiler support -rpath directly
8483 hardcode_libdir_flag_spec='-rpath $libdir'
8485 hardcode_libdir_separator=:
8489 no_undefined_flag=' -z text'
8490 if test "$GCC" = yes; then
8492 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8493 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8494 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8497 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8498 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8499 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8501 hardcode_libdir_flag_spec='-R$libdir'
8502 hardcode_shlibpath_var=no
8504 solaris2.[0-5] | solaris2.[0-5].*) ;;
8506 # The compiler driver will combine and reorder linker options,
8507 # but understands `-z linker_flag'. GCC discards it without `$wl',
8508 # but is careful enough not to reorder.
8509 # Supported since Solaris 2.6 (maybe 2.5.1?)
8510 if test "$GCC" = yes; then
8511 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8513 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8517 link_all_deplibs=yes
8521 if test "x$host_vendor" = xsequent; then
8522 # Use $CC to link under sequent, because it throws in some extra .o
8523 # files that make .init and .fini sections work.
8524 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8526 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8528 hardcode_libdir_flag_spec='-L$libdir'
8530 hardcode_minus_L=yes
8531 hardcode_shlibpath_var=no
8535 case $host_vendor in
8537 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8538 hardcode_direct=yes # is this really true???
8541 ## LD is ld it makes a PLAMLIB
8542 ## CC just makes a GrossModule.
8543 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8544 reload_cmds='$CC -r -o $output$reload_objs'
8548 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8549 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8552 runpath_var='LD_RUN_PATH'
8553 hardcode_shlibpath_var=no
8557 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8558 hardcode_shlibpath_var=no
8559 export_dynamic_flag_spec='-Bexport'
8563 if test -d /usr/nec; then
8564 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8565 hardcode_shlibpath_var=no
8566 runpath_var=LD_RUN_PATH
8567 hardcode_runpath_var=yes
8572 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8573 no_undefined_flag='${wl}-z,text'
8574 archive_cmds_need_lc=no
8575 hardcode_shlibpath_var=no
8576 runpath_var='LD_RUN_PATH'
8578 if test "$GCC" = yes; then
8579 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8580 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8582 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8583 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8587 sysv5* | sco3.2v5* | sco5v6*)
8588 # Note: We can NOT use -z defs as we might desire, because we do not
8589 # link with -lc, and that would cause any symbols used from libc to
8590 # always be unresolved, which means just about no library would
8591 # ever link correctly. If we're not using GNU ld we use -z text
8592 # though, which does catch some bad symbols but isn't as heavy-handed
8594 no_undefined_flag='${wl}-z,text'
8595 allow_undefined_flag='${wl}-z,nodefs'
8596 archive_cmds_need_lc=no
8597 hardcode_shlibpath_var=no
8598 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8599 hardcode_libdir_separator=':'
8600 link_all_deplibs=yes
8601 export_dynamic_flag_spec='${wl}-Bexport'
8602 runpath_var='LD_RUN_PATH'
8604 if test "$GCC" = yes; then
8605 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8606 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8608 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8609 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8614 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8615 hardcode_libdir_flag_spec='-L$libdir'
8616 hardcode_shlibpath_var=no
8625 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8626 echo "${ECHO_T}$ld_shlibs" >&6; }
8627 test "$ld_shlibs" = no && can_build_shared=no
8630 # Do we need to explicitly link libc?
8632 case "x$archive_cmds_need_lc" in
8634 # Assume -lc should be added
8635 archive_cmds_need_lc=yes
8637 if test "$enable_shared" = yes && test "$GCC" = yes; then
8638 case $archive_cmds in
8640 # FIXME: we may have to deal with multi-command sequences.
8643 # Test whether the compiler implicitly links with -lc since on some
8644 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8645 # to ld, don't add -lc before -lgcc.
8646 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8647 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8649 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8652 (eval $ac_compile) 2>&5
8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); } 2>conftest.err; then
8658 libobjs=conftest.$ac_objext
8660 wl=$lt_prog_compiler_wl
8661 pic_flag=$lt_prog_compiler_pic
8667 lt_save_allow_undefined_flag=$allow_undefined_flag
8668 allow_undefined_flag=
8669 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8670 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); }
8675 archive_cmds_need_lc=no
8677 archive_cmds_need_lc=yes
8679 allow_undefined_flag=$lt_save_allow_undefined_flag
8681 cat conftest.err 1>&5
8684 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8685 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8692 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8693 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8695 libname_spec='lib$name'
8703 shlibpath_overrides_runpath=unknown
8705 dynamic_linker="$host_os ld.so"
8706 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8708 if test "$GCC" = yes; then
8710 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8711 *) lt_awk_arg="/^libraries:/" ;;
8713 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8714 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8715 # if the path contains ";" then we assume it to be the separator
8716 # otherwise default to the standard path separator (i.e. ":") - it is
8717 # assumed that no part of a normal pathname contains ";" but that should
8718 # okay in the real world where ";" in dirpaths is itself problematic.
8719 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8721 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8723 # Ok, now we have the path, separated by spaces, we can step through it
8724 # and add multilib dir if necessary.
8725 lt_tmp_lt_search_path_spec=
8726 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8727 for lt_sys_path in $lt_search_path_spec; do
8728 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8729 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8731 test -d "$lt_sys_path" && \
8732 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8735 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8736 BEGIN {RS=" "; FS="/|\n";} {
8739 for (lt_i = NF; lt_i > 0; lt_i--) {
8740 if ($lt_i != "" && $lt_i != ".") {
8741 if ($lt_i == "..") {
8744 if (lt_count == 0) {
8745 lt_foo="/" $lt_i lt_foo;
8752 if (lt_foo != "") { lt_freq[lt_foo]++; }
8753 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8755 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8757 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8759 need_lib_prefix=unknown
8760 hardcode_into_libs=no
8762 # when you set need_version to no, make sure it does not cause -set_version
8763 # flags to be left without arguments
8764 need_version=unknown
8769 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8770 shlibpath_var=LIBPATH
8772 # AIX 3 has no versioning support, so we append a major version to the name.
8773 soname_spec='${libname}${release}${shared_ext}$major'
8780 hardcode_into_libs=yes
8781 if test "$host_cpu" = ia64; then
8782 # AIX 5 supports IA64
8783 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8784 shlibpath_var=LD_LIBRARY_PATH
8786 # With GCC up to 2.95.x, collect2 would create an import file
8787 # for dependence libraries. The import file would start with
8788 # the line `#! .'. This would cause the generated library to
8789 # depend on `.', always an invalid library. This was fixed in
8790 # development snapshots of GCC prior to 3.0.
8792 aix4 | aix4.[01] | aix4.[01].*)
8793 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8795 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8802 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8803 # soname into executable. Probably we can add versioning support to
8804 # collect2, so additional links can be useful in future.
8805 if test "$aix_use_runtimelinking" = yes; then
8806 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8807 # instead of lib<name>.a to let people know that these are not
8808 # typical AIX shared libraries.
8809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8811 # We preserve .a as extension for shared libraries through AIX4.2
8812 # and later when we are not doing run time linking.
8813 library_names_spec='${libname}${release}.a $libname.a'
8814 soname_spec='${libname}${release}${shared_ext}$major'
8816 shlibpath_var=LIBPATH
8821 library_names_spec='$libname.ixlibrary $libname.a'
8822 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8823 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'
8827 library_names_spec='${libname}${shared_ext}'
8828 dynamic_linker="$host_os ld.so"
8829 shlibpath_var=LIBRARY_PATH
8835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8836 soname_spec='${libname}${release}${shared_ext}$major'
8837 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8838 shlibpath_var=LD_LIBRARY_PATH
8839 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8840 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8841 # the default ld.so.conf also contains /usr/contrib/lib and
8842 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8843 # libtool to hard-code these into programs
8846 cygwin* | mingw* | pw32*)
8847 version_type=windows
8852 case $GCC,$host_os in
8853 yes,cygwin* | yes,mingw* | yes,pw32*)
8854 library_names_spec='$libname.dll.a'
8855 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8856 postinstall_cmds='base_file=`basename \${file}`~
8857 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8858 dldir=$destdir/`dirname \$dlpath`~
8859 test -d \$dldir || mkdir -p \$dldir~
8860 $install_prog $dir/$dlname \$dldir/$dlname~
8861 chmod a+x \$dldir/$dlname'
8862 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8863 dlpath=$dir/\$dldll~
8865 shlibpath_overrides_runpath=yes
8869 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8870 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8871 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8874 # MinGW DLLs use traditional 'lib' prefix
8875 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8876 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8877 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8878 # It is most probably a Windows format PATH printed by
8879 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8880 # path with ; separators, and with drive letters. We can handle the
8881 # drive letters (cygwin fileutils understands them), so leave them,
8882 # especially as we might pass files found there to a mingw objdump,
8883 # which wouldn't understand a cygwinified path. Ahh.
8884 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8886 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8890 # pw32 DLLs use 'pw' prefix rather than 'lib'
8891 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8897 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8900 dynamic_linker='Win32 ld.exe'
8901 # FIXME: first we should search . and the directory the executable is in
8905 darwin* | rhapsody*)
8906 dynamic_linker="$host_os dyld"
8910 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8911 soname_spec='${libname}${release}${major}$shared_ext'
8912 shlibpath_overrides_runpath=yes
8913 shlibpath_var=DYLD_LIBRARY_PATH
8914 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8916 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8917 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8925 soname_spec='${libname}${release}${shared_ext}$major'
8926 shlibpath_var=LD_LIBRARY_PATH
8933 freebsd* | dragonfly*)
8934 # DragonFly does not have aout. When/if they implement a new
8935 # versioning mechanism, adjust this.
8936 if test -x /usr/bin/objformat; then
8937 objformat=`/usr/bin/objformat`
8940 freebsd[123]*) objformat=aout ;;
8944 version_type=freebsd-$objformat
8945 case $version_type in
8947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8952 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8956 shlibpath_var=LD_LIBRARY_PATH
8959 shlibpath_overrides_runpath=yes
8961 freebsd3.[01]* | freebsdelf3.[01]*)
8962 shlibpath_overrides_runpath=yes
8963 hardcode_into_libs=yes
8965 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8966 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8967 shlibpath_overrides_runpath=no
8968 hardcode_into_libs=yes
8970 *) # from 4.6 on, and DragonFly
8971 shlibpath_overrides_runpath=yes
8972 hardcode_into_libs=yes
8981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8982 soname_spec='${libname}${release}${shared_ext}$major'
8983 shlibpath_var=LD_LIBRARY_PATH
8984 hardcode_into_libs=yes
8987 hpux9* | hpux10* | hpux11*)
8988 # Give a soname corresponding to the major version so that dld.sl refuses to
8989 # link against other versions.
8996 hardcode_into_libs=yes
8997 dynamic_linker="$host_os dld.so"
8998 shlibpath_var=LD_LIBRARY_PATH
8999 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9001 soname_spec='${libname}${release}${shared_ext}$major'
9002 if test "X$HPUX_IA64_MODE" = X32; then
9003 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9005 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9007 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9011 hardcode_into_libs=yes
9012 dynamic_linker="$host_os dld.sl"
9013 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9014 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9016 soname_spec='${libname}${release}${shared_ext}$major'
9017 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9018 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9022 dynamic_linker="$host_os dld.sl"
9023 shlibpath_var=SHLIB_PATH
9024 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9026 soname_spec='${libname}${release}${shared_ext}$major'
9029 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9030 postinstall_cmds='chmod 555 $lib'
9037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9038 soname_spec='${libname}${release}${shared_ext}$major'
9039 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9040 shlibpath_var=LD_LIBRARY_PATH
9041 shlibpath_overrides_runpath=no
9042 hardcode_into_libs=yes
9045 irix5* | irix6* | nonstopux*)
9047 nonstopux*) version_type=nonstopux ;;
9049 if test "$lt_cv_prog_gnu_ld" = yes; then
9057 soname_spec='${libname}${release}${shared_ext}$major'
9058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9060 irix5* | nonstopux*)
9064 case $LD in # libtool.m4 will add one of these switches to LD
9065 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9066 libsuff= shlibsuff= libmagic=32-bit;;
9067 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9068 libsuff=32 shlibsuff=N32 libmagic=N32;;
9069 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9070 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9071 *) libsuff= shlibsuff= libmagic=never-match;;
9075 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9076 shlibpath_overrides_runpath=no
9077 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9078 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9079 hardcode_into_libs=yes
9082 # No shared lib support for Linux oldld, aout, or coff.
9083 linux*oldld* | linux*aout* | linux*coff*)
9087 # This must be Linux ELF.
9088 linux* | k*bsd*-gnu)
9092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9093 soname_spec='${libname}${release}${shared_ext}$major'
9094 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9095 shlibpath_var=LD_LIBRARY_PATH
9096 shlibpath_overrides_runpath=no
9097 # This implies no fast_install, which is unacceptable.
9098 # Some rework will be needed to allow for fast_install
9099 # before this can be enabled.
9100 hardcode_into_libs=yes
9102 # Append ld.so.conf contents to the search path
9103 if test -f /etc/ld.so.conf; then
9104 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' ' '`
9105 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9108 # We used to test for /lib/ld.so.1 and disable shared libraries on
9109 # powerpc, because MkLinux only supported shared libraries with the
9110 # GNU dynamic linker. Since this was broken with cross compilers,
9111 # most powerpc-linux boxes support dynamic linking these days and
9112 # people can always --disable-shared, the test was removed, and we
9113 # assume the GNU/Linux dynamic linker is in use.
9114 dynamic_linker='GNU/Linux ld.so'
9121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9122 soname_spec='${libname}${release}${shared_ext}$major'
9123 shlibpath_var=LD_LIBRARY_PATH
9124 shlibpath_overrides_runpath=no
9125 hardcode_into_libs=yes
9126 dynamic_linker='NetBSD ld.elf_so'
9133 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9135 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9136 dynamic_linker='NetBSD (a.out) ld.so'
9138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9139 soname_spec='${libname}${release}${shared_ext}$major'
9140 dynamic_linker='NetBSD ld.elf_so'
9142 shlibpath_var=LD_LIBRARY_PATH
9143 shlibpath_overrides_runpath=yes
9144 hardcode_into_libs=yes
9149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9150 shlibpath_var=LD_LIBRARY_PATH
9151 shlibpath_overrides_runpath=yes
9158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9159 soname_spec='${libname}${release}${shared_ext}$major'
9160 shlibpath_var=LD_LIBRARY_PATH
9161 shlibpath_overrides_runpath=yes
9166 sys_lib_dlsearch_path_spec="/usr/lib"
9168 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9170 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9171 *) need_version=no ;;
9173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9174 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9175 shlibpath_var=LD_LIBRARY_PATH
9176 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9178 openbsd2.[89] | openbsd2.[89].*)
9179 shlibpath_overrides_runpath=no
9182 shlibpath_overrides_runpath=yes
9186 shlibpath_overrides_runpath=yes
9191 libname_spec='$name'
9194 library_names_spec='$libname${shared_ext} $libname.a'
9195 dynamic_linker='OS/2 ld.exe'
9196 shlibpath_var=LIBPATH
9199 osf3* | osf4* | osf5*)
9203 soname_spec='${libname}${release}${shared_ext}$major'
9204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9205 shlibpath_var=LD_LIBRARY_PATH
9206 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9207 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9219 soname_spec='${libname}${release}${shared_ext}$major'
9220 shlibpath_var=LD_LIBRARY_PATH
9221 shlibpath_overrides_runpath=yes
9222 hardcode_into_libs=yes
9223 # ldd complains unless libraries are executable
9224 postinstall_cmds='chmod +x $lib'
9229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9230 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9231 shlibpath_var=LD_LIBRARY_PATH
9232 shlibpath_overrides_runpath=yes
9233 if test "$with_gnu_ld" = yes; then
9241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9242 soname_spec='${libname}${release}${shared_ext}$major'
9243 shlibpath_var=LD_LIBRARY_PATH
9244 case $host_vendor in
9246 shlibpath_overrides_runpath=no
9248 export_dynamic_flag_spec='${wl}-Blargedynsym'
9249 runpath_var=LD_RUN_PATH
9257 shlibpath_overrides_runpath=no
9258 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9264 if test -d /usr/nec ;then
9266 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9267 soname_spec='$libname${shared_ext}.$major'
9268 shlibpath_var=LD_LIBRARY_PATH
9272 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9273 version_type=freebsd-elf
9276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9277 soname_spec='${libname}${release}${shared_ext}$major'
9278 shlibpath_var=LD_LIBRARY_PATH
9279 hardcode_into_libs=yes
9280 if test "$with_gnu_ld" = yes; then
9281 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9282 shlibpath_overrides_runpath=no
9284 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9285 shlibpath_overrides_runpath=yes
9288 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9292 sys_lib_dlsearch_path_spec='/usr/lib'
9297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9298 soname_spec='${libname}${release}${shared_ext}$major'
9299 shlibpath_var=LD_LIBRARY_PATH
9306 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9307 echo "${ECHO_T}$dynamic_linker" >&6; }
9308 test "$dynamic_linker" = no && can_build_shared=no
9310 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9311 if test "$GCC" = yes; then
9312 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9315 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9316 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9318 if test -n "$hardcode_libdir_flag_spec" || \
9319 test -n "$runpath_var" || \
9320 test "X$hardcode_automatic" = "Xyes" ; then
9322 # We can hardcode non-existant directories.
9323 if test "$hardcode_direct" != no &&
9324 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9325 # have to relink, otherwise we might link with an installed library
9326 # when we should be linking with a yet-to-be-installed one
9327 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9328 test "$hardcode_minus_L" != no; then
9329 # Linking always hardcodes the temporary library directory.
9330 hardcode_action=relink
9332 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9333 hardcode_action=immediate
9336 # We cannot hardcode anything, or else we can only hardcode existing
9338 hardcode_action=unsupported
9340 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9341 echo "${ECHO_T}$hardcode_action" >&6; }
9343 if test "$hardcode_action" = relink; then
9344 # Fast installation is not supported
9345 enable_fast_install=no
9346 elif test "$shlibpath_overrides_runpath" = yes ||
9347 test "$enable_shared" = no; then
9348 # Fast installation is not necessary
9349 enable_fast_install=needless
9354 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9355 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9356 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9357 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9358 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9359 { echo "$as_me:$LINENO: result: yes" >&5
9360 echo "${ECHO_T}yes" >&6; }
9362 # FIXME - insert some real tests, host_os isn't really good enough
9365 if test -n "$STRIP" ; then
9366 striplib="$STRIP -x"
9367 old_striplib="$STRIP -S"
9368 { echo "$as_me:$LINENO: result: yes" >&5
9369 echo "${ECHO_T}yes" >&6; }
9371 { echo "$as_me:$LINENO: result: no" >&5
9372 echo "${ECHO_T}no" >&6; }
9376 { echo "$as_me:$LINENO: result: no" >&5
9377 echo "${ECHO_T}no" >&6; }
9382 if test "x$enable_dlopen" != xyes; then
9383 enable_dlopen=unknown
9384 enable_dlopen_self=unknown
9385 enable_dlopen_self_static=unknown
9392 lt_cv_dlopen="load_add_on"
9394 lt_cv_dlopen_self=yes
9398 lt_cv_dlopen="LoadLibrary"
9403 lt_cv_dlopen="dlopen"
9408 # if libdl is installed we need to link against it
9409 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9410 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9411 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9412 echo $ECHO_N "(cached) $ECHO_C" >&6
9414 ac_check_lib_save_LIBS=$LIBS
9416 cat >conftest.$ac_ext <<_ACEOF
9419 cat confdefs.h >>conftest.$ac_ext
9420 cat >>conftest.$ac_ext <<_ACEOF
9421 /* end confdefs.h. */
9423 /* Override any GCC internal prototype to avoid an error.
9424 Use char because int might match the return type of a GCC
9425 builtin and then its argument prototype would still apply. */
9438 rm -f conftest.$ac_objext conftest$ac_exeext
9439 if { (ac_try="$ac_link"
9441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9442 *) ac_try_echo=$ac_try;;
9444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9445 (eval "$ac_link") 2>conftest.er1
9447 grep -v '^ *+' conftest.er1 >conftest.err
9449 cat conftest.err >&5
9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451 (exit $ac_status); } && {
9452 test -z "$ac_c_werror_flag" ||
9453 test ! -s conftest.err
9454 } && test -s conftest$ac_exeext &&
9455 $as_test_x conftest$ac_exeext; then
9456 ac_cv_lib_dl_dlopen=yes
9458 echo "$as_me: failed program was:" >&5
9459 sed 's/^/| /' conftest.$ac_ext >&5
9461 ac_cv_lib_dl_dlopen=no
9464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9465 conftest$ac_exeext conftest.$ac_ext
9466 LIBS=$ac_check_lib_save_LIBS
9468 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9469 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9470 if test $ac_cv_lib_dl_dlopen = yes; then
9471 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9476 lt_cv_dlopen_self=yes
9483 { echo "$as_me:$LINENO: checking for shl_load" >&5
9484 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9485 if test "${ac_cv_func_shl_load+set}" = set; then
9486 echo $ECHO_N "(cached) $ECHO_C" >&6
9488 cat >conftest.$ac_ext <<_ACEOF
9491 cat confdefs.h >>conftest.$ac_ext
9492 cat >>conftest.$ac_ext <<_ACEOF
9493 /* end confdefs.h. */
9494 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9496 #define shl_load innocuous_shl_load
9498 /* System header to define __stub macros and hopefully few prototypes,
9499 which can conflict with char shl_load (); below.
9500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9501 <limits.h> exists even on freestanding compilers. */
9504 # include <limits.h>
9506 # include <assert.h>
9511 /* Override any GCC internal prototype to avoid an error.
9512 Use char because int might match the return type of a GCC
9513 builtin and then its argument prototype would still apply. */
9518 /* The GNU C library defines this for functions which it implements
9519 to always fail with ENOSYS. Some functions are actually named
9520 something starting with __ and the normal name is an alias. */
9521 #if defined __stub_shl_load || defined __stub___shl_load
9533 rm -f conftest.$ac_objext conftest$ac_exeext
9534 if { (ac_try="$ac_link"
9536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9537 *) ac_try_echo=$ac_try;;
9539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9540 (eval "$ac_link") 2>conftest.er1
9542 grep -v '^ *+' conftest.er1 >conftest.err
9544 cat conftest.err >&5
9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); } && {
9547 test -z "$ac_c_werror_flag" ||
9548 test ! -s conftest.err
9549 } && test -s conftest$ac_exeext &&
9550 $as_test_x conftest$ac_exeext; then
9551 ac_cv_func_shl_load=yes
9553 echo "$as_me: failed program was:" >&5
9554 sed 's/^/| /' conftest.$ac_ext >&5
9556 ac_cv_func_shl_load=no
9559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9560 conftest$ac_exeext conftest.$ac_ext
9562 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9563 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9564 if test $ac_cv_func_shl_load = yes; then
9565 lt_cv_dlopen="shl_load"
9567 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9568 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9569 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9570 echo $ECHO_N "(cached) $ECHO_C" >&6
9572 ac_check_lib_save_LIBS=$LIBS
9574 cat >conftest.$ac_ext <<_ACEOF
9577 cat confdefs.h >>conftest.$ac_ext
9578 cat >>conftest.$ac_ext <<_ACEOF
9579 /* end confdefs.h. */
9581 /* Override any GCC internal prototype to avoid an error.
9582 Use char because int might match the return type of a GCC
9583 builtin and then its argument prototype would still apply. */
9596 rm -f conftest.$ac_objext conftest$ac_exeext
9597 if { (ac_try="$ac_link"
9599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9600 *) ac_try_echo=$ac_try;;
9602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9603 (eval "$ac_link") 2>conftest.er1
9605 grep -v '^ *+' conftest.er1 >conftest.err
9607 cat conftest.err >&5
9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609 (exit $ac_status); } && {
9610 test -z "$ac_c_werror_flag" ||
9611 test ! -s conftest.err
9612 } && test -s conftest$ac_exeext &&
9613 $as_test_x conftest$ac_exeext; then
9614 ac_cv_lib_dld_shl_load=yes
9616 echo "$as_me: failed program was:" >&5
9617 sed 's/^/| /' conftest.$ac_ext >&5
9619 ac_cv_lib_dld_shl_load=no
9622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9623 conftest$ac_exeext conftest.$ac_ext
9624 LIBS=$ac_check_lib_save_LIBS
9626 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9627 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9628 if test $ac_cv_lib_dld_shl_load = yes; then
9629 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9631 { echo "$as_me:$LINENO: checking for dlopen" >&5
9632 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9633 if test "${ac_cv_func_dlopen+set}" = set; then
9634 echo $ECHO_N "(cached) $ECHO_C" >&6
9636 cat >conftest.$ac_ext <<_ACEOF
9639 cat confdefs.h >>conftest.$ac_ext
9640 cat >>conftest.$ac_ext <<_ACEOF
9641 /* end confdefs.h. */
9642 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9643 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9644 #define dlopen innocuous_dlopen
9646 /* System header to define __stub macros and hopefully few prototypes,
9647 which can conflict with char dlopen (); below.
9648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9649 <limits.h> exists even on freestanding compilers. */
9652 # include <limits.h>
9654 # include <assert.h>
9659 /* Override any GCC internal prototype to avoid an error.
9660 Use char because int might match the return type of a GCC
9661 builtin and then its argument prototype would still apply. */
9666 /* The GNU C library defines this for functions which it implements
9667 to always fail with ENOSYS. Some functions are actually named
9668 something starting with __ and the normal name is an alias. */
9669 #if defined __stub_dlopen || defined __stub___dlopen
9681 rm -f conftest.$ac_objext conftest$ac_exeext
9682 if { (ac_try="$ac_link"
9684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9685 *) ac_try_echo=$ac_try;;
9687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9688 (eval "$ac_link") 2>conftest.er1
9690 grep -v '^ *+' conftest.er1 >conftest.err
9692 cat conftest.err >&5
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); } && {
9695 test -z "$ac_c_werror_flag" ||
9696 test ! -s conftest.err
9697 } && test -s conftest$ac_exeext &&
9698 $as_test_x conftest$ac_exeext; then
9699 ac_cv_func_dlopen=yes
9701 echo "$as_me: failed program was:" >&5
9702 sed 's/^/| /' conftest.$ac_ext >&5
9704 ac_cv_func_dlopen=no
9707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9708 conftest$ac_exeext conftest.$ac_ext
9710 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9711 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9712 if test $ac_cv_func_dlopen = yes; then
9713 lt_cv_dlopen="dlopen"
9715 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9716 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9717 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9718 echo $ECHO_N "(cached) $ECHO_C" >&6
9720 ac_check_lib_save_LIBS=$LIBS
9722 cat >conftest.$ac_ext <<_ACEOF
9725 cat confdefs.h >>conftest.$ac_ext
9726 cat >>conftest.$ac_ext <<_ACEOF
9727 /* end confdefs.h. */
9729 /* Override any GCC internal prototype to avoid an error.
9730 Use char because int might match the return type of a GCC
9731 builtin and then its argument prototype would still apply. */
9744 rm -f conftest.$ac_objext conftest$ac_exeext
9745 if { (ac_try="$ac_link"
9747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9748 *) ac_try_echo=$ac_try;;
9750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9751 (eval "$ac_link") 2>conftest.er1
9753 grep -v '^ *+' conftest.er1 >conftest.err
9755 cat conftest.err >&5
9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757 (exit $ac_status); } && {
9758 test -z "$ac_c_werror_flag" ||
9759 test ! -s conftest.err
9760 } && test -s conftest$ac_exeext &&
9761 $as_test_x conftest$ac_exeext; then
9762 ac_cv_lib_dl_dlopen=yes
9764 echo "$as_me: failed program was:" >&5
9765 sed 's/^/| /' conftest.$ac_ext >&5
9767 ac_cv_lib_dl_dlopen=no
9770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9771 conftest$ac_exeext conftest.$ac_ext
9772 LIBS=$ac_check_lib_save_LIBS
9774 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9775 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9776 if test $ac_cv_lib_dl_dlopen = yes; then
9777 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9779 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9780 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9781 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9782 echo $ECHO_N "(cached) $ECHO_C" >&6
9784 ac_check_lib_save_LIBS=$LIBS
9786 cat >conftest.$ac_ext <<_ACEOF
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h. */
9793 /* Override any GCC internal prototype to avoid an error.
9794 Use char because int might match the return type of a GCC
9795 builtin and then its argument prototype would still apply. */
9808 rm -f conftest.$ac_objext conftest$ac_exeext
9809 if { (ac_try="$ac_link"
9811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9812 *) ac_try_echo=$ac_try;;
9814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9815 (eval "$ac_link") 2>conftest.er1
9817 grep -v '^ *+' conftest.er1 >conftest.err
9819 cat conftest.err >&5
9820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821 (exit $ac_status); } && {
9822 test -z "$ac_c_werror_flag" ||
9823 test ! -s conftest.err
9824 } && test -s conftest$ac_exeext &&
9825 $as_test_x conftest$ac_exeext; then
9826 ac_cv_lib_svld_dlopen=yes
9828 echo "$as_me: failed program was:" >&5
9829 sed 's/^/| /' conftest.$ac_ext >&5
9831 ac_cv_lib_svld_dlopen=no
9834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9835 conftest$ac_exeext conftest.$ac_ext
9836 LIBS=$ac_check_lib_save_LIBS
9838 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9839 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9840 if test $ac_cv_lib_svld_dlopen = yes; then
9841 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9843 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9844 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9845 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9846 echo $ECHO_N "(cached) $ECHO_C" >&6
9848 ac_check_lib_save_LIBS=$LIBS
9850 cat >conftest.$ac_ext <<_ACEOF
9853 cat confdefs.h >>conftest.$ac_ext
9854 cat >>conftest.$ac_ext <<_ACEOF
9855 /* end confdefs.h. */
9857 /* Override any GCC internal prototype to avoid an error.
9858 Use char because int might match the return type of a GCC
9859 builtin and then its argument prototype would still apply. */
9872 rm -f conftest.$ac_objext conftest$ac_exeext
9873 if { (ac_try="$ac_link"
9875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9876 *) ac_try_echo=$ac_try;;
9878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9879 (eval "$ac_link") 2>conftest.er1
9881 grep -v '^ *+' conftest.er1 >conftest.err
9883 cat conftest.err >&5
9884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885 (exit $ac_status); } && {
9886 test -z "$ac_c_werror_flag" ||
9887 test ! -s conftest.err
9888 } && test -s conftest$ac_exeext &&
9889 $as_test_x conftest$ac_exeext; then
9890 ac_cv_lib_dld_dld_link=yes
9892 echo "$as_me: failed program was:" >&5
9893 sed 's/^/| /' conftest.$ac_ext >&5
9895 ac_cv_lib_dld_dld_link=no
9898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9899 conftest$ac_exeext conftest.$ac_ext
9900 LIBS=$ac_check_lib_save_LIBS
9902 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9903 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9904 if test $ac_cv_lib_dld_dld_link = yes; then
9905 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9926 if test "x$lt_cv_dlopen" != xno; then
9932 case $lt_cv_dlopen in
9934 save_CPPFLAGS="$CPPFLAGS"
9935 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9937 save_LDFLAGS="$LDFLAGS"
9938 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9941 LIBS="$lt_cv_dlopen_libs $LIBS"
9943 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9944 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9945 if test "${lt_cv_dlopen_self+set}" = set; then
9946 echo $ECHO_N "(cached) $ECHO_C" >&6
9948 if test "$cross_compiling" = yes; then :
9949 lt_cv_dlopen_self=cross
9951 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9952 lt_status=$lt_dlunknown
9953 cat > conftest.$ac_ext <<EOF
9954 #line 9954 "configure"
9955 #include "confdefs.h"
9964 # define LT_DLGLOBAL RTLD_GLOBAL
9967 # define LT_DLGLOBAL DL_GLOBAL
9969 # define LT_DLGLOBAL 0
9973 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9974 find out it does not work in some platform. */
9975 #ifndef LT_DLLAZY_OR_NOW
9977 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9980 # define LT_DLLAZY_OR_NOW DL_LAZY
9983 # define LT_DLLAZY_OR_NOW RTLD_NOW
9986 # define LT_DLLAZY_OR_NOW DL_NOW
9988 # define LT_DLLAZY_OR_NOW 0
9996 extern "C" void exit (int);
9999 void fnord() { int i=42;}
10002 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10003 int status = $lt_dlunknown;
10007 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10008 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10009 /* dlclose (self); */
10017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10018 (eval $ac_link) 2>&5
10020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10022 (./conftest; exit; ) >&5 2>/dev/null
10024 case x$lt_status in
10025 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10026 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10027 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10030 # compilation failed
10031 lt_cv_dlopen_self=no
10038 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10039 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10041 if test "x$lt_cv_dlopen_self" = xyes; then
10042 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10043 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10044 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10045 if test "${lt_cv_dlopen_self_static+set}" = set; then
10046 echo $ECHO_N "(cached) $ECHO_C" >&6
10048 if test "$cross_compiling" = yes; then :
10049 lt_cv_dlopen_self_static=cross
10051 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10052 lt_status=$lt_dlunknown
10053 cat > conftest.$ac_ext <<EOF
10054 #line 10054 "configure"
10055 #include "confdefs.h"
10064 # define LT_DLGLOBAL RTLD_GLOBAL
10067 # define LT_DLGLOBAL DL_GLOBAL
10069 # define LT_DLGLOBAL 0
10073 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10074 find out it does not work in some platform. */
10075 #ifndef LT_DLLAZY_OR_NOW
10077 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10080 # define LT_DLLAZY_OR_NOW DL_LAZY
10083 # define LT_DLLAZY_OR_NOW RTLD_NOW
10086 # define LT_DLLAZY_OR_NOW DL_NOW
10088 # define LT_DLLAZY_OR_NOW 0
10096 extern "C" void exit (int);
10099 void fnord() { int i=42;}
10102 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10103 int status = $lt_dlunknown;
10107 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10108 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10109 /* dlclose (self); */
10117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10118 (eval $ac_link) 2>&5
10120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10122 (./conftest; exit; ) >&5 2>/dev/null
10124 case x$lt_status in
10125 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10126 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10127 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10130 # compilation failed
10131 lt_cv_dlopen_self_static=no
10138 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10139 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10142 CPPFLAGS="$save_CPPFLAGS"
10143 LDFLAGS="$save_LDFLAGS"
10148 case $lt_cv_dlopen_self in
10149 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10150 *) enable_dlopen_self=unknown ;;
10153 case $lt_cv_dlopen_self_static in
10154 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10155 *) enable_dlopen_self_static=unknown ;;
10160 # Report which library types will actually be built
10161 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10162 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10163 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10164 echo "${ECHO_T}$can_build_shared" >&6; }
10166 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10167 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10168 test "$can_build_shared" = "no" && enable_shared=no
10170 # On AIX, shared libraries and static libraries use the same namespace, and
10171 # are all built from PIC.
10174 test "$enable_shared" = yes && enable_static=no
10175 if test -n "$RANLIB"; then
10176 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10177 postinstall_cmds='$RANLIB $lib'
10182 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10183 test "$enable_shared" = yes && enable_static=no
10187 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10188 echo "${ECHO_T}$enable_shared" >&6; }
10190 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10191 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10192 # Make sure either enable_shared or enable_static is yes.
10193 test "$enable_shared" = yes || enable_static=yes
10194 { echo "$as_me:$LINENO: result: $enable_static" >&5
10195 echo "${ECHO_T}$enable_static" >&6; }
10197 # The else clause should only fire when bootstrapping the
10198 # libtool distribution, otherwise you forgot to ship ltmain.sh
10199 # with your package, and you will get complaints that there are
10200 # no rules to generate ltmain.sh.
10201 if test -f "$ltmain"; then
10202 # See if we are running on zsh, and set the options which allow our commands through
10203 # without removal of \ escapes.
10204 if test -n "${ZSH_VERSION+set}" ; then
10205 setopt NO_GLOB_SUBST
10207 # Now quote all the things that may contain metacharacters while being
10208 # careful not to overquote the AC_SUBSTed values. We take copies of the
10209 # variables and quote the copies for generation of the libtool script.
10210 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10212 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10213 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10214 deplibs_check_method reload_flag reload_cmds need_locks \
10215 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10216 lt_cv_sys_global_symbol_to_c_name_address \
10217 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10218 old_postinstall_cmds old_postuninstall_cmds \
10222 lt_prog_compiler_wl \
10223 lt_prog_compiler_pic \
10224 lt_prog_compiler_static \
10225 lt_prog_compiler_no_builtin_flag \
10226 export_dynamic_flag_spec \
10227 thread_safe_flag_spec \
10228 whole_archive_flag_spec \
10229 enable_shared_with_static_runtimes \
10231 old_archive_from_new_cmds \
10236 compiler_lib_search_path \
10238 archive_expsym_cmds \
10240 postuninstall_cmds \
10241 old_archive_from_expsyms_cmds \
10242 allow_undefined_flag \
10243 no_undefined_flag \
10244 export_symbols_cmds \
10245 hardcode_libdir_flag_spec \
10246 hardcode_libdir_flag_spec_ld \
10247 hardcode_libdir_separator \
10248 hardcode_automatic \
10250 module_expsym_cmds \
10251 lt_cv_prog_compiler_c_o \
10254 include_expsyms; do
10257 old_archive_cmds | \
10258 old_archive_from_new_cmds | \
10260 archive_expsym_cmds | \
10262 module_expsym_cmds | \
10263 old_archive_from_expsyms_cmds | \
10264 export_symbols_cmds | \
10265 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10266 postinstall_cmds | postuninstall_cmds | \
10267 old_postinstall_cmds | old_postuninstall_cmds | \
10268 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10269 # Double-quote double-evaled strings.
10270 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10273 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10279 *'\$0 --fallback-echo"')
10280 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10284 cfgfile="${ofile}T"
10285 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10287 { echo "$as_me:$LINENO: creating $ofile" >&5
10288 echo "$as_me: creating $ofile" >&6;}
10290 cat <<__EOF__ >> "$cfgfile"
10293 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10294 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10295 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10297 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10298 # Free Software Foundation, Inc.
10300 # This file is part of GNU Libtool:
10301 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10303 # This program is free software; you can redistribute it and/or modify
10304 # it under the terms of the GNU General Public License as published by
10305 # the Free Software Foundation; either version 2 of the License, or
10306 # (at your option) any later version.
10308 # This program is distributed in the hope that it will be useful, but
10309 # WITHOUT ANY WARRANTY; without even the implied warranty of
10310 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10311 # General Public License for more details.
10313 # You should have received a copy of the GNU General Public License
10314 # along with this program; if not, write to the Free Software
10315 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10317 # As a special exception to the GNU General Public License, if you
10318 # distribute this file as part of a program that contains a
10319 # configuration script generated by Autoconf, you may include it under
10320 # the same distribution terms that you use for the rest of that program.
10322 # A sed program that does not truncate output.
10325 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10326 Xsed="$SED -e 1s/^X//"
10328 # The HP-UX ksh and POSIX shell print the target directory to stdout
10329 # if CDPATH is set.
10330 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10332 # The names of the tagged configurations supported by this script.
10335 # ### BEGIN LIBTOOL CONFIG
10337 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10339 # Shell to use when invoking shell scripts.
10342 # Whether or not to build shared libraries.
10343 build_libtool_libs=$enable_shared
10345 # Whether or not to build static libraries.
10346 build_old_libs=$enable_static
10348 # Whether or not to add -lc for building shared libraries.
10349 build_libtool_need_lc=$archive_cmds_need_lc
10351 # Whether or not to disallow shared libs when runtime libs are static
10352 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10354 # Whether or not to optimize for fast installation.
10355 fast_install=$enable_fast_install
10358 host_alias=$host_alias
10362 # The build system.
10363 build_alias=$build_alias
10367 # An echo program that does not interpret backslashes.
10372 AR_FLAGS=$lt_AR_FLAGS
10377 # LTCC compiler flags.
10378 LTCFLAGS=$lt_LTCFLAGS
10380 # A language-specific compiler.
10383 # Is the compiler the GNU C compiler?
10389 # The linker used to build libraries.
10392 # Whether we need hard or soft links.
10395 # A BSD-compatible nm program.
10398 # A symbol stripping program
10401 # Used to examine libraries when file_magic_cmd begins "file"
10402 MAGIC_CMD=$MAGIC_CMD
10404 # Used on cygwin: DLL creation program.
10407 # Used on cygwin: object dumper.
10410 # Used on cygwin: assembler.
10413 # The name of the directory that contains temporary libtool files.
10416 # How to create reloadable object files.
10417 reload_flag=$lt_reload_flag
10418 reload_cmds=$lt_reload_cmds
10420 # How to pass a linker flag through the compiler.
10421 wl=$lt_lt_prog_compiler_wl
10423 # Object file suffix (normally "o").
10424 objext="$ac_objext"
10426 # Old archive suffix (normally "a").
10429 # Shared library suffix (normally ".so").
10430 shrext_cmds='$shrext_cmds'
10432 # Executable file suffix (normally "").
10435 # Additional compiler flags for building library objects.
10436 pic_flag=$lt_lt_prog_compiler_pic
10439 # What is the maximum length of a command?
10440 max_cmd_len=$lt_cv_sys_max_cmd_len
10442 # Does compiler simultaneously support -c and -o options?
10443 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10445 # Must we lock files when doing compilation?
10446 need_locks=$lt_need_locks
10448 # Do we need the lib prefix for modules?
10449 need_lib_prefix=$need_lib_prefix
10451 # Do we need a version for libraries?
10452 need_version=$need_version
10454 # Whether dlopen is supported.
10455 dlopen_support=$enable_dlopen
10457 # Whether dlopen of programs is supported.
10458 dlopen_self=$enable_dlopen_self
10460 # Whether dlopen of statically linked programs is supported.
10461 dlopen_self_static=$enable_dlopen_self_static
10463 # Compiler flag to prevent dynamic linking.
10464 link_static_flag=$lt_lt_prog_compiler_static
10466 # Compiler flag to turn off builtin functions.
10467 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10469 # Compiler flag to allow reflexive dlopens.
10470 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10472 # Compiler flag to generate shared objects directly from archives.
10473 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10475 # Compiler flag to generate thread-safe objects.
10476 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10478 # Library versioning type.
10479 version_type=$version_type
10481 # Format of library name prefix.
10482 libname_spec=$lt_libname_spec
10484 # List of archive names. First name is the real one, the rest are links.
10485 # The last name is the one that the linker finds with -lNAME.
10486 library_names_spec=$lt_library_names_spec
10488 # The coded name of the library, if different from the real name.
10489 soname_spec=$lt_soname_spec
10491 # Commands used to build and install an old-style archive.
10493 old_archive_cmds=$lt_old_archive_cmds
10494 old_postinstall_cmds=$lt_old_postinstall_cmds
10495 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10497 # Create an old-style archive from a shared archive.
10498 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10500 # Create a temporary old-style archive to link instead of a shared archive.
10501 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10503 # Commands used to build and install a shared archive.
10504 archive_cmds=$lt_archive_cmds
10505 archive_expsym_cmds=$lt_archive_expsym_cmds
10506 postinstall_cmds=$lt_postinstall_cmds
10507 postuninstall_cmds=$lt_postuninstall_cmds
10509 # Commands used to build a loadable module (assumed same as above if empty)
10510 module_cmds=$lt_module_cmds
10511 module_expsym_cmds=$lt_module_expsym_cmds
10513 # Commands to strip libraries.
10514 old_striplib=$lt_old_striplib
10515 striplib=$lt_striplib
10517 # Dependencies to place before the objects being linked to create a
10519 predep_objects=$lt_predep_objects
10521 # Dependencies to place after the objects being linked to create a
10523 postdep_objects=$lt_postdep_objects
10525 # Dependencies to place before the objects being linked to create a
10527 predeps=$lt_predeps
10529 # Dependencies to place after the objects being linked to create a
10531 postdeps=$lt_postdeps
10533 # The library search path used internally by the compiler when linking
10534 # a shared library.
10535 compiler_lib_search_path=$lt_compiler_lib_search_path
10537 # Method to check whether dependent libraries are shared objects.
10538 deplibs_check_method=$lt_deplibs_check_method
10540 # Command to use when deplibs_check_method == file_magic.
10541 file_magic_cmd=$lt_file_magic_cmd
10543 # Flag that allows shared libraries with undefined symbols to be built.
10544 allow_undefined_flag=$lt_allow_undefined_flag
10546 # Flag that forces no undefined symbols.
10547 no_undefined_flag=$lt_no_undefined_flag
10549 # Commands used to finish a libtool library installation in a directory.
10550 finish_cmds=$lt_finish_cmds
10552 # Same as above, but a single script fragment to be evaled but not shown.
10553 finish_eval=$lt_finish_eval
10555 # Take the output of nm and produce a listing of raw symbols and C names.
10556 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10558 # Transform the output of nm in a proper C declaration
10559 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10561 # Transform the output of nm in a C name address pair
10562 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10564 # This is the shared library runtime path variable.
10565 runpath_var=$runpath_var
10567 # This is the shared library path variable.
10568 shlibpath_var=$shlibpath_var
10570 # Is shlibpath searched before the hard-coded library search path?
10571 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10573 # How to hardcode a shared library path into an executable.
10574 hardcode_action=$hardcode_action
10576 # Whether we should hardcode library paths into libraries.
10577 hardcode_into_libs=$hardcode_into_libs
10579 # Flag to hardcode \$libdir into a binary during linking.
10580 # This must work even if \$libdir does not exist.
10581 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10583 # If ld is used when linking, flag to hardcode \$libdir into
10584 # a binary during linking. This must work even if \$libdir does
10586 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10588 # Whether we need a single -rpath flag with a separated argument.
10589 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10591 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10592 # resulting binary.
10593 hardcode_direct=$hardcode_direct
10595 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10596 # resulting binary.
10597 hardcode_minus_L=$hardcode_minus_L
10599 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10600 # the resulting binary.
10601 hardcode_shlibpath_var=$hardcode_shlibpath_var
10603 # Set to yes if building a shared library automatically hardcodes DIR into the library
10604 # and all subsequent libraries and executables linked against it.
10605 hardcode_automatic=$hardcode_automatic
10607 # Variables whose values should be saved in libtool wrapper scripts and
10608 # restored at relink time.
10609 variables_saved_for_relink="$variables_saved_for_relink"
10611 # Whether libtool must link a program against all its dependency libraries.
10612 link_all_deplibs=$link_all_deplibs
10614 # Compile-time system search path for libraries
10615 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10617 # Run-time system search path for libraries
10618 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10620 # Fix the shell variable \$srcfile for the compiler.
10621 fix_srcfile_path=$lt_fix_srcfile_path
10623 # Set to yes if exported symbols are required.
10624 always_export_symbols=$always_export_symbols
10626 # The commands to list exported symbols.
10627 export_symbols_cmds=$lt_export_symbols_cmds
10629 # The commands to extract the exported symbol list from a shared archive.
10630 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10632 # Symbols that should not be listed in the preloaded symbols.
10633 exclude_expsyms=$lt_exclude_expsyms
10635 # Symbols that must always be exported.
10636 include_expsyms=$lt_include_expsyms
10638 # ### END LIBTOOL CONFIG
10645 cat <<\EOF >> "$cfgfile"
10647 # AIX sometimes has problems with the GCC collect2 program. For some
10648 # reason, if we set the COLLECT_NAMES environment variable, the problems
10649 # vanish in a puff of smoke.
10650 if test "X${COLLECT_NAMES+set}" != Xset; then
10652 export COLLECT_NAMES
10658 # We use sed instead of cat because bash on DJGPP gets confused if
10659 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10660 # text mode, it properly converts lines to CR/LF. This bash problem
10661 # is reportedly fixed, but why not run on old versions too?
10662 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10664 mv -f "$cfgfile" "$ofile" || \
10665 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10669 # If there is no Makefile yet, we rely on a make rule to execute
10670 # `config.status --recheck' to rerun these tests and create the
10671 # libtool script then.
10672 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10673 if test -f "$ltmain_in"; then
10674 test -f Makefile && make "$ltmain"
10680 ac_cpp='$CPP $CPPFLAGS'
10681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10688 # Check whether --with-tags was given.
10689 if test "${with_tags+set}" = set; then
10690 withval=$with_tags; tagnames="$withval"
10694 if test -f "$ltmain" && test -n "$tagnames"; then
10695 if test ! -f "${ofile}"; then
10696 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10697 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10700 if test -z "$LTCC"; then
10701 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10702 if test -z "$LTCC"; then
10703 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10704 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10706 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10707 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10710 if test -z "$LTCFLAGS"; then
10711 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10714 # Extract list of available tagged configurations in $ofile.
10715 # Note that this assumes the entire list is on one line.
10716 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10718 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10719 for tagname in $tagnames; do
10721 # Check whether tagname contains only valid characters
10722 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10724 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10725 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10726 { (exit 1); exit 1; }; }
10730 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10732 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10733 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10734 { (exit 1); exit 1; }; }
10737 # Update the list of available tags.
10738 if test -n "$tagname"; then
10739 echo appending configuration tag \"$tagname\" to $ofile
10743 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10744 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10745 (test "X$CXX" != "Xg++"))) ; then
10747 ac_cpp='$CXXCPP $CPPFLAGS'
10748 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10749 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10750 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10755 archive_cmds_need_lc_CXX=no
10756 allow_undefined_flag_CXX=
10757 always_export_symbols_CXX=no
10758 archive_expsym_cmds_CXX=
10759 export_dynamic_flag_spec_CXX=
10760 hardcode_direct_CXX=no
10761 hardcode_libdir_flag_spec_CXX=
10762 hardcode_libdir_flag_spec_ld_CXX=
10763 hardcode_libdir_separator_CXX=
10764 hardcode_minus_L_CXX=no
10765 hardcode_shlibpath_var_CXX=unsupported
10766 hardcode_automatic_CXX=no
10768 module_expsym_cmds_CXX=
10769 link_all_deplibs_CXX=unknown
10770 old_archive_cmds_CXX=$old_archive_cmds
10771 no_undefined_flag_CXX=
10772 whole_archive_flag_spec_CXX=
10773 enable_shared_with_static_runtimes_CXX=no
10775 # Dependencies to place before and after the object being linked:
10776 predep_objects_CXX=
10777 postdep_objects_CXX=
10780 compiler_lib_search_path_CXX=
10782 # Source file extension for C++ test sources.
10785 # Object file extension for compiled C++ test sources.
10789 # Code to be used in simple compile tests
10790 lt_simple_compile_test_code="int some_variable = 0;"
10792 # Code to be used in simple link tests
10793 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10795 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10797 # If no C compiler was specified, use CC.
10800 # If no C compiler flags were specified, use CFLAGS.
10801 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10803 # Allow CC to be a program name with arguments.
10807 # save warnings/boilerplate of simple test code
10808 ac_outfile=conftest.$ac_objext
10809 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10810 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10811 _lt_compiler_boilerplate=`cat conftest.err`
10814 ac_outfile=conftest.$ac_objext
10815 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10816 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10817 _lt_linker_boilerplate=`cat conftest.err`
10821 # Allow CC to be a program name with arguments.
10826 lt_save_with_gnu_ld=$with_gnu_ld
10827 lt_save_path_LD=$lt_cv_path_LD
10828 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10829 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10831 $as_unset lt_cv_prog_gnu_ld
10833 if test -n "${lt_cv_path_LDCXX+set}"; then
10834 lt_cv_path_LD=$lt_cv_path_LDCXX
10836 $as_unset lt_cv_path_LD
10838 test -z "${LDCXX+set}" || LD=$LDCXX
10842 for cc_temp in $compiler""; do
10844 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10845 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10850 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10853 # We don't want -fno-exception wen compiling C++ code, so set the
10854 # no_builtin_flag separately
10855 if test "$GXX" = yes; then
10856 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10858 lt_prog_compiler_no_builtin_flag_CXX=
10861 if test "$GXX" = yes; then
10862 # Set up default GNU C++ configuration
10865 # Check whether --with-gnu-ld was given.
10866 if test "${with_gnu_ld+set}" = set; then
10867 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10873 if test "$GCC" = yes; then
10874 # Check if gcc -print-prog-name=ld gives a path.
10875 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10876 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10879 # gcc leaves a trailing carriage return which upsets mingw
10880 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10882 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10885 # Accept absolute paths.
10887 re_direlt='/[^/][^/]*/\.\./'
10888 # Canonicalize the pathname of ld
10889 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10890 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10891 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10893 test -z "$LD" && LD="$ac_prog"
10896 # If it fails, then pretend we aren't using GCC.
10900 # If it is relative, then search for the first ld in PATH.
10901 with_gnu_ld=unknown
10904 elif test "$with_gnu_ld" = yes; then
10905 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10906 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10908 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10909 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10911 if test "${lt_cv_path_LD+set}" = set; then
10912 echo $ECHO_N "(cached) $ECHO_C" >&6
10914 if test -z "$LD"; then
10915 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10916 for ac_dir in $PATH; do
10918 test -z "$ac_dir" && ac_dir=.
10919 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10920 lt_cv_path_LD="$ac_dir/$ac_prog"
10921 # Check to see if the program is GNU ld. I'd rather use --version,
10922 # but apparently some variants of GNU ld only accept -v.
10923 # Break only if it was the GNU/non-GNU ld that we prefer.
10924 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10925 *GNU* | *'with BFD'*)
10926 test "$with_gnu_ld" != no && break
10929 test "$with_gnu_ld" != yes && break
10936 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10940 LD="$lt_cv_path_LD"
10941 if test -n "$LD"; then
10942 { echo "$as_me:$LINENO: result: $LD" >&5
10943 echo "${ECHO_T}$LD" >&6; }
10945 { echo "$as_me:$LINENO: result: no" >&5
10946 echo "${ECHO_T}no" >&6; }
10948 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10949 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10950 { (exit 1); exit 1; }; }
10951 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10952 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10953 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10954 echo $ECHO_N "(cached) $ECHO_C" >&6
10956 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10957 case `$LD -v 2>&1 </dev/null` in
10958 *GNU* | *'with BFD'*)
10959 lt_cv_prog_gnu_ld=yes
10962 lt_cv_prog_gnu_ld=no
10966 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10967 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10968 with_gnu_ld=$lt_cv_prog_gnu_ld
10972 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10973 # archiving commands below assume that GNU ld is being used.
10974 if test "$with_gnu_ld" = yes; then
10975 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10976 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'
10978 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10979 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10981 # If archive_cmds runs LD, not CC, wlarc should be empty
10982 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10983 # investigate it a little bit more. (MM)
10986 # ancient GNU ld didn't support --whole-archive et. al.
10987 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10988 grep 'no-whole-archive' > /dev/null; then
10989 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10991 whole_archive_flag_spec_CXX=
10997 # A generic and very simple default shared library creation
10998 # command for GNU C++ for the case where it uses the native
10999 # linker, instead of GNU ld. If possible, this setting should
11000 # overridden to take advantage of the native linker features on
11001 # the platform it is being used on.
11002 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11005 # Commands to make compiler produce verbose output that lists
11006 # what "hidden" libraries, object files and flags are used when
11007 # linking a shared library.
11008 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11016 # PORTME: fill in a description of your system's C++ link characteristics
11017 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11018 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11022 # FIXME: insert proper C++ library support
11026 if test "$host_cpu" = ia64; then
11027 # On IA64, the linker does run time linking by default, so we don't
11028 # have to do anything special.
11029 aix_use_runtimelinking=no
11030 exp_sym_flag='-Bexport'
11033 aix_use_runtimelinking=no
11035 # Test if we are trying to use run time linking or normal
11036 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11037 # need to do runtime linking.
11038 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11039 for ld_flag in $LDFLAGS; do
11042 aix_use_runtimelinking=yes
11050 exp_sym_flag='-bexport'
11051 no_entry_flag='-bnoentry'
11054 # When large executables or shared objects are built, AIX ld can
11055 # have problems creating the table of contents. If linking a library
11056 # or program results in "error TOC overflow" add -mminimal-toc to
11057 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11058 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11060 archive_cmds_CXX=''
11061 hardcode_direct_CXX=yes
11062 hardcode_libdir_separator_CXX=':'
11063 link_all_deplibs_CXX=yes
11065 if test "$GXX" = yes; then
11066 case $host_os in aix4.[012]|aix4.[012].*)
11067 # We only want to do this on AIX 4.2 and lower, the check
11068 # below for broken collect2 doesn't work under 4.3+
11069 collect2name=`${CC} -print-prog-name=collect2`
11070 if test -f "$collect2name" && \
11071 strings "$collect2name" | grep resolve_lib_name >/dev/null
11073 # We have reworked collect2
11076 # We have old collect2
11077 hardcode_direct_CXX=unsupported
11078 # It fails to find uninstalled libraries when the uninstalled
11079 # path is not listed in the libpath. Setting hardcode_minus_L
11080 # to unsupported forces relinking
11081 hardcode_minus_L_CXX=yes
11082 hardcode_libdir_flag_spec_CXX='-L$libdir'
11083 hardcode_libdir_separator_CXX=
11087 shared_flag='-shared'
11088 if test "$aix_use_runtimelinking" = yes; then
11089 shared_flag="$shared_flag "'${wl}-G'
11093 if test "$host_cpu" = ia64; then
11094 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11095 # chokes on -Wl,-G. The following line is correct:
11098 if test "$aix_use_runtimelinking" = yes; then
11099 shared_flag='${wl}-G'
11101 shared_flag='${wl}-bM:SRE'
11106 # It seems that -bexpall does not export symbols beginning with
11107 # underscore (_), so it is better to generate a list of symbols to export.
11108 always_export_symbols_CXX=yes
11109 if test "$aix_use_runtimelinking" = yes; then
11110 # Warning - without using the other runtime loading flags (-brtl),
11111 # -berok will link without error, but may produce a broken library.
11112 allow_undefined_flag_CXX='-berok'
11113 # Determine the default libpath from the value encoded in an empty executable.
11114 cat >conftest.$ac_ext <<_ACEOF
11117 cat confdefs.h >>conftest.$ac_ext
11118 cat >>conftest.$ac_ext <<_ACEOF
11119 /* end confdefs.h. */
11129 rm -f conftest.$ac_objext conftest$ac_exeext
11130 if { (ac_try="$ac_link"
11131 case "(($ac_try" in
11132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11133 *) ac_try_echo=$ac_try;;
11135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11136 (eval "$ac_link") 2>conftest.er1
11138 grep -v '^ *+' conftest.er1 >conftest.err
11140 cat conftest.err >&5
11141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142 (exit $ac_status); } && {
11143 test -z "$ac_cxx_werror_flag" ||
11144 test ! -s conftest.err
11145 } && test -s conftest$ac_exeext &&
11146 $as_test_x conftest$ac_exeext; then
11148 lt_aix_libpath_sed='
11149 /Import File Strings/,/^$/ {
11155 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11156 # Check for a 64-bit object if we didn't find anything.
11157 if test -z "$aix_libpath"; then
11158 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11161 echo "$as_me: failed program was:" >&5
11162 sed 's/^/| /' conftest.$ac_ext >&5
11167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11168 conftest$ac_exeext conftest.$ac_ext
11169 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11171 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11173 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"
11175 if test "$host_cpu" = ia64; then
11176 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11177 allow_undefined_flag_CXX="-z nodefs"
11178 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"
11180 # Determine the default libpath from the value encoded in an empty executable.
11181 cat >conftest.$ac_ext <<_ACEOF
11184 cat confdefs.h >>conftest.$ac_ext
11185 cat >>conftest.$ac_ext <<_ACEOF
11186 /* end confdefs.h. */
11196 rm -f conftest.$ac_objext conftest$ac_exeext
11197 if { (ac_try="$ac_link"
11198 case "(($ac_try" in
11199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11200 *) ac_try_echo=$ac_try;;
11202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11203 (eval "$ac_link") 2>conftest.er1
11205 grep -v '^ *+' conftest.er1 >conftest.err
11207 cat conftest.err >&5
11208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); } && {
11210 test -z "$ac_cxx_werror_flag" ||
11211 test ! -s conftest.err
11212 } && test -s conftest$ac_exeext &&
11213 $as_test_x conftest$ac_exeext; then
11215 lt_aix_libpath_sed='
11216 /Import File Strings/,/^$/ {
11222 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11223 # Check for a 64-bit object if we didn't find anything.
11224 if test -z "$aix_libpath"; then
11225 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11228 echo "$as_me: failed program was:" >&5
11229 sed 's/^/| /' conftest.$ac_ext >&5
11234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11235 conftest$ac_exeext conftest.$ac_ext
11236 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11238 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11239 # Warning - without using the other run time loading flags,
11240 # -berok will link without error, but may produce a broken library.
11241 no_undefined_flag_CXX=' ${wl}-bernotok'
11242 allow_undefined_flag_CXX=' ${wl}-berok'
11243 # Exported symbols can be pulled into shared objects from archives
11244 whole_archive_flag_spec_CXX='$convenience'
11245 archive_cmds_need_lc_CXX=yes
11246 # This is similar to how AIX traditionally builds its shared libraries.
11247 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'
11253 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11254 allow_undefined_flag_CXX=unsupported
11255 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11256 # support --undefined. This deserves some investigation. FIXME
11257 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11264 case $cc_basename in
11266 # FIXME: insert proper C++ library support
11272 cygwin* | mingw* | pw32*)
11273 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11274 # as there is no search path for DLLs.
11275 hardcode_libdir_flag_spec_CXX='-L$libdir'
11276 allow_undefined_flag_CXX=unsupported
11277 always_export_symbols_CXX=no
11278 enable_shared_with_static_runtimes_CXX=yes
11280 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11281 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'
11282 # If the export-symbols file already is a .def file (1st line
11283 # is EXPORTS), use it as is; otherwise, prepend...
11284 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11285 cp $export_symbols $output_objdir/$soname.def;
11287 echo EXPORTS > $output_objdir/$soname.def;
11288 cat $export_symbols >> $output_objdir/$soname.def;
11290 $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'
11295 darwin* | rhapsody*)
11297 rhapsody* | darwin1.[012])
11298 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11301 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11302 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11304 case ${MACOSX_DEPLOYMENT_TARGET} in
11306 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11309 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11315 archive_cmds_need_lc_CXX=no
11316 hardcode_direct_CXX=no
11317 hardcode_automatic_CXX=yes
11318 hardcode_shlibpath_var_CXX=unsupported
11319 whole_archive_flag_spec_CXX=''
11320 link_all_deplibs_CXX=yes
11322 if test "$GXX" = yes ; then
11323 lt_int_apple_cc_single_mod=no
11324 output_verbose_link_cmd='echo'
11325 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11326 lt_int_apple_cc_single_mod=yes
11328 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11329 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11331 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'
11333 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11334 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11335 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11336 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}'
11338 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}'
11340 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}'
11342 case $cc_basename in
11344 output_verbose_link_cmd='echo'
11345 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'
11346 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11347 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11348 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}'
11349 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}'
11359 case $cc_basename in
11361 # FIXME: insert proper C++ library support
11365 # Green Hills C++ Compiler
11366 # FIXME: insert proper C++ library support
11370 # FIXME: insert proper C++ library support
11376 # C++ shared libraries reported to be fairly broken before switch to ELF
11380 archive_cmds_need_lc_CXX=no
11382 freebsd* | dragonfly*)
11383 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11390 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11391 hardcode_libdir_separator_CXX=:
11392 export_dynamic_flag_spec_CXX='${wl}-E'
11393 hardcode_direct_CXX=yes
11394 hardcode_minus_L_CXX=yes # Not in the search PATH,
11395 # but as the default
11396 # location of the library.
11398 case $cc_basename in
11400 # FIXME: insert proper C++ library support
11404 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'
11405 # Commands to make compiler produce verbose output that lists
11406 # what "hidden" libraries, object files and flags are used when
11407 # linking a shared library.
11409 # There doesn't appear to be a way to prevent this compiler from
11410 # explicitly linking system object files so we need to strip them
11411 # from the output so that they don't get included in the library
11413 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'
11416 if test "$GXX" = yes; then
11417 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'
11419 # FIXME: insert proper C++ library support
11426 if test $with_gnu_ld = no; then
11427 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11428 hardcode_libdir_separator_CXX=:
11433 export_dynamic_flag_spec_CXX='${wl}-E'
11439 hardcode_direct_CXX=no
11440 hardcode_shlibpath_var_CXX=no
11443 hardcode_direct_CXX=yes
11444 hardcode_minus_L_CXX=yes # Not in the search PATH,
11445 # but as the default
11446 # location of the library.
11450 case $cc_basename in
11452 # FIXME: insert proper C++ library support
11458 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11461 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11464 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11467 # Commands to make compiler produce verbose output that lists
11468 # what "hidden" libraries, object files and flags are used when
11469 # linking a shared library.
11471 # There doesn't appear to be a way to prevent this compiler from
11472 # explicitly linking system object files so we need to strip them
11473 # from the output so that they don't get included in the library
11475 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'
11478 if test "$GXX" = yes; then
11479 if test $with_gnu_ld = no; then
11482 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11485 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11488 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'
11493 # FIXME: insert proper C++ library support
11500 hardcode_direct_CXX=no
11501 hardcode_shlibpath_var_CXX=no
11502 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11503 export_dynamic_flag_spec_CXX='${wl}-E'
11504 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11505 # Instead, shared libraries are loaded at an image base (0x10000000 by
11506 # default) and relocated if they conflict, which is a slow very memory
11507 # consuming and fragmenting process. To avoid this, we pick a random,
11508 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11509 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11510 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'
11511 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'
11514 case $cc_basename in
11517 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'
11519 # Archives containing C++ object files must be created using
11520 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11521 # necessary to make sure instantiated templates are included
11523 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11526 if test "$GXX" = yes; then
11527 if test "$with_gnu_ld" = no; then
11528 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'
11530 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'
11533 link_all_deplibs_CXX=yes
11536 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11537 hardcode_libdir_separator_CXX=:
11539 linux* | k*bsd*-gnu)
11540 case $cc_basename in
11542 # Kuck and Associates, Inc. (KAI) C++ Compiler
11544 # KCC will only create a shared library if the output file
11545 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11546 # to its proper name (with version) after linking.
11547 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'
11548 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'
11549 # Commands to make compiler produce verbose output that lists
11550 # what "hidden" libraries, object files and flags are used when
11551 # linking a shared library.
11553 # There doesn't appear to be a way to prevent this compiler from
11554 # explicitly linking system object files so we need to strip them
11555 # from the output so that they don't get included in the library
11557 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'
11559 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11560 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11562 # Archives containing C++ object files must be created using
11563 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11564 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11569 # version 8.0 and above of icpc choke on multiply defined symbols
11570 # if we add $predep_objects and $postdep_objects, however 7.1 and
11571 # earlier do not add the objects themselves.
11572 case `$CC -V 2>&1` in
11574 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11575 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'
11577 *) # Version 8.0 or newer
11580 ia64*) tmp_idyn=' -i_dynamic';;
11582 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11583 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'
11586 archive_cmds_need_lc_CXX=no
11587 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11588 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11589 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11592 # Portland Group C++ compiler
11593 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11594 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'
11596 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11597 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11598 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'
11602 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11603 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'
11605 runpath_var=LD_RUN_PATH
11606 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11607 hardcode_libdir_separator_CXX=:
11609 # Commands to make compiler produce verbose output that lists
11610 # what "hidden" libraries, object files and flags are used when
11611 # linking a shared library.
11613 # There doesn't appear to be a way to prevent this compiler from
11614 # explicitly linking system object files so we need to strip them
11615 # from the output so that they don't get included in the library
11617 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'
11620 case `$CC -V 2>&1 | sed 5q` in
11623 no_undefined_flag_CXX=' -zdefs'
11624 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11625 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'
11626 hardcode_libdir_flag_spec_CXX='-R$libdir'
11627 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'
11629 # Not sure whether something based on
11630 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11632 output_verbose_link_cmd='echo'
11634 # Archives containing C++ object files must be created using
11635 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11636 # necessary to make sure instantiated templates are included
11638 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11645 # FIXME: insert proper C++ library support
11649 # FIXME: insert proper C++ library support
11653 case $cc_basename in
11655 # FIXME: insert proper C++ library support
11659 # FIXME: insert proper C++ library support
11664 netbsd* | netbsdelf*-gnu)
11665 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11666 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11668 hardcode_libdir_flag_spec_CXX='-R$libdir'
11669 hardcode_direct_CXX=yes
11670 hardcode_shlibpath_var_CXX=no
11672 # Workaround some broken pre-1.5 toolchains
11673 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11676 # C++ shared libraries are fairly broken
11680 if test -f /usr/libexec/ld.so; then
11681 hardcode_direct_CXX=yes
11682 hardcode_shlibpath_var_CXX=no
11683 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11684 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11685 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11686 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11687 export_dynamic_flag_spec_CXX='${wl}-E'
11688 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11690 output_verbose_link_cmd='echo'
11696 case $cc_basename in
11698 # Kuck and Associates, Inc. (KAI) C++ Compiler
11700 # KCC will only create a shared library if the output file
11701 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11702 # to its proper name (with version) after linking.
11703 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'
11705 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11706 hardcode_libdir_separator_CXX=:
11708 # Archives containing C++ object files must be created using
11709 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11710 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11714 # Rational C++ 2.4.1
11715 # FIXME: insert proper C++ library support
11719 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11720 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'
11722 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11723 hardcode_libdir_separator_CXX=:
11725 # Commands to make compiler produce verbose output that lists
11726 # what "hidden" libraries, object files and flags are used when
11727 # linking a shared library.
11729 # There doesn't appear to be a way to prevent this compiler from
11730 # explicitly linking system object files so we need to strip them
11731 # from the output so that they don't get included in the library
11733 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'
11736 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11737 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11738 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'
11740 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11741 hardcode_libdir_separator_CXX=:
11743 # Commands to make compiler produce verbose output that lists
11744 # what "hidden" libraries, object files and flags are used when
11745 # linking a shared library.
11746 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11749 # FIXME: insert proper C++ library support
11756 case $cc_basename in
11758 # Kuck and Associates, Inc. (KAI) C++ Compiler
11760 # KCC will only create a shared library if the output file
11761 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11762 # to its proper name (with version) after linking.
11763 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'
11765 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11766 hardcode_libdir_separator_CXX=:
11768 # Archives containing C++ object files must be created using
11769 # the KAI C++ compiler.
11770 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11773 # Rational C++ 2.4.1
11774 # FIXME: insert proper C++ library support
11778 allow_undefined_flag_CXX=' -expect_unresolved \*'
11779 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'
11780 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11781 echo "-hidden">> $lib.exp~
11782 $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~
11785 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11786 hardcode_libdir_separator_CXX=:
11788 # Commands to make compiler produce verbose output that lists
11789 # what "hidden" libraries, object files and flags are used when
11790 # linking a shared library.
11792 # There doesn't appear to be a way to prevent this compiler from
11793 # explicitly linking system object files so we need to strip them
11794 # from the output so that they don't get included in the library
11796 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'
11799 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11800 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11801 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'
11803 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11804 hardcode_libdir_separator_CXX=:
11806 # Commands to make compiler produce verbose output that lists
11807 # what "hidden" libraries, object files and flags are used when
11808 # linking a shared library.
11809 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11812 # FIXME: insert proper C++ library support
11819 # FIXME: insert proper C++ library support
11823 case $cc_basename in
11826 # FIXME: insert proper C++ library support
11831 # FIXME: insert proper C++ library support
11835 # FIXME: insert proper C++ library support
11841 case $cc_basename in
11843 # Sun C++ 4.2, 5.x and Centerline C++
11844 archive_cmds_need_lc_CXX=yes
11845 no_undefined_flag_CXX=' -zdefs'
11846 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11847 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11848 $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'
11850 hardcode_libdir_flag_spec_CXX='-R$libdir'
11851 hardcode_shlibpath_var_CXX=no
11853 solaris2.[0-5] | solaris2.[0-5].*) ;;
11855 # The compiler driver will combine and reorder linker options,
11856 # but understands `-z linker_flag'.
11857 # Supported since Solaris 2.6 (maybe 2.5.1?)
11858 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11861 link_all_deplibs_CXX=yes
11863 output_verbose_link_cmd='echo'
11865 # Archives containing C++ object files must be created using
11866 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11867 # necessary to make sure instantiated templates are included
11869 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11872 # Green Hills C++ Compiler
11873 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11875 # The C++ compiler must be used to create the archive.
11876 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11879 # GNU C++ compiler with Solaris linker
11880 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11881 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11882 if $CC --version | grep -v '^2\.7' > /dev/null; then
11883 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11884 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11885 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11887 # Commands to make compiler produce verbose output that lists
11888 # what "hidden" libraries, object files and flags are used when
11889 # linking a shared library.
11890 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11892 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11894 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11895 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11896 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11898 # Commands to make compiler produce verbose output that lists
11899 # what "hidden" libraries, object files and flags are used when
11900 # linking a shared library.
11901 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11904 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11906 solaris2.[0-5] | solaris2.[0-5].*) ;;
11908 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11915 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11916 no_undefined_flag_CXX='${wl}-z,text'
11917 archive_cmds_need_lc_CXX=no
11918 hardcode_shlibpath_var_CXX=no
11919 runpath_var='LD_RUN_PATH'
11921 case $cc_basename in
11923 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11924 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11927 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11928 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11932 sysv5* | sco3.2v5* | sco5v6*)
11933 # Note: We can NOT use -z defs as we might desire, because we do not
11934 # link with -lc, and that would cause any symbols used from libc to
11935 # always be unresolved, which means just about no library would
11936 # ever link correctly. If we're not using GNU ld we use -z text
11937 # though, which does catch some bad symbols but isn't as heavy-handed
11939 # For security reasons, it is highly recommended that you always
11940 # use absolute paths for naming shared libraries, and exclude the
11941 # DT_RUNPATH tag from executables and libraries. But doing so
11942 # requires that you compile everything twice, which is a pain.
11943 # So that behaviour is only enabled if SCOABSPATH is set to a
11944 # non-empty value in the environment. Most likely only useful for
11945 # creating official distributions of packages.
11946 # This is a hack until libtool officially supports absolute path
11947 # names for shared libraries.
11948 no_undefined_flag_CXX='${wl}-z,text'
11949 allow_undefined_flag_CXX='${wl}-z,nodefs'
11950 archive_cmds_need_lc_CXX=no
11951 hardcode_shlibpath_var_CXX=no
11952 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11953 hardcode_libdir_separator_CXX=':'
11954 link_all_deplibs_CXX=yes
11955 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11956 runpath_var='LD_RUN_PATH'
11958 case $cc_basename in
11960 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11961 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11964 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11965 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11970 case $cc_basename in
11972 # NonStop-UX NCC 3.20
11973 # FIXME: insert proper C++ library support
11977 # FIXME: insert proper C++ library support
11983 # FIXME: insert proper C++ library support
11987 # FIXME: insert proper C++ library support
11991 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11992 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11993 test "$ld_shlibs_CXX" = no && can_build_shared=no
11999 cat > conftest.$ac_ext <<EOF
12003 Foo (void) { a = 0; }
12009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12010 (eval $ac_compile) 2>&5
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); }; then
12014 # Parse the compiler output and extract the necessary
12015 # objects, libraries and library flags.
12017 # Sentinel used to keep track of whether or not we are before
12018 # the conftest object file.
12019 pre_test_object_deps_done=no
12021 # The `*' in the case matches for architectures that use `case' in
12022 # $output_verbose_cmd can trigger glob expansion during the loop
12023 # eval without this substitution.
12024 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12026 for p in `eval $output_verbose_link_cmd`; do
12030 # Some compilers place space between "-{L,R}" and the path.
12031 # Remove the space.
12032 if test $p = "-L" \
12033 || test $p = "-R"; then
12040 if test "$pre_test_object_deps_done" = no; then
12043 # Internal compiler library paths should come after those
12044 # provided the user. The postdeps already come after the
12045 # user supplied libs so there is no need to process them.
12046 if test -z "$compiler_lib_search_path_CXX"; then
12047 compiler_lib_search_path_CXX="${prev}${p}"
12049 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12052 # The "-l" case would never come before the object being
12053 # linked, so don't bother handling this case.
12056 if test -z "$postdeps_CXX"; then
12057 postdeps_CXX="${prev}${p}"
12059 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12065 # This assumes that the test object file only shows up
12066 # once in the compiler output.
12067 if test "$p" = "conftest.$objext"; then
12068 pre_test_object_deps_done=yes
12072 if test "$pre_test_object_deps_done" = no; then
12073 if test -z "$predep_objects_CXX"; then
12074 predep_objects_CXX="$p"
12076 predep_objects_CXX="$predep_objects_CXX $p"
12079 if test -z "$postdep_objects_CXX"; then
12080 postdep_objects_CXX="$p"
12082 postdep_objects_CXX="$postdep_objects_CXX $p"
12087 *) ;; # Ignore the rest.
12095 echo "libtool.m4: error: problem compiling CXX test program"
12098 $rm -f confest.$objext
12100 # PORTME: override above test on systems where it is broken
12103 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12104 # hack all around it, let's just trust "g++" to DTRT.
12105 predep_objects_CXX=
12106 postdep_objects_CXX=
12111 case `$CC -V 2>&1 | sed 5q` in
12115 # The more standards-conforming stlport4 library is
12116 # incompatible with the Cstd library. Avoid specifying
12117 # it if it's in CXXFLAGS. Ignore libCrun as
12118 # -library=stlport4 depends on it.
12119 case " $CXX $CXXFLAGS " in
12120 *" -library=stlport4 "*)
12121 solaris_use_stlport4=yes
12124 if test "$solaris_use_stlport4" != yes; then
12125 postdeps_CXX='-library=Cstd -library=Crun'
12132 case $cc_basename in
12134 # The more standards-conforming stlport4 library is
12135 # incompatible with the Cstd library. Avoid specifying
12136 # it if it's in CXXFLAGS. Ignore libCrun as
12137 # -library=stlport4 depends on it.
12138 case " $CXX $CXXFLAGS " in
12139 *" -library=stlport4 "*)
12140 solaris_use_stlport4=yes
12144 # Adding this requires a known-good setup of shared libraries for
12145 # Sun compiler versions before 5.6, else PIC objects from an old
12146 # archive will be linked into the output, leading to subtle bugs.
12147 if test "$solaris_use_stlport4" != yes; then
12148 postdeps_CXX='-library=Cstd -library=Crun'
12156 case " $postdeps_CXX " in
12157 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12160 lt_prog_compiler_wl_CXX=
12161 lt_prog_compiler_pic_CXX=
12162 lt_prog_compiler_static_CXX=
12164 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12165 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12167 # C++ specific cases for pic, static, wl, etc.
12168 if test "$GXX" = yes; then
12169 lt_prog_compiler_wl_CXX='-Wl,'
12170 lt_prog_compiler_static_CXX='-static'
12174 # All AIX code is PIC.
12175 if test "$host_cpu" = ia64; then
12176 # AIX 5 now supports IA64 processor
12177 lt_prog_compiler_static_CXX='-Bstatic'
12181 # FIXME: we need at least 68020 code to build shared libraries, but
12182 # adding the `-m68020' flag to GCC prevents building anything better,
12184 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12186 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12187 # PIC is the default for these OSes.
12189 mingw* | cygwin* | os2* | pw32*)
12190 # This hack is so that the source file can tell whether it is being
12191 # built for inclusion in a dll (and should export symbols for example).
12192 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12193 # (--disable-auto-import) libraries
12194 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12196 darwin* | rhapsody*)
12197 # PIC is the default on this platform
12198 # Common symbols not allowed in MH_DYLIB files
12199 lt_prog_compiler_pic_CXX='-fno-common'
12202 # DJGPP does not support shared libraries at all
12203 lt_prog_compiler_pic_CXX=
12206 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12207 # Instead, we relocate shared libraries at runtime.
12210 if test -d /usr/nec; then
12211 lt_prog_compiler_pic_CXX=-Kconform_pic
12215 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12216 # not for PA HP-UX.
12221 lt_prog_compiler_pic_CXX='-fPIC'
12226 lt_prog_compiler_pic_CXX='-fPIC'
12232 # All AIX code is PIC.
12233 if test "$host_cpu" = ia64; then
12234 # AIX 5 now supports IA64 processor
12235 lt_prog_compiler_static_CXX='-Bstatic'
12237 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12241 case $cc_basename in
12243 # Green Hills C++ Compiler
12244 # _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"
12249 # PIC is the default on this platform
12250 # Common symbols not allowed in MH_DYLIB files
12251 case $cc_basename in
12253 lt_prog_compiler_pic_CXX='-qnocommon'
12254 lt_prog_compiler_wl_CXX='-Wl,'
12259 case $cc_basename in
12261 lt_prog_compiler_pic_CXX='-KPIC'
12264 # Green Hills C++ Compiler
12265 lt_prog_compiler_pic_CXX='-pic'
12271 freebsd* | dragonfly*)
12272 # FreeBSD uses GNU C++
12274 hpux9* | hpux10* | hpux11*)
12275 case $cc_basename in
12277 lt_prog_compiler_wl_CXX='-Wl,'
12278 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12279 if test "$host_cpu" != ia64; then
12280 lt_prog_compiler_pic_CXX='+Z'
12284 lt_prog_compiler_wl_CXX='-Wl,'
12285 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12291 lt_prog_compiler_pic_CXX='+Z'
12300 # This is c89, which is MS Visual C++ (no shared libs)
12301 # Anyone wants to do a port?
12303 irix5* | irix6* | nonstopux*)
12304 case $cc_basename in
12306 lt_prog_compiler_wl_CXX='-Wl,'
12307 lt_prog_compiler_static_CXX='-non_shared'
12308 # CC pic flag -KPIC is the default.
12314 linux* | k*bsd*-gnu)
12315 case $cc_basename in
12318 lt_prog_compiler_wl_CXX='--backend -Wl,'
12319 lt_prog_compiler_pic_CXX='-fPIC'
12323 lt_prog_compiler_wl_CXX='-Wl,'
12324 lt_prog_compiler_pic_CXX='-KPIC'
12325 lt_prog_compiler_static_CXX='-static'
12328 # Portland Group C++ compiler.
12329 lt_prog_compiler_wl_CXX='-Wl,'
12330 lt_prog_compiler_pic_CXX='-fpic'
12331 lt_prog_compiler_static_CXX='-Bstatic'
12335 # Make sure the PIC flag is empty. It appears that all Alpha
12336 # Linux and Compaq Tru64 Unix objects are PIC.
12337 lt_prog_compiler_pic_CXX=
12338 lt_prog_compiler_static_CXX='-non_shared'
12341 case `$CC -V 2>&1 | sed 5q` in
12344 lt_prog_compiler_pic_CXX='-KPIC'
12345 lt_prog_compiler_static_CXX='-Bstatic'
12346 lt_prog_compiler_wl_CXX='-Qoption ld '
12357 case $cc_basename in
12359 lt_prog_compiler_pic_CXX='-W c,exportall'
12365 netbsd* | netbsdelf*-gnu)
12367 osf3* | osf4* | osf5*)
12368 case $cc_basename in
12370 lt_prog_compiler_wl_CXX='--backend -Wl,'
12373 # Rational C++ 2.4.1
12374 lt_prog_compiler_pic_CXX='-pic'
12377 # Digital/Compaq C++
12378 lt_prog_compiler_wl_CXX='-Wl,'
12379 # Make sure the PIC flag is empty. It appears that all Alpha
12380 # Linux and Compaq Tru64 Unix objects are PIC.
12381 lt_prog_compiler_pic_CXX=
12382 lt_prog_compiler_static_CXX='-non_shared'
12391 case $cc_basename in
12393 # Sun C++ 4.2, 5.x and Centerline C++
12394 lt_prog_compiler_pic_CXX='-KPIC'
12395 lt_prog_compiler_static_CXX='-Bstatic'
12396 lt_prog_compiler_wl_CXX='-Qoption ld '
12399 # Green Hills C++ Compiler
12400 lt_prog_compiler_pic_CXX='-PIC'
12407 case $cc_basename in
12410 lt_prog_compiler_pic_CXX='-pic'
12411 lt_prog_compiler_static_CXX='-Bstatic'
12415 lt_prog_compiler_pic_CXX='-pic'
12422 case $cc_basename in
12424 # NonStop-UX NCC 3.20
12425 lt_prog_compiler_pic_CXX='-KPIC'
12431 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12432 case $cc_basename in
12434 lt_prog_compiler_wl_CXX='-Wl,'
12435 lt_prog_compiler_pic_CXX='-KPIC'
12436 lt_prog_compiler_static_CXX='-Bstatic'
12443 lt_prog_compiler_can_build_shared_CXX=no
12448 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12449 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12452 # Check to make sure the PIC flag actually works.
12454 if test -n "$lt_prog_compiler_pic_CXX"; then
12456 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12457 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12458 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12459 echo $ECHO_N "(cached) $ECHO_C" >&6
12461 lt_prog_compiler_pic_works_CXX=no
12462 ac_outfile=conftest.$ac_objext
12463 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12464 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12465 # Insert the option either (1) after the last *FLAGS variable, or
12466 # (2) before a word containing "conftest.", or (3) at the end.
12467 # Note that $ac_compile itself does not contain backslashes and begins
12468 # with a dollar sign (not a hyphen), so the echo should work correctly.
12469 # The option is referenced via a variable to avoid confusing sed.
12470 lt_compile=`echo "$ac_compile" | $SED \
12471 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12472 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12473 -e 's:$: $lt_compiler_flag:'`
12474 (eval echo "\"\$as_me:12474: $lt_compile\"" >&5)
12475 (eval "$lt_compile" 2>conftest.err)
12477 cat conftest.err >&5
12478 echo "$as_me:12478: \$? = $ac_status" >&5
12479 if (exit $ac_status) && test -s "$ac_outfile"; then
12480 # The compiler can only warn and ignore the option if not recognized
12481 # So say no if there are warnings other than the usual output.
12482 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12483 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12484 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12485 lt_prog_compiler_pic_works_CXX=yes
12491 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12492 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12494 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12495 case $lt_prog_compiler_pic_CXX in
12497 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12500 lt_prog_compiler_pic_CXX=
12501 lt_prog_compiler_can_build_shared_CXX=no
12506 # For platforms which do not support PIC, -DPIC is meaningless:
12508 lt_prog_compiler_pic_CXX=
12511 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12516 # Check to make sure the static flag actually works.
12518 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12519 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12520 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12521 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12522 echo $ECHO_N "(cached) $ECHO_C" >&6
12524 lt_prog_compiler_static_works_CXX=no
12525 save_LDFLAGS="$LDFLAGS"
12526 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12527 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12528 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12529 # The linker can only warn and ignore the option if not recognized
12530 # So say no if there are warnings
12531 if test -s conftest.err; then
12532 # Append any errors to the config.log.
12533 cat conftest.err 1>&5
12534 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12535 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12536 if diff conftest.exp conftest.er2 >/dev/null; then
12537 lt_prog_compiler_static_works_CXX=yes
12540 lt_prog_compiler_static_works_CXX=yes
12544 LDFLAGS="$save_LDFLAGS"
12547 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12548 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12550 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12553 lt_prog_compiler_static_CXX=
12557 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12558 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12559 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12560 echo $ECHO_N "(cached) $ECHO_C" >&6
12562 lt_cv_prog_compiler_c_o_CXX=no
12563 $rm -r conftest 2>/dev/null
12567 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12569 lt_compiler_flag="-o out/conftest2.$ac_objext"
12570 # Insert the option either (1) after the last *FLAGS variable, or
12571 # (2) before a word containing "conftest.", or (3) at the end.
12572 # Note that $ac_compile itself does not contain backslashes and begins
12573 # with a dollar sign (not a hyphen), so the echo should work correctly.
12574 lt_compile=`echo "$ac_compile" | $SED \
12575 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12576 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12577 -e 's:$: $lt_compiler_flag:'`
12578 (eval echo "\"\$as_me:12578: $lt_compile\"" >&5)
12579 (eval "$lt_compile" 2>out/conftest.err)
12581 cat out/conftest.err >&5
12582 echo "$as_me:12582: \$? = $ac_status" >&5
12583 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12585 # The compiler can only warn and ignore the option if not recognized
12586 # So say no if there are warnings
12587 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12588 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12589 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12590 lt_cv_prog_compiler_c_o_CXX=yes
12595 # SGI C++ compiler will create directory out/ii_files/ for
12596 # template instantiation
12597 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12598 $rm out/* && rmdir out
12604 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12605 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12608 hard_links="nottested"
12609 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12610 # do not overwrite the value of need_locks provided by the user
12611 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12612 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12615 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12617 ln conftest.a conftest.b 2>&5 || hard_links=no
12618 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12619 { echo "$as_me:$LINENO: result: $hard_links" >&5
12620 echo "${ECHO_T}$hard_links" >&6; }
12621 if test "$hard_links" = no; then
12622 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12623 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12630 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12631 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12633 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12636 # If we're using GNU nm, then we don't want the "-C" option.
12637 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12638 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12639 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'
12641 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'
12645 export_symbols_cmds_CXX="$ltdll_cmds"
12648 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'
12650 linux* | k*bsd*-gnu)
12651 link_all_deplibs_CXX=no
12654 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12658 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12659 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12660 test "$ld_shlibs_CXX" = no && can_build_shared=no
12663 # Do we need to explicitly link libc?
12665 case "x$archive_cmds_need_lc_CXX" in
12667 # Assume -lc should be added
12668 archive_cmds_need_lc_CXX=yes
12670 if test "$enable_shared" = yes && test "$GCC" = yes; then
12671 case $archive_cmds_CXX in
12673 # FIXME: we may have to deal with multi-command sequences.
12676 # Test whether the compiler implicitly links with -lc since on some
12677 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12678 # to ld, don't add -lc before -lgcc.
12679 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12680 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12682 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12685 (eval $ac_compile) 2>&5
12687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688 (exit $ac_status); } 2>conftest.err; then
12691 libobjs=conftest.$ac_objext
12693 wl=$lt_prog_compiler_wl_CXX
12694 pic_flag=$lt_prog_compiler_pic_CXX
12700 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12701 allow_undefined_flag_CXX=
12702 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12703 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706 (exit $ac_status); }
12708 archive_cmds_need_lc_CXX=no
12710 archive_cmds_need_lc_CXX=yes
12712 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12714 cat conftest.err 1>&5
12717 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12718 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12725 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12726 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12727 library_names_spec=
12728 libname_spec='lib$name'
12732 postuninstall_cmds=
12736 shlibpath_overrides_runpath=unknown
12738 dynamic_linker="$host_os ld.so"
12739 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12741 need_lib_prefix=unknown
12742 hardcode_into_libs=no
12744 # when you set need_version to no, make sure it does not cause -set_version
12745 # flags to be left without arguments
12746 need_version=unknown
12751 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12752 shlibpath_var=LIBPATH
12754 # AIX 3 has no versioning support, so we append a major version to the name.
12755 soname_spec='${libname}${release}${shared_ext}$major'
12762 hardcode_into_libs=yes
12763 if test "$host_cpu" = ia64; then
12764 # AIX 5 supports IA64
12765 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12766 shlibpath_var=LD_LIBRARY_PATH
12768 # With GCC up to 2.95.x, collect2 would create an import file
12769 # for dependence libraries. The import file would start with
12770 # the line `#! .'. This would cause the generated library to
12771 # depend on `.', always an invalid library. This was fixed in
12772 # development snapshots of GCC prior to 3.0.
12774 aix4 | aix4.[01] | aix4.[01].*)
12775 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12777 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12780 can_build_shared=no
12784 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12785 # soname into executable. Probably we can add versioning support to
12786 # collect2, so additional links can be useful in future.
12787 if test "$aix_use_runtimelinking" = yes; then
12788 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12789 # instead of lib<name>.a to let people know that these are not
12790 # typical AIX shared libraries.
12791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12793 # We preserve .a as extension for shared libraries through AIX4.2
12794 # and later when we are not doing run time linking.
12795 library_names_spec='${libname}${release}.a $libname.a'
12796 soname_spec='${libname}${release}${shared_ext}$major'
12798 shlibpath_var=LIBPATH
12803 library_names_spec='$libname.ixlibrary $libname.a'
12804 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12805 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'
12809 library_names_spec='${libname}${shared_ext}'
12810 dynamic_linker="$host_os ld.so"
12811 shlibpath_var=LIBRARY_PATH
12817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12818 soname_spec='${libname}${release}${shared_ext}$major'
12819 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12820 shlibpath_var=LD_LIBRARY_PATH
12821 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12822 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12823 # the default ld.so.conf also contains /usr/contrib/lib and
12824 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12825 # libtool to hard-code these into programs
12828 cygwin* | mingw* | pw32*)
12829 version_type=windows
12834 case $GCC,$host_os in
12835 yes,cygwin* | yes,mingw* | yes,pw32*)
12836 library_names_spec='$libname.dll.a'
12837 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12838 postinstall_cmds='base_file=`basename \${file}`~
12839 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12840 dldir=$destdir/`dirname \$dlpath`~
12841 test -d \$dldir || mkdir -p \$dldir~
12842 $install_prog $dir/$dlname \$dldir/$dlname~
12843 chmod a+x \$dldir/$dlname'
12844 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12845 dlpath=$dir/\$dldll~
12847 shlibpath_overrides_runpath=yes
12851 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12852 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12853 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12856 # MinGW DLLs use traditional 'lib' prefix
12857 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12858 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12859 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12860 # It is most probably a Windows format PATH printed by
12861 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12862 # path with ; separators, and with drive letters. We can handle the
12863 # drive letters (cygwin fileutils understands them), so leave them,
12864 # especially as we might pass files found there to a mingw objdump,
12865 # which wouldn't understand a cygwinified path. Ahh.
12866 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12868 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12872 # pw32 DLLs use 'pw' prefix rather than 'lib'
12873 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12879 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12882 dynamic_linker='Win32 ld.exe'
12883 # FIXME: first we should search . and the directory the executable is in
12887 darwin* | rhapsody*)
12888 dynamic_linker="$host_os dyld"
12889 version_type=darwin
12892 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12893 soname_spec='${libname}${release}${major}$shared_ext'
12894 shlibpath_overrides_runpath=yes
12895 shlibpath_var=DYLD_LIBRARY_PATH
12896 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12898 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12906 soname_spec='${libname}${release}${shared_ext}$major'
12907 shlibpath_var=LD_LIBRARY_PATH
12914 freebsd* | dragonfly*)
12915 # DragonFly does not have aout. When/if they implement a new
12916 # versioning mechanism, adjust this.
12917 if test -x /usr/bin/objformat; then
12918 objformat=`/usr/bin/objformat`
12921 freebsd[123]*) objformat=aout ;;
12922 *) objformat=elf ;;
12925 version_type=freebsd-$objformat
12926 case $version_type in
12928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12933 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12937 shlibpath_var=LD_LIBRARY_PATH
12940 shlibpath_overrides_runpath=yes
12942 freebsd3.[01]* | freebsdelf3.[01]*)
12943 shlibpath_overrides_runpath=yes
12944 hardcode_into_libs=yes
12946 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12947 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12948 shlibpath_overrides_runpath=no
12949 hardcode_into_libs=yes
12951 *) # from 4.6 on, and DragonFly
12952 shlibpath_overrides_runpath=yes
12953 hardcode_into_libs=yes
12962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12963 soname_spec='${libname}${release}${shared_ext}$major'
12964 shlibpath_var=LD_LIBRARY_PATH
12965 hardcode_into_libs=yes
12968 hpux9* | hpux10* | hpux11*)
12969 # Give a soname corresponding to the major version so that dld.sl refuses to
12970 # link against other versions.
12977 hardcode_into_libs=yes
12978 dynamic_linker="$host_os dld.so"
12979 shlibpath_var=LD_LIBRARY_PATH
12980 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12982 soname_spec='${libname}${release}${shared_ext}$major'
12983 if test "X$HPUX_IA64_MODE" = X32; then
12984 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12986 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12988 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12992 hardcode_into_libs=yes
12993 dynamic_linker="$host_os dld.sl"
12994 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12995 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12997 soname_spec='${libname}${release}${shared_ext}$major'
12998 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12999 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13003 dynamic_linker="$host_os dld.sl"
13004 shlibpath_var=SHLIB_PATH
13005 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13007 soname_spec='${libname}${release}${shared_ext}$major'
13010 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13011 postinstall_cmds='chmod 555 $lib'
13018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13019 soname_spec='${libname}${release}${shared_ext}$major'
13020 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13021 shlibpath_var=LD_LIBRARY_PATH
13022 shlibpath_overrides_runpath=no
13023 hardcode_into_libs=yes
13026 irix5* | irix6* | nonstopux*)
13028 nonstopux*) version_type=nonstopux ;;
13030 if test "$lt_cv_prog_gnu_ld" = yes; then
13038 soname_spec='${libname}${release}${shared_ext}$major'
13039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13041 irix5* | nonstopux*)
13042 libsuff= shlibsuff=
13045 case $LD in # libtool.m4 will add one of these switches to LD
13046 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13047 libsuff= shlibsuff= libmagic=32-bit;;
13048 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13049 libsuff=32 shlibsuff=N32 libmagic=N32;;
13050 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13051 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13052 *) libsuff= shlibsuff= libmagic=never-match;;
13056 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13057 shlibpath_overrides_runpath=no
13058 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13059 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13060 hardcode_into_libs=yes
13063 # No shared lib support for Linux oldld, aout, or coff.
13064 linux*oldld* | linux*aout* | linux*coff*)
13068 # This must be Linux ELF.
13069 linux* | k*bsd*-gnu)
13073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13074 soname_spec='${libname}${release}${shared_ext}$major'
13075 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13076 shlibpath_var=LD_LIBRARY_PATH
13077 shlibpath_overrides_runpath=no
13078 # This implies no fast_install, which is unacceptable.
13079 # Some rework will be needed to allow for fast_install
13080 # before this can be enabled.
13081 hardcode_into_libs=yes
13083 # Append ld.so.conf contents to the search path
13084 if test -f /etc/ld.so.conf; then
13085 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' ' '`
13086 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13089 # We used to test for /lib/ld.so.1 and disable shared libraries on
13090 # powerpc, because MkLinux only supported shared libraries with the
13091 # GNU dynamic linker. Since this was broken with cross compilers,
13092 # most powerpc-linux boxes support dynamic linking these days and
13093 # people can always --disable-shared, the test was removed, and we
13094 # assume the GNU/Linux dynamic linker is in use.
13095 dynamic_linker='GNU/Linux ld.so'
13102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13103 soname_spec='${libname}${release}${shared_ext}$major'
13104 shlibpath_var=LD_LIBRARY_PATH
13105 shlibpath_overrides_runpath=no
13106 hardcode_into_libs=yes
13107 dynamic_linker='NetBSD ld.elf_so'
13114 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13116 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13117 dynamic_linker='NetBSD (a.out) ld.so'
13119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13120 soname_spec='${libname}${release}${shared_ext}$major'
13121 dynamic_linker='NetBSD ld.elf_so'
13123 shlibpath_var=LD_LIBRARY_PATH
13124 shlibpath_overrides_runpath=yes
13125 hardcode_into_libs=yes
13130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13131 shlibpath_var=LD_LIBRARY_PATH
13132 shlibpath_overrides_runpath=yes
13139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13140 soname_spec='${libname}${release}${shared_ext}$major'
13141 shlibpath_var=LD_LIBRARY_PATH
13142 shlibpath_overrides_runpath=yes
13147 sys_lib_dlsearch_path_spec="/usr/lib"
13149 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13151 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13152 *) need_version=no ;;
13154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13155 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13156 shlibpath_var=LD_LIBRARY_PATH
13157 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13159 openbsd2.[89] | openbsd2.[89].*)
13160 shlibpath_overrides_runpath=no
13163 shlibpath_overrides_runpath=yes
13167 shlibpath_overrides_runpath=yes
13172 libname_spec='$name'
13175 library_names_spec='$libname${shared_ext} $libname.a'
13176 dynamic_linker='OS/2 ld.exe'
13177 shlibpath_var=LIBPATH
13180 osf3* | osf4* | osf5*)
13184 soname_spec='${libname}${release}${shared_ext}$major'
13185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13186 shlibpath_var=LD_LIBRARY_PATH
13187 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13188 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13200 soname_spec='${libname}${release}${shared_ext}$major'
13201 shlibpath_var=LD_LIBRARY_PATH
13202 shlibpath_overrides_runpath=yes
13203 hardcode_into_libs=yes
13204 # ldd complains unless libraries are executable
13205 postinstall_cmds='chmod +x $lib'
13210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13211 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13212 shlibpath_var=LD_LIBRARY_PATH
13213 shlibpath_overrides_runpath=yes
13214 if test "$with_gnu_ld" = yes; then
13222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13223 soname_spec='${libname}${release}${shared_ext}$major'
13224 shlibpath_var=LD_LIBRARY_PATH
13225 case $host_vendor in
13227 shlibpath_overrides_runpath=no
13229 export_dynamic_flag_spec='${wl}-Blargedynsym'
13230 runpath_var=LD_RUN_PATH
13238 shlibpath_overrides_runpath=no
13239 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13245 if test -d /usr/nec ;then
13247 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13248 soname_spec='$libname${shared_ext}.$major'
13249 shlibpath_var=LD_LIBRARY_PATH
13253 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13254 version_type=freebsd-elf
13257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13258 soname_spec='${libname}${release}${shared_ext}$major'
13259 shlibpath_var=LD_LIBRARY_PATH
13260 hardcode_into_libs=yes
13261 if test "$with_gnu_ld" = yes; then
13262 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13263 shlibpath_overrides_runpath=no
13265 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13266 shlibpath_overrides_runpath=yes
13269 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13273 sys_lib_dlsearch_path_spec='/usr/lib'
13278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13279 soname_spec='${libname}${release}${shared_ext}$major'
13280 shlibpath_var=LD_LIBRARY_PATH
13287 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13288 echo "${ECHO_T}$dynamic_linker" >&6; }
13289 test "$dynamic_linker" = no && can_build_shared=no
13291 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13292 if test "$GCC" = yes; then
13293 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13296 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13297 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13298 hardcode_action_CXX=
13299 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13300 test -n "$runpath_var_CXX" || \
13301 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13303 # We can hardcode non-existant directories.
13304 if test "$hardcode_direct_CXX" != no &&
13305 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13306 # have to relink, otherwise we might link with an installed library
13307 # when we should be linking with a yet-to-be-installed one
13308 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13309 test "$hardcode_minus_L_CXX" != no; then
13310 # Linking always hardcodes the temporary library directory.
13311 hardcode_action_CXX=relink
13313 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13314 hardcode_action_CXX=immediate
13317 # We cannot hardcode anything, or else we can only hardcode existing
13319 hardcode_action_CXX=unsupported
13321 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13322 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13324 if test "$hardcode_action_CXX" = relink; then
13325 # Fast installation is not supported
13326 enable_fast_install=no
13327 elif test "$shlibpath_overrides_runpath" = yes ||
13328 test "$enable_shared" = no; then
13329 # Fast installation is not necessary
13330 enable_fast_install=needless
13334 # The else clause should only fire when bootstrapping the
13335 # libtool distribution, otherwise you forgot to ship ltmain.sh
13336 # with your package, and you will get complaints that there are
13337 # no rules to generate ltmain.sh.
13338 if test -f "$ltmain"; then
13339 # See if we are running on zsh, and set the options which allow our commands through
13340 # without removal of \ escapes.
13341 if test -n "${ZSH_VERSION+set}" ; then
13342 setopt NO_GLOB_SUBST
13344 # Now quote all the things that may contain metacharacters while being
13345 # careful not to overquote the AC_SUBSTed values. We take copies of the
13346 # variables and quote the copies for generation of the libtool script.
13347 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13349 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13350 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13351 deplibs_check_method reload_flag reload_cmds need_locks \
13352 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13353 lt_cv_sys_global_symbol_to_c_name_address \
13354 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13355 old_postinstall_cmds old_postuninstall_cmds \
13359 lt_prog_compiler_wl_CXX \
13360 lt_prog_compiler_pic_CXX \
13361 lt_prog_compiler_static_CXX \
13362 lt_prog_compiler_no_builtin_flag_CXX \
13363 export_dynamic_flag_spec_CXX \
13364 thread_safe_flag_spec_CXX \
13365 whole_archive_flag_spec_CXX \
13366 enable_shared_with_static_runtimes_CXX \
13367 old_archive_cmds_CXX \
13368 old_archive_from_new_cmds_CXX \
13369 predep_objects_CXX \
13370 postdep_objects_CXX \
13373 compiler_lib_search_path_CXX \
13375 archive_expsym_cmds_CXX \
13376 postinstall_cmds_CXX \
13377 postuninstall_cmds_CXX \
13378 old_archive_from_expsyms_cmds_CXX \
13379 allow_undefined_flag_CXX \
13380 no_undefined_flag_CXX \
13381 export_symbols_cmds_CXX \
13382 hardcode_libdir_flag_spec_CXX \
13383 hardcode_libdir_flag_spec_ld_CXX \
13384 hardcode_libdir_separator_CXX \
13385 hardcode_automatic_CXX \
13387 module_expsym_cmds_CXX \
13388 lt_cv_prog_compiler_c_o_CXX \
13389 fix_srcfile_path_CXX \
13390 exclude_expsyms_CXX \
13391 include_expsyms_CXX; do
13394 old_archive_cmds_CXX | \
13395 old_archive_from_new_cmds_CXX | \
13396 archive_cmds_CXX | \
13397 archive_expsym_cmds_CXX | \
13398 module_cmds_CXX | \
13399 module_expsym_cmds_CXX | \
13400 old_archive_from_expsyms_cmds_CXX | \
13401 export_symbols_cmds_CXX | \
13402 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13403 postinstall_cmds | postuninstall_cmds | \
13404 old_postinstall_cmds | old_postuninstall_cmds | \
13405 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13406 # Double-quote double-evaled strings.
13407 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13410 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13416 *'\$0 --fallback-echo"')
13417 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13423 cat <<__EOF__ >> "$cfgfile"
13424 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13426 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13428 # Shell to use when invoking shell scripts.
13431 # Whether or not to build shared libraries.
13432 build_libtool_libs=$enable_shared
13434 # Whether or not to build static libraries.
13435 build_old_libs=$enable_static
13437 # Whether or not to add -lc for building shared libraries.
13438 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13440 # Whether or not to disallow shared libs when runtime libs are static
13441 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13443 # Whether or not to optimize for fast installation.
13444 fast_install=$enable_fast_install
13447 host_alias=$host_alias
13451 # The build system.
13452 build_alias=$build_alias
13456 # An echo program that does not interpret backslashes.
13461 AR_FLAGS=$lt_AR_FLAGS
13466 # LTCC compiler flags.
13467 LTCFLAGS=$lt_LTCFLAGS
13469 # A language-specific compiler.
13470 CC=$lt_compiler_CXX
13472 # Is the compiler the GNU C compiler?
13478 # The linker used to build libraries.
13481 # Whether we need hard or soft links.
13484 # A BSD-compatible nm program.
13487 # A symbol stripping program
13490 # Used to examine libraries when file_magic_cmd begins "file"
13491 MAGIC_CMD=$MAGIC_CMD
13493 # Used on cygwin: DLL creation program.
13496 # Used on cygwin: object dumper.
13499 # Used on cygwin: assembler.
13502 # The name of the directory that contains temporary libtool files.
13505 # How to create reloadable object files.
13506 reload_flag=$lt_reload_flag
13507 reload_cmds=$lt_reload_cmds
13509 # How to pass a linker flag through the compiler.
13510 wl=$lt_lt_prog_compiler_wl_CXX
13512 # Object file suffix (normally "o").
13513 objext="$ac_objext"
13515 # Old archive suffix (normally "a").
13518 # Shared library suffix (normally ".so").
13519 shrext_cmds='$shrext_cmds'
13521 # Executable file suffix (normally "").
13524 # Additional compiler flags for building library objects.
13525 pic_flag=$lt_lt_prog_compiler_pic_CXX
13528 # What is the maximum length of a command?
13529 max_cmd_len=$lt_cv_sys_max_cmd_len
13531 # Does compiler simultaneously support -c and -o options?
13532 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13534 # Must we lock files when doing compilation?
13535 need_locks=$lt_need_locks
13537 # Do we need the lib prefix for modules?
13538 need_lib_prefix=$need_lib_prefix
13540 # Do we need a version for libraries?
13541 need_version=$need_version
13543 # Whether dlopen is supported.
13544 dlopen_support=$enable_dlopen
13546 # Whether dlopen of programs is supported.
13547 dlopen_self=$enable_dlopen_self
13549 # Whether dlopen of statically linked programs is supported.
13550 dlopen_self_static=$enable_dlopen_self_static
13552 # Compiler flag to prevent dynamic linking.
13553 link_static_flag=$lt_lt_prog_compiler_static_CXX
13555 # Compiler flag to turn off builtin functions.
13556 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13558 # Compiler flag to allow reflexive dlopens.
13559 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13561 # Compiler flag to generate shared objects directly from archives.
13562 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13564 # Compiler flag to generate thread-safe objects.
13565 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13567 # Library versioning type.
13568 version_type=$version_type
13570 # Format of library name prefix.
13571 libname_spec=$lt_libname_spec
13573 # List of archive names. First name is the real one, the rest are links.
13574 # The last name is the one that the linker finds with -lNAME.
13575 library_names_spec=$lt_library_names_spec
13577 # The coded name of the library, if different from the real name.
13578 soname_spec=$lt_soname_spec
13580 # Commands used to build and install an old-style archive.
13582 old_archive_cmds=$lt_old_archive_cmds_CXX
13583 old_postinstall_cmds=$lt_old_postinstall_cmds
13584 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13586 # Create an old-style archive from a shared archive.
13587 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13589 # Create a temporary old-style archive to link instead of a shared archive.
13590 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13592 # Commands used to build and install a shared archive.
13593 archive_cmds=$lt_archive_cmds_CXX
13594 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13595 postinstall_cmds=$lt_postinstall_cmds
13596 postuninstall_cmds=$lt_postuninstall_cmds
13598 # Commands used to build a loadable module (assumed same as above if empty)
13599 module_cmds=$lt_module_cmds_CXX
13600 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13602 # Commands to strip libraries.
13603 old_striplib=$lt_old_striplib
13604 striplib=$lt_striplib
13606 # Dependencies to place before the objects being linked to create a
13608 predep_objects=$lt_predep_objects_CXX
13610 # Dependencies to place after the objects being linked to create a
13612 postdep_objects=$lt_postdep_objects_CXX
13614 # Dependencies to place before the objects being linked to create a
13616 predeps=$lt_predeps_CXX
13618 # Dependencies to place after the objects being linked to create a
13620 postdeps=$lt_postdeps_CXX
13622 # The library search path used internally by the compiler when linking
13623 # a shared library.
13624 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13626 # Method to check whether dependent libraries are shared objects.
13627 deplibs_check_method=$lt_deplibs_check_method
13629 # Command to use when deplibs_check_method == file_magic.
13630 file_magic_cmd=$lt_file_magic_cmd
13632 # Flag that allows shared libraries with undefined symbols to be built.
13633 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13635 # Flag that forces no undefined symbols.
13636 no_undefined_flag=$lt_no_undefined_flag_CXX
13638 # Commands used to finish a libtool library installation in a directory.
13639 finish_cmds=$lt_finish_cmds
13641 # Same as above, but a single script fragment to be evaled but not shown.
13642 finish_eval=$lt_finish_eval
13644 # Take the output of nm and produce a listing of raw symbols and C names.
13645 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13647 # Transform the output of nm in a proper C declaration
13648 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13650 # Transform the output of nm in a C name address pair
13651 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13653 # This is the shared library runtime path variable.
13654 runpath_var=$runpath_var
13656 # This is the shared library path variable.
13657 shlibpath_var=$shlibpath_var
13659 # Is shlibpath searched before the hard-coded library search path?
13660 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13662 # How to hardcode a shared library path into an executable.
13663 hardcode_action=$hardcode_action_CXX
13665 # Whether we should hardcode library paths into libraries.
13666 hardcode_into_libs=$hardcode_into_libs
13668 # Flag to hardcode \$libdir into a binary during linking.
13669 # This must work even if \$libdir does not exist.
13670 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13672 # If ld is used when linking, flag to hardcode \$libdir into
13673 # a binary during linking. This must work even if \$libdir does
13675 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13677 # Whether we need a single -rpath flag with a separated argument.
13678 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13680 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13681 # resulting binary.
13682 hardcode_direct=$hardcode_direct_CXX
13684 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13685 # resulting binary.
13686 hardcode_minus_L=$hardcode_minus_L_CXX
13688 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13689 # the resulting binary.
13690 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13692 # Set to yes if building a shared library automatically hardcodes DIR into the library
13693 # and all subsequent libraries and executables linked against it.
13694 hardcode_automatic=$hardcode_automatic_CXX
13696 # Variables whose values should be saved in libtool wrapper scripts and
13697 # restored at relink time.
13698 variables_saved_for_relink="$variables_saved_for_relink"
13700 # Whether libtool must link a program against all its dependency libraries.
13701 link_all_deplibs=$link_all_deplibs_CXX
13703 # Compile-time system search path for libraries
13704 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13706 # Run-time system search path for libraries
13707 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13709 # Fix the shell variable \$srcfile for the compiler.
13710 fix_srcfile_path=$lt_fix_srcfile_path
13712 # Set to yes if exported symbols are required.
13713 always_export_symbols=$always_export_symbols_CXX
13715 # The commands to list exported symbols.
13716 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13718 # The commands to extract the exported symbol list from a shared archive.
13719 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13721 # Symbols that should not be listed in the preloaded symbols.
13722 exclude_expsyms=$lt_exclude_expsyms_CXX
13724 # Symbols that must always be exported.
13725 include_expsyms=$lt_include_expsyms_CXX
13727 # ### END LIBTOOL TAG CONFIG: $tagname
13733 # If there is no Makefile yet, we rely on a make rule to execute
13734 # `config.status --recheck' to rerun these tests and create the
13735 # libtool script then.
13736 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13737 if test -f "$ltmain_in"; then
13738 test -f Makefile && make "$ltmain"
13744 ac_cpp='$CPP $CPPFLAGS'
13745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13753 with_gnu_ldcxx=$with_gnu_ld
13754 with_gnu_ld=$lt_save_with_gnu_ld
13755 lt_cv_path_LDCXX=$lt_cv_path_LD
13756 lt_cv_path_LD=$lt_save_path_LD
13757 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13758 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13766 if test -n "$F77" && test "X$F77" != "Xno"; then
13769 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13770 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13771 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13774 archive_cmds_need_lc_F77=no
13775 allow_undefined_flag_F77=
13776 always_export_symbols_F77=no
13777 archive_expsym_cmds_F77=
13778 export_dynamic_flag_spec_F77=
13779 hardcode_direct_F77=no
13780 hardcode_libdir_flag_spec_F77=
13781 hardcode_libdir_flag_spec_ld_F77=
13782 hardcode_libdir_separator_F77=
13783 hardcode_minus_L_F77=no
13784 hardcode_automatic_F77=no
13786 module_expsym_cmds_F77=
13787 link_all_deplibs_F77=unknown
13788 old_archive_cmds_F77=$old_archive_cmds
13789 no_undefined_flag_F77=
13790 whole_archive_flag_spec_F77=
13791 enable_shared_with_static_runtimes_F77=no
13793 # Source file extension for f77 test sources.
13796 # Object file extension for compiled f77 test sources.
13800 # Code to be used in simple compile tests
13801 lt_simple_compile_test_code="\
13807 # Code to be used in simple link tests
13808 lt_simple_link_test_code="\
13813 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13815 # If no C compiler was specified, use CC.
13818 # If no C compiler flags were specified, use CFLAGS.
13819 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13821 # Allow CC to be a program name with arguments.
13825 # save warnings/boilerplate of simple test code
13826 ac_outfile=conftest.$ac_objext
13827 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13828 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13829 _lt_compiler_boilerplate=`cat conftest.err`
13832 ac_outfile=conftest.$ac_objext
13833 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13834 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13835 _lt_linker_boilerplate=`cat conftest.err`
13839 # Allow CC to be a program name with arguments.
13844 for cc_temp in $compiler""; do
13846 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13847 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13852 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13855 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13856 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13857 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13858 echo "${ECHO_T}$can_build_shared" >&6; }
13860 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13861 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13862 test "$can_build_shared" = "no" && enable_shared=no
13864 # On AIX, shared libraries and static libraries use the same namespace, and
13865 # are all built from PIC.
13868 test "$enable_shared" = yes && enable_static=no
13869 if test -n "$RANLIB"; then
13870 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13871 postinstall_cmds='$RANLIB $lib'
13875 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13876 test "$enable_shared" = yes && enable_static=no
13880 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13881 echo "${ECHO_T}$enable_shared" >&6; }
13883 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13884 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13885 # Make sure either enable_shared or enable_static is yes.
13886 test "$enable_shared" = yes || enable_static=yes
13887 { echo "$as_me:$LINENO: result: $enable_static" >&5
13888 echo "${ECHO_T}$enable_static" >&6; }
13893 lt_prog_compiler_wl_F77=
13894 lt_prog_compiler_pic_F77=
13895 lt_prog_compiler_static_F77=
13897 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13898 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13900 if test "$GCC" = yes; then
13901 lt_prog_compiler_wl_F77='-Wl,'
13902 lt_prog_compiler_static_F77='-static'
13906 # All AIX code is PIC.
13907 if test "$host_cpu" = ia64; then
13908 # AIX 5 now supports IA64 processor
13909 lt_prog_compiler_static_F77='-Bstatic'
13914 # FIXME: we need at least 68020 code to build shared libraries, but
13915 # adding the `-m68020' flag to GCC prevents building anything better,
13917 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13920 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13921 # PIC is the default for these OSes.
13924 mingw* | cygwin* | pw32* | os2*)
13925 # This hack is so that the source file can tell whether it is being
13926 # built for inclusion in a dll (and should export symbols for example).
13927 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13928 # (--disable-auto-import) libraries
13929 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13932 darwin* | rhapsody*)
13933 # PIC is the default on this platform
13934 # Common symbols not allowed in MH_DYLIB files
13935 lt_prog_compiler_pic_F77='-fno-common'
13939 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13940 # Instead, we relocate shared libraries at runtime.
13944 # Just because we use GCC doesn't mean we suddenly get shared libraries
13945 # on systems that don't support them.
13946 lt_prog_compiler_can_build_shared_F77=no
13951 if test -d /usr/nec; then
13952 lt_prog_compiler_pic_F77=-Kconform_pic
13957 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13958 # not for PA HP-UX.
13964 lt_prog_compiler_pic_F77='-fPIC'
13970 lt_prog_compiler_pic_F77='-fPIC'
13974 # PORTME Check for flag to pass linker flags through the system compiler.
13977 lt_prog_compiler_wl_F77='-Wl,'
13978 if test "$host_cpu" = ia64; then
13979 # AIX 5 now supports IA64 processor
13980 lt_prog_compiler_static_F77='-Bstatic'
13982 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13986 # PIC is the default on this platform
13987 # Common symbols not allowed in MH_DYLIB files
13988 case $cc_basename in
13990 lt_prog_compiler_pic_F77='-qnocommon'
13991 lt_prog_compiler_wl_F77='-Wl,'
13996 mingw* | cygwin* | pw32* | os2*)
13997 # This hack is so that the source file can tell whether it is being
13998 # built for inclusion in a dll (and should export symbols for example).
13999 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14002 hpux9* | hpux10* | hpux11*)
14003 lt_prog_compiler_wl_F77='-Wl,'
14004 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14005 # not for PA HP-UX.
14011 lt_prog_compiler_pic_F77='+Z'
14014 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14015 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14018 irix5* | irix6* | nonstopux*)
14019 lt_prog_compiler_wl_F77='-Wl,'
14020 # PIC (with -KPIC) is the default.
14021 lt_prog_compiler_static_F77='-non_shared'
14025 lt_prog_compiler_pic_F77='-KPIC'
14026 lt_prog_compiler_static_F77='-Bstatic'
14029 linux* | k*bsd*-gnu)
14030 case $cc_basename in
14032 lt_prog_compiler_wl_F77='-Wl,'
14033 lt_prog_compiler_pic_F77='-KPIC'
14034 lt_prog_compiler_static_F77='-static'
14036 pgcc* | pgf77* | pgf90* | pgf95*)
14037 # Portland Group compilers (*not* the Pentium gcc compiler,
14038 # which looks to be a dead project)
14039 lt_prog_compiler_wl_F77='-Wl,'
14040 lt_prog_compiler_pic_F77='-fpic'
14041 lt_prog_compiler_static_F77='-Bstatic'
14044 lt_prog_compiler_wl_F77='-Wl,'
14045 # All Alpha code is PIC.
14046 lt_prog_compiler_static_F77='-non_shared'
14049 case `$CC -V 2>&1 | sed 5q` in
14052 lt_prog_compiler_pic_F77='-KPIC'
14053 lt_prog_compiler_static_F77='-Bstatic'
14054 lt_prog_compiler_wl_F77='-Wl,'
14057 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14058 lt_prog_compiler_pic_F77='-KPIC'
14059 lt_prog_compiler_static_F77='-Bstatic'
14060 lt_prog_compiler_wl_F77=''
14067 osf3* | osf4* | osf5*)
14068 lt_prog_compiler_wl_F77='-Wl,'
14069 # All OSF/1 code is PIC.
14070 lt_prog_compiler_static_F77='-non_shared'
14074 lt_prog_compiler_static_F77='-non_shared'
14078 lt_prog_compiler_pic_F77='-KPIC'
14079 lt_prog_compiler_static_F77='-Bstatic'
14080 case $cc_basename in
14081 f77* | f90* | f95*)
14082 lt_prog_compiler_wl_F77='-Qoption ld ';;
14084 lt_prog_compiler_wl_F77='-Wl,';;
14089 lt_prog_compiler_wl_F77='-Qoption ld '
14090 lt_prog_compiler_pic_F77='-PIC'
14091 lt_prog_compiler_static_F77='-Bstatic'
14094 sysv4 | sysv4.2uw2* | sysv4.3*)
14095 lt_prog_compiler_wl_F77='-Wl,'
14096 lt_prog_compiler_pic_F77='-KPIC'
14097 lt_prog_compiler_static_F77='-Bstatic'
14101 if test -d /usr/nec ;then
14102 lt_prog_compiler_pic_F77='-Kconform_pic'
14103 lt_prog_compiler_static_F77='-Bstatic'
14107 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14108 lt_prog_compiler_wl_F77='-Wl,'
14109 lt_prog_compiler_pic_F77='-KPIC'
14110 lt_prog_compiler_static_F77='-Bstatic'
14114 lt_prog_compiler_wl_F77='-Wl,'
14115 lt_prog_compiler_can_build_shared_F77=no
14119 lt_prog_compiler_pic_F77='-pic'
14120 lt_prog_compiler_static_F77='-Bstatic'
14124 lt_prog_compiler_can_build_shared_F77=no
14129 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14130 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14133 # Check to make sure the PIC flag actually works.
14135 if test -n "$lt_prog_compiler_pic_F77"; then
14137 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14138 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14139 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14140 echo $ECHO_N "(cached) $ECHO_C" >&6
14142 lt_prog_compiler_pic_works_F77=no
14143 ac_outfile=conftest.$ac_objext
14144 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14145 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14146 # Insert the option either (1) after the last *FLAGS variable, or
14147 # (2) before a word containing "conftest.", or (3) at the end.
14148 # Note that $ac_compile itself does not contain backslashes and begins
14149 # with a dollar sign (not a hyphen), so the echo should work correctly.
14150 # The option is referenced via a variable to avoid confusing sed.
14151 lt_compile=`echo "$ac_compile" | $SED \
14152 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14153 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14154 -e 's:$: $lt_compiler_flag:'`
14155 (eval echo "\"\$as_me:14155: $lt_compile\"" >&5)
14156 (eval "$lt_compile" 2>conftest.err)
14158 cat conftest.err >&5
14159 echo "$as_me:14159: \$? = $ac_status" >&5
14160 if (exit $ac_status) && test -s "$ac_outfile"; then
14161 # The compiler can only warn and ignore the option if not recognized
14162 # So say no if there are warnings other than the usual output.
14163 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14164 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14165 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14166 lt_prog_compiler_pic_works_F77=yes
14172 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14173 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14175 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14176 case $lt_prog_compiler_pic_F77 in
14178 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14181 lt_prog_compiler_pic_F77=
14182 lt_prog_compiler_can_build_shared_F77=no
14187 # For platforms which do not support PIC, -DPIC is meaningless:
14189 lt_prog_compiler_pic_F77=
14192 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14197 # Check to make sure the static flag actually works.
14199 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14200 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14201 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14202 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14203 echo $ECHO_N "(cached) $ECHO_C" >&6
14205 lt_prog_compiler_static_works_F77=no
14206 save_LDFLAGS="$LDFLAGS"
14207 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14208 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14209 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14210 # The linker can only warn and ignore the option if not recognized
14211 # So say no if there are warnings
14212 if test -s conftest.err; then
14213 # Append any errors to the config.log.
14214 cat conftest.err 1>&5
14215 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14216 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14217 if diff conftest.exp conftest.er2 >/dev/null; then
14218 lt_prog_compiler_static_works_F77=yes
14221 lt_prog_compiler_static_works_F77=yes
14225 LDFLAGS="$save_LDFLAGS"
14228 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14229 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14231 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14234 lt_prog_compiler_static_F77=
14238 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14239 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14240 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14241 echo $ECHO_N "(cached) $ECHO_C" >&6
14243 lt_cv_prog_compiler_c_o_F77=no
14244 $rm -r conftest 2>/dev/null
14248 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14250 lt_compiler_flag="-o out/conftest2.$ac_objext"
14251 # Insert the option either (1) after the last *FLAGS variable, or
14252 # (2) before a word containing "conftest.", or (3) at the end.
14253 # Note that $ac_compile itself does not contain backslashes and begins
14254 # with a dollar sign (not a hyphen), so the echo should work correctly.
14255 lt_compile=`echo "$ac_compile" | $SED \
14256 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14257 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14258 -e 's:$: $lt_compiler_flag:'`
14259 (eval echo "\"\$as_me:14259: $lt_compile\"" >&5)
14260 (eval "$lt_compile" 2>out/conftest.err)
14262 cat out/conftest.err >&5
14263 echo "$as_me:14263: \$? = $ac_status" >&5
14264 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14266 # The compiler can only warn and ignore the option if not recognized
14267 # So say no if there are warnings
14268 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14269 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14270 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14271 lt_cv_prog_compiler_c_o_F77=yes
14276 # SGI C++ compiler will create directory out/ii_files/ for
14277 # template instantiation
14278 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14279 $rm out/* && rmdir out
14285 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14286 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14289 hard_links="nottested"
14290 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14291 # do not overwrite the value of need_locks provided by the user
14292 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14293 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14296 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14298 ln conftest.a conftest.b 2>&5 || hard_links=no
14299 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14300 { echo "$as_me:$LINENO: result: $hard_links" >&5
14301 echo "${ECHO_T}$hard_links" >&6; }
14302 if test "$hard_links" = no; then
14303 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14304 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14311 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14312 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14315 allow_undefined_flag_F77=
14316 enable_shared_with_static_runtimes_F77=no
14318 archive_expsym_cmds_F77=
14319 old_archive_From_new_cmds_F77=
14320 old_archive_from_expsyms_cmds_F77=
14321 export_dynamic_flag_spec_F77=
14322 whole_archive_flag_spec_F77=
14323 thread_safe_flag_spec_F77=
14324 hardcode_libdir_flag_spec_F77=
14325 hardcode_libdir_flag_spec_ld_F77=
14326 hardcode_libdir_separator_F77=
14327 hardcode_direct_F77=no
14328 hardcode_minus_L_F77=no
14329 hardcode_shlibpath_var_F77=unsupported
14330 link_all_deplibs_F77=unknown
14331 hardcode_automatic_F77=no
14333 module_expsym_cmds_F77=
14334 always_export_symbols_F77=no
14335 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14336 # include_expsyms should be a list of space-separated symbols to be *always*
14337 # included in the symbol list
14338 include_expsyms_F77=
14339 # exclude_expsyms can be an extended regexp of symbols to exclude
14340 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14341 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14342 # as well as any symbol that contains `d'.
14343 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14344 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14345 # platforms (ab)use it in PIC code, but their linkers get confused if
14346 # the symbol is explicitly referenced. Since portable code cannot
14347 # rely on this symbol name, it's probably fine to never include it in
14348 # preloaded symbol tables.
14349 extract_expsyms_cmds=
14350 # Just being paranoid about ensuring that cc_basename is set.
14351 for cc_temp in $compiler""; do
14353 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14354 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14359 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14362 cygwin* | mingw* | pw32*)
14363 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14364 # When not using gcc, we currently assume that we are using
14365 # Microsoft Visual C++.
14366 if test "$GCC" != yes; then
14371 # we just hope/assume this is gcc and not c89 (= MSVC++)
14380 if test "$with_gnu_ld" = yes; then
14381 # If archive_cmds runs LD, not CC, wlarc should be empty
14384 # Set some defaults for GNU ld with shared library support. These
14385 # are reset later if shared libraries are not supported. Putting them
14386 # here allows them to be overridden if necessary.
14387 runpath_var=LD_RUN_PATH
14388 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14389 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14390 # ancient GNU ld didn't support --whole-archive et. al.
14391 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14392 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14394 whole_archive_flag_spec_F77=
14396 supports_anon_versioning=no
14397 case `$LD -v 2>/dev/null` in
14398 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14399 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14400 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14401 *\ 2.11.*) ;; # other 2.11 versions
14402 *) supports_anon_versioning=yes ;;
14405 # See if GNU ld supports shared libraries.
14407 aix3* | aix4* | aix5*)
14408 # On AIX/PPC, the GNU linker is very broken
14409 if test "$host_cpu" != ia64; then
14413 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14414 *** to be unable to reliably create shared libraries on AIX.
14415 *** Therefore, libtool is disabling shared libraries support. If you
14416 *** really care for shared libraries, you may want to modify your PATH
14417 *** so that a non-GNU linker is found, and then restart.
14424 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)'
14425 hardcode_libdir_flag_spec_F77='-L$libdir'
14426 hardcode_minus_L_F77=yes
14428 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14429 # that the semantics of dynamic libraries on AmigaOS, at least up
14430 # to version 4, is to share data among multiple programs linked
14431 # with the same dynamic library. Since this doesn't match the
14432 # behavior of shared libraries on other platforms, we can't use
14438 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14439 allow_undefined_flag_F77=unsupported
14440 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14441 # support --undefined. This deserves some investigation. FIXME
14442 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14448 cygwin* | mingw* | pw32*)
14449 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14450 # as there is no search path for DLLs.
14451 hardcode_libdir_flag_spec_F77='-L$libdir'
14452 allow_undefined_flag_F77=unsupported
14453 always_export_symbols_F77=no
14454 enable_shared_with_static_runtimes_F77=yes
14455 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14457 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14458 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14459 # If the export-symbols file already is a .def file (1st line
14460 # is EXPORTS), use it as is; otherwise, prepend...
14461 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14462 cp $export_symbols $output_objdir/$soname.def;
14464 echo EXPORTS > $output_objdir/$soname.def;
14465 cat $export_symbols >> $output_objdir/$soname.def;
14467 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14474 hardcode_direct_F77=no
14475 hardcode_shlibpath_var_F77=no
14476 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14477 export_dynamic_flag_spec_F77='${wl}-E'
14478 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14479 # Instead, shared libraries are loaded at an image base (0x10000000 by
14480 # default) and relocated if they conflict, which is a slow very memory
14481 # consuming and fragmenting process. To avoid this, we pick a random,
14482 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14483 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14484 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'
14485 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'
14488 gnu* | linux* | k*bsd*-gnu)
14489 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14491 case $cc_basename,$host_cpu in
14492 pgcc*) # Portland Group C compiler
14493 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'
14494 tmp_addflag=' $pic_flag'
14496 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14497 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'
14498 tmp_addflag=' $pic_flag -Mnomain' ;;
14499 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14500 tmp_addflag=' -i_dynamic' ;;
14501 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14502 tmp_addflag=' -i_dynamic -nofor_main' ;;
14503 ifc* | ifort*) # Intel Fortran compiler
14504 tmp_addflag=' -nofor_main' ;;
14506 case `$CC -V 2>&1 | sed 5q` in
14507 *Sun\ C*) # Sun C 5.9
14508 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'
14509 tmp_sharedflag='-G' ;;
14510 *Sun\ F*) # Sun Fortran 8.3
14511 tmp_sharedflag='-G' ;;
14513 tmp_sharedflag='-shared' ;;
14515 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14517 if test $supports_anon_versioning = yes; then
14518 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14519 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14520 $echo "local: *; };" >> $output_objdir/$libname.ver~
14521 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14523 link_all_deplibs_F77=no
14529 netbsd* | netbsdelf*-gnu)
14530 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14531 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14534 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14535 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14540 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14544 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14545 *** create shared libraries on Solaris systems. Therefore, libtool
14546 *** is disabling shared libraries support. We urge you to upgrade GNU
14547 *** binutils to release 2.9.1 or newer. Another option is to modify
14548 *** your PATH or compiler configuration so that the native linker is
14549 *** used, and then restart.
14552 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14553 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14554 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14560 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14561 case `$LD -v 2>&1` in
14562 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14566 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14567 *** reliably create shared libraries on SCO systems. Therefore, libtool
14568 *** is disabling shared libraries support. We urge you to upgrade GNU
14569 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14570 *** your PATH or compiler configuration so that the native linker is
14571 *** used, and then restart.
14576 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14577 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14578 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14579 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14588 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14590 hardcode_direct_F77=yes
14591 hardcode_shlibpath_var_F77=no
14595 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14596 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14597 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14604 if test "$ld_shlibs_F77" = no; then
14606 hardcode_libdir_flag_spec_F77=
14607 export_dynamic_flag_spec_F77=
14608 whole_archive_flag_spec_F77=
14611 # PORTME fill in a description of your system's linker (not GNU ld)
14614 allow_undefined_flag_F77=unsupported
14615 always_export_symbols_F77=yes
14616 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'
14617 # Note: this linker hardcodes the directories in LIBPATH if there
14618 # are no directories specified by -L.
14619 hardcode_minus_L_F77=yes
14620 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14621 # Neither direct hardcoding nor static linking is supported with a
14623 hardcode_direct_F77=unsupported
14628 if test "$host_cpu" = ia64; then
14629 # On IA64, the linker does run time linking by default, so we don't
14630 # have to do anything special.
14631 aix_use_runtimelinking=no
14632 exp_sym_flag='-Bexport'
14635 # If we're using GNU nm, then we don't want the "-C" option.
14636 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14637 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14638 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'
14640 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'
14642 aix_use_runtimelinking=no
14644 # Test if we are trying to use run time linking or normal
14645 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14646 # need to do runtime linking.
14647 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14648 for ld_flag in $LDFLAGS; do
14649 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14650 aix_use_runtimelinking=yes
14657 exp_sym_flag='-bexport'
14658 no_entry_flag='-bnoentry'
14661 # When large executables or shared objects are built, AIX ld can
14662 # have problems creating the table of contents. If linking a library
14663 # or program results in "error TOC overflow" add -mminimal-toc to
14664 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14665 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14667 archive_cmds_F77=''
14668 hardcode_direct_F77=yes
14669 hardcode_libdir_separator_F77=':'
14670 link_all_deplibs_F77=yes
14672 if test "$GCC" = yes; then
14673 case $host_os in aix4.[012]|aix4.[012].*)
14674 # We only want to do this on AIX 4.2 and lower, the check
14675 # below for broken collect2 doesn't work under 4.3+
14676 collect2name=`${CC} -print-prog-name=collect2`
14677 if test -f "$collect2name" && \
14678 strings "$collect2name" | grep resolve_lib_name >/dev/null
14680 # We have reworked collect2
14683 # We have old collect2
14684 hardcode_direct_F77=unsupported
14685 # It fails to find uninstalled libraries when the uninstalled
14686 # path is not listed in the libpath. Setting hardcode_minus_L
14687 # to unsupported forces relinking
14688 hardcode_minus_L_F77=yes
14689 hardcode_libdir_flag_spec_F77='-L$libdir'
14690 hardcode_libdir_separator_F77=
14694 shared_flag='-shared'
14695 if test "$aix_use_runtimelinking" = yes; then
14696 shared_flag="$shared_flag "'${wl}-G'
14700 if test "$host_cpu" = ia64; then
14701 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14702 # chokes on -Wl,-G. The following line is correct:
14705 if test "$aix_use_runtimelinking" = yes; then
14706 shared_flag='${wl}-G'
14708 shared_flag='${wl}-bM:SRE'
14713 # It seems that -bexpall does not export symbols beginning with
14714 # underscore (_), so it is better to generate a list of symbols to export.
14715 always_export_symbols_F77=yes
14716 if test "$aix_use_runtimelinking" = yes; then
14717 # Warning - without using the other runtime loading flags (-brtl),
14718 # -berok will link without error, but may produce a broken library.
14719 allow_undefined_flag_F77='-berok'
14720 # Determine the default libpath from the value encoded in an empty executable.
14721 cat >conftest.$ac_ext <<_ACEOF
14726 rm -f conftest.$ac_objext conftest$ac_exeext
14727 if { (ac_try="$ac_link"
14728 case "(($ac_try" in
14729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14730 *) ac_try_echo=$ac_try;;
14732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14733 (eval "$ac_link") 2>conftest.er1
14735 grep -v '^ *+' conftest.er1 >conftest.err
14737 cat conftest.err >&5
14738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739 (exit $ac_status); } && {
14740 test -z "$ac_f77_werror_flag" ||
14741 test ! -s conftest.err
14742 } && test -s conftest$ac_exeext &&
14743 $as_test_x conftest$ac_exeext; then
14745 lt_aix_libpath_sed='
14746 /Import File Strings/,/^$/ {
14752 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14753 # Check for a 64-bit object if we didn't find anything.
14754 if test -z "$aix_libpath"; then
14755 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14758 echo "$as_me: failed program was:" >&5
14759 sed 's/^/| /' conftest.$ac_ext >&5
14764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14765 conftest$ac_exeext conftest.$ac_ext
14766 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14768 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14769 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"
14771 if test "$host_cpu" = ia64; then
14772 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14773 allow_undefined_flag_F77="-z nodefs"
14774 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"
14776 # Determine the default libpath from the value encoded in an empty executable.
14777 cat >conftest.$ac_ext <<_ACEOF
14782 rm -f conftest.$ac_objext conftest$ac_exeext
14783 if { (ac_try="$ac_link"
14784 case "(($ac_try" in
14785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14786 *) ac_try_echo=$ac_try;;
14788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14789 (eval "$ac_link") 2>conftest.er1
14791 grep -v '^ *+' conftest.er1 >conftest.err
14793 cat conftest.err >&5
14794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14795 (exit $ac_status); } && {
14796 test -z "$ac_f77_werror_flag" ||
14797 test ! -s conftest.err
14798 } && test -s conftest$ac_exeext &&
14799 $as_test_x conftest$ac_exeext; then
14801 lt_aix_libpath_sed='
14802 /Import File Strings/,/^$/ {
14808 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14809 # Check for a 64-bit object if we didn't find anything.
14810 if test -z "$aix_libpath"; then
14811 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14814 echo "$as_me: failed program was:" >&5
14815 sed 's/^/| /' conftest.$ac_ext >&5
14820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14821 conftest$ac_exeext conftest.$ac_ext
14822 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14824 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14825 # Warning - without using the other run time loading flags,
14826 # -berok will link without error, but may produce a broken library.
14827 no_undefined_flag_F77=' ${wl}-bernotok'
14828 allow_undefined_flag_F77=' ${wl}-berok'
14829 # Exported symbols can be pulled into shared objects from archives
14830 whole_archive_flag_spec_F77='$convenience'
14831 archive_cmds_need_lc_F77=yes
14832 # This is similar to how AIX traditionally builds its shared libraries.
14833 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'
14839 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)'
14840 hardcode_libdir_flag_spec_F77='-L$libdir'
14841 hardcode_minus_L_F77=yes
14842 # see comment about different semantics on the GNU ld section
14847 export_dynamic_flag_spec_F77=-rdynamic
14850 cygwin* | mingw* | pw32*)
14851 # When not using gcc, we currently assume that we are using
14852 # Microsoft Visual C++.
14853 # hardcode_libdir_flag_spec is actually meaningless, as there is
14854 # no search path for DLLs.
14855 hardcode_libdir_flag_spec_F77=' '
14856 allow_undefined_flag_F77=unsupported
14857 # Tell ltmain to make .lib files, not .a files.
14859 # Tell ltmain to make .dll files, not .so files.
14861 # FIXME: Setting linknames here is a bad hack.
14862 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14863 # The linker will automatically build a .lib file if we build a DLL.
14864 old_archive_From_new_cmds_F77='true'
14865 # FIXME: Should let the user specify the lib program.
14866 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14867 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14868 enable_shared_with_static_runtimes_F77=yes
14871 darwin* | rhapsody*)
14873 rhapsody* | darwin1.[012])
14874 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14877 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14878 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14880 case ${MACOSX_DEPLOYMENT_TARGET} in
14882 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14885 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14891 archive_cmds_need_lc_F77=no
14892 hardcode_direct_F77=no
14893 hardcode_automatic_F77=yes
14894 hardcode_shlibpath_var_F77=unsupported
14895 whole_archive_flag_spec_F77=''
14896 link_all_deplibs_F77=yes
14897 if test "$GCC" = yes ; then
14898 output_verbose_link_cmd='echo'
14899 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14900 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14901 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14902 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}'
14903 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}'
14905 case $cc_basename in
14907 output_verbose_link_cmd='echo'
14908 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14909 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14910 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14911 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}'
14912 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}'
14922 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14923 hardcode_libdir_flag_spec_F77='-L$libdir'
14924 hardcode_shlibpath_var_F77=no
14931 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14932 # support. Future versions do this automatically, but an explicit c++rt0.o
14933 # does not break anything, and helps significantly (at the cost of a little
14936 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14937 hardcode_libdir_flag_spec_F77='-R$libdir'
14938 hardcode_direct_F77=yes
14939 hardcode_shlibpath_var_F77=no
14942 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14944 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14945 hardcode_direct_F77=yes
14946 hardcode_minus_L_F77=yes
14947 hardcode_shlibpath_var_F77=no
14950 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14951 freebsd* | dragonfly*)
14952 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14953 hardcode_libdir_flag_spec_F77='-R$libdir'
14954 hardcode_direct_F77=yes
14955 hardcode_shlibpath_var_F77=no
14959 if test "$GCC" = yes; then
14960 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'
14962 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'
14964 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14965 hardcode_libdir_separator_F77=:
14966 hardcode_direct_F77=yes
14968 # hardcode_minus_L: Not really in the search PATH,
14969 # but as the default location of the library.
14970 hardcode_minus_L_F77=yes
14971 export_dynamic_flag_spec_F77='${wl}-E'
14975 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14976 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14978 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14980 if test "$with_gnu_ld" = no; then
14981 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14982 hardcode_libdir_separator_F77=:
14984 hardcode_direct_F77=yes
14985 export_dynamic_flag_spec_F77='${wl}-E'
14987 # hardcode_minus_L: Not really in the search PATH,
14988 # but as the default location of the library.
14989 hardcode_minus_L_F77=yes
14994 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14997 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15000 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15003 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15009 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15012 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15015 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15019 if test "$with_gnu_ld" = no; then
15020 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15021 hardcode_libdir_separator_F77=:
15025 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15026 hardcode_direct_F77=no
15027 hardcode_shlibpath_var_F77=no
15030 hardcode_direct_F77=yes
15031 export_dynamic_flag_spec_F77='${wl}-E'
15033 # hardcode_minus_L: Not really in the search PATH,
15034 # but as the default location of the library.
15035 hardcode_minus_L_F77=yes
15041 irix5* | irix6* | nonstopux*)
15042 if test "$GCC" = yes; then
15043 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'
15045 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'
15046 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15048 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15049 hardcode_libdir_separator_F77=:
15050 link_all_deplibs_F77=yes
15053 netbsd* | netbsdelf*-gnu)
15054 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15055 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15057 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15059 hardcode_libdir_flag_spec_F77='-R$libdir'
15060 hardcode_direct_F77=yes
15061 hardcode_shlibpath_var_F77=no
15065 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15066 hardcode_direct_F77=yes
15067 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15068 hardcode_libdir_separator_F77=:
15069 hardcode_shlibpath_var_F77=no
15073 if test -f /usr/libexec/ld.so; then
15074 hardcode_direct_F77=yes
15075 hardcode_shlibpath_var_F77=no
15076 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15077 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15078 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15079 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15080 export_dynamic_flag_spec_F77='${wl}-E'
15083 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15084 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15085 hardcode_libdir_flag_spec_F77='-R$libdir'
15088 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15089 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15099 hardcode_libdir_flag_spec_F77='-L$libdir'
15100 hardcode_minus_L_F77=yes
15101 allow_undefined_flag_F77=unsupported
15102 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'
15103 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15107 if test "$GCC" = yes; then
15108 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15109 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'
15111 allow_undefined_flag_F77=' -expect_unresolved \*'
15112 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'
15114 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15115 hardcode_libdir_separator_F77=:
15118 osf4* | osf5*) # as osf3* with the addition of -msym flag
15119 if test "$GCC" = yes; then
15120 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15121 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'
15122 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15124 allow_undefined_flag_F77=' -expect_unresolved \*'
15125 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'
15126 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~
15127 $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'
15129 # Both c and cxx compiler support -rpath directly
15130 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15132 hardcode_libdir_separator_F77=:
15136 no_undefined_flag_F77=' -z text'
15137 if test "$GCC" = yes; then
15139 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15140 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15141 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15144 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15145 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15146 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15148 hardcode_libdir_flag_spec_F77='-R$libdir'
15149 hardcode_shlibpath_var_F77=no
15151 solaris2.[0-5] | solaris2.[0-5].*) ;;
15153 # The compiler driver will combine and reorder linker options,
15154 # but understands `-z linker_flag'. GCC discards it without `$wl',
15155 # but is careful enough not to reorder.
15156 # Supported since Solaris 2.6 (maybe 2.5.1?)
15157 if test "$GCC" = yes; then
15158 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15160 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15164 link_all_deplibs_F77=yes
15168 if test "x$host_vendor" = xsequent; then
15169 # Use $CC to link under sequent, because it throws in some extra .o
15170 # files that make .init and .fini sections work.
15171 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15173 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15175 hardcode_libdir_flag_spec_F77='-L$libdir'
15176 hardcode_direct_F77=yes
15177 hardcode_minus_L_F77=yes
15178 hardcode_shlibpath_var_F77=no
15182 case $host_vendor in
15184 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15185 hardcode_direct_F77=yes # is this really true???
15188 ## LD is ld it makes a PLAMLIB
15189 ## CC just makes a GrossModule.
15190 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15191 reload_cmds_F77='$CC -r -o $output$reload_objs'
15192 hardcode_direct_F77=no
15195 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15196 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15199 runpath_var='LD_RUN_PATH'
15200 hardcode_shlibpath_var_F77=no
15204 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15205 hardcode_shlibpath_var_F77=no
15206 export_dynamic_flag_spec_F77='-Bexport'
15210 if test -d /usr/nec; then
15211 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15212 hardcode_shlibpath_var_F77=no
15213 runpath_var=LD_RUN_PATH
15214 hardcode_runpath_var=yes
15219 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15220 no_undefined_flag_F77='${wl}-z,text'
15221 archive_cmds_need_lc_F77=no
15222 hardcode_shlibpath_var_F77=no
15223 runpath_var='LD_RUN_PATH'
15225 if test "$GCC" = yes; then
15226 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15227 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15229 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15230 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15234 sysv5* | sco3.2v5* | sco5v6*)
15235 # Note: We can NOT use -z defs as we might desire, because we do not
15236 # link with -lc, and that would cause any symbols used from libc to
15237 # always be unresolved, which means just about no library would
15238 # ever link correctly. If we're not using GNU ld we use -z text
15239 # though, which does catch some bad symbols but isn't as heavy-handed
15241 no_undefined_flag_F77='${wl}-z,text'
15242 allow_undefined_flag_F77='${wl}-z,nodefs'
15243 archive_cmds_need_lc_F77=no
15244 hardcode_shlibpath_var_F77=no
15245 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15246 hardcode_libdir_separator_F77=':'
15247 link_all_deplibs_F77=yes
15248 export_dynamic_flag_spec_F77='${wl}-Bexport'
15249 runpath_var='LD_RUN_PATH'
15251 if test "$GCC" = yes; then
15252 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15253 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15255 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15256 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15261 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15262 hardcode_libdir_flag_spec_F77='-L$libdir'
15263 hardcode_shlibpath_var_F77=no
15272 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15273 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15274 test "$ld_shlibs_F77" = no && can_build_shared=no
15277 # Do we need to explicitly link libc?
15279 case "x$archive_cmds_need_lc_F77" in
15281 # Assume -lc should be added
15282 archive_cmds_need_lc_F77=yes
15284 if test "$enable_shared" = yes && test "$GCC" = yes; then
15285 case $archive_cmds_F77 in
15287 # FIXME: we may have to deal with multi-command sequences.
15290 # Test whether the compiler implicitly links with -lc since on some
15291 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15292 # to ld, don't add -lc before -lgcc.
15293 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15294 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15296 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15299 (eval $ac_compile) 2>&5
15301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302 (exit $ac_status); } 2>conftest.err; then
15305 libobjs=conftest.$ac_objext
15307 wl=$lt_prog_compiler_wl_F77
15308 pic_flag=$lt_prog_compiler_pic_F77
15314 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15315 allow_undefined_flag_F77=
15316 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15317 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); }
15322 archive_cmds_need_lc_F77=no
15324 archive_cmds_need_lc_F77=yes
15326 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15328 cat conftest.err 1>&5
15331 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15332 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15339 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15340 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15341 library_names_spec=
15342 libname_spec='lib$name'
15346 postuninstall_cmds=
15350 shlibpath_overrides_runpath=unknown
15352 dynamic_linker="$host_os ld.so"
15353 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15355 need_lib_prefix=unknown
15356 hardcode_into_libs=no
15358 # when you set need_version to no, make sure it does not cause -set_version
15359 # flags to be left without arguments
15360 need_version=unknown
15365 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15366 shlibpath_var=LIBPATH
15368 # AIX 3 has no versioning support, so we append a major version to the name.
15369 soname_spec='${libname}${release}${shared_ext}$major'
15376 hardcode_into_libs=yes
15377 if test "$host_cpu" = ia64; then
15378 # AIX 5 supports IA64
15379 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15380 shlibpath_var=LD_LIBRARY_PATH
15382 # With GCC up to 2.95.x, collect2 would create an import file
15383 # for dependence libraries. The import file would start with
15384 # the line `#! .'. This would cause the generated library to
15385 # depend on `.', always an invalid library. This was fixed in
15386 # development snapshots of GCC prior to 3.0.
15388 aix4 | aix4.[01] | aix4.[01].*)
15389 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15391 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15394 can_build_shared=no
15398 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15399 # soname into executable. Probably we can add versioning support to
15400 # collect2, so additional links can be useful in future.
15401 if test "$aix_use_runtimelinking" = yes; then
15402 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15403 # instead of lib<name>.a to let people know that these are not
15404 # typical AIX shared libraries.
15405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15407 # We preserve .a as extension for shared libraries through AIX4.2
15408 # and later when we are not doing run time linking.
15409 library_names_spec='${libname}${release}.a $libname.a'
15410 soname_spec='${libname}${release}${shared_ext}$major'
15412 shlibpath_var=LIBPATH
15417 library_names_spec='$libname.ixlibrary $libname.a'
15418 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15419 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'
15423 library_names_spec='${libname}${shared_ext}'
15424 dynamic_linker="$host_os ld.so"
15425 shlibpath_var=LIBRARY_PATH
15431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15432 soname_spec='${libname}${release}${shared_ext}$major'
15433 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15434 shlibpath_var=LD_LIBRARY_PATH
15435 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15436 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15437 # the default ld.so.conf also contains /usr/contrib/lib and
15438 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15439 # libtool to hard-code these into programs
15442 cygwin* | mingw* | pw32*)
15443 version_type=windows
15448 case $GCC,$host_os in
15449 yes,cygwin* | yes,mingw* | yes,pw32*)
15450 library_names_spec='$libname.dll.a'
15451 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15452 postinstall_cmds='base_file=`basename \${file}`~
15453 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15454 dldir=$destdir/`dirname \$dlpath`~
15455 test -d \$dldir || mkdir -p \$dldir~
15456 $install_prog $dir/$dlname \$dldir/$dlname~
15457 chmod a+x \$dldir/$dlname'
15458 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15459 dlpath=$dir/\$dldll~
15461 shlibpath_overrides_runpath=yes
15465 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15466 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15467 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15470 # MinGW DLLs use traditional 'lib' prefix
15471 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15472 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15473 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15474 # It is most probably a Windows format PATH printed by
15475 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15476 # path with ; separators, and with drive letters. We can handle the
15477 # drive letters (cygwin fileutils understands them), so leave them,
15478 # especially as we might pass files found there to a mingw objdump,
15479 # which wouldn't understand a cygwinified path. Ahh.
15480 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15482 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15486 # pw32 DLLs use 'pw' prefix rather than 'lib'
15487 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15493 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15496 dynamic_linker='Win32 ld.exe'
15497 # FIXME: first we should search . and the directory the executable is in
15501 darwin* | rhapsody*)
15502 dynamic_linker="$host_os dyld"
15503 version_type=darwin
15506 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15507 soname_spec='${libname}${release}${major}$shared_ext'
15508 shlibpath_overrides_runpath=yes
15509 shlibpath_var=DYLD_LIBRARY_PATH
15510 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15512 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15520 soname_spec='${libname}${release}${shared_ext}$major'
15521 shlibpath_var=LD_LIBRARY_PATH
15528 freebsd* | dragonfly*)
15529 # DragonFly does not have aout. When/if they implement a new
15530 # versioning mechanism, adjust this.
15531 if test -x /usr/bin/objformat; then
15532 objformat=`/usr/bin/objformat`
15535 freebsd[123]*) objformat=aout ;;
15536 *) objformat=elf ;;
15539 version_type=freebsd-$objformat
15540 case $version_type in
15542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15547 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15551 shlibpath_var=LD_LIBRARY_PATH
15554 shlibpath_overrides_runpath=yes
15556 freebsd3.[01]* | freebsdelf3.[01]*)
15557 shlibpath_overrides_runpath=yes
15558 hardcode_into_libs=yes
15560 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15561 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15562 shlibpath_overrides_runpath=no
15563 hardcode_into_libs=yes
15565 *) # from 4.6 on, and DragonFly
15566 shlibpath_overrides_runpath=yes
15567 hardcode_into_libs=yes
15576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15577 soname_spec='${libname}${release}${shared_ext}$major'
15578 shlibpath_var=LD_LIBRARY_PATH
15579 hardcode_into_libs=yes
15582 hpux9* | hpux10* | hpux11*)
15583 # Give a soname corresponding to the major version so that dld.sl refuses to
15584 # link against other versions.
15591 hardcode_into_libs=yes
15592 dynamic_linker="$host_os dld.so"
15593 shlibpath_var=LD_LIBRARY_PATH
15594 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15596 soname_spec='${libname}${release}${shared_ext}$major'
15597 if test "X$HPUX_IA64_MODE" = X32; then
15598 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15600 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15602 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15606 hardcode_into_libs=yes
15607 dynamic_linker="$host_os dld.sl"
15608 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15609 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15611 soname_spec='${libname}${release}${shared_ext}$major'
15612 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15613 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15617 dynamic_linker="$host_os dld.sl"
15618 shlibpath_var=SHLIB_PATH
15619 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15621 soname_spec='${libname}${release}${shared_ext}$major'
15624 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15625 postinstall_cmds='chmod 555 $lib'
15632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15633 soname_spec='${libname}${release}${shared_ext}$major'
15634 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15635 shlibpath_var=LD_LIBRARY_PATH
15636 shlibpath_overrides_runpath=no
15637 hardcode_into_libs=yes
15640 irix5* | irix6* | nonstopux*)
15642 nonstopux*) version_type=nonstopux ;;
15644 if test "$lt_cv_prog_gnu_ld" = yes; then
15652 soname_spec='${libname}${release}${shared_ext}$major'
15653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15655 irix5* | nonstopux*)
15656 libsuff= shlibsuff=
15659 case $LD in # libtool.m4 will add one of these switches to LD
15660 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15661 libsuff= shlibsuff= libmagic=32-bit;;
15662 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15663 libsuff=32 shlibsuff=N32 libmagic=N32;;
15664 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15665 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15666 *) libsuff= shlibsuff= libmagic=never-match;;
15670 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15671 shlibpath_overrides_runpath=no
15672 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15673 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15674 hardcode_into_libs=yes
15677 # No shared lib support for Linux oldld, aout, or coff.
15678 linux*oldld* | linux*aout* | linux*coff*)
15682 # This must be Linux ELF.
15683 linux* | k*bsd*-gnu)
15687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15688 soname_spec='${libname}${release}${shared_ext}$major'
15689 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15690 shlibpath_var=LD_LIBRARY_PATH
15691 shlibpath_overrides_runpath=no
15692 # This implies no fast_install, which is unacceptable.
15693 # Some rework will be needed to allow for fast_install
15694 # before this can be enabled.
15695 hardcode_into_libs=yes
15697 # Append ld.so.conf contents to the search path
15698 if test -f /etc/ld.so.conf; then
15699 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' ' '`
15700 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15703 # We used to test for /lib/ld.so.1 and disable shared libraries on
15704 # powerpc, because MkLinux only supported shared libraries with the
15705 # GNU dynamic linker. Since this was broken with cross compilers,
15706 # most powerpc-linux boxes support dynamic linking these days and
15707 # people can always --disable-shared, the test was removed, and we
15708 # assume the GNU/Linux dynamic linker is in use.
15709 dynamic_linker='GNU/Linux ld.so'
15716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15717 soname_spec='${libname}${release}${shared_ext}$major'
15718 shlibpath_var=LD_LIBRARY_PATH
15719 shlibpath_overrides_runpath=no
15720 hardcode_into_libs=yes
15721 dynamic_linker='NetBSD ld.elf_so'
15728 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15730 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15731 dynamic_linker='NetBSD (a.out) ld.so'
15733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15734 soname_spec='${libname}${release}${shared_ext}$major'
15735 dynamic_linker='NetBSD ld.elf_so'
15737 shlibpath_var=LD_LIBRARY_PATH
15738 shlibpath_overrides_runpath=yes
15739 hardcode_into_libs=yes
15744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15745 shlibpath_var=LD_LIBRARY_PATH
15746 shlibpath_overrides_runpath=yes
15753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15754 soname_spec='${libname}${release}${shared_ext}$major'
15755 shlibpath_var=LD_LIBRARY_PATH
15756 shlibpath_overrides_runpath=yes
15761 sys_lib_dlsearch_path_spec="/usr/lib"
15763 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15765 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15766 *) need_version=no ;;
15768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15769 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15770 shlibpath_var=LD_LIBRARY_PATH
15771 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15773 openbsd2.[89] | openbsd2.[89].*)
15774 shlibpath_overrides_runpath=no
15777 shlibpath_overrides_runpath=yes
15781 shlibpath_overrides_runpath=yes
15786 libname_spec='$name'
15789 library_names_spec='$libname${shared_ext} $libname.a'
15790 dynamic_linker='OS/2 ld.exe'
15791 shlibpath_var=LIBPATH
15794 osf3* | osf4* | osf5*)
15798 soname_spec='${libname}${release}${shared_ext}$major'
15799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15800 shlibpath_var=LD_LIBRARY_PATH
15801 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15802 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15814 soname_spec='${libname}${release}${shared_ext}$major'
15815 shlibpath_var=LD_LIBRARY_PATH
15816 shlibpath_overrides_runpath=yes
15817 hardcode_into_libs=yes
15818 # ldd complains unless libraries are executable
15819 postinstall_cmds='chmod +x $lib'
15824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15825 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15826 shlibpath_var=LD_LIBRARY_PATH
15827 shlibpath_overrides_runpath=yes
15828 if test "$with_gnu_ld" = yes; then
15836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15837 soname_spec='${libname}${release}${shared_ext}$major'
15838 shlibpath_var=LD_LIBRARY_PATH
15839 case $host_vendor in
15841 shlibpath_overrides_runpath=no
15843 export_dynamic_flag_spec='${wl}-Blargedynsym'
15844 runpath_var=LD_RUN_PATH
15852 shlibpath_overrides_runpath=no
15853 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15859 if test -d /usr/nec ;then
15861 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15862 soname_spec='$libname${shared_ext}.$major'
15863 shlibpath_var=LD_LIBRARY_PATH
15867 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15868 version_type=freebsd-elf
15871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15872 soname_spec='${libname}${release}${shared_ext}$major'
15873 shlibpath_var=LD_LIBRARY_PATH
15874 hardcode_into_libs=yes
15875 if test "$with_gnu_ld" = yes; then
15876 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15877 shlibpath_overrides_runpath=no
15879 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15880 shlibpath_overrides_runpath=yes
15883 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15887 sys_lib_dlsearch_path_spec='/usr/lib'
15892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15893 soname_spec='${libname}${release}${shared_ext}$major'
15894 shlibpath_var=LD_LIBRARY_PATH
15901 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15902 echo "${ECHO_T}$dynamic_linker" >&6; }
15903 test "$dynamic_linker" = no && can_build_shared=no
15905 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15906 if test "$GCC" = yes; then
15907 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15910 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15911 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15912 hardcode_action_F77=
15913 if test -n "$hardcode_libdir_flag_spec_F77" || \
15914 test -n "$runpath_var_F77" || \
15915 test "X$hardcode_automatic_F77" = "Xyes" ; then
15917 # We can hardcode non-existant directories.
15918 if test "$hardcode_direct_F77" != no &&
15919 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15920 # have to relink, otherwise we might link with an installed library
15921 # when we should be linking with a yet-to-be-installed one
15922 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15923 test "$hardcode_minus_L_F77" != no; then
15924 # Linking always hardcodes the temporary library directory.
15925 hardcode_action_F77=relink
15927 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15928 hardcode_action_F77=immediate
15931 # We cannot hardcode anything, or else we can only hardcode existing
15933 hardcode_action_F77=unsupported
15935 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15936 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15938 if test "$hardcode_action_F77" = relink; then
15939 # Fast installation is not supported
15940 enable_fast_install=no
15941 elif test "$shlibpath_overrides_runpath" = yes ||
15942 test "$enable_shared" = no; then
15943 # Fast installation is not necessary
15944 enable_fast_install=needless
15948 # The else clause should only fire when bootstrapping the
15949 # libtool distribution, otherwise you forgot to ship ltmain.sh
15950 # with your package, and you will get complaints that there are
15951 # no rules to generate ltmain.sh.
15952 if test -f "$ltmain"; then
15953 # See if we are running on zsh, and set the options which allow our commands through
15954 # without removal of \ escapes.
15955 if test -n "${ZSH_VERSION+set}" ; then
15956 setopt NO_GLOB_SUBST
15958 # Now quote all the things that may contain metacharacters while being
15959 # careful not to overquote the AC_SUBSTed values. We take copies of the
15960 # variables and quote the copies for generation of the libtool script.
15961 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15963 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15964 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15965 deplibs_check_method reload_flag reload_cmds need_locks \
15966 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15967 lt_cv_sys_global_symbol_to_c_name_address \
15968 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15969 old_postinstall_cmds old_postuninstall_cmds \
15973 lt_prog_compiler_wl_F77 \
15974 lt_prog_compiler_pic_F77 \
15975 lt_prog_compiler_static_F77 \
15976 lt_prog_compiler_no_builtin_flag_F77 \
15977 export_dynamic_flag_spec_F77 \
15978 thread_safe_flag_spec_F77 \
15979 whole_archive_flag_spec_F77 \
15980 enable_shared_with_static_runtimes_F77 \
15981 old_archive_cmds_F77 \
15982 old_archive_from_new_cmds_F77 \
15983 predep_objects_F77 \
15984 postdep_objects_F77 \
15987 compiler_lib_search_path_F77 \
15989 archive_expsym_cmds_F77 \
15990 postinstall_cmds_F77 \
15991 postuninstall_cmds_F77 \
15992 old_archive_from_expsyms_cmds_F77 \
15993 allow_undefined_flag_F77 \
15994 no_undefined_flag_F77 \
15995 export_symbols_cmds_F77 \
15996 hardcode_libdir_flag_spec_F77 \
15997 hardcode_libdir_flag_spec_ld_F77 \
15998 hardcode_libdir_separator_F77 \
15999 hardcode_automatic_F77 \
16001 module_expsym_cmds_F77 \
16002 lt_cv_prog_compiler_c_o_F77 \
16003 fix_srcfile_path_F77 \
16004 exclude_expsyms_F77 \
16005 include_expsyms_F77; do
16008 old_archive_cmds_F77 | \
16009 old_archive_from_new_cmds_F77 | \
16010 archive_cmds_F77 | \
16011 archive_expsym_cmds_F77 | \
16012 module_cmds_F77 | \
16013 module_expsym_cmds_F77 | \
16014 old_archive_from_expsyms_cmds_F77 | \
16015 export_symbols_cmds_F77 | \
16016 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16017 postinstall_cmds | postuninstall_cmds | \
16018 old_postinstall_cmds | old_postuninstall_cmds | \
16019 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16020 # Double-quote double-evaled strings.
16021 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16024 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16030 *'\$0 --fallback-echo"')
16031 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16037 cat <<__EOF__ >> "$cfgfile"
16038 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16040 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16042 # Shell to use when invoking shell scripts.
16045 # Whether or not to build shared libraries.
16046 build_libtool_libs=$enable_shared
16048 # Whether or not to build static libraries.
16049 build_old_libs=$enable_static
16051 # Whether or not to add -lc for building shared libraries.
16052 build_libtool_need_lc=$archive_cmds_need_lc_F77
16054 # Whether or not to disallow shared libs when runtime libs are static
16055 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16057 # Whether or not to optimize for fast installation.
16058 fast_install=$enable_fast_install
16061 host_alias=$host_alias
16065 # The build system.
16066 build_alias=$build_alias
16070 # An echo program that does not interpret backslashes.
16075 AR_FLAGS=$lt_AR_FLAGS
16080 # LTCC compiler flags.
16081 LTCFLAGS=$lt_LTCFLAGS
16083 # A language-specific compiler.
16084 CC=$lt_compiler_F77
16086 # Is the compiler the GNU C compiler?
16092 # The linker used to build libraries.
16095 # Whether we need hard or soft links.
16098 # A BSD-compatible nm program.
16101 # A symbol stripping program
16104 # Used to examine libraries when file_magic_cmd begins "file"
16105 MAGIC_CMD=$MAGIC_CMD
16107 # Used on cygwin: DLL creation program.
16110 # Used on cygwin: object dumper.
16113 # Used on cygwin: assembler.
16116 # The name of the directory that contains temporary libtool files.
16119 # How to create reloadable object files.
16120 reload_flag=$lt_reload_flag
16121 reload_cmds=$lt_reload_cmds
16123 # How to pass a linker flag through the compiler.
16124 wl=$lt_lt_prog_compiler_wl_F77
16126 # Object file suffix (normally "o").
16127 objext="$ac_objext"
16129 # Old archive suffix (normally "a").
16132 # Shared library suffix (normally ".so").
16133 shrext_cmds='$shrext_cmds'
16135 # Executable file suffix (normally "").
16138 # Additional compiler flags for building library objects.
16139 pic_flag=$lt_lt_prog_compiler_pic_F77
16142 # What is the maximum length of a command?
16143 max_cmd_len=$lt_cv_sys_max_cmd_len
16145 # Does compiler simultaneously support -c and -o options?
16146 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16148 # Must we lock files when doing compilation?
16149 need_locks=$lt_need_locks
16151 # Do we need the lib prefix for modules?
16152 need_lib_prefix=$need_lib_prefix
16154 # Do we need a version for libraries?
16155 need_version=$need_version
16157 # Whether dlopen is supported.
16158 dlopen_support=$enable_dlopen
16160 # Whether dlopen of programs is supported.
16161 dlopen_self=$enable_dlopen_self
16163 # Whether dlopen of statically linked programs is supported.
16164 dlopen_self_static=$enable_dlopen_self_static
16166 # Compiler flag to prevent dynamic linking.
16167 link_static_flag=$lt_lt_prog_compiler_static_F77
16169 # Compiler flag to turn off builtin functions.
16170 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16172 # Compiler flag to allow reflexive dlopens.
16173 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16175 # Compiler flag to generate shared objects directly from archives.
16176 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16178 # Compiler flag to generate thread-safe objects.
16179 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16181 # Library versioning type.
16182 version_type=$version_type
16184 # Format of library name prefix.
16185 libname_spec=$lt_libname_spec
16187 # List of archive names. First name is the real one, the rest are links.
16188 # The last name is the one that the linker finds with -lNAME.
16189 library_names_spec=$lt_library_names_spec
16191 # The coded name of the library, if different from the real name.
16192 soname_spec=$lt_soname_spec
16194 # Commands used to build and install an old-style archive.
16196 old_archive_cmds=$lt_old_archive_cmds_F77
16197 old_postinstall_cmds=$lt_old_postinstall_cmds
16198 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16200 # Create an old-style archive from a shared archive.
16201 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16203 # Create a temporary old-style archive to link instead of a shared archive.
16204 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16206 # Commands used to build and install a shared archive.
16207 archive_cmds=$lt_archive_cmds_F77
16208 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16209 postinstall_cmds=$lt_postinstall_cmds
16210 postuninstall_cmds=$lt_postuninstall_cmds
16212 # Commands used to build a loadable module (assumed same as above if empty)
16213 module_cmds=$lt_module_cmds_F77
16214 module_expsym_cmds=$lt_module_expsym_cmds_F77
16216 # Commands to strip libraries.
16217 old_striplib=$lt_old_striplib
16218 striplib=$lt_striplib
16220 # Dependencies to place before the objects being linked to create a
16222 predep_objects=$lt_predep_objects_F77
16224 # Dependencies to place after the objects being linked to create a
16226 postdep_objects=$lt_postdep_objects_F77
16228 # Dependencies to place before the objects being linked to create a
16230 predeps=$lt_predeps_F77
16232 # Dependencies to place after the objects being linked to create a
16234 postdeps=$lt_postdeps_F77
16236 # The library search path used internally by the compiler when linking
16237 # a shared library.
16238 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16240 # Method to check whether dependent libraries are shared objects.
16241 deplibs_check_method=$lt_deplibs_check_method
16243 # Command to use when deplibs_check_method == file_magic.
16244 file_magic_cmd=$lt_file_magic_cmd
16246 # Flag that allows shared libraries with undefined symbols to be built.
16247 allow_undefined_flag=$lt_allow_undefined_flag_F77
16249 # Flag that forces no undefined symbols.
16250 no_undefined_flag=$lt_no_undefined_flag_F77
16252 # Commands used to finish a libtool library installation in a directory.
16253 finish_cmds=$lt_finish_cmds
16255 # Same as above, but a single script fragment to be evaled but not shown.
16256 finish_eval=$lt_finish_eval
16258 # Take the output of nm and produce a listing of raw symbols and C names.
16259 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16261 # Transform the output of nm in a proper C declaration
16262 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16264 # Transform the output of nm in a C name address pair
16265 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16267 # This is the shared library runtime path variable.
16268 runpath_var=$runpath_var
16270 # This is the shared library path variable.
16271 shlibpath_var=$shlibpath_var
16273 # Is shlibpath searched before the hard-coded library search path?
16274 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16276 # How to hardcode a shared library path into an executable.
16277 hardcode_action=$hardcode_action_F77
16279 # Whether we should hardcode library paths into libraries.
16280 hardcode_into_libs=$hardcode_into_libs
16282 # Flag to hardcode \$libdir into a binary during linking.
16283 # This must work even if \$libdir does not exist.
16284 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16286 # If ld is used when linking, flag to hardcode \$libdir into
16287 # a binary during linking. This must work even if \$libdir does
16289 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16291 # Whether we need a single -rpath flag with a separated argument.
16292 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16294 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16295 # resulting binary.
16296 hardcode_direct=$hardcode_direct_F77
16298 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16299 # resulting binary.
16300 hardcode_minus_L=$hardcode_minus_L_F77
16302 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16303 # the resulting binary.
16304 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16306 # Set to yes if building a shared library automatically hardcodes DIR into the library
16307 # and all subsequent libraries and executables linked against it.
16308 hardcode_automatic=$hardcode_automatic_F77
16310 # Variables whose values should be saved in libtool wrapper scripts and
16311 # restored at relink time.
16312 variables_saved_for_relink="$variables_saved_for_relink"
16314 # Whether libtool must link a program against all its dependency libraries.
16315 link_all_deplibs=$link_all_deplibs_F77
16317 # Compile-time system search path for libraries
16318 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16320 # Run-time system search path for libraries
16321 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16323 # Fix the shell variable \$srcfile for the compiler.
16324 fix_srcfile_path=$lt_fix_srcfile_path
16326 # Set to yes if exported symbols are required.
16327 always_export_symbols=$always_export_symbols_F77
16329 # The commands to list exported symbols.
16330 export_symbols_cmds=$lt_export_symbols_cmds_F77
16332 # The commands to extract the exported symbol list from a shared archive.
16333 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16335 # Symbols that should not be listed in the preloaded symbols.
16336 exclude_expsyms=$lt_exclude_expsyms_F77
16338 # Symbols that must always be exported.
16339 include_expsyms=$lt_include_expsyms_F77
16341 # ### END LIBTOOL TAG CONFIG: $tagname
16347 # If there is no Makefile yet, we rely on a make rule to execute
16348 # `config.status --recheck' to rerun these tests and create the
16349 # libtool script then.
16350 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16351 if test -f "$ltmain_in"; then
16352 test -f Makefile && make "$ltmain"
16358 ac_cpp='$CPP $CPPFLAGS'
16359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16371 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16374 # Source file extension for Java test sources.
16377 # Object file extension for compiled Java test sources.
16381 # Code to be used in simple compile tests
16382 lt_simple_compile_test_code="class foo {}"
16384 # Code to be used in simple link tests
16385 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16387 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16389 # If no C compiler was specified, use CC.
16392 # If no C compiler flags were specified, use CFLAGS.
16393 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16395 # Allow CC to be a program name with arguments.
16399 # save warnings/boilerplate of simple test code
16400 ac_outfile=conftest.$ac_objext
16401 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16402 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16403 _lt_compiler_boilerplate=`cat conftest.err`
16406 ac_outfile=conftest.$ac_objext
16407 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16408 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16409 _lt_linker_boilerplate=`cat conftest.err`
16413 # Allow CC to be a program name with arguments.
16418 for cc_temp in $compiler""; do
16420 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16421 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16426 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16429 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16430 archive_cmds_need_lc_GCJ=no
16432 old_archive_cmds_GCJ=$old_archive_cmds
16435 lt_prog_compiler_no_builtin_flag_GCJ=
16437 if test "$GCC" = yes; then
16438 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16441 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16442 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16443 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16444 echo $ECHO_N "(cached) $ECHO_C" >&6
16446 lt_cv_prog_compiler_rtti_exceptions=no
16447 ac_outfile=conftest.$ac_objext
16448 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16449 lt_compiler_flag="-fno-rtti -fno-exceptions"
16450 # Insert the option either (1) after the last *FLAGS variable, or
16451 # (2) before a word containing "conftest.", or (3) at the end.
16452 # Note that $ac_compile itself does not contain backslashes and begins
16453 # with a dollar sign (not a hyphen), so the echo should work correctly.
16454 # The option is referenced via a variable to avoid confusing sed.
16455 lt_compile=`echo "$ac_compile" | $SED \
16456 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16457 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16458 -e 's:$: $lt_compiler_flag:'`
16459 (eval echo "\"\$as_me:16459: $lt_compile\"" >&5)
16460 (eval "$lt_compile" 2>conftest.err)
16462 cat conftest.err >&5
16463 echo "$as_me:16463: \$? = $ac_status" >&5
16464 if (exit $ac_status) && test -s "$ac_outfile"; then
16465 # The compiler can only warn and ignore the option if not recognized
16466 # So say no if there are warnings other than the usual output.
16467 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16468 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16469 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16470 lt_cv_prog_compiler_rtti_exceptions=yes
16476 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16477 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16479 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16480 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16487 lt_prog_compiler_wl_GCJ=
16488 lt_prog_compiler_pic_GCJ=
16489 lt_prog_compiler_static_GCJ=
16491 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16492 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16494 if test "$GCC" = yes; then
16495 lt_prog_compiler_wl_GCJ='-Wl,'
16496 lt_prog_compiler_static_GCJ='-static'
16500 # All AIX code is PIC.
16501 if test "$host_cpu" = ia64; then
16502 # AIX 5 now supports IA64 processor
16503 lt_prog_compiler_static_GCJ='-Bstatic'
16508 # FIXME: we need at least 68020 code to build shared libraries, but
16509 # adding the `-m68020' flag to GCC prevents building anything better,
16511 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16514 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16515 # PIC is the default for these OSes.
16518 mingw* | cygwin* | pw32* | os2*)
16519 # This hack is so that the source file can tell whether it is being
16520 # built for inclusion in a dll (and should export symbols for example).
16521 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16522 # (--disable-auto-import) libraries
16523 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16526 darwin* | rhapsody*)
16527 # PIC is the default on this platform
16528 # Common symbols not allowed in MH_DYLIB files
16529 lt_prog_compiler_pic_GCJ='-fno-common'
16533 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16534 # Instead, we relocate shared libraries at runtime.
16538 # Just because we use GCC doesn't mean we suddenly get shared libraries
16539 # on systems that don't support them.
16540 lt_prog_compiler_can_build_shared_GCJ=no
16545 if test -d /usr/nec; then
16546 lt_prog_compiler_pic_GCJ=-Kconform_pic
16551 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16552 # not for PA HP-UX.
16558 lt_prog_compiler_pic_GCJ='-fPIC'
16564 lt_prog_compiler_pic_GCJ='-fPIC'
16568 # PORTME Check for flag to pass linker flags through the system compiler.
16571 lt_prog_compiler_wl_GCJ='-Wl,'
16572 if test "$host_cpu" = ia64; then
16573 # AIX 5 now supports IA64 processor
16574 lt_prog_compiler_static_GCJ='-Bstatic'
16576 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16580 # PIC is the default on this platform
16581 # Common symbols not allowed in MH_DYLIB files
16582 case $cc_basename in
16584 lt_prog_compiler_pic_GCJ='-qnocommon'
16585 lt_prog_compiler_wl_GCJ='-Wl,'
16590 mingw* | cygwin* | pw32* | os2*)
16591 # This hack is so that the source file can tell whether it is being
16592 # built for inclusion in a dll (and should export symbols for example).
16593 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16596 hpux9* | hpux10* | hpux11*)
16597 lt_prog_compiler_wl_GCJ='-Wl,'
16598 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16599 # not for PA HP-UX.
16605 lt_prog_compiler_pic_GCJ='+Z'
16608 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16609 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16612 irix5* | irix6* | nonstopux*)
16613 lt_prog_compiler_wl_GCJ='-Wl,'
16614 # PIC (with -KPIC) is the default.
16615 lt_prog_compiler_static_GCJ='-non_shared'
16619 lt_prog_compiler_pic_GCJ='-KPIC'
16620 lt_prog_compiler_static_GCJ='-Bstatic'
16623 linux* | k*bsd*-gnu)
16624 case $cc_basename in
16626 lt_prog_compiler_wl_GCJ='-Wl,'
16627 lt_prog_compiler_pic_GCJ='-KPIC'
16628 lt_prog_compiler_static_GCJ='-static'
16630 pgcc* | pgf77* | pgf90* | pgf95*)
16631 # Portland Group compilers (*not* the Pentium gcc compiler,
16632 # which looks to be a dead project)
16633 lt_prog_compiler_wl_GCJ='-Wl,'
16634 lt_prog_compiler_pic_GCJ='-fpic'
16635 lt_prog_compiler_static_GCJ='-Bstatic'
16638 lt_prog_compiler_wl_GCJ='-Wl,'
16639 # All Alpha code is PIC.
16640 lt_prog_compiler_static_GCJ='-non_shared'
16643 case `$CC -V 2>&1 | sed 5q` in
16646 lt_prog_compiler_pic_GCJ='-KPIC'
16647 lt_prog_compiler_static_GCJ='-Bstatic'
16648 lt_prog_compiler_wl_GCJ='-Wl,'
16651 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16652 lt_prog_compiler_pic_GCJ='-KPIC'
16653 lt_prog_compiler_static_GCJ='-Bstatic'
16654 lt_prog_compiler_wl_GCJ=''
16661 osf3* | osf4* | osf5*)
16662 lt_prog_compiler_wl_GCJ='-Wl,'
16663 # All OSF/1 code is PIC.
16664 lt_prog_compiler_static_GCJ='-non_shared'
16668 lt_prog_compiler_static_GCJ='-non_shared'
16672 lt_prog_compiler_pic_GCJ='-KPIC'
16673 lt_prog_compiler_static_GCJ='-Bstatic'
16674 case $cc_basename in
16675 f77* | f90* | f95*)
16676 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16678 lt_prog_compiler_wl_GCJ='-Wl,';;
16683 lt_prog_compiler_wl_GCJ='-Qoption ld '
16684 lt_prog_compiler_pic_GCJ='-PIC'
16685 lt_prog_compiler_static_GCJ='-Bstatic'
16688 sysv4 | sysv4.2uw2* | sysv4.3*)
16689 lt_prog_compiler_wl_GCJ='-Wl,'
16690 lt_prog_compiler_pic_GCJ='-KPIC'
16691 lt_prog_compiler_static_GCJ='-Bstatic'
16695 if test -d /usr/nec ;then
16696 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16697 lt_prog_compiler_static_GCJ='-Bstatic'
16701 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16702 lt_prog_compiler_wl_GCJ='-Wl,'
16703 lt_prog_compiler_pic_GCJ='-KPIC'
16704 lt_prog_compiler_static_GCJ='-Bstatic'
16708 lt_prog_compiler_wl_GCJ='-Wl,'
16709 lt_prog_compiler_can_build_shared_GCJ=no
16713 lt_prog_compiler_pic_GCJ='-pic'
16714 lt_prog_compiler_static_GCJ='-Bstatic'
16718 lt_prog_compiler_can_build_shared_GCJ=no
16723 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16724 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16727 # Check to make sure the PIC flag actually works.
16729 if test -n "$lt_prog_compiler_pic_GCJ"; then
16731 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16732 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16733 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16734 echo $ECHO_N "(cached) $ECHO_C" >&6
16736 lt_prog_compiler_pic_works_GCJ=no
16737 ac_outfile=conftest.$ac_objext
16738 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16739 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16740 # Insert the option either (1) after the last *FLAGS variable, or
16741 # (2) before a word containing "conftest.", or (3) at the end.
16742 # Note that $ac_compile itself does not contain backslashes and begins
16743 # with a dollar sign (not a hyphen), so the echo should work correctly.
16744 # The option is referenced via a variable to avoid confusing sed.
16745 lt_compile=`echo "$ac_compile" | $SED \
16746 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16747 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16748 -e 's:$: $lt_compiler_flag:'`
16749 (eval echo "\"\$as_me:16749: $lt_compile\"" >&5)
16750 (eval "$lt_compile" 2>conftest.err)
16752 cat conftest.err >&5
16753 echo "$as_me:16753: \$? = $ac_status" >&5
16754 if (exit $ac_status) && test -s "$ac_outfile"; then
16755 # The compiler can only warn and ignore the option if not recognized
16756 # So say no if there are warnings other than the usual output.
16757 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16758 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16759 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16760 lt_prog_compiler_pic_works_GCJ=yes
16766 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16767 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16769 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16770 case $lt_prog_compiler_pic_GCJ in
16772 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16775 lt_prog_compiler_pic_GCJ=
16776 lt_prog_compiler_can_build_shared_GCJ=no
16781 # For platforms which do not support PIC, -DPIC is meaningless:
16783 lt_prog_compiler_pic_GCJ=
16786 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16791 # Check to make sure the static flag actually works.
16793 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16794 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16795 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16796 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16797 echo $ECHO_N "(cached) $ECHO_C" >&6
16799 lt_prog_compiler_static_works_GCJ=no
16800 save_LDFLAGS="$LDFLAGS"
16801 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16802 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16803 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16804 # The linker can only warn and ignore the option if not recognized
16805 # So say no if there are warnings
16806 if test -s conftest.err; then
16807 # Append any errors to the config.log.
16808 cat conftest.err 1>&5
16809 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16810 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16811 if diff conftest.exp conftest.er2 >/dev/null; then
16812 lt_prog_compiler_static_works_GCJ=yes
16815 lt_prog_compiler_static_works_GCJ=yes
16819 LDFLAGS="$save_LDFLAGS"
16822 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16823 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16825 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16828 lt_prog_compiler_static_GCJ=
16832 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16833 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16834 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16835 echo $ECHO_N "(cached) $ECHO_C" >&6
16837 lt_cv_prog_compiler_c_o_GCJ=no
16838 $rm -r conftest 2>/dev/null
16842 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16844 lt_compiler_flag="-o out/conftest2.$ac_objext"
16845 # Insert the option either (1) after the last *FLAGS variable, or
16846 # (2) before a word containing "conftest.", or (3) at the end.
16847 # Note that $ac_compile itself does not contain backslashes and begins
16848 # with a dollar sign (not a hyphen), so the echo should work correctly.
16849 lt_compile=`echo "$ac_compile" | $SED \
16850 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16851 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16852 -e 's:$: $lt_compiler_flag:'`
16853 (eval echo "\"\$as_me:16853: $lt_compile\"" >&5)
16854 (eval "$lt_compile" 2>out/conftest.err)
16856 cat out/conftest.err >&5
16857 echo "$as_me:16857: \$? = $ac_status" >&5
16858 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16860 # The compiler can only warn and ignore the option if not recognized
16861 # So say no if there are warnings
16862 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16863 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16864 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16865 lt_cv_prog_compiler_c_o_GCJ=yes
16870 # SGI C++ compiler will create directory out/ii_files/ for
16871 # template instantiation
16872 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16873 $rm out/* && rmdir out
16879 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16880 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16883 hard_links="nottested"
16884 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16885 # do not overwrite the value of need_locks provided by the user
16886 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16887 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16890 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16892 ln conftest.a conftest.b 2>&5 || hard_links=no
16893 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16894 { echo "$as_me:$LINENO: result: $hard_links" >&5
16895 echo "${ECHO_T}$hard_links" >&6; }
16896 if test "$hard_links" = no; then
16897 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16898 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16905 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16906 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16909 allow_undefined_flag_GCJ=
16910 enable_shared_with_static_runtimes_GCJ=no
16912 archive_expsym_cmds_GCJ=
16913 old_archive_From_new_cmds_GCJ=
16914 old_archive_from_expsyms_cmds_GCJ=
16915 export_dynamic_flag_spec_GCJ=
16916 whole_archive_flag_spec_GCJ=
16917 thread_safe_flag_spec_GCJ=
16918 hardcode_libdir_flag_spec_GCJ=
16919 hardcode_libdir_flag_spec_ld_GCJ=
16920 hardcode_libdir_separator_GCJ=
16921 hardcode_direct_GCJ=no
16922 hardcode_minus_L_GCJ=no
16923 hardcode_shlibpath_var_GCJ=unsupported
16924 link_all_deplibs_GCJ=unknown
16925 hardcode_automatic_GCJ=no
16927 module_expsym_cmds_GCJ=
16928 always_export_symbols_GCJ=no
16929 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16930 # include_expsyms should be a list of space-separated symbols to be *always*
16931 # included in the symbol list
16932 include_expsyms_GCJ=
16933 # exclude_expsyms can be an extended regexp of symbols to exclude
16934 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16935 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16936 # as well as any symbol that contains `d'.
16937 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16938 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16939 # platforms (ab)use it in PIC code, but their linkers get confused if
16940 # the symbol is explicitly referenced. Since portable code cannot
16941 # rely on this symbol name, it's probably fine to never include it in
16942 # preloaded symbol tables.
16943 extract_expsyms_cmds=
16944 # Just being paranoid about ensuring that cc_basename is set.
16945 for cc_temp in $compiler""; do
16947 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16948 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16953 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16956 cygwin* | mingw* | pw32*)
16957 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16958 # When not using gcc, we currently assume that we are using
16959 # Microsoft Visual C++.
16960 if test "$GCC" != yes; then
16965 # we just hope/assume this is gcc and not c89 (= MSVC++)
16974 if test "$with_gnu_ld" = yes; then
16975 # If archive_cmds runs LD, not CC, wlarc should be empty
16978 # Set some defaults for GNU ld with shared library support. These
16979 # are reset later if shared libraries are not supported. Putting them
16980 # here allows them to be overridden if necessary.
16981 runpath_var=LD_RUN_PATH
16982 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16983 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16984 # ancient GNU ld didn't support --whole-archive et. al.
16985 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16986 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16988 whole_archive_flag_spec_GCJ=
16990 supports_anon_versioning=no
16991 case `$LD -v 2>/dev/null` in
16992 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16993 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16994 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16995 *\ 2.11.*) ;; # other 2.11 versions
16996 *) supports_anon_versioning=yes ;;
16999 # See if GNU ld supports shared libraries.
17001 aix3* | aix4* | aix5*)
17002 # On AIX/PPC, the GNU linker is very broken
17003 if test "$host_cpu" != ia64; then
17007 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17008 *** to be unable to reliably create shared libraries on AIX.
17009 *** Therefore, libtool is disabling shared libraries support. If you
17010 *** really care for shared libraries, you may want to modify your PATH
17011 *** so that a non-GNU linker is found, and then restart.
17018 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)'
17019 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17020 hardcode_minus_L_GCJ=yes
17022 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17023 # that the semantics of dynamic libraries on AmigaOS, at least up
17024 # to version 4, is to share data among multiple programs linked
17025 # with the same dynamic library. Since this doesn't match the
17026 # behavior of shared libraries on other platforms, we can't use
17032 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17033 allow_undefined_flag_GCJ=unsupported
17034 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17035 # support --undefined. This deserves some investigation. FIXME
17036 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17042 cygwin* | mingw* | pw32*)
17043 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17044 # as there is no search path for DLLs.
17045 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17046 allow_undefined_flag_GCJ=unsupported
17047 always_export_symbols_GCJ=no
17048 enable_shared_with_static_runtimes_GCJ=yes
17049 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17051 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17052 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17053 # If the export-symbols file already is a .def file (1st line
17054 # is EXPORTS), use it as is; otherwise, prepend...
17055 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17056 cp $export_symbols $output_objdir/$soname.def;
17058 echo EXPORTS > $output_objdir/$soname.def;
17059 cat $export_symbols >> $output_objdir/$soname.def;
17061 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17068 hardcode_direct_GCJ=no
17069 hardcode_shlibpath_var_GCJ=no
17070 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17071 export_dynamic_flag_spec_GCJ='${wl}-E'
17072 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17073 # Instead, shared libraries are loaded at an image base (0x10000000 by
17074 # default) and relocated if they conflict, which is a slow very memory
17075 # consuming and fragmenting process. To avoid this, we pick a random,
17076 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17077 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17078 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'
17079 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'
17082 gnu* | linux* | k*bsd*-gnu)
17083 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17085 case $cc_basename,$host_cpu in
17086 pgcc*) # Portland Group C compiler
17087 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'
17088 tmp_addflag=' $pic_flag'
17090 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17091 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'
17092 tmp_addflag=' $pic_flag -Mnomain' ;;
17093 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17094 tmp_addflag=' -i_dynamic' ;;
17095 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17096 tmp_addflag=' -i_dynamic -nofor_main' ;;
17097 ifc* | ifort*) # Intel Fortran compiler
17098 tmp_addflag=' -nofor_main' ;;
17100 case `$CC -V 2>&1 | sed 5q` in
17101 *Sun\ C*) # Sun C 5.9
17102 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'
17103 tmp_sharedflag='-G' ;;
17104 *Sun\ F*) # Sun Fortran 8.3
17105 tmp_sharedflag='-G' ;;
17107 tmp_sharedflag='-shared' ;;
17109 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17111 if test $supports_anon_versioning = yes; then
17112 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17113 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17114 $echo "local: *; };" >> $output_objdir/$libname.ver~
17115 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17117 link_all_deplibs_GCJ=no
17123 netbsd* | netbsdelf*-gnu)
17124 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17125 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17128 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17129 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17134 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17138 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17139 *** create shared libraries on Solaris systems. Therefore, libtool
17140 *** is disabling shared libraries support. We urge you to upgrade GNU
17141 *** binutils to release 2.9.1 or newer. Another option is to modify
17142 *** your PATH or compiler configuration so that the native linker is
17143 *** used, and then restart.
17146 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17147 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17148 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17154 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17155 case `$LD -v 2>&1` in
17156 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17160 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17161 *** reliably create shared libraries on SCO systems. Therefore, libtool
17162 *** is disabling shared libraries support. We urge you to upgrade GNU
17163 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17164 *** your PATH or compiler configuration so that the native linker is
17165 *** used, and then restart.
17170 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17171 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17172 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17173 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17182 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17184 hardcode_direct_GCJ=yes
17185 hardcode_shlibpath_var_GCJ=no
17189 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17190 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17191 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17198 if test "$ld_shlibs_GCJ" = no; then
17200 hardcode_libdir_flag_spec_GCJ=
17201 export_dynamic_flag_spec_GCJ=
17202 whole_archive_flag_spec_GCJ=
17205 # PORTME fill in a description of your system's linker (not GNU ld)
17208 allow_undefined_flag_GCJ=unsupported
17209 always_export_symbols_GCJ=yes
17210 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'
17211 # Note: this linker hardcodes the directories in LIBPATH if there
17212 # are no directories specified by -L.
17213 hardcode_minus_L_GCJ=yes
17214 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17215 # Neither direct hardcoding nor static linking is supported with a
17217 hardcode_direct_GCJ=unsupported
17222 if test "$host_cpu" = ia64; then
17223 # On IA64, the linker does run time linking by default, so we don't
17224 # have to do anything special.
17225 aix_use_runtimelinking=no
17226 exp_sym_flag='-Bexport'
17229 # If we're using GNU nm, then we don't want the "-C" option.
17230 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17231 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17232 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'
17234 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'
17236 aix_use_runtimelinking=no
17238 # Test if we are trying to use run time linking or normal
17239 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17240 # need to do runtime linking.
17241 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17242 for ld_flag in $LDFLAGS; do
17243 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17244 aix_use_runtimelinking=yes
17251 exp_sym_flag='-bexport'
17252 no_entry_flag='-bnoentry'
17255 # When large executables or shared objects are built, AIX ld can
17256 # have problems creating the table of contents. If linking a library
17257 # or program results in "error TOC overflow" add -mminimal-toc to
17258 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17259 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17261 archive_cmds_GCJ=''
17262 hardcode_direct_GCJ=yes
17263 hardcode_libdir_separator_GCJ=':'
17264 link_all_deplibs_GCJ=yes
17266 if test "$GCC" = yes; then
17267 case $host_os in aix4.[012]|aix4.[012].*)
17268 # We only want to do this on AIX 4.2 and lower, the check
17269 # below for broken collect2 doesn't work under 4.3+
17270 collect2name=`${CC} -print-prog-name=collect2`
17271 if test -f "$collect2name" && \
17272 strings "$collect2name" | grep resolve_lib_name >/dev/null
17274 # We have reworked collect2
17277 # We have old collect2
17278 hardcode_direct_GCJ=unsupported
17279 # It fails to find uninstalled libraries when the uninstalled
17280 # path is not listed in the libpath. Setting hardcode_minus_L
17281 # to unsupported forces relinking
17282 hardcode_minus_L_GCJ=yes
17283 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17284 hardcode_libdir_separator_GCJ=
17288 shared_flag='-shared'
17289 if test "$aix_use_runtimelinking" = yes; then
17290 shared_flag="$shared_flag "'${wl}-G'
17294 if test "$host_cpu" = ia64; then
17295 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17296 # chokes on -Wl,-G. The following line is correct:
17299 if test "$aix_use_runtimelinking" = yes; then
17300 shared_flag='${wl}-G'
17302 shared_flag='${wl}-bM:SRE'
17307 # It seems that -bexpall does not export symbols beginning with
17308 # underscore (_), so it is better to generate a list of symbols to export.
17309 always_export_symbols_GCJ=yes
17310 if test "$aix_use_runtimelinking" = yes; then
17311 # Warning - without using the other runtime loading flags (-brtl),
17312 # -berok will link without error, but may produce a broken library.
17313 allow_undefined_flag_GCJ='-berok'
17314 # Determine the default libpath from the value encoded in an empty executable.
17315 cat >conftest.$ac_ext <<_ACEOF
17318 cat confdefs.h >>conftest.$ac_ext
17319 cat >>conftest.$ac_ext <<_ACEOF
17320 /* end confdefs.h. */
17330 rm -f conftest.$ac_objext conftest$ac_exeext
17331 if { (ac_try="$ac_link"
17332 case "(($ac_try" in
17333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17334 *) ac_try_echo=$ac_try;;
17336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17337 (eval "$ac_link") 2>conftest.er1
17339 grep -v '^ *+' conftest.er1 >conftest.err
17341 cat conftest.err >&5
17342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343 (exit $ac_status); } && {
17344 test -z "$ac_c_werror_flag" ||
17345 test ! -s conftest.err
17346 } && test -s conftest$ac_exeext &&
17347 $as_test_x conftest$ac_exeext; then
17349 lt_aix_libpath_sed='
17350 /Import File Strings/,/^$/ {
17356 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17357 # Check for a 64-bit object if we didn't find anything.
17358 if test -z "$aix_libpath"; then
17359 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17362 echo "$as_me: failed program was:" >&5
17363 sed 's/^/| /' conftest.$ac_ext >&5
17368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17369 conftest$ac_exeext conftest.$ac_ext
17370 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17372 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17373 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"
17375 if test "$host_cpu" = ia64; then
17376 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17377 allow_undefined_flag_GCJ="-z nodefs"
17378 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"
17380 # Determine the default libpath from the value encoded in an empty executable.
17381 cat >conftest.$ac_ext <<_ACEOF
17384 cat confdefs.h >>conftest.$ac_ext
17385 cat >>conftest.$ac_ext <<_ACEOF
17386 /* end confdefs.h. */
17396 rm -f conftest.$ac_objext conftest$ac_exeext
17397 if { (ac_try="$ac_link"
17398 case "(($ac_try" in
17399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17400 *) ac_try_echo=$ac_try;;
17402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17403 (eval "$ac_link") 2>conftest.er1
17405 grep -v '^ *+' conftest.er1 >conftest.err
17407 cat conftest.err >&5
17408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409 (exit $ac_status); } && {
17410 test -z "$ac_c_werror_flag" ||
17411 test ! -s conftest.err
17412 } && test -s conftest$ac_exeext &&
17413 $as_test_x conftest$ac_exeext; then
17415 lt_aix_libpath_sed='
17416 /Import File Strings/,/^$/ {
17422 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17423 # Check for a 64-bit object if we didn't find anything.
17424 if test -z "$aix_libpath"; then
17425 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17428 echo "$as_me: failed program was:" >&5
17429 sed 's/^/| /' conftest.$ac_ext >&5
17434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17435 conftest$ac_exeext conftest.$ac_ext
17436 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17438 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17439 # Warning - without using the other run time loading flags,
17440 # -berok will link without error, but may produce a broken library.
17441 no_undefined_flag_GCJ=' ${wl}-bernotok'
17442 allow_undefined_flag_GCJ=' ${wl}-berok'
17443 # Exported symbols can be pulled into shared objects from archives
17444 whole_archive_flag_spec_GCJ='$convenience'
17445 archive_cmds_need_lc_GCJ=yes
17446 # This is similar to how AIX traditionally builds its shared libraries.
17447 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'
17453 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)'
17454 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17455 hardcode_minus_L_GCJ=yes
17456 # see comment about different semantics on the GNU ld section
17461 export_dynamic_flag_spec_GCJ=-rdynamic
17464 cygwin* | mingw* | pw32*)
17465 # When not using gcc, we currently assume that we are using
17466 # Microsoft Visual C++.
17467 # hardcode_libdir_flag_spec is actually meaningless, as there is
17468 # no search path for DLLs.
17469 hardcode_libdir_flag_spec_GCJ=' '
17470 allow_undefined_flag_GCJ=unsupported
17471 # Tell ltmain to make .lib files, not .a files.
17473 # Tell ltmain to make .dll files, not .so files.
17475 # FIXME: Setting linknames here is a bad hack.
17476 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17477 # The linker will automatically build a .lib file if we build a DLL.
17478 old_archive_From_new_cmds_GCJ='true'
17479 # FIXME: Should let the user specify the lib program.
17480 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17481 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17482 enable_shared_with_static_runtimes_GCJ=yes
17485 darwin* | rhapsody*)
17487 rhapsody* | darwin1.[012])
17488 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17491 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17492 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17494 case ${MACOSX_DEPLOYMENT_TARGET} in
17496 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17499 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17505 archive_cmds_need_lc_GCJ=no
17506 hardcode_direct_GCJ=no
17507 hardcode_automatic_GCJ=yes
17508 hardcode_shlibpath_var_GCJ=unsupported
17509 whole_archive_flag_spec_GCJ=''
17510 link_all_deplibs_GCJ=yes
17511 if test "$GCC" = yes ; then
17512 output_verbose_link_cmd='echo'
17513 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17514 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17515 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17516 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}'
17517 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}'
17519 case $cc_basename in
17521 output_verbose_link_cmd='echo'
17522 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17523 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17524 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17525 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}'
17526 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}'
17536 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17537 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17538 hardcode_shlibpath_var_GCJ=no
17545 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17546 # support. Future versions do this automatically, but an explicit c++rt0.o
17547 # does not break anything, and helps significantly (at the cost of a little
17550 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17551 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17552 hardcode_direct_GCJ=yes
17553 hardcode_shlibpath_var_GCJ=no
17556 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17558 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17559 hardcode_direct_GCJ=yes
17560 hardcode_minus_L_GCJ=yes
17561 hardcode_shlibpath_var_GCJ=no
17564 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17565 freebsd* | dragonfly*)
17566 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17567 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17568 hardcode_direct_GCJ=yes
17569 hardcode_shlibpath_var_GCJ=no
17573 if test "$GCC" = yes; then
17574 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'
17576 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'
17578 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17579 hardcode_libdir_separator_GCJ=:
17580 hardcode_direct_GCJ=yes
17582 # hardcode_minus_L: Not really in the search PATH,
17583 # but as the default location of the library.
17584 hardcode_minus_L_GCJ=yes
17585 export_dynamic_flag_spec_GCJ='${wl}-E'
17589 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17590 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17592 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17594 if test "$with_gnu_ld" = no; then
17595 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17596 hardcode_libdir_separator_GCJ=:
17598 hardcode_direct_GCJ=yes
17599 export_dynamic_flag_spec_GCJ='${wl}-E'
17601 # hardcode_minus_L: Not really in the search PATH,
17602 # but as the default location of the library.
17603 hardcode_minus_L_GCJ=yes
17608 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17611 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17614 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17617 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17623 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17626 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17629 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17633 if test "$with_gnu_ld" = no; then
17634 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17635 hardcode_libdir_separator_GCJ=:
17639 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17640 hardcode_direct_GCJ=no
17641 hardcode_shlibpath_var_GCJ=no
17644 hardcode_direct_GCJ=yes
17645 export_dynamic_flag_spec_GCJ='${wl}-E'
17647 # hardcode_minus_L: Not really in the search PATH,
17648 # but as the default location of the library.
17649 hardcode_minus_L_GCJ=yes
17655 irix5* | irix6* | nonstopux*)
17656 if test "$GCC" = yes; then
17657 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'
17659 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'
17660 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17662 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17663 hardcode_libdir_separator_GCJ=:
17664 link_all_deplibs_GCJ=yes
17667 netbsd* | netbsdelf*-gnu)
17668 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17669 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17671 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17673 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17674 hardcode_direct_GCJ=yes
17675 hardcode_shlibpath_var_GCJ=no
17679 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17680 hardcode_direct_GCJ=yes
17681 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17682 hardcode_libdir_separator_GCJ=:
17683 hardcode_shlibpath_var_GCJ=no
17687 if test -f /usr/libexec/ld.so; then
17688 hardcode_direct_GCJ=yes
17689 hardcode_shlibpath_var_GCJ=no
17690 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17691 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17692 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17693 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17694 export_dynamic_flag_spec_GCJ='${wl}-E'
17697 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17698 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17699 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17702 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17703 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17713 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17714 hardcode_minus_L_GCJ=yes
17715 allow_undefined_flag_GCJ=unsupported
17716 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'
17717 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17721 if test "$GCC" = yes; then
17722 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17723 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'
17725 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17726 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'
17728 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17729 hardcode_libdir_separator_GCJ=:
17732 osf4* | osf5*) # as osf3* with the addition of -msym flag
17733 if test "$GCC" = yes; then
17734 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17735 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'
17736 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17738 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17739 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'
17740 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~
17741 $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'
17743 # Both c and cxx compiler support -rpath directly
17744 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17746 hardcode_libdir_separator_GCJ=:
17750 no_undefined_flag_GCJ=' -z text'
17751 if test "$GCC" = yes; then
17753 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17754 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17755 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17758 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17759 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17760 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17762 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17763 hardcode_shlibpath_var_GCJ=no
17765 solaris2.[0-5] | solaris2.[0-5].*) ;;
17767 # The compiler driver will combine and reorder linker options,
17768 # but understands `-z linker_flag'. GCC discards it without `$wl',
17769 # but is careful enough not to reorder.
17770 # Supported since Solaris 2.6 (maybe 2.5.1?)
17771 if test "$GCC" = yes; then
17772 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17774 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17778 link_all_deplibs_GCJ=yes
17782 if test "x$host_vendor" = xsequent; then
17783 # Use $CC to link under sequent, because it throws in some extra .o
17784 # files that make .init and .fini sections work.
17785 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17787 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17789 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17790 hardcode_direct_GCJ=yes
17791 hardcode_minus_L_GCJ=yes
17792 hardcode_shlibpath_var_GCJ=no
17796 case $host_vendor in
17798 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17799 hardcode_direct_GCJ=yes # is this really true???
17802 ## LD is ld it makes a PLAMLIB
17803 ## CC just makes a GrossModule.
17804 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17805 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17806 hardcode_direct_GCJ=no
17809 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17810 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17813 runpath_var='LD_RUN_PATH'
17814 hardcode_shlibpath_var_GCJ=no
17818 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17819 hardcode_shlibpath_var_GCJ=no
17820 export_dynamic_flag_spec_GCJ='-Bexport'
17824 if test -d /usr/nec; then
17825 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17826 hardcode_shlibpath_var_GCJ=no
17827 runpath_var=LD_RUN_PATH
17828 hardcode_runpath_var=yes
17833 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17834 no_undefined_flag_GCJ='${wl}-z,text'
17835 archive_cmds_need_lc_GCJ=no
17836 hardcode_shlibpath_var_GCJ=no
17837 runpath_var='LD_RUN_PATH'
17839 if test "$GCC" = yes; then
17840 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17841 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17843 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17844 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17848 sysv5* | sco3.2v5* | sco5v6*)
17849 # Note: We can NOT use -z defs as we might desire, because we do not
17850 # link with -lc, and that would cause any symbols used from libc to
17851 # always be unresolved, which means just about no library would
17852 # ever link correctly. If we're not using GNU ld we use -z text
17853 # though, which does catch some bad symbols but isn't as heavy-handed
17855 no_undefined_flag_GCJ='${wl}-z,text'
17856 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17857 archive_cmds_need_lc_GCJ=no
17858 hardcode_shlibpath_var_GCJ=no
17859 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17860 hardcode_libdir_separator_GCJ=':'
17861 link_all_deplibs_GCJ=yes
17862 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17863 runpath_var='LD_RUN_PATH'
17865 if test "$GCC" = yes; then
17866 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17867 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17869 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17870 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17875 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17876 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17877 hardcode_shlibpath_var_GCJ=no
17886 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17887 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17888 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17891 # Do we need to explicitly link libc?
17893 case "x$archive_cmds_need_lc_GCJ" in
17895 # Assume -lc should be added
17896 archive_cmds_need_lc_GCJ=yes
17898 if test "$enable_shared" = yes && test "$GCC" = yes; then
17899 case $archive_cmds_GCJ in
17901 # FIXME: we may have to deal with multi-command sequences.
17904 # Test whether the compiler implicitly links with -lc since on some
17905 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17906 # to ld, don't add -lc before -lgcc.
17907 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17908 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17910 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17913 (eval $ac_compile) 2>&5
17915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916 (exit $ac_status); } 2>conftest.err; then
17919 libobjs=conftest.$ac_objext
17921 wl=$lt_prog_compiler_wl_GCJ
17922 pic_flag=$lt_prog_compiler_pic_GCJ
17928 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17929 allow_undefined_flag_GCJ=
17930 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17931 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934 (exit $ac_status); }
17936 archive_cmds_need_lc_GCJ=no
17938 archive_cmds_need_lc_GCJ=yes
17940 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17942 cat conftest.err 1>&5
17945 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17946 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17953 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17954 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17955 library_names_spec=
17956 libname_spec='lib$name'
17960 postuninstall_cmds=
17964 shlibpath_overrides_runpath=unknown
17966 dynamic_linker="$host_os ld.so"
17967 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17969 need_lib_prefix=unknown
17970 hardcode_into_libs=no
17972 # when you set need_version to no, make sure it does not cause -set_version
17973 # flags to be left without arguments
17974 need_version=unknown
17979 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17980 shlibpath_var=LIBPATH
17982 # AIX 3 has no versioning support, so we append a major version to the name.
17983 soname_spec='${libname}${release}${shared_ext}$major'
17990 hardcode_into_libs=yes
17991 if test "$host_cpu" = ia64; then
17992 # AIX 5 supports IA64
17993 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17994 shlibpath_var=LD_LIBRARY_PATH
17996 # With GCC up to 2.95.x, collect2 would create an import file
17997 # for dependence libraries. The import file would start with
17998 # the line `#! .'. This would cause the generated library to
17999 # depend on `.', always an invalid library. This was fixed in
18000 # development snapshots of GCC prior to 3.0.
18002 aix4 | aix4.[01] | aix4.[01].*)
18003 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18005 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18008 can_build_shared=no
18012 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18013 # soname into executable. Probably we can add versioning support to
18014 # collect2, so additional links can be useful in future.
18015 if test "$aix_use_runtimelinking" = yes; then
18016 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18017 # instead of lib<name>.a to let people know that these are not
18018 # typical AIX shared libraries.
18019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18021 # We preserve .a as extension for shared libraries through AIX4.2
18022 # and later when we are not doing run time linking.
18023 library_names_spec='${libname}${release}.a $libname.a'
18024 soname_spec='${libname}${release}${shared_ext}$major'
18026 shlibpath_var=LIBPATH
18031 library_names_spec='$libname.ixlibrary $libname.a'
18032 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18033 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'
18037 library_names_spec='${libname}${shared_ext}'
18038 dynamic_linker="$host_os ld.so"
18039 shlibpath_var=LIBRARY_PATH
18045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18046 soname_spec='${libname}${release}${shared_ext}$major'
18047 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18048 shlibpath_var=LD_LIBRARY_PATH
18049 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18050 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18051 # the default ld.so.conf also contains /usr/contrib/lib and
18052 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18053 # libtool to hard-code these into programs
18056 cygwin* | mingw* | pw32*)
18057 version_type=windows
18062 case $GCC,$host_os in
18063 yes,cygwin* | yes,mingw* | yes,pw32*)
18064 library_names_spec='$libname.dll.a'
18065 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18066 postinstall_cmds='base_file=`basename \${file}`~
18067 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18068 dldir=$destdir/`dirname \$dlpath`~
18069 test -d \$dldir || mkdir -p \$dldir~
18070 $install_prog $dir/$dlname \$dldir/$dlname~
18071 chmod a+x \$dldir/$dlname'
18072 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18073 dlpath=$dir/\$dldll~
18075 shlibpath_overrides_runpath=yes
18079 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18080 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18081 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18084 # MinGW DLLs use traditional 'lib' prefix
18085 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18086 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18087 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18088 # It is most probably a Windows format PATH printed by
18089 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18090 # path with ; separators, and with drive letters. We can handle the
18091 # drive letters (cygwin fileutils understands them), so leave them,
18092 # especially as we might pass files found there to a mingw objdump,
18093 # which wouldn't understand a cygwinified path. Ahh.
18094 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18096 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18100 # pw32 DLLs use 'pw' prefix rather than 'lib'
18101 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18107 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18110 dynamic_linker='Win32 ld.exe'
18111 # FIXME: first we should search . and the directory the executable is in
18115 darwin* | rhapsody*)
18116 dynamic_linker="$host_os dyld"
18117 version_type=darwin
18120 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18121 soname_spec='${libname}${release}${major}$shared_ext'
18122 shlibpath_overrides_runpath=yes
18123 shlibpath_var=DYLD_LIBRARY_PATH
18124 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18126 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18134 soname_spec='${libname}${release}${shared_ext}$major'
18135 shlibpath_var=LD_LIBRARY_PATH
18142 freebsd* | dragonfly*)
18143 # DragonFly does not have aout. When/if they implement a new
18144 # versioning mechanism, adjust this.
18145 if test -x /usr/bin/objformat; then
18146 objformat=`/usr/bin/objformat`
18149 freebsd[123]*) objformat=aout ;;
18150 *) objformat=elf ;;
18153 version_type=freebsd-$objformat
18154 case $version_type in
18156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18161 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18165 shlibpath_var=LD_LIBRARY_PATH
18168 shlibpath_overrides_runpath=yes
18170 freebsd3.[01]* | freebsdelf3.[01]*)
18171 shlibpath_overrides_runpath=yes
18172 hardcode_into_libs=yes
18174 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18175 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18176 shlibpath_overrides_runpath=no
18177 hardcode_into_libs=yes
18179 *) # from 4.6 on, and DragonFly
18180 shlibpath_overrides_runpath=yes
18181 hardcode_into_libs=yes
18190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18191 soname_spec='${libname}${release}${shared_ext}$major'
18192 shlibpath_var=LD_LIBRARY_PATH
18193 hardcode_into_libs=yes
18196 hpux9* | hpux10* | hpux11*)
18197 # Give a soname corresponding to the major version so that dld.sl refuses to
18198 # link against other versions.
18205 hardcode_into_libs=yes
18206 dynamic_linker="$host_os dld.so"
18207 shlibpath_var=LD_LIBRARY_PATH
18208 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18210 soname_spec='${libname}${release}${shared_ext}$major'
18211 if test "X$HPUX_IA64_MODE" = X32; then
18212 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18214 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18216 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18220 hardcode_into_libs=yes
18221 dynamic_linker="$host_os dld.sl"
18222 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18223 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18225 soname_spec='${libname}${release}${shared_ext}$major'
18226 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18227 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18231 dynamic_linker="$host_os dld.sl"
18232 shlibpath_var=SHLIB_PATH
18233 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18235 soname_spec='${libname}${release}${shared_ext}$major'
18238 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18239 postinstall_cmds='chmod 555 $lib'
18246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18247 soname_spec='${libname}${release}${shared_ext}$major'
18248 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18249 shlibpath_var=LD_LIBRARY_PATH
18250 shlibpath_overrides_runpath=no
18251 hardcode_into_libs=yes
18254 irix5* | irix6* | nonstopux*)
18256 nonstopux*) version_type=nonstopux ;;
18258 if test "$lt_cv_prog_gnu_ld" = yes; then
18266 soname_spec='${libname}${release}${shared_ext}$major'
18267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18269 irix5* | nonstopux*)
18270 libsuff= shlibsuff=
18273 case $LD in # libtool.m4 will add one of these switches to LD
18274 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18275 libsuff= shlibsuff= libmagic=32-bit;;
18276 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18277 libsuff=32 shlibsuff=N32 libmagic=N32;;
18278 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18279 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18280 *) libsuff= shlibsuff= libmagic=never-match;;
18284 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18285 shlibpath_overrides_runpath=no
18286 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18287 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18288 hardcode_into_libs=yes
18291 # No shared lib support for Linux oldld, aout, or coff.
18292 linux*oldld* | linux*aout* | linux*coff*)
18296 # This must be Linux ELF.
18297 linux* | k*bsd*-gnu)
18301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18302 soname_spec='${libname}${release}${shared_ext}$major'
18303 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18304 shlibpath_var=LD_LIBRARY_PATH
18305 shlibpath_overrides_runpath=no
18306 # This implies no fast_install, which is unacceptable.
18307 # Some rework will be needed to allow for fast_install
18308 # before this can be enabled.
18309 hardcode_into_libs=yes
18311 # Append ld.so.conf contents to the search path
18312 if test -f /etc/ld.so.conf; then
18313 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' ' '`
18314 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18317 # We used to test for /lib/ld.so.1 and disable shared libraries on
18318 # powerpc, because MkLinux only supported shared libraries with the
18319 # GNU dynamic linker. Since this was broken with cross compilers,
18320 # most powerpc-linux boxes support dynamic linking these days and
18321 # people can always --disable-shared, the test was removed, and we
18322 # assume the GNU/Linux dynamic linker is in use.
18323 dynamic_linker='GNU/Linux ld.so'
18330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18331 soname_spec='${libname}${release}${shared_ext}$major'
18332 shlibpath_var=LD_LIBRARY_PATH
18333 shlibpath_overrides_runpath=no
18334 hardcode_into_libs=yes
18335 dynamic_linker='NetBSD ld.elf_so'
18342 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18344 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18345 dynamic_linker='NetBSD (a.out) ld.so'
18347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18348 soname_spec='${libname}${release}${shared_ext}$major'
18349 dynamic_linker='NetBSD ld.elf_so'
18351 shlibpath_var=LD_LIBRARY_PATH
18352 shlibpath_overrides_runpath=yes
18353 hardcode_into_libs=yes
18358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18359 shlibpath_var=LD_LIBRARY_PATH
18360 shlibpath_overrides_runpath=yes
18367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18368 soname_spec='${libname}${release}${shared_ext}$major'
18369 shlibpath_var=LD_LIBRARY_PATH
18370 shlibpath_overrides_runpath=yes
18375 sys_lib_dlsearch_path_spec="/usr/lib"
18377 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18379 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18380 *) need_version=no ;;
18382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18383 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18384 shlibpath_var=LD_LIBRARY_PATH
18385 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18387 openbsd2.[89] | openbsd2.[89].*)
18388 shlibpath_overrides_runpath=no
18391 shlibpath_overrides_runpath=yes
18395 shlibpath_overrides_runpath=yes
18400 libname_spec='$name'
18403 library_names_spec='$libname${shared_ext} $libname.a'
18404 dynamic_linker='OS/2 ld.exe'
18405 shlibpath_var=LIBPATH
18408 osf3* | osf4* | osf5*)
18412 soname_spec='${libname}${release}${shared_ext}$major'
18413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18414 shlibpath_var=LD_LIBRARY_PATH
18415 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18416 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18428 soname_spec='${libname}${release}${shared_ext}$major'
18429 shlibpath_var=LD_LIBRARY_PATH
18430 shlibpath_overrides_runpath=yes
18431 hardcode_into_libs=yes
18432 # ldd complains unless libraries are executable
18433 postinstall_cmds='chmod +x $lib'
18438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18439 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18440 shlibpath_var=LD_LIBRARY_PATH
18441 shlibpath_overrides_runpath=yes
18442 if test "$with_gnu_ld" = yes; then
18450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18451 soname_spec='${libname}${release}${shared_ext}$major'
18452 shlibpath_var=LD_LIBRARY_PATH
18453 case $host_vendor in
18455 shlibpath_overrides_runpath=no
18457 export_dynamic_flag_spec='${wl}-Blargedynsym'
18458 runpath_var=LD_RUN_PATH
18466 shlibpath_overrides_runpath=no
18467 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18473 if test -d /usr/nec ;then
18475 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18476 soname_spec='$libname${shared_ext}.$major'
18477 shlibpath_var=LD_LIBRARY_PATH
18481 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18482 version_type=freebsd-elf
18485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18486 soname_spec='${libname}${release}${shared_ext}$major'
18487 shlibpath_var=LD_LIBRARY_PATH
18488 hardcode_into_libs=yes
18489 if test "$with_gnu_ld" = yes; then
18490 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18491 shlibpath_overrides_runpath=no
18493 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18494 shlibpath_overrides_runpath=yes
18497 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18501 sys_lib_dlsearch_path_spec='/usr/lib'
18506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18507 soname_spec='${libname}${release}${shared_ext}$major'
18508 shlibpath_var=LD_LIBRARY_PATH
18515 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18516 echo "${ECHO_T}$dynamic_linker" >&6; }
18517 test "$dynamic_linker" = no && can_build_shared=no
18519 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18520 if test "$GCC" = yes; then
18521 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18524 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18525 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18526 hardcode_action_GCJ=
18527 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18528 test -n "$runpath_var_GCJ" || \
18529 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18531 # We can hardcode non-existant directories.
18532 if test "$hardcode_direct_GCJ" != no &&
18533 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18534 # have to relink, otherwise we might link with an installed library
18535 # when we should be linking with a yet-to-be-installed one
18536 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18537 test "$hardcode_minus_L_GCJ" != no; then
18538 # Linking always hardcodes the temporary library directory.
18539 hardcode_action_GCJ=relink
18541 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18542 hardcode_action_GCJ=immediate
18545 # We cannot hardcode anything, or else we can only hardcode existing
18547 hardcode_action_GCJ=unsupported
18549 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18550 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18552 if test "$hardcode_action_GCJ" = relink; then
18553 # Fast installation is not supported
18554 enable_fast_install=no
18555 elif test "$shlibpath_overrides_runpath" = yes ||
18556 test "$enable_shared" = no; then
18557 # Fast installation is not necessary
18558 enable_fast_install=needless
18562 # The else clause should only fire when bootstrapping the
18563 # libtool distribution, otherwise you forgot to ship ltmain.sh
18564 # with your package, and you will get complaints that there are
18565 # no rules to generate ltmain.sh.
18566 if test -f "$ltmain"; then
18567 # See if we are running on zsh, and set the options which allow our commands through
18568 # without removal of \ escapes.
18569 if test -n "${ZSH_VERSION+set}" ; then
18570 setopt NO_GLOB_SUBST
18572 # Now quote all the things that may contain metacharacters while being
18573 # careful not to overquote the AC_SUBSTed values. We take copies of the
18574 # variables and quote the copies for generation of the libtool script.
18575 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18577 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18578 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18579 deplibs_check_method reload_flag reload_cmds need_locks \
18580 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18581 lt_cv_sys_global_symbol_to_c_name_address \
18582 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18583 old_postinstall_cmds old_postuninstall_cmds \
18587 lt_prog_compiler_wl_GCJ \
18588 lt_prog_compiler_pic_GCJ \
18589 lt_prog_compiler_static_GCJ \
18590 lt_prog_compiler_no_builtin_flag_GCJ \
18591 export_dynamic_flag_spec_GCJ \
18592 thread_safe_flag_spec_GCJ \
18593 whole_archive_flag_spec_GCJ \
18594 enable_shared_with_static_runtimes_GCJ \
18595 old_archive_cmds_GCJ \
18596 old_archive_from_new_cmds_GCJ \
18597 predep_objects_GCJ \
18598 postdep_objects_GCJ \
18601 compiler_lib_search_path_GCJ \
18603 archive_expsym_cmds_GCJ \
18604 postinstall_cmds_GCJ \
18605 postuninstall_cmds_GCJ \
18606 old_archive_from_expsyms_cmds_GCJ \
18607 allow_undefined_flag_GCJ \
18608 no_undefined_flag_GCJ \
18609 export_symbols_cmds_GCJ \
18610 hardcode_libdir_flag_spec_GCJ \
18611 hardcode_libdir_flag_spec_ld_GCJ \
18612 hardcode_libdir_separator_GCJ \
18613 hardcode_automatic_GCJ \
18615 module_expsym_cmds_GCJ \
18616 lt_cv_prog_compiler_c_o_GCJ \
18617 fix_srcfile_path_GCJ \
18618 exclude_expsyms_GCJ \
18619 include_expsyms_GCJ; do
18622 old_archive_cmds_GCJ | \
18623 old_archive_from_new_cmds_GCJ | \
18624 archive_cmds_GCJ | \
18625 archive_expsym_cmds_GCJ | \
18626 module_cmds_GCJ | \
18627 module_expsym_cmds_GCJ | \
18628 old_archive_from_expsyms_cmds_GCJ | \
18629 export_symbols_cmds_GCJ | \
18630 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18631 postinstall_cmds | postuninstall_cmds | \
18632 old_postinstall_cmds | old_postuninstall_cmds | \
18633 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18634 # Double-quote double-evaled strings.
18635 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18638 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18644 *'\$0 --fallback-echo"')
18645 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18651 cat <<__EOF__ >> "$cfgfile"
18652 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18654 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18656 # Shell to use when invoking shell scripts.
18659 # Whether or not to build shared libraries.
18660 build_libtool_libs=$enable_shared
18662 # Whether or not to build static libraries.
18663 build_old_libs=$enable_static
18665 # Whether or not to add -lc for building shared libraries.
18666 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18668 # Whether or not to disallow shared libs when runtime libs are static
18669 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18671 # Whether or not to optimize for fast installation.
18672 fast_install=$enable_fast_install
18675 host_alias=$host_alias
18679 # The build system.
18680 build_alias=$build_alias
18684 # An echo program that does not interpret backslashes.
18689 AR_FLAGS=$lt_AR_FLAGS
18694 # LTCC compiler flags.
18695 LTCFLAGS=$lt_LTCFLAGS
18697 # A language-specific compiler.
18698 CC=$lt_compiler_GCJ
18700 # Is the compiler the GNU C compiler?
18706 # The linker used to build libraries.
18709 # Whether we need hard or soft links.
18712 # A BSD-compatible nm program.
18715 # A symbol stripping program
18718 # Used to examine libraries when file_magic_cmd begins "file"
18719 MAGIC_CMD=$MAGIC_CMD
18721 # Used on cygwin: DLL creation program.
18724 # Used on cygwin: object dumper.
18727 # Used on cygwin: assembler.
18730 # The name of the directory that contains temporary libtool files.
18733 # How to create reloadable object files.
18734 reload_flag=$lt_reload_flag
18735 reload_cmds=$lt_reload_cmds
18737 # How to pass a linker flag through the compiler.
18738 wl=$lt_lt_prog_compiler_wl_GCJ
18740 # Object file suffix (normally "o").
18741 objext="$ac_objext"
18743 # Old archive suffix (normally "a").
18746 # Shared library suffix (normally ".so").
18747 shrext_cmds='$shrext_cmds'
18749 # Executable file suffix (normally "").
18752 # Additional compiler flags for building library objects.
18753 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18756 # What is the maximum length of a command?
18757 max_cmd_len=$lt_cv_sys_max_cmd_len
18759 # Does compiler simultaneously support -c and -o options?
18760 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18762 # Must we lock files when doing compilation?
18763 need_locks=$lt_need_locks
18765 # Do we need the lib prefix for modules?
18766 need_lib_prefix=$need_lib_prefix
18768 # Do we need a version for libraries?
18769 need_version=$need_version
18771 # Whether dlopen is supported.
18772 dlopen_support=$enable_dlopen
18774 # Whether dlopen of programs is supported.
18775 dlopen_self=$enable_dlopen_self
18777 # Whether dlopen of statically linked programs is supported.
18778 dlopen_self_static=$enable_dlopen_self_static
18780 # Compiler flag to prevent dynamic linking.
18781 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18783 # Compiler flag to turn off builtin functions.
18784 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18786 # Compiler flag to allow reflexive dlopens.
18787 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18789 # Compiler flag to generate shared objects directly from archives.
18790 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18792 # Compiler flag to generate thread-safe objects.
18793 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18795 # Library versioning type.
18796 version_type=$version_type
18798 # Format of library name prefix.
18799 libname_spec=$lt_libname_spec
18801 # List of archive names. First name is the real one, the rest are links.
18802 # The last name is the one that the linker finds with -lNAME.
18803 library_names_spec=$lt_library_names_spec
18805 # The coded name of the library, if different from the real name.
18806 soname_spec=$lt_soname_spec
18808 # Commands used to build and install an old-style archive.
18810 old_archive_cmds=$lt_old_archive_cmds_GCJ
18811 old_postinstall_cmds=$lt_old_postinstall_cmds
18812 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18814 # Create an old-style archive from a shared archive.
18815 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18817 # Create a temporary old-style archive to link instead of a shared archive.
18818 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18820 # Commands used to build and install a shared archive.
18821 archive_cmds=$lt_archive_cmds_GCJ
18822 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18823 postinstall_cmds=$lt_postinstall_cmds
18824 postuninstall_cmds=$lt_postuninstall_cmds
18826 # Commands used to build a loadable module (assumed same as above if empty)
18827 module_cmds=$lt_module_cmds_GCJ
18828 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18830 # Commands to strip libraries.
18831 old_striplib=$lt_old_striplib
18832 striplib=$lt_striplib
18834 # Dependencies to place before the objects being linked to create a
18836 predep_objects=$lt_predep_objects_GCJ
18838 # Dependencies to place after the objects being linked to create a
18840 postdep_objects=$lt_postdep_objects_GCJ
18842 # Dependencies to place before the objects being linked to create a
18844 predeps=$lt_predeps_GCJ
18846 # Dependencies to place after the objects being linked to create a
18848 postdeps=$lt_postdeps_GCJ
18850 # The library search path used internally by the compiler when linking
18851 # a shared library.
18852 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18854 # Method to check whether dependent libraries are shared objects.
18855 deplibs_check_method=$lt_deplibs_check_method
18857 # Command to use when deplibs_check_method == file_magic.
18858 file_magic_cmd=$lt_file_magic_cmd
18860 # Flag that allows shared libraries with undefined symbols to be built.
18861 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18863 # Flag that forces no undefined symbols.
18864 no_undefined_flag=$lt_no_undefined_flag_GCJ
18866 # Commands used to finish a libtool library installation in a directory.
18867 finish_cmds=$lt_finish_cmds
18869 # Same as above, but a single script fragment to be evaled but not shown.
18870 finish_eval=$lt_finish_eval
18872 # Take the output of nm and produce a listing of raw symbols and C names.
18873 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18875 # Transform the output of nm in a proper C declaration
18876 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18878 # Transform the output of nm in a C name address pair
18879 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18881 # This is the shared library runtime path variable.
18882 runpath_var=$runpath_var
18884 # This is the shared library path variable.
18885 shlibpath_var=$shlibpath_var
18887 # Is shlibpath searched before the hard-coded library search path?
18888 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18890 # How to hardcode a shared library path into an executable.
18891 hardcode_action=$hardcode_action_GCJ
18893 # Whether we should hardcode library paths into libraries.
18894 hardcode_into_libs=$hardcode_into_libs
18896 # Flag to hardcode \$libdir into a binary during linking.
18897 # This must work even if \$libdir does not exist.
18898 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18900 # If ld is used when linking, flag to hardcode \$libdir into
18901 # a binary during linking. This must work even if \$libdir does
18903 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18905 # Whether we need a single -rpath flag with a separated argument.
18906 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18908 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18909 # resulting binary.
18910 hardcode_direct=$hardcode_direct_GCJ
18912 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18913 # resulting binary.
18914 hardcode_minus_L=$hardcode_minus_L_GCJ
18916 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18917 # the resulting binary.
18918 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18920 # Set to yes if building a shared library automatically hardcodes DIR into the library
18921 # and all subsequent libraries and executables linked against it.
18922 hardcode_automatic=$hardcode_automatic_GCJ
18924 # Variables whose values should be saved in libtool wrapper scripts and
18925 # restored at relink time.
18926 variables_saved_for_relink="$variables_saved_for_relink"
18928 # Whether libtool must link a program against all its dependency libraries.
18929 link_all_deplibs=$link_all_deplibs_GCJ
18931 # Compile-time system search path for libraries
18932 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18934 # Run-time system search path for libraries
18935 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18937 # Fix the shell variable \$srcfile for the compiler.
18938 fix_srcfile_path=$lt_fix_srcfile_path
18940 # Set to yes if exported symbols are required.
18941 always_export_symbols=$always_export_symbols_GCJ
18943 # The commands to list exported symbols.
18944 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18946 # The commands to extract the exported symbol list from a shared archive.
18947 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18949 # Symbols that should not be listed in the preloaded symbols.
18950 exclude_expsyms=$lt_exclude_expsyms_GCJ
18952 # Symbols that must always be exported.
18953 include_expsyms=$lt_include_expsyms_GCJ
18955 # ### END LIBTOOL TAG CONFIG: $tagname
18961 # If there is no Makefile yet, we rely on a make rule to execute
18962 # `config.status --recheck' to rerun these tests and create the
18963 # libtool script then.
18964 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18965 if test -f "$ltmain_in"; then
18966 test -f Makefile && make "$ltmain"
18972 ac_cpp='$CPP $CPPFLAGS'
18973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18987 # Source file extension for RC test sources.
18990 # Object file extension for compiled RC test sources.
18994 # Code to be used in simple compile tests
18995 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18997 # Code to be used in simple link tests
18998 lt_simple_link_test_code="$lt_simple_compile_test_code"
19000 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19002 # If no C compiler was specified, use CC.
19005 # If no C compiler flags were specified, use CFLAGS.
19006 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19008 # Allow CC to be a program name with arguments.
19012 # save warnings/boilerplate of simple test code
19013 ac_outfile=conftest.$ac_objext
19014 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19015 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19016 _lt_compiler_boilerplate=`cat conftest.err`
19019 ac_outfile=conftest.$ac_objext
19020 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19021 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19022 _lt_linker_boilerplate=`cat conftest.err`
19026 # Allow CC to be a program name with arguments.
19031 for cc_temp in $compiler""; do
19033 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19034 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19039 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19041 lt_cv_prog_compiler_c_o_RC=yes
19043 # The else clause should only fire when bootstrapping the
19044 # libtool distribution, otherwise you forgot to ship ltmain.sh
19045 # with your package, and you will get complaints that there are
19046 # no rules to generate ltmain.sh.
19047 if test -f "$ltmain"; then
19048 # See if we are running on zsh, and set the options which allow our commands through
19049 # without removal of \ escapes.
19050 if test -n "${ZSH_VERSION+set}" ; then
19051 setopt NO_GLOB_SUBST
19053 # Now quote all the things that may contain metacharacters while being
19054 # careful not to overquote the AC_SUBSTed values. We take copies of the
19055 # variables and quote the copies for generation of the libtool script.
19056 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19058 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19059 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19060 deplibs_check_method reload_flag reload_cmds need_locks \
19061 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19062 lt_cv_sys_global_symbol_to_c_name_address \
19063 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19064 old_postinstall_cmds old_postuninstall_cmds \
19068 lt_prog_compiler_wl_RC \
19069 lt_prog_compiler_pic_RC \
19070 lt_prog_compiler_static_RC \
19071 lt_prog_compiler_no_builtin_flag_RC \
19072 export_dynamic_flag_spec_RC \
19073 thread_safe_flag_spec_RC \
19074 whole_archive_flag_spec_RC \
19075 enable_shared_with_static_runtimes_RC \
19076 old_archive_cmds_RC \
19077 old_archive_from_new_cmds_RC \
19078 predep_objects_RC \
19079 postdep_objects_RC \
19082 compiler_lib_search_path_RC \
19084 archive_expsym_cmds_RC \
19085 postinstall_cmds_RC \
19086 postuninstall_cmds_RC \
19087 old_archive_from_expsyms_cmds_RC \
19088 allow_undefined_flag_RC \
19089 no_undefined_flag_RC \
19090 export_symbols_cmds_RC \
19091 hardcode_libdir_flag_spec_RC \
19092 hardcode_libdir_flag_spec_ld_RC \
19093 hardcode_libdir_separator_RC \
19094 hardcode_automatic_RC \
19096 module_expsym_cmds_RC \
19097 lt_cv_prog_compiler_c_o_RC \
19098 fix_srcfile_path_RC \
19099 exclude_expsyms_RC \
19100 include_expsyms_RC; do
19103 old_archive_cmds_RC | \
19104 old_archive_from_new_cmds_RC | \
19105 archive_cmds_RC | \
19106 archive_expsym_cmds_RC | \
19108 module_expsym_cmds_RC | \
19109 old_archive_from_expsyms_cmds_RC | \
19110 export_symbols_cmds_RC | \
19111 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19112 postinstall_cmds | postuninstall_cmds | \
19113 old_postinstall_cmds | old_postuninstall_cmds | \
19114 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19115 # Double-quote double-evaled strings.
19116 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19119 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19125 *'\$0 --fallback-echo"')
19126 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19132 cat <<__EOF__ >> "$cfgfile"
19133 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19135 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19137 # Shell to use when invoking shell scripts.
19140 # Whether or not to build shared libraries.
19141 build_libtool_libs=$enable_shared
19143 # Whether or not to build static libraries.
19144 build_old_libs=$enable_static
19146 # Whether or not to add -lc for building shared libraries.
19147 build_libtool_need_lc=$archive_cmds_need_lc_RC
19149 # Whether or not to disallow shared libs when runtime libs are static
19150 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19152 # Whether or not to optimize for fast installation.
19153 fast_install=$enable_fast_install
19156 host_alias=$host_alias
19160 # The build system.
19161 build_alias=$build_alias
19165 # An echo program that does not interpret backslashes.
19170 AR_FLAGS=$lt_AR_FLAGS
19175 # LTCC compiler flags.
19176 LTCFLAGS=$lt_LTCFLAGS
19178 # A language-specific compiler.
19181 # Is the compiler the GNU C compiler?
19187 # The linker used to build libraries.
19190 # Whether we need hard or soft links.
19193 # A BSD-compatible nm program.
19196 # A symbol stripping program
19199 # Used to examine libraries when file_magic_cmd begins "file"
19200 MAGIC_CMD=$MAGIC_CMD
19202 # Used on cygwin: DLL creation program.
19205 # Used on cygwin: object dumper.
19208 # Used on cygwin: assembler.
19211 # The name of the directory that contains temporary libtool files.
19214 # How to create reloadable object files.
19215 reload_flag=$lt_reload_flag
19216 reload_cmds=$lt_reload_cmds
19218 # How to pass a linker flag through the compiler.
19219 wl=$lt_lt_prog_compiler_wl_RC
19221 # Object file suffix (normally "o").
19222 objext="$ac_objext"
19224 # Old archive suffix (normally "a").
19227 # Shared library suffix (normally ".so").
19228 shrext_cmds='$shrext_cmds'
19230 # Executable file suffix (normally "").
19233 # Additional compiler flags for building library objects.
19234 pic_flag=$lt_lt_prog_compiler_pic_RC
19237 # What is the maximum length of a command?
19238 max_cmd_len=$lt_cv_sys_max_cmd_len
19240 # Does compiler simultaneously support -c and -o options?
19241 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19243 # Must we lock files when doing compilation?
19244 need_locks=$lt_need_locks
19246 # Do we need the lib prefix for modules?
19247 need_lib_prefix=$need_lib_prefix
19249 # Do we need a version for libraries?
19250 need_version=$need_version
19252 # Whether dlopen is supported.
19253 dlopen_support=$enable_dlopen
19255 # Whether dlopen of programs is supported.
19256 dlopen_self=$enable_dlopen_self
19258 # Whether dlopen of statically linked programs is supported.
19259 dlopen_self_static=$enable_dlopen_self_static
19261 # Compiler flag to prevent dynamic linking.
19262 link_static_flag=$lt_lt_prog_compiler_static_RC
19264 # Compiler flag to turn off builtin functions.
19265 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19267 # Compiler flag to allow reflexive dlopens.
19268 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19270 # Compiler flag to generate shared objects directly from archives.
19271 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19273 # Compiler flag to generate thread-safe objects.
19274 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19276 # Library versioning type.
19277 version_type=$version_type
19279 # Format of library name prefix.
19280 libname_spec=$lt_libname_spec
19282 # List of archive names. First name is the real one, the rest are links.
19283 # The last name is the one that the linker finds with -lNAME.
19284 library_names_spec=$lt_library_names_spec
19286 # The coded name of the library, if different from the real name.
19287 soname_spec=$lt_soname_spec
19289 # Commands used to build and install an old-style archive.
19291 old_archive_cmds=$lt_old_archive_cmds_RC
19292 old_postinstall_cmds=$lt_old_postinstall_cmds
19293 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19295 # Create an old-style archive from a shared archive.
19296 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19298 # Create a temporary old-style archive to link instead of a shared archive.
19299 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19301 # Commands used to build and install a shared archive.
19302 archive_cmds=$lt_archive_cmds_RC
19303 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19304 postinstall_cmds=$lt_postinstall_cmds
19305 postuninstall_cmds=$lt_postuninstall_cmds
19307 # Commands used to build a loadable module (assumed same as above if empty)
19308 module_cmds=$lt_module_cmds_RC
19309 module_expsym_cmds=$lt_module_expsym_cmds_RC
19311 # Commands to strip libraries.
19312 old_striplib=$lt_old_striplib
19313 striplib=$lt_striplib
19315 # Dependencies to place before the objects being linked to create a
19317 predep_objects=$lt_predep_objects_RC
19319 # Dependencies to place after the objects being linked to create a
19321 postdep_objects=$lt_postdep_objects_RC
19323 # Dependencies to place before the objects being linked to create a
19325 predeps=$lt_predeps_RC
19327 # Dependencies to place after the objects being linked to create a
19329 postdeps=$lt_postdeps_RC
19331 # The library search path used internally by the compiler when linking
19332 # a shared library.
19333 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19335 # Method to check whether dependent libraries are shared objects.
19336 deplibs_check_method=$lt_deplibs_check_method
19338 # Command to use when deplibs_check_method == file_magic.
19339 file_magic_cmd=$lt_file_magic_cmd
19341 # Flag that allows shared libraries with undefined symbols to be built.
19342 allow_undefined_flag=$lt_allow_undefined_flag_RC
19344 # Flag that forces no undefined symbols.
19345 no_undefined_flag=$lt_no_undefined_flag_RC
19347 # Commands used to finish a libtool library installation in a directory.
19348 finish_cmds=$lt_finish_cmds
19350 # Same as above, but a single script fragment to be evaled but not shown.
19351 finish_eval=$lt_finish_eval
19353 # Take the output of nm and produce a listing of raw symbols and C names.
19354 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19356 # Transform the output of nm in a proper C declaration
19357 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19359 # Transform the output of nm in a C name address pair
19360 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19362 # This is the shared library runtime path variable.
19363 runpath_var=$runpath_var
19365 # This is the shared library path variable.
19366 shlibpath_var=$shlibpath_var
19368 # Is shlibpath searched before the hard-coded library search path?
19369 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19371 # How to hardcode a shared library path into an executable.
19372 hardcode_action=$hardcode_action_RC
19374 # Whether we should hardcode library paths into libraries.
19375 hardcode_into_libs=$hardcode_into_libs
19377 # Flag to hardcode \$libdir into a binary during linking.
19378 # This must work even if \$libdir does not exist.
19379 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19381 # If ld is used when linking, flag to hardcode \$libdir into
19382 # a binary during linking. This must work even if \$libdir does
19384 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19386 # Whether we need a single -rpath flag with a separated argument.
19387 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19389 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19390 # resulting binary.
19391 hardcode_direct=$hardcode_direct_RC
19393 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19394 # resulting binary.
19395 hardcode_minus_L=$hardcode_minus_L_RC
19397 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19398 # the resulting binary.
19399 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19401 # Set to yes if building a shared library automatically hardcodes DIR into the library
19402 # and all subsequent libraries and executables linked against it.
19403 hardcode_automatic=$hardcode_automatic_RC
19405 # Variables whose values should be saved in libtool wrapper scripts and
19406 # restored at relink time.
19407 variables_saved_for_relink="$variables_saved_for_relink"
19409 # Whether libtool must link a program against all its dependency libraries.
19410 link_all_deplibs=$link_all_deplibs_RC
19412 # Compile-time system search path for libraries
19413 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19415 # Run-time system search path for libraries
19416 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19418 # Fix the shell variable \$srcfile for the compiler.
19419 fix_srcfile_path=$lt_fix_srcfile_path
19421 # Set to yes if exported symbols are required.
19422 always_export_symbols=$always_export_symbols_RC
19424 # The commands to list exported symbols.
19425 export_symbols_cmds=$lt_export_symbols_cmds_RC
19427 # The commands to extract the exported symbol list from a shared archive.
19428 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19430 # Symbols that should not be listed in the preloaded symbols.
19431 exclude_expsyms=$lt_exclude_expsyms_RC
19433 # Symbols that must always be exported.
19434 include_expsyms=$lt_include_expsyms_RC
19436 # ### END LIBTOOL TAG CONFIG: $tagname
19442 # If there is no Makefile yet, we rely on a make rule to execute
19443 # `config.status --recheck' to rerun these tests and create the
19444 # libtool script then.
19445 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19446 if test -f "$ltmain_in"; then
19447 test -f Makefile && make "$ltmain"
19453 ac_cpp='$CPP $CPPFLAGS'
19454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19463 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19464 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19465 { (exit 1); exit 1; }; }
19469 # Append the new tag name to the list of available tags.
19470 if test -n "$tagname" ; then
19471 available_tags="$available_tags $tagname"
19477 # Now substitute the updated list of available tags.
19478 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19479 mv "${ofile}T" "$ofile"
19483 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19484 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19485 { (exit 1); exit 1; }; }
19491 # This can be used to rebuild libtool when needed
19492 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19494 # Always use our own libtool.
19495 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19497 # Prevent multiple expansion
19518 # Find a good install program. We prefer a C program (faster),
19519 # so one script is as good as another. But avoid the broken or
19520 # incompatible versions:
19521 # SysV /etc/install, /usr/sbin/install
19522 # SunOS /usr/etc/install
19523 # IRIX /sbin/install
19525 # AmigaOS /C/install, which installs bootblocks on floppy discs
19526 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19527 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
19528 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19529 # OS/2's system install, which has a completely different semantic
19530 # ./install, which can be erroneously created by make from ./install.sh.
19531 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
19532 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
19533 if test -z "$INSTALL"; then
19534 if test "${ac_cv_path_install+set}" = set; then
19535 echo $ECHO_N "(cached) $ECHO_C" >&6
19537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19538 for as_dir in $PATH
19541 test -z "$as_dir" && as_dir=.
19542 # Account for people who put trailing slashes in PATH elements.
19544 ./ | .// | /cC/* | \
19545 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19546 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
19549 # OSF1 and SCO ODT 3.0 have their own names for install.
19550 # Don't use installbsd from OSF since it installs stuff as root
19552 for ac_prog in ginstall scoinst install; do
19553 for ac_exec_ext in '' $ac_executable_extensions; do
19554 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
19555 if test $ac_prog = install &&
19556 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19557 # AIX install. It has an incompatible calling convention.
19559 elif test $ac_prog = install &&
19560 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19561 # program-specific install script used by HP pwplus--don't use.
19564 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
19577 if test "${ac_cv_path_install+set}" = set; then
19578 INSTALL=$ac_cv_path_install
19580 # As a last resort, use the slow shell script. Don't cache a
19581 # value for INSTALL within a source directory, because that will
19582 # break other packages using the cache if that directory is
19583 # removed, or if the value is a relative name.
19584 INSTALL=$ac_install_sh
19587 { echo "$as_me:$LINENO: result: $INSTALL" >&5
19588 echo "${ECHO_T}$INSTALL" >&6; }
19590 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19591 # It thinks the first close brace ends the variable substitution.
19592 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
19594 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
19596 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
19599 # Checks for libraries.
19601 # Checks for header files.
19602 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19603 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19604 if test "${ac_cv_header_stdc+set}" = set; then
19605 echo $ECHO_N "(cached) $ECHO_C" >&6
19607 cat >conftest.$ac_ext <<_ACEOF
19610 cat confdefs.h >>conftest.$ac_ext
19611 cat >>conftest.$ac_ext <<_ACEOF
19612 /* end confdefs.h. */
19613 #include <stdlib.h>
19614 #include <stdarg.h>
19615 #include <string.h>
19626 rm -f conftest.$ac_objext
19627 if { (ac_try="$ac_compile"
19628 case "(($ac_try" in
19629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19630 *) ac_try_echo=$ac_try;;
19632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19633 (eval "$ac_compile") 2>conftest.er1
19635 grep -v '^ *+' conftest.er1 >conftest.err
19637 cat conftest.err >&5
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); } && {
19640 test -z "$ac_c_werror_flag" ||
19641 test ! -s conftest.err
19642 } && test -s conftest.$ac_objext; then
19643 ac_cv_header_stdc=yes
19645 echo "$as_me: failed program was:" >&5
19646 sed 's/^/| /' conftest.$ac_ext >&5
19648 ac_cv_header_stdc=no
19651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19653 if test $ac_cv_header_stdc = yes; then
19654 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19655 cat >conftest.$ac_ext <<_ACEOF
19658 cat confdefs.h >>conftest.$ac_ext
19659 cat >>conftest.$ac_ext <<_ACEOF
19660 /* end confdefs.h. */
19661 #include <string.h>
19664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19665 $EGREP "memchr" >/dev/null 2>&1; then
19668 ac_cv_header_stdc=no
19674 if test $ac_cv_header_stdc = yes; then
19675 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19676 cat >conftest.$ac_ext <<_ACEOF
19679 cat confdefs.h >>conftest.$ac_ext
19680 cat >>conftest.$ac_ext <<_ACEOF
19681 /* end confdefs.h. */
19682 #include <stdlib.h>
19685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19686 $EGREP "free" >/dev/null 2>&1; then
19689 ac_cv_header_stdc=no
19695 if test $ac_cv_header_stdc = yes; then
19696 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19697 if test "$cross_compiling" = yes; then
19700 cat >conftest.$ac_ext <<_ACEOF
19703 cat confdefs.h >>conftest.$ac_ext
19704 cat >>conftest.$ac_ext <<_ACEOF
19705 /* end confdefs.h. */
19707 #include <stdlib.h>
19708 #if ((' ' & 0x0FF) == 0x020)
19709 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19710 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19712 # define ISLOWER(c) \
19713 (('a' <= (c) && (c) <= 'i') \
19714 || ('j' <= (c) && (c) <= 'r') \
19715 || ('s' <= (c) && (c) <= 'z'))
19716 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19719 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19724 for (i = 0; i < 256; i++)
19725 if (XOR (islower (i), ISLOWER (i))
19726 || toupper (i) != TOUPPER (i))
19731 rm -f conftest$ac_exeext
19732 if { (ac_try="$ac_link"
19733 case "(($ac_try" in
19734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19735 *) ac_try_echo=$ac_try;;
19737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19738 (eval "$ac_link") 2>&5
19740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19742 { (case "(($ac_try" in
19743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19744 *) ac_try_echo=$ac_try;;
19746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19747 (eval "$ac_try") 2>&5
19749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19750 (exit $ac_status); }; }; then
19753 echo "$as_me: program exited with status $ac_status" >&5
19754 echo "$as_me: failed program was:" >&5
19755 sed 's/^/| /' conftest.$ac_ext >&5
19757 ( exit $ac_status )
19758 ac_cv_header_stdc=no
19760 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19766 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19767 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19768 if test $ac_cv_header_stdc = yes; then
19770 cat >>confdefs.h <<\_ACEOF
19771 #define STDC_HEADERS 1
19778 for ac_header in stdlib.h string.h
19780 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19781 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19782 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19785 echo $ECHO_N "(cached) $ECHO_C" >&6
19787 ac_res=`eval echo '${'$as_ac_Header'}'`
19788 { echo "$as_me:$LINENO: result: $ac_res" >&5
19789 echo "${ECHO_T}$ac_res" >&6; }
19791 # Is the header compilable?
19792 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19793 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19794 cat >conftest.$ac_ext <<_ACEOF
19797 cat confdefs.h >>conftest.$ac_ext
19798 cat >>conftest.$ac_ext <<_ACEOF
19799 /* end confdefs.h. */
19800 $ac_includes_default
19801 #include <$ac_header>
19803 rm -f conftest.$ac_objext
19804 if { (ac_try="$ac_compile"
19805 case "(($ac_try" in
19806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19807 *) ac_try_echo=$ac_try;;
19809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19810 (eval "$ac_compile") 2>conftest.er1
19812 grep -v '^ *+' conftest.er1 >conftest.err
19814 cat conftest.err >&5
19815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816 (exit $ac_status); } && {
19817 test -z "$ac_c_werror_flag" ||
19818 test ! -s conftest.err
19819 } && test -s conftest.$ac_objext; then
19820 ac_header_compiler=yes
19822 echo "$as_me: failed program was:" >&5
19823 sed 's/^/| /' conftest.$ac_ext >&5
19825 ac_header_compiler=no
19828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19829 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19830 echo "${ECHO_T}$ac_header_compiler" >&6; }
19832 # Is the header present?
19833 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19834 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19835 cat >conftest.$ac_ext <<_ACEOF
19838 cat confdefs.h >>conftest.$ac_ext
19839 cat >>conftest.$ac_ext <<_ACEOF
19840 /* end confdefs.h. */
19841 #include <$ac_header>
19843 if { (ac_try="$ac_cpp conftest.$ac_ext"
19844 case "(($ac_try" in
19845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19846 *) ac_try_echo=$ac_try;;
19848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19851 grep -v '^ *+' conftest.er1 >conftest.err
19853 cat conftest.err >&5
19854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855 (exit $ac_status); } >/dev/null && {
19856 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19857 test ! -s conftest.err
19859 ac_header_preproc=yes
19861 echo "$as_me: failed program was:" >&5
19862 sed 's/^/| /' conftest.$ac_ext >&5
19864 ac_header_preproc=no
19867 rm -f conftest.err conftest.$ac_ext
19868 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19869 echo "${ECHO_T}$ac_header_preproc" >&6; }
19871 # So? What about this header?
19872 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19874 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19875 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19876 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19877 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19878 ac_header_preproc=yes
19881 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19882 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19883 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19884 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19885 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19886 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19887 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19888 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19890 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19891 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19892 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19894 ## ----------------------------------------------- ##
19895 ## Report this to http://kldp.net/projects/hangul/ ##
19896 ## ----------------------------------------------- ##
19898 ) | sed "s/^/$as_me: WARNING: /" >&2
19901 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19902 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19904 echo $ECHO_N "(cached) $ECHO_C" >&6
19906 eval "$as_ac_Header=\$ac_header_preproc"
19908 ac_res=`eval echo '${'$as_ac_Header'}'`
19909 { echo "$as_me:$LINENO: result: $ac_res" >&5
19910 echo "${ECHO_T}$ac_res" >&6; }
19913 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19914 cat >>confdefs.h <<_ACEOF
19915 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19923 # Checks for typedefs, structures, and compiler characteristics.
19924 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
19925 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
19926 if test "${ac_cv_header_stdbool_h+set}" = set; then
19927 echo $ECHO_N "(cached) $ECHO_C" >&6
19929 cat >conftest.$ac_ext <<_ACEOF
19932 cat confdefs.h >>conftest.$ac_ext
19933 cat >>conftest.$ac_ext <<_ACEOF
19934 /* end confdefs.h. */
19936 #include <stdbool.h>
19938 "error: bool is not defined"
19941 "error: false is not defined"
19944 "error: false is not 0"
19947 "error: true is not defined"
19950 "error: true is not 1"
19952 #ifndef __bool_true_false_are_defined
19953 "error: __bool_true_false_are_defined is not defined"
19956 struct s { _Bool s: 1; _Bool t; } s;
19958 char a[true == 1 ? 1 : -1];
19959 char b[false == 0 ? 1 : -1];
19960 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19961 char d[(bool) 0.5 == true ? 1 : -1];
19963 char f[(_Bool) 0.0 == false ? 1 : -1];
19965 char h[sizeof (_Bool)];
19966 char i[sizeof s.t];
19967 enum { j = false, k = true, l = false * true, m = true * 256 };
19969 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19970 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19971 # if defined __xlc__ || defined __GNUC__
19972 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
19973 reported by James Lemley on 2005-10-05; see
19974 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
19975 This test is not quite right, since xlc is allowed to
19976 reject this program, as the initializer for xlcbug is
19977 not one of the forms that C requires support for.
19978 However, doing the test right would require a runtime
19979 test, and that would make cross-compilation harder.
19980 Let us hope that IBM fixes the xlc bug, and also adds
19981 support for this kind of constant expression. In the
19982 meantime, this test will reject xlc, which is OK, since
19983 our stdbool.h substitute should suffice. We also test
19984 this with GCC, where it should work, to detect more
19985 quickly whether someone messes up the test in the
19987 char digs[] = "0123456789";
19988 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
19990 /* Catch a bug in an HP-UX C compiler. See
19991 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19992 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20003 /* Refer to every declared value, to avoid compiler optimizations. */
20004 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20005 + !m + !n + !o + !p + !q + !pq);
20011 rm -f conftest.$ac_objext
20012 if { (ac_try="$ac_compile"
20013 case "(($ac_try" in
20014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20015 *) ac_try_echo=$ac_try;;
20017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20018 (eval "$ac_compile") 2>conftest.er1
20020 grep -v '^ *+' conftest.er1 >conftest.err
20022 cat conftest.err >&5
20023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024 (exit $ac_status); } && {
20025 test -z "$ac_c_werror_flag" ||
20026 test ! -s conftest.err
20027 } && test -s conftest.$ac_objext; then
20028 ac_cv_header_stdbool_h=yes
20030 echo "$as_me: failed program was:" >&5
20031 sed 's/^/| /' conftest.$ac_ext >&5
20033 ac_cv_header_stdbool_h=no
20036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20038 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
20039 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
20040 { echo "$as_me:$LINENO: checking for _Bool" >&5
20041 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
20042 if test "${ac_cv_type__Bool+set}" = set; then
20043 echo $ECHO_N "(cached) $ECHO_C" >&6
20045 cat >conftest.$ac_ext <<_ACEOF
20048 cat confdefs.h >>conftest.$ac_ext
20049 cat >>conftest.$ac_ext <<_ACEOF
20050 /* end confdefs.h. */
20051 $ac_includes_default
20052 typedef _Bool ac__type_new_;
20056 if ((ac__type_new_ *) 0)
20058 if (sizeof (ac__type_new_))
20064 rm -f conftest.$ac_objext
20065 if { (ac_try="$ac_compile"
20066 case "(($ac_try" in
20067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20068 *) ac_try_echo=$ac_try;;
20070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20071 (eval "$ac_compile") 2>conftest.er1
20073 grep -v '^ *+' conftest.er1 >conftest.err
20075 cat conftest.err >&5
20076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20077 (exit $ac_status); } && {
20078 test -z "$ac_c_werror_flag" ||
20079 test ! -s conftest.err
20080 } && test -s conftest.$ac_objext; then
20081 ac_cv_type__Bool=yes
20083 echo "$as_me: failed program was:" >&5
20084 sed 's/^/| /' conftest.$ac_ext >&5
20086 ac_cv_type__Bool=no
20089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20091 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
20092 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
20093 if test $ac_cv_type__Bool = yes; then
20095 cat >>confdefs.h <<_ACEOF
20096 #define HAVE__BOOL 1
20102 if test $ac_cv_header_stdbool_h = yes; then
20104 cat >>confdefs.h <<\_ACEOF
20105 #define HAVE_STDBOOL_H 1
20110 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20111 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
20112 if test "${ac_cv_c_bigendian+set}" = set; then
20113 echo $ECHO_N "(cached) $ECHO_C" >&6
20115 # See if sys/param.h defines the BYTE_ORDER macro.
20116 cat >conftest.$ac_ext <<_ACEOF
20119 cat confdefs.h >>conftest.$ac_ext
20120 cat >>conftest.$ac_ext <<_ACEOF
20121 /* end confdefs.h. */
20122 #include <sys/types.h>
20123 #include <sys/param.h>
20128 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
20129 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
20130 bogus endian macros
20137 rm -f conftest.$ac_objext
20138 if { (ac_try="$ac_compile"
20139 case "(($ac_try" in
20140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20141 *) ac_try_echo=$ac_try;;
20143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20144 (eval "$ac_compile") 2>conftest.er1
20146 grep -v '^ *+' conftest.er1 >conftest.err
20148 cat conftest.err >&5
20149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150 (exit $ac_status); } && {
20151 test -z "$ac_c_werror_flag" ||
20152 test ! -s conftest.err
20153 } && test -s conftest.$ac_objext; then
20154 # It does; now see whether it defined to BIG_ENDIAN or not.
20155 cat >conftest.$ac_ext <<_ACEOF
20158 cat confdefs.h >>conftest.$ac_ext
20159 cat >>conftest.$ac_ext <<_ACEOF
20160 /* end confdefs.h. */
20161 #include <sys/types.h>
20162 #include <sys/param.h>
20167 #if BYTE_ORDER != BIG_ENDIAN
20175 rm -f conftest.$ac_objext
20176 if { (ac_try="$ac_compile"
20177 case "(($ac_try" in
20178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20179 *) ac_try_echo=$ac_try;;
20181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20182 (eval "$ac_compile") 2>conftest.er1
20184 grep -v '^ *+' conftest.er1 >conftest.err
20186 cat conftest.err >&5
20187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188 (exit $ac_status); } && {
20189 test -z "$ac_c_werror_flag" ||
20190 test ! -s conftest.err
20191 } && test -s conftest.$ac_objext; then
20192 ac_cv_c_bigendian=yes
20194 echo "$as_me: failed program was:" >&5
20195 sed 's/^/| /' conftest.$ac_ext >&5
20197 ac_cv_c_bigendian=no
20200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20202 echo "$as_me: failed program was:" >&5
20203 sed 's/^/| /' conftest.$ac_ext >&5
20205 # It does not; compile a test program.
20206 if test "$cross_compiling" = yes; then
20207 # try to guess the endianness by grepping values into an object file
20208 ac_cv_c_bigendian=unknown
20209 cat >conftest.$ac_ext <<_ACEOF
20212 cat confdefs.h >>conftest.$ac_ext
20213 cat >>conftest.$ac_ext <<_ACEOF
20214 /* end confdefs.h. */
20215 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20216 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20217 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20218 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20219 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20220 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20224 _ascii (); _ebcdic ();
20229 rm -f conftest.$ac_objext
20230 if { (ac_try="$ac_compile"
20231 case "(($ac_try" in
20232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20233 *) ac_try_echo=$ac_try;;
20235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20236 (eval "$ac_compile") 2>conftest.er1
20238 grep -v '^ *+' conftest.er1 >conftest.err
20240 cat conftest.err >&5
20241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242 (exit $ac_status); } && {
20243 test -z "$ac_c_werror_flag" ||
20244 test ! -s conftest.err
20245 } && test -s conftest.$ac_objext; then
20246 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20247 ac_cv_c_bigendian=yes
20249 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20250 if test "$ac_cv_c_bigendian" = unknown; then
20251 ac_cv_c_bigendian=no
20253 # finding both strings is unlikely to happen, but who knows?
20254 ac_cv_c_bigendian=unknown
20258 echo "$as_me: failed program was:" >&5
20259 sed 's/^/| /' conftest.$ac_ext >&5
20264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20266 cat >conftest.$ac_ext <<_ACEOF
20269 cat confdefs.h >>conftest.$ac_ext
20270 cat >>conftest.$ac_ext <<_ACEOF
20271 /* end confdefs.h. */
20272 $ac_includes_default
20277 /* Are we little or big endian? From Harbison&Steele. */
20281 char c[sizeof (long int)];
20284 return u.c[sizeof (long int) - 1] == 1;
20290 rm -f conftest$ac_exeext
20291 if { (ac_try="$ac_link"
20292 case "(($ac_try" in
20293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20294 *) ac_try_echo=$ac_try;;
20296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20297 (eval "$ac_link") 2>&5
20299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20300 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20301 { (case "(($ac_try" in
20302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20303 *) ac_try_echo=$ac_try;;
20305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20306 (eval "$ac_try") 2>&5
20308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309 (exit $ac_status); }; }; then
20310 ac_cv_c_bigendian=no
20312 echo "$as_me: program exited with status $ac_status" >&5
20313 echo "$as_me: failed program was:" >&5
20314 sed 's/^/| /' conftest.$ac_ext >&5
20316 ( exit $ac_status )
20317 ac_cv_c_bigendian=yes
20319 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20327 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20328 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
20329 case $ac_cv_c_bigendian in
20332 cat >>confdefs.h <<\_ACEOF
20333 #define WORDS_BIGENDIAN 1
20339 { { echo "$as_me:$LINENO: error: unknown endianness
20340 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20341 echo "$as_me: error: unknown endianness
20342 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20343 { (exit 1); exit 1; }; } ;;
20346 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20347 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20348 if test "${ac_cv_c_const+set}" = set; then
20349 echo $ECHO_N "(cached) $ECHO_C" >&6
20351 cat >conftest.$ac_ext <<_ACEOF
20354 cat confdefs.h >>conftest.$ac_ext
20355 cat >>conftest.$ac_ext <<_ACEOF
20356 /* end confdefs.h. */
20361 /* FIXME: Include the comments suggested by Paul. */
20362 #ifndef __cplusplus
20363 /* Ultrix mips cc rejects this. */
20364 typedef int charset[2];
20366 /* SunOS 4.1.1 cc rejects this. */
20367 char const *const *pcpcc;
20369 /* NEC SVR4.0.2 mips cc rejects this. */
20370 struct point {int x, y;};
20371 static struct point const zero = {0,0};
20372 /* AIX XL C 1.02.0.0 rejects this.
20373 It does not let you subtract one const X* pointer from another in
20374 an arm of an if-expression whose if-part is not a constant
20376 const char *g = "string";
20377 pcpcc = &g + (g ? g-g : 0);
20378 /* HPUX 7.0 cc rejects these. */
20380 ppc = (char**) pcpcc;
20381 pcpcc = (char const *const *) ppc;
20382 { /* SCO 3.2v4 cc rejects this. */
20384 char const *s = 0 ? (char *) 0 : (char const *) 0;
20389 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20390 int x[] = {25, 17};
20391 const int *foo = &x[0];
20394 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20395 typedef const int *iptr;
20399 { /* AIX XL C 1.02.0.0 rejects this saying
20400 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20401 struct s { int j; const int *ap[3]; };
20402 struct s *b; b->j = 5;
20404 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20405 const int foo = 10;
20406 if (!foo) return 0;
20408 return !cs[0] && !zero.x;
20415 rm -f conftest.$ac_objext
20416 if { (ac_try="$ac_compile"
20417 case "(($ac_try" in
20418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20419 *) ac_try_echo=$ac_try;;
20421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20422 (eval "$ac_compile") 2>conftest.er1
20424 grep -v '^ *+' conftest.er1 >conftest.err
20426 cat conftest.err >&5
20427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428 (exit $ac_status); } && {
20429 test -z "$ac_c_werror_flag" ||
20430 test ! -s conftest.err
20431 } && test -s conftest.$ac_objext; then
20434 echo "$as_me: failed program was:" >&5
20435 sed 's/^/| /' conftest.$ac_ext >&5
20440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20442 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20443 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20444 if test $ac_cv_c_const = no; then
20446 cat >>confdefs.h <<\_ACEOF
20452 { echo "$as_me:$LINENO: checking for inline" >&5
20453 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
20454 if test "${ac_cv_c_inline+set}" = set; then
20455 echo $ECHO_N "(cached) $ECHO_C" >&6
20458 for ac_kw in inline __inline__ __inline; do
20459 cat >conftest.$ac_ext <<_ACEOF
20462 cat confdefs.h >>conftest.$ac_ext
20463 cat >>conftest.$ac_ext <<_ACEOF
20464 /* end confdefs.h. */
20465 #ifndef __cplusplus
20467 static $ac_kw foo_t static_foo () {return 0; }
20468 $ac_kw foo_t foo () {return 0; }
20472 rm -f conftest.$ac_objext
20473 if { (ac_try="$ac_compile"
20474 case "(($ac_try" in
20475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20476 *) ac_try_echo=$ac_try;;
20478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20479 (eval "$ac_compile") 2>conftest.er1
20481 grep -v '^ *+' conftest.er1 >conftest.err
20483 cat conftest.err >&5
20484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20485 (exit $ac_status); } && {
20486 test -z "$ac_c_werror_flag" ||
20487 test ! -s conftest.err
20488 } && test -s conftest.$ac_objext; then
20489 ac_cv_c_inline=$ac_kw
20491 echo "$as_me: failed program was:" >&5
20492 sed 's/^/| /' conftest.$ac_ext >&5
20497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20498 test "$ac_cv_c_inline" != no && break
20502 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20503 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
20506 case $ac_cv_c_inline in
20509 case $ac_cv_c_inline in
20511 *) ac_val=$ac_cv_c_inline;;
20513 cat >>confdefs.h <<_ACEOF
20514 #ifndef __cplusplus
20515 #define inline $ac_val
20522 { echo "$as_me:$LINENO: checking for uint32_t" >&5
20523 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
20524 if test "${ac_cv_c_uint32_t+set}" = set; then
20525 echo $ECHO_N "(cached) $ECHO_C" >&6
20527 ac_cv_c_uint32_t=no
20528 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
20529 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
20530 cat >conftest.$ac_ext <<_ACEOF
20533 cat confdefs.h >>conftest.$ac_ext
20534 cat >>conftest.$ac_ext <<_ACEOF
20535 /* end confdefs.h. */
20536 $ac_includes_default
20540 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
20547 rm -f conftest.$ac_objext
20548 if { (ac_try="$ac_compile"
20549 case "(($ac_try" in
20550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20551 *) ac_try_echo=$ac_try;;
20553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20554 (eval "$ac_compile") 2>conftest.er1
20556 grep -v '^ *+' conftest.er1 >conftest.err
20558 cat conftest.err >&5
20559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560 (exit $ac_status); } && {
20561 test -z "$ac_c_werror_flag" ||
20562 test ! -s conftest.err
20563 } && test -s conftest.$ac_objext; then
20565 uint32_t) ac_cv_c_uint32_t=yes ;;
20566 *) ac_cv_c_uint32_t=$ac_type ;;
20570 echo "$as_me: failed program was:" >&5
20571 sed 's/^/| /' conftest.$ac_ext >&5
20576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20577 test "$ac_cv_c_uint32_t" != no && break
20580 { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
20581 echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
20582 case $ac_cv_c_uint32_t in #(
20586 cat >>confdefs.h <<\_ACEOF
20587 #define _UINT32_T 1
20591 cat >>confdefs.h <<_ACEOF
20592 #define uint32_t $ac_cv_c_uint32_t
20598 # Checks for library functions.
20599 ac_config_files="$ac_config_files Makefile hangul/Makefile data/Makefile data/hanja/Makefile bindings/Makefile test/Makefile libhangul.pc"
20602 cat >confcache <<\_ACEOF
20603 # This file is a shell script that caches the results of configure
20604 # tests run on this system so they can be shared between configure
20605 # scripts and configure runs, see configure's option --config-cache.
20606 # It is not useful on other systems. If it contains results you don't
20607 # want to keep, you may remove or edit it.
20609 # config.status only pays attention to the cache file if you give it
20610 # the --recheck option to rerun configure.
20612 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20613 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20614 # following values.
20618 # The following way of writing the cache mishandles newlines in values,
20619 # but we know of no workaround that is simple, portable, and efficient.
20620 # So, we kill variables containing newlines.
20621 # Ultrix sh set writes to stderr and can't be redirected directly,
20622 # and sets the high bit in the cache file unless we assign to the vars.
20624 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20625 eval ac_val=\$$ac_var
20629 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20630 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20633 _ | IFS | as_nl) ;; #(
20634 *) $as_unset $ac_var ;;
20640 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20641 *${as_nl}ac_space=\ *)
20642 # `set' does not quote correctly, so add quotes (double-quote
20643 # substitution turns \\\\ into \\, and sed turns \\ into \).
20646 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20649 # `set' quotes correctly as required by POSIX, so do not add quotes.
20650 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20659 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20661 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20663 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20664 if test -w "$cache_file"; then
20665 test "x$cache_file" != "x/dev/null" &&
20666 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20667 echo "$as_me: updating cache $cache_file" >&6;}
20668 cat confcache >$cache_file
20670 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20671 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20676 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20677 # Let make expand exec_prefix.
20678 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20680 DEFS=-DHAVE_CONFIG_H
20684 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20685 # 1. Remove the extension, and $U if already installed.
20686 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20687 ac_i=`echo "$ac_i" | sed "$ac_script"`
20688 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20689 # will be set to the directory where LIBOBJS objects are built.
20690 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20691 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20693 LIBOBJS=$ac_libobjs
20695 LTLIBOBJS=$ac_ltlibobjs
20698 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20699 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20700 Usually this means the macro was only invoked conditionally." >&5
20701 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20702 Usually this means the macro was only invoked conditionally." >&2;}
20703 { (exit 1); exit 1; }; }
20705 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20706 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20707 Usually this means the macro was only invoked conditionally." >&5
20708 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20709 Usually this means the macro was only invoked conditionally." >&2;}
20710 { (exit 1); exit 1; }; }
20712 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20713 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20714 Usually this means the macro was only invoked conditionally." >&5
20715 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20716 Usually this means the macro was only invoked conditionally." >&2;}
20717 { (exit 1); exit 1; }; }
20720 : ${CONFIG_STATUS=./config.status}
20721 ac_clean_files_save=$ac_clean_files
20722 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20723 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20724 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20725 cat >$CONFIG_STATUS <<_ACEOF
20727 # Generated by $as_me.
20728 # Run this file to recreate the current configuration.
20729 # Compiler output produced by configure, useful for debugging
20730 # configure, is in config.log if it exists.
20733 ac_cs_recheck=false
20735 SHELL=\${CONFIG_SHELL-$SHELL}
20738 cat >>$CONFIG_STATUS <<\_ACEOF
20739 ## --------------------- ##
20740 ## M4sh Initialization. ##
20741 ## --------------------- ##
20743 # Be more Bourne compatible
20744 DUALCASE=1; export DUALCASE # for MKS sh
20745 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20748 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20749 # is contrary to our usage. Disable this feature.
20750 alias -g '${1+"$@"}'='"$@"'
20751 setopt NO_GLOB_SUBST
20753 case `(set -o) 2>/dev/null` in
20754 *posix*) set -o posix ;;
20763 # Avoid depending upon Character Ranges.
20764 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20765 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20766 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20767 as_cr_digits='0123456789'
20768 as_cr_alnum=$as_cr_Letters$as_cr_digits
20770 # The user is always right.
20771 if test "${PATH_SEPARATOR+set}" != set; then
20772 echo "#! /bin/sh" >conf$$.sh
20773 echo "exit 0" >>conf$$.sh
20775 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20783 # Support unset when possible.
20784 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20792 # We need space, tab and new line, in precisely that order. Quoting is
20793 # there to prevent editors from complaining about space-tab.
20794 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20795 # splitting by setting IFS to empty value.)
20800 # Find who we are. Look in the path if we contain no directory separator.
20802 *[\\/]* ) as_myself=$0 ;;
20803 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20804 for as_dir in $PATH
20807 test -z "$as_dir" && as_dir=.
20808 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20814 # We did not find ourselves, most probably we were run as `sh COMMAND'
20815 # in which case we are not to be found in the path.
20816 if test "x$as_myself" = x; then
20819 if test ! -f "$as_myself"; then
20820 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20821 { (exit 1); exit 1; }
20824 # Work around bugs in pre-3.0 UWIN ksh.
20825 for as_var in ENV MAIL MAILPATH
20826 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20834 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20835 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20836 LC_TELEPHONE LC_TIME
20838 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20839 eval $as_var=C; export $as_var
20841 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20845 # Required to use basename.
20846 if expr a : '\(a\)' >/dev/null 2>&1 &&
20847 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20853 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20854 as_basename=basename
20860 # Name of the executable.
20861 as_me=`$as_basename -- "$0" ||
20862 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20863 X"$0" : 'X\(//\)$' \| \
20864 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20866 sed '/^.*\/\([^/][^/]*\)\/*$/{
20885 as_lineno_1=$LINENO
20886 as_lineno_2=$LINENO
20887 test "x$as_lineno_1" != "x$as_lineno_2" &&
20888 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20890 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20891 # uniformly replaced by the line number. The first 'sed' inserts a
20892 # line-number line after each line using $LINENO; the second 'sed'
20893 # does the real work. The second script uses 'N' to pair each
20894 # line-number line with the line containing $LINENO, and appends
20895 # trailing '-' during substitution so that $LINENO is not a special
20896 # case at line end.
20897 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20898 # scripts with optimization help from Paolo Bonzini. Blame Lee
20899 # E. McMahon (1931-1989) for sed's syntax. :-)
20911 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20914 ' >$as_me.lineno &&
20915 chmod +x "$as_me.lineno" ||
20916 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20917 { (exit 1); exit 1; }; }
20919 # Don't try to exec as it changes $[0], causing all sort of problems
20920 # (the dirname of $[0] is not the place where we might find the
20921 # original and so on. Autoconf is especially sensitive to this).
20922 . "./$as_me.lineno"
20923 # Exit status is that of the last command.
20928 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20934 ECHO_C= ECHO_N= ECHO_T=
20935 case `echo -n x` in
20937 case `echo 'x\c'` in
20938 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20945 if expr a : '\(a\)' >/dev/null 2>&1 &&
20946 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20952 rm -f conf$$ conf$$.exe conf$$.file
20953 if test -d conf$$.dir; then
20954 rm -f conf$$.dir/conf$$.file
20960 if ln -s conf$$.file conf$$ 2>/dev/null; then
20962 # ... but there are two gotchas:
20963 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20964 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20965 # In both cases, we have to default to `cp -p'.
20966 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20968 elif ln conf$$.file conf$$ 2>/dev/null; then
20973 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20974 rmdir conf$$.dir 2>/dev/null
20976 if mkdir -p . 2>/dev/null; then
20979 test -d ./-p && rmdir ./-p
20983 if test -x / >/dev/null 2>&1; then
20984 as_test_x='test -x'
20986 if ls -dL / >/dev/null 2>&1; then
20993 if test -d "$1"; then
20999 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21000 ???[sx]*):;;*)false;;esac;fi
21004 as_executable_p=$as_test_x
21006 # Sed expression to map a string onto a valid CPP name.
21007 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21009 # Sed expression to map a string onto a valid variable name.
21010 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21015 # Save the log message, to keep $[0] and so on meaningful, and to
21016 # report actual input values of CONFIG_FILES etc. instead of their
21017 # values after options handling.
21019 This file was extended by libhangul $as_me 0.0.7, which was
21020 generated by GNU Autoconf 2.61. Invocation command line was
21022 CONFIG_FILES = $CONFIG_FILES
21023 CONFIG_HEADERS = $CONFIG_HEADERS
21024 CONFIG_LINKS = $CONFIG_LINKS
21025 CONFIG_COMMANDS = $CONFIG_COMMANDS
21028 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21033 cat >>$CONFIG_STATUS <<_ACEOF
21034 # Files that config.status was made for.
21035 config_files="$ac_config_files"
21036 config_headers="$ac_config_headers"
21037 config_commands="$ac_config_commands"
21041 cat >>$CONFIG_STATUS <<\_ACEOF
21043 \`$as_me' instantiates files from templates according to the
21044 current configuration.
21046 Usage: $0 [OPTIONS] [FILE]...
21048 -h, --help print this help, then exit
21049 -V, --version print version number and configuration settings, then exit
21050 -q, --quiet do not print progress messages
21051 -d, --debug don't remove temporary files
21052 --recheck update $as_me by reconfiguring in the same conditions
21053 --file=FILE[:TEMPLATE]
21054 instantiate the configuration file FILE
21055 --header=FILE[:TEMPLATE]
21056 instantiate the configuration header FILE
21058 Configuration files:
21061 Configuration headers:
21064 Configuration commands:
21067 Report bugs to <bug-autoconf@gnu.org>."
21070 cat >>$CONFIG_STATUS <<_ACEOF
21072 libhangul config.status 0.0.7
21073 configured by $0, generated by GNU Autoconf 2.61,
21074 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21076 Copyright (C) 2006 Free Software Foundation, Inc.
21077 This config.status script is free software; the Free Software Foundation
21078 gives unlimited permission to copy, distribute and modify it."
21086 cat >>$CONFIG_STATUS <<\_ACEOF
21087 # If no file are specified by the user, then we need to provide default
21088 # value. By we need to know if files were specified by the user.
21094 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21095 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21106 # Handling of the options.
21107 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21109 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21110 echo "$ac_cs_version"; exit ;;
21111 --debug | --debu | --deb | --de | --d | -d )
21113 --file | --fil | --fi | --f )
21115 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21116 ac_need_defaults=false;;
21117 --header | --heade | --head | --hea )
21119 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21120 ac_need_defaults=false;;
21122 # Conflict between --help and --header
21123 { echo "$as_me: error: ambiguous option: $1
21124 Try \`$0 --help' for more information." >&2
21125 { (exit 1); exit 1; }; };;
21126 --help | --hel | -h )
21127 echo "$ac_cs_usage"; exit ;;
21128 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21129 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21132 # This is an error.
21133 -*) { echo "$as_me: error: unrecognized option: $1
21134 Try \`$0 --help' for more information." >&2
21135 { (exit 1); exit 1; }; } ;;
21137 *) ac_config_targets="$ac_config_targets $1"
21138 ac_need_defaults=false ;;
21144 ac_configure_extra_args=
21146 if $ac_cs_silent; then
21148 ac_configure_extra_args="$ac_configure_extra_args --silent"
21152 cat >>$CONFIG_STATUS <<_ACEOF
21153 if \$ac_cs_recheck; then
21154 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21155 CONFIG_SHELL=$SHELL
21156 export CONFIG_SHELL
21157 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21161 cat >>$CONFIG_STATUS <<\_ACEOF
21165 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21166 ## Running $as_me. ##
21172 cat >>$CONFIG_STATUS <<_ACEOF
21176 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21180 cat >>$CONFIG_STATUS <<\_ACEOF
21182 # Handling of arguments.
21183 for ac_config_target in $ac_config_targets
21185 case $ac_config_target in
21186 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21187 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21188 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21189 "hangul/Makefile") CONFIG_FILES="$CONFIG_FILES hangul/Makefile" ;;
21190 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
21191 "data/hanja/Makefile") CONFIG_FILES="$CONFIG_FILES data/hanja/Makefile" ;;
21192 "bindings/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/Makefile" ;;
21193 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
21194 "libhangul.pc") CONFIG_FILES="$CONFIG_FILES libhangul.pc" ;;
21196 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21197 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21198 { (exit 1); exit 1; }; };;
21203 # If the user did not use the arguments to specify the items to instantiate,
21204 # then the envvar interface is used. Set only those that are not.
21205 # We use the long form for the default assignment because of an extremely
21206 # bizarre bug on SunOS 4.1.3.
21207 if $ac_need_defaults; then
21208 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21209 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21210 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21213 # Have a temporary directory for convenience. Make it in the build tree
21214 # simply because there is no reason against having it here, and in addition,
21215 # creating and moving files from /tmp can sometimes cause problems.
21216 # Hook for its removal unless debugging.
21217 # Note that there is a small window in which the directory will not be cleaned:
21218 # after its creation but before its name has been assigned to `$tmp'.
21222 trap 'exit_status=$?
21223 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21225 trap '{ (exit 1); exit 1; }' 1 2 13 15
21227 # Create a (secure) tmp directory for tmp files.
21230 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21231 test -n "$tmp" && test -d "$tmp"
21234 tmp=./conf$$-$RANDOM
21235 (umask 077 && mkdir "$tmp")
21238 echo "$me: cannot create a temporary directory in ." >&2
21239 { (exit 1); exit 1; }
21243 # Set up the sed scripts for CONFIG_FILES section.
21246 # No need to generate the scripts if there are no CONFIG_FILES.
21247 # This happens for instance when ./config.status config.h
21248 if test -n "$CONFIG_FILES"; then
21255 for ac_last_try in false false false false false :; do
21256 cat >conf$$subs.sed <<_ACEOF
21257 SHELL!$SHELL$ac_delim
21258 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21259 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21260 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21261 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21262 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21263 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21264 exec_prefix!$exec_prefix$ac_delim
21265 prefix!$prefix$ac_delim
21266 program_transform_name!$program_transform_name$ac_delim
21267 bindir!$bindir$ac_delim
21268 sbindir!$sbindir$ac_delim
21269 libexecdir!$libexecdir$ac_delim
21270 datarootdir!$datarootdir$ac_delim
21271 datadir!$datadir$ac_delim
21272 sysconfdir!$sysconfdir$ac_delim
21273 sharedstatedir!$sharedstatedir$ac_delim
21274 localstatedir!$localstatedir$ac_delim
21275 includedir!$includedir$ac_delim
21276 oldincludedir!$oldincludedir$ac_delim
21277 docdir!$docdir$ac_delim
21278 infodir!$infodir$ac_delim
21279 htmldir!$htmldir$ac_delim
21280 dvidir!$dvidir$ac_delim
21281 pdfdir!$pdfdir$ac_delim
21282 psdir!$psdir$ac_delim
21283 libdir!$libdir$ac_delim
21284 localedir!$localedir$ac_delim
21285 mandir!$mandir$ac_delim
21286 DEFS!$DEFS$ac_delim
21287 ECHO_C!$ECHO_C$ac_delim
21288 ECHO_N!$ECHO_N$ac_delim
21289 ECHO_T!$ECHO_T$ac_delim
21290 LIBS!$LIBS$ac_delim
21291 build_alias!$build_alias$ac_delim
21292 host_alias!$host_alias$ac_delim
21293 target_alias!$target_alias$ac_delim
21294 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21295 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21296 INSTALL_DATA!$INSTALL_DATA$ac_delim
21297 am__isrc!$am__isrc$ac_delim
21298 CYGPATH_W!$CYGPATH_W$ac_delim
21299 PACKAGE!$PACKAGE$ac_delim
21300 VERSION!$VERSION$ac_delim
21301 ACLOCAL!$ACLOCAL$ac_delim
21302 AUTOCONF!$AUTOCONF$ac_delim
21303 AUTOMAKE!$AUTOMAKE$ac_delim
21304 AUTOHEADER!$AUTOHEADER$ac_delim
21305 MAKEINFO!$MAKEINFO$ac_delim
21306 install_sh!$install_sh$ac_delim
21307 STRIP!$STRIP$ac_delim
21308 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21309 mkdir_p!$mkdir_p$ac_delim
21311 SET_MAKE!$SET_MAKE$ac_delim
21312 am__leading_dot!$am__leading_dot$ac_delim
21313 AMTAR!$AMTAR$ac_delim
21314 am__tar!$am__tar$ac_delim
21315 am__untar!$am__untar$ac_delim
21316 LIBHANGUL_CURRENT!$LIBHANGUL_CURRENT$ac_delim
21317 LIBHANGUL_REVISION!$LIBHANGUL_REVISION$ac_delim
21318 LIBHANGUL_AGE!$LIBHANGUL_AGE$ac_delim
21320 CFLAGS!$CFLAGS$ac_delim
21321 LDFLAGS!$LDFLAGS$ac_delim
21322 CPPFLAGS!$CPPFLAGS$ac_delim
21323 ac_ct_CC!$ac_ct_CC$ac_delim
21324 EXEEXT!$EXEEXT$ac_delim
21325 OBJEXT!$OBJEXT$ac_delim
21326 DEPDIR!$DEPDIR$ac_delim
21327 am__include!$am__include$ac_delim
21328 am__quote!$am__quote$ac_delim
21329 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21330 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21331 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21332 CCDEPMODE!$CCDEPMODE$ac_delim
21333 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21334 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21335 build!$build$ac_delim
21336 build_cpu!$build_cpu$ac_delim
21337 build_vendor!$build_vendor$ac_delim
21338 build_os!$build_os$ac_delim
21339 host!$host$ac_delim
21340 host_cpu!$host_cpu$ac_delim
21341 host_vendor!$host_vendor$ac_delim
21342 host_os!$host_os$ac_delim
21344 GREP!$GREP$ac_delim
21345 EGREP!$EGREP$ac_delim
21346 LN_S!$LN_S$ac_delim
21347 ECHO!$ECHO$ac_delim
21349 RANLIB!$RANLIB$ac_delim
21352 CXXFLAGS!$CXXFLAGS$ac_delim
21353 ac_ct_CXX!$ac_ct_CXX$ac_delim
21356 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21358 elif $ac_last_try; then
21359 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21360 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21361 { (exit 1); exit 1; }; }
21363 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21367 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21368 if test -n "$ac_eof"; then
21369 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21370 ac_eof=`expr $ac_eof + 1`
21373 cat >>$CONFIG_STATUS <<_ACEOF
21374 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21375 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21378 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21379 s/^/s,@/; s/!/@,|#_!!_#|/
21382 s/'"$ac_delim"'$/,g/; t
21384 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21385 ' >>$CONFIG_STATUS <conf$$subs.sed
21386 rm -f conf$$subs.sed
21387 cat >>$CONFIG_STATUS <<_ACEOF
21393 for ac_last_try in false false false false false :; do
21394 cat >conf$$subs.sed <<_ACEOF
21395 CXXDEPMODE!$CXXDEPMODE$ac_delim
21396 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21397 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21398 CXXCPP!$CXXCPP$ac_delim
21400 FFLAGS!$FFLAGS$ac_delim
21401 ac_ct_F77!$ac_ct_F77$ac_delim
21402 LIBTOOL!$LIBTOOL$ac_delim
21403 LIBOBJS!$LIBOBJS$ac_delim
21404 LTLIBOBJS!$LTLIBOBJS$ac_delim
21407 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then
21409 elif $ac_last_try; then
21410 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21411 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21412 { (exit 1); exit 1; }; }
21414 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21418 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21419 if test -n "$ac_eof"; then
21420 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21421 ac_eof=`expr $ac_eof + 1`
21424 cat >>$CONFIG_STATUS <<_ACEOF
21425 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21426 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21429 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21430 s/^/s,@/; s/!/@,|#_!!_#|/
21433 s/'"$ac_delim"'$/,g/; t
21435 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21436 ' >>$CONFIG_STATUS <conf$$subs.sed
21437 rm -f conf$$subs.sed
21438 cat >>$CONFIG_STATUS <<_ACEOF
21445 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21446 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21447 # trailing colons and then remove the whole line if VPATH becomes empty
21448 # (actually we leave an empty line to preserve line numbers).
21449 if test "x$srcdir" = x.; then
21450 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21451 s/:*\$(srcdir):*/:/
21452 s/:*\${srcdir}:*/:/
21454 s/^\([^=]*=[ ]*\):*/\1/
21460 cat >>$CONFIG_STATUS <<\_ACEOF
21461 fi # test -n "$CONFIG_FILES"
21464 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21467 :[FHLC]) ac_mode=$ac_tag; continue;;
21469 case $ac_mode$ac_tag in
21471 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21472 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21473 { (exit 1); exit 1; }; };;
21474 :[FH]-) ac_tag=-:-;;
21475 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21492 -) ac_f="$tmp/stdin";;
21493 *) # Look for the file first in the build tree, then in the source tree
21494 # (if the path is not absolute). The absolute path cannot be DOS-style,
21495 # because $ac_f cannot contain `:'.
21499 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21501 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21502 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21503 { (exit 1); exit 1; }; };;
21505 ac_file_inputs="$ac_file_inputs $ac_f"
21508 # Let's still pretend it is `configure' which instantiates (i.e., don't
21509 # use $as_me), people would be surprised to read:
21510 # /* config.h. Generated by config.status. */
21511 configure_input="Generated from "`IFS=:
21512 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21513 if test x"$ac_file" != x-; then
21514 configure_input="$ac_file. $configure_input"
21515 { echo "$as_me:$LINENO: creating $ac_file" >&5
21516 echo "$as_me: creating $ac_file" >&6;}
21520 *:-:* | *:-) cat >"$tmp/stdin";;
21525 ac_dir=`$as_dirname -- "$ac_file" ||
21526 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21527 X"$ac_file" : 'X\(//\)[^/]' \| \
21528 X"$ac_file" : 'X\(//\)$' \| \
21529 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21531 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21535 /^X\(\/\/\)[^/].*/{
21550 -*) as_dir=./$as_dir;;
21552 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21556 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21557 *) as_qdir=$as_dir;;
21559 as_dirs="'$as_qdir' $as_dirs"
21560 as_dir=`$as_dirname -- "$as_dir" ||
21561 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21562 X"$as_dir" : 'X\(//\)[^/]' \| \
21563 X"$as_dir" : 'X\(//\)$' \| \
21564 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21566 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21570 /^X\(\/\/\)[^/].*/{
21583 test -d "$as_dir" && break
21585 test -z "$as_dirs" || eval "mkdir $as_dirs"
21586 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21587 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21588 { (exit 1); exit 1; }; }; }
21592 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21594 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21595 # A ".." for each directory in $ac_dir_suffix.
21596 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21597 case $ac_top_builddir_sub in
21598 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21599 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21602 ac_abs_top_builddir=$ac_pwd
21603 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21604 # for backward compatibility:
21605 ac_top_builddir=$ac_top_build_prefix
21608 .) # We are building in place.
21610 ac_top_srcdir=$ac_top_builddir_sub
21611 ac_abs_top_srcdir=$ac_pwd ;;
21612 [\\/]* | ?:[\\/]* ) # Absolute name.
21613 ac_srcdir=$srcdir$ac_dir_suffix;
21614 ac_top_srcdir=$srcdir
21615 ac_abs_top_srcdir=$srcdir ;;
21616 *) # Relative name.
21617 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21618 ac_top_srcdir=$ac_top_build_prefix$srcdir
21619 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21621 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21631 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21632 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21634 ac_MKDIR_P=$MKDIR_P
21636 [\\/$]* | ?:[\\/]* ) ;;
21637 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21641 cat >>$CONFIG_STATUS <<\_ACEOF
21642 # If the template does not know about datarootdir, expand it.
21643 # FIXME: This hack should be removed a few years after 2.60.
21644 ac_datarootdir_hack=; ac_datarootdir_seen=
21646 case `sed -n '/datarootdir/ {
21655 ' $ac_file_inputs` in
21656 *datarootdir*) ac_datarootdir_seen=yes;;
21657 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21658 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21659 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21661 cat >>$CONFIG_STATUS <<_ACEOF
21662 ac_datarootdir_hack='
21663 s&@datadir@&$datadir&g
21664 s&@docdir@&$docdir&g
21665 s&@infodir@&$infodir&g
21666 s&@localedir@&$localedir&g
21667 s&@mandir@&$mandir&g
21668 s&\\\${datarootdir}&$datarootdir&g' ;;
21672 # Neutralize VPATH when `$srcdir' = `.'.
21673 # Shell code in configure.ac might set extrasub.
21674 # FIXME: do we really want to maintain this feature?
21675 cat >>$CONFIG_STATUS <<_ACEOF
21679 cat >>$CONFIG_STATUS <<\_ACEOF
21681 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21682 s&@configure_input@&$configure_input&;t t
21683 s&@top_builddir@&$ac_top_builddir_sub&;t t
21684 s&@srcdir@&$ac_srcdir&;t t
21685 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21686 s&@top_srcdir@&$ac_top_srcdir&;t t
21687 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21688 s&@builddir@&$ac_builddir&;t t
21689 s&@abs_builddir@&$ac_abs_builddir&;t t
21690 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21691 s&@INSTALL@&$ac_INSTALL&;t t
21692 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21693 $ac_datarootdir_hack
21694 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21696 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21697 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21698 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21699 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21700 which seems to be undefined. Please make sure it is defined." >&5
21701 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21702 which seems to be undefined. Please make sure it is defined." >&2;}
21706 -) cat "$tmp/out"; rm -f "$tmp/out";;
21707 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21716 # Transform confdefs.h into a sed script `conftest.defines', that
21717 # substitutes the proper values into config.h.in to produce config.h.
21718 rm -f conftest.defines conftest.tail
21719 # First, append a space to every undef/define line, to ease matching.
21720 echo 's/$/ /' >conftest.defines
21721 # Then, protect against being on the right side of a sed subst, or in
21722 # an unquoted here document, in config.status. If some macros were
21723 # called several times there might be several #defines for the same
21724 # symbol, which is useless. But do not sort them, since the last
21725 # AC_DEFINE must be honored.
21726 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21727 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21728 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21729 # PARAMS is the parameter list in the macro definition--in most cases, it's
21730 # just an empty string.
21731 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21732 ac_dB='\\)[ (].*,\\1define\\2'
21740 s/^[ ]*#[ ]*define[ ][ ]*//
21745 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21746 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21747 ' >>conftest.defines
21749 # Remove the space that was appended to ease matching.
21750 # Then replace #undef with comments. This is necessary, for
21751 # example, in the case of _POSIX_SOURCE, which is predefined and required
21752 # on some systems where configure will not decide to define it.
21753 # (The regexp can be short, since the line contains either #define or #undef.)
21755 s,^[ #]*u.*,/* & */,' >>conftest.defines
21757 # Break up conftest.defines:
21758 ac_max_sed_lines=50
21760 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21761 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21762 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21764 ac_in='$ac_file_inputs'
21765 ac_out='"$tmp/out1"'
21766 ac_nxt='"$tmp/out2"'
21770 # Write a here document:
21771 cat >>$CONFIG_STATUS <<_ACEOF
21772 # First, check the format of the line:
21773 cat >"\$tmp/defines.sed" <<\\CEOF
21774 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21775 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21779 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21781 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21782 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21783 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21784 grep . conftest.tail >/dev/null || break
21785 rm -f conftest.defines
21786 mv conftest.tail conftest.defines
21788 rm -f conftest.defines conftest.tail
21790 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21791 cat >>$CONFIG_STATUS <<\_ACEOF
21792 if test x"$ac_file" != x-; then
21793 echo "/* $configure_input */" >"$tmp/config.h"
21794 cat "$ac_result" >>"$tmp/config.h"
21795 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21796 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21797 echo "$as_me: $ac_file is unchanged" >&6;}
21800 mv "$tmp/config.h" $ac_file
21803 echo "/* $configure_input */"
21807 # Compute $ac_file's index in $config_headers.
21809 for _am_header in $config_headers :; do
21810 case $_am_header in
21811 $ac_file | $ac_file:* )
21814 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21817 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
21818 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21819 X$ac_file : 'X\(//\)[^/]' \| \
21820 X$ac_file : 'X\(//\)$' \| \
21821 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
21823 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21827 /^X\(\/\/\)[^/].*/{
21839 s/.*/./; q'`/stamp-h$_am_stamp_count
21842 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21843 echo "$as_me: executing $ac_file commands" >&6;}
21848 case $ac_file$ac_mode in
21849 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21850 # Strip MF so we end up with the name of the file.
21851 mf=`echo "$mf" | sed -e 's/:.*$//'`
21852 # Check whether this is an Automake generated Makefile or not.
21853 # We used to match only the files named `Makefile.in', but
21854 # some people rename them; so instead we look at the file content.
21855 # Grep'ing the first line is not enough: some people post-process
21856 # each Makefile.in and add a new line on top of each file to say so.
21857 # Grep'ing the whole file is not good either: AIX grep has a line
21858 # limit of 2048, but all sed's we know have understand at least 4000.
21859 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
21860 dirpart=`$as_dirname -- "$mf" ||
21861 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21862 X"$mf" : 'X\(//\)[^/]' \| \
21863 X"$mf" : 'X\(//\)$' \| \
21864 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21870 /^X\(\/\/\)[^/].*/{
21886 # Extract the definition of DEPDIR, am__include, and am__quote
21887 # from the Makefile without running `make'.
21888 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21889 test -z "$DEPDIR" && continue
21890 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21891 test -z "am__include" && continue
21892 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21893 # When using ansi2knr, U may be empty or an underscore; expand it
21894 U=`sed -n 's/^U = //p' < "$mf"`
21895 # Find all dependency output files, they are included files with
21896 # $(DEPDIR) in their names. We invoke sed twice because it is the
21897 # simplest approach to changing $(DEPDIR) to its actual value in the
21899 for file in `sed -n "
21900 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21901 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21902 # Make sure the directory exists.
21903 test -f "$dirpart/$file" && continue
21904 fdir=`$as_dirname -- "$file" ||
21905 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21906 X"$file" : 'X\(//\)[^/]' \| \
21907 X"$file" : 'X\(//\)$' \| \
21908 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21910 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21914 /^X\(\/\/\)[^/].*/{
21927 { as_dir=$dirpart/$fdir
21929 -*) as_dir=./$as_dir;;
21931 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21935 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21936 *) as_qdir=$as_dir;;
21938 as_dirs="'$as_qdir' $as_dirs"
21939 as_dir=`$as_dirname -- "$as_dir" ||
21940 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21941 X"$as_dir" : 'X\(//\)[^/]' \| \
21942 X"$as_dir" : 'X\(//\)$' \| \
21943 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21945 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21949 /^X\(\/\/\)[^/].*/{
21962 test -d "$as_dir" && break
21964 test -z "$as_dirs" || eval "mkdir $as_dirs"
21965 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21966 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21967 { (exit 1); exit 1; }; }; }
21968 # echo "creating $dirpart/$file"
21969 echo '# dummy' > "$dirpart/$file"
21978 { (exit 0); exit 0; }
21980 chmod +x $CONFIG_STATUS
21981 ac_clean_files=$ac_clean_files_save
21984 # configure is writing to config.log, and then calls config.status.
21985 # config.status does its own redirection, appending to config.log.
21986 # Unfortunately, on DOS this fails, as config.log is still kept open
21987 # by configure, so config.status won't be able to write to it; its
21988 # output is simply discarded. So we exec the FD to /dev/null,
21989 # effectively closing config.log, so it can be properly (re)opened and
21990 # appended to by config.status. When coming back to configure, we
21991 # need to make the FD available again.
21992 if test "$no_create" != yes; then
21994 ac_config_status_args=
21995 test "$silent" = yes &&
21996 ac_config_status_args="$ac_config_status_args --quiet"
21998 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22000 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22001 # would make configure fail if this is the last instruction.
22002 $ac_cs_success || { (exit 1); exit 1; }