2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
564 if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
567 elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $echo works!
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597 echo_test_string=`eval $cmd` &&
598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
610 # The Solaris, AIX, and Digital Unix default echo programs unquote
611 # backslashes. This makes it impossible to quote backslashes using
612 # echo "$something" | sed 's/\\/\\\\/g'
614 # So, first we look for a working echo in the user's PATH.
616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617 for dir in $PATH /usr/ucb; do
619 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
629 if test "X$echo" = Xecho; then
630 # We didn't find a better echo, so look for alternatives.
631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 # This shell has a builtin print -r that does the trick.
636 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637 test "X$CONFIG_SHELL" != X/bin/ksh; then
638 # If we have ksh, try running configure again with it.
639 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640 export ORIGINAL_CONFIG_SHELL
641 CONFIG_SHELL=/bin/ksh
643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649 test "X$echo_testing_string" = "X$echo_test_string"; then
652 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653 test "X$echo_testing_string" = 'X\t' &&
654 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655 test "X$echo_testing_string" = "X$echo_test_string"; then
656 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
658 SHELL="$CONFIG_SHELL"
660 echo="$CONFIG_SHELL $0 --fallback-echo"
661 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662 test "X$echo_testing_string" = 'X\t' &&
663 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664 test "X$echo_testing_string" = "X$echo_test_string"; then
665 echo="$CONFIG_SHELL $0 --fallback-echo"
667 # maybe with a smaller string...
670 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
678 if test "$prev" != 'sed 50q "$0"'; then
679 echo_test_string=`eval $prev`
680 export echo_test_string
681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
683 # Oops. We lost completely, so just stick with echo.
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
702 tagnames=${tagnames+${tagnames},}CXX
704 tagnames=${tagnames+${tagnames},}F77
706 exec 7<&0 </dev/null 6>&1
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
716 ac_default_prefix=/usr/local
718 ac_config_libobj_dir=.
724 SHELL=${CONFIG_SHELL-/bin/sh}
726 # Identity of this package.
733 ac_unique_file="src-main/main.c"
734 # Factoring default headers for most tests.
735 ac_includes_default="\
737 #ifdef HAVE_SYS_TYPES_H
738 # include <sys/types.h>
740 #ifdef HAVE_SYS_STAT_H
741 # include <sys/stat.h>
747 # ifdef HAVE_STDLIB_H
752 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
757 #ifdef HAVE_STRINGS_H
758 # include <strings.h>
760 #ifdef HAVE_INTTYPES_H
761 # include <inttypes.h>
779 program_transform_name
820 INSTALL_STRIP_PROGRAM
878 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}'
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 this package 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/PACKAGE]
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
1470 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1471 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1472 --disable-dependency-tracking speeds up one-time build
1473 --enable-dependency-tracking do not reject slow dependency extractors
1474 --enable-shared[=PKGS] build shared libraries [default=yes]
1475 --enable-static[=PKGS] build static libraries [default=yes]
1476 --enable-fast-install[=PKGS]
1477 optimize for fast installation [default=yes]
1478 --disable-libtool-lock avoid locking (might break parallel builds)
1481 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1482 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1483 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1484 --with-pic try to use only PIC/non-PIC objects [default=use
1486 --with-tags[=TAGS] include additional configurations [automatic]
1487 --with-lispdir override the default lisp directory
1489 Some influential environment variables:
1490 CC C compiler command
1491 CFLAGS C compiler flags
1492 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1493 nonstandard directory <lib dir>
1494 LIBS libraries to pass to the linker, e.g. -l<library>
1495 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1496 you have headers in a nonstandard directory <include dir>
1498 CXX C++ compiler command
1499 CXXFLAGS C++ compiler flags
1500 CXXCPP C++ preprocessor
1501 F77 Fortran 77 compiler command
1502 FFLAGS Fortran 77 compiler flags
1503 EMACS the Emacs editor command
1505 the Emacs library search path
1507 Use these variables to override the choices made by `configure' or to help
1508 it to find libraries and programs with nonstandard names/locations.
1514 if test "$ac_init_help" = "recursive"; then
1515 # If there are subdirs, report their specific --help.
1516 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1517 test -d "$ac_dir" || continue
1521 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1523 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1524 # A ".." for each directory in $ac_dir_suffix.
1525 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1526 case $ac_top_builddir_sub in
1527 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1531 ac_abs_top_builddir=$ac_pwd
1532 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1533 # for backward compatibility:
1534 ac_top_builddir=$ac_top_build_prefix
1537 .) # We are building in place.
1539 ac_top_srcdir=$ac_top_builddir_sub
1540 ac_abs_top_srcdir=$ac_pwd ;;
1541 [\\/]* | ?:[\\/]* ) # Absolute name.
1542 ac_srcdir=$srcdir$ac_dir_suffix;
1543 ac_top_srcdir=$srcdir
1544 ac_abs_top_srcdir=$srcdir ;;
1546 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1547 ac_top_srcdir=$ac_top_build_prefix$srcdir
1548 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1550 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1552 cd "$ac_dir" || { ac_status=$?; continue; }
1553 # Check for guested configure.
1554 if test -f "$ac_srcdir/configure.gnu"; then
1556 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1557 elif test -f "$ac_srcdir/configure"; then
1559 $SHELL "$ac_srcdir/configure" --help=recursive
1561 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1563 cd "$ac_pwd" || { ac_status=$?; break; }
1567 test -n "$ac_init_help" && exit $ac_status
1568 if $ac_init_version; then
1571 generated by GNU Autoconf 2.61
1573 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1574 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1575 This configure script is free software; the Free Software Foundation
1576 gives unlimited permission to copy, distribute and modify it.
1580 cat >config.log <<_ACEOF
1581 This file contains any messages produced by compilers while
1582 running configure, to aid debugging if configure makes a mistake.
1584 It was created by $as_me, which was
1585 generated by GNU Autoconf 2.61. Invocation command line was
1597 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1598 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1599 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1600 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1601 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1603 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1604 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1606 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1607 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1608 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1609 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1610 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1611 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1612 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1620 test -z "$as_dir" && as_dir=.
1621 echo "PATH: $as_dir"
1637 # Keep a trace of the command line.
1638 # Strip out --no-create and --no-recursion so they do not pile up.
1639 # Strip out --silent because we don't want to record it for future runs.
1640 # Also quote any args containing shell meta-characters.
1641 # Make two passes to allow for proper duplicate-argument suppression.
1645 ac_must_keep_next=false
1651 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1652 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1653 | -silent | --silent | --silen | --sile | --sil)
1656 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1659 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1661 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1662 if test $ac_must_keep_next = true; then
1663 ac_must_keep_next=false # Got value, back to normal.
1666 *=* | --config-cache | -C | -disable-* | --disable-* \
1667 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1668 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1669 | -with-* | --with-* | -without-* | --without-* | --x)
1670 case "$ac_configure_args0 " in
1671 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1674 -* ) ac_must_keep_next=true ;;
1677 ac_configure_args="$ac_configure_args '$ac_arg'"
1682 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1683 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1685 # When interrupted or exit'd, cleanup temporary files, and complete
1686 # config.log. We remove comments because anyway the quotes in there
1687 # would cause problems or look ugly.
1688 # WARNING: Use '\'' to represent an apostrophe within the trap.
1689 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1690 trap 'exit_status=$?
1691 # Save into config.log some information that might help in debugging.
1696 ## ---------------- ##
1697 ## Cache variables. ##
1698 ## ---------------- ##
1701 # The following way of writing the cache mishandles newlines in values,
1703 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1704 eval ac_val=\$$ac_var
1708 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1709 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1712 _ | IFS | as_nl) ;; #(
1713 *) $as_unset $ac_var ;;
1718 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1719 *${as_nl}ac_space=\ *)
1721 "s/'\''/'\''\\\\'\'''\''/g;
1722 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1725 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1733 ## ----------------- ##
1734 ## Output variables. ##
1735 ## ----------------- ##
1738 for ac_var in $ac_subst_vars
1740 eval ac_val=\$$ac_var
1742 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1744 echo "$ac_var='\''$ac_val'\''"
1748 if test -n "$ac_subst_files"; then
1750 ## ------------------- ##
1751 ## File substitutions. ##
1752 ## ------------------- ##
1755 for ac_var in $ac_subst_files
1757 eval ac_val=\$$ac_var
1759 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1761 echo "$ac_var='\''$ac_val'\''"
1766 if test -s confdefs.h; then
1776 test "$ac_signal" != 0 &&
1777 echo "$as_me: caught signal $ac_signal"
1778 echo "$as_me: exit $exit_status"
1780 rm -f core *.core core.conftest.* &&
1781 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1784 for ac_signal in 1 2 13 15; do
1785 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1789 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1790 rm -f -r conftest* confdefs.h
1792 # Predefined preprocessor variables.
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_NAME "$PACKAGE_NAME"
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1804 cat >>confdefs.h <<_ACEOF
1805 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE_STRING "$PACKAGE_STRING"
1814 cat >>confdefs.h <<_ACEOF
1815 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1819 # Let the site file select an alternate cache file if it wants to.
1820 # Prefer explicitly selected file to automatically selected ones.
1821 if test -n "$CONFIG_SITE"; then
1822 set x "$CONFIG_SITE"
1823 elif test "x$prefix" != xNONE; then
1824 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1826 set x "$ac_default_prefix/share/config.site" \
1827 "$ac_default_prefix/etc/config.site"
1832 if test -r "$ac_site_file"; then
1833 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1834 echo "$as_me: loading site script $ac_site_file" >&6;}
1835 sed 's/^/| /' "$ac_site_file" >&5
1840 if test -r "$cache_file"; then
1841 # Some versions of bash will fail to source /dev/null (special
1842 # files actually), so we avoid doing that.
1843 if test -f "$cache_file"; then
1844 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1845 echo "$as_me: loading cache $cache_file" >&6;}
1847 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1848 *) . "./$cache_file";;
1852 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1853 echo "$as_me: creating cache $cache_file" >&6;}
1857 # Check that the precious variables saved in the cache have kept the same
1859 ac_cache_corrupted=false
1860 for ac_var in $ac_precious_vars; do
1861 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1862 eval ac_new_set=\$ac_env_${ac_var}_set
1863 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1864 eval ac_new_val=\$ac_env_${ac_var}_value
1865 case $ac_old_set,$ac_new_set in
1867 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1868 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1869 ac_cache_corrupted=: ;;
1871 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1872 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1873 ac_cache_corrupted=: ;;
1876 if test "x$ac_old_val" != "x$ac_new_val"; then
1877 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1878 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1879 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1880 echo "$as_me: former value: $ac_old_val" >&2;}
1881 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1882 echo "$as_me: current value: $ac_new_val" >&2;}
1883 ac_cache_corrupted=:
1886 # Pass precious variables to config.status.
1887 if test "$ac_new_set" = set; then
1889 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1890 *) ac_arg=$ac_var=$ac_new_val ;;
1892 case " $ac_configure_args " in
1893 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1894 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1898 if $ac_cache_corrupted; then
1899 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1900 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1901 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1902 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1903 { (exit 1); exit 1; }; }
1923 ac_cpp='$CPP $CPPFLAGS'
1924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1930 am__api_version="1.9"
1932 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1933 if test -f "$ac_dir/install-sh"; then
1935 ac_install_sh="$ac_aux_dir/install-sh -c"
1937 elif test -f "$ac_dir/install.sh"; then
1939 ac_install_sh="$ac_aux_dir/install.sh -c"
1941 elif test -f "$ac_dir/shtool"; then
1943 ac_install_sh="$ac_aux_dir/shtool install -c"
1947 if test -z "$ac_aux_dir"; then
1948 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1949 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1950 { (exit 1); exit 1; }; }
1953 # These three variables are undocumented and unsupported,
1954 # and are intended to be withdrawn in a future Autoconf release.
1955 # They can cause serious problems if a builder's source tree is in a directory
1956 # whose full name contains unusual characters.
1957 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1958 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1959 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1962 # Find a good install program. We prefer a C program (faster),
1963 # so one script is as good as another. But avoid the broken or
1964 # incompatible versions:
1965 # SysV /etc/install, /usr/sbin/install
1966 # SunOS /usr/etc/install
1967 # IRIX /sbin/install
1969 # AmigaOS /C/install, which installs bootblocks on floppy discs
1970 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1971 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1972 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1973 # OS/2's system install, which has a completely different semantic
1974 # ./install, which can be erroneously created by make from ./install.sh.
1975 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1976 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1977 if test -z "$INSTALL"; then
1978 if test "${ac_cv_path_install+set}" = set; then
1979 echo $ECHO_N "(cached) $ECHO_C" >&6
1981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1985 test -z "$as_dir" && as_dir=.
1986 # Account for people who put trailing slashes in PATH elements.
1988 ./ | .// | /cC/* | \
1989 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1990 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1993 # OSF1 and SCO ODT 3.0 have their own names for install.
1994 # Don't use installbsd from OSF since it installs stuff as root
1996 for ac_prog in ginstall scoinst install; do
1997 for ac_exec_ext in '' $ac_executable_extensions; do
1998 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1999 if test $ac_prog = install &&
2000 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2001 # AIX install. It has an incompatible calling convention.
2003 elif test $ac_prog = install &&
2004 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2005 # program-specific install script used by HP pwplus--don't use.
2008 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2021 if test "${ac_cv_path_install+set}" = set; then
2022 INSTALL=$ac_cv_path_install
2024 # As a last resort, use the slow shell script. Don't cache a
2025 # value for INSTALL within a source directory, because that will
2026 # break other packages using the cache if that directory is
2027 # removed, or if the value is a relative name.
2028 INSTALL=$ac_install_sh
2031 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2032 echo "${ECHO_T}$INSTALL" >&6; }
2034 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2035 # It thinks the first close brace ends the variable substitution.
2036 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2038 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2040 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2042 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2043 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2046 echo timestamp > conftest.file
2047 # Do `set' in a subshell so we don't clobber the current shell's
2048 # arguments. Must try -L first in case configure is actually a
2049 # symlink; some systems play weird games with the mod time of symlinks
2050 # (eg FreeBSD returns the mod time of the symlink's containing
2053 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2054 if test "$*" = "X"; then
2056 set X `ls -t $srcdir/configure conftest.file`
2059 if test "$*" != "X $srcdir/configure conftest.file" \
2060 && test "$*" != "X conftest.file $srcdir/configure"; then
2062 # If neither matched, then we have a broken ls. This can happen
2063 # if, for instance, CONFIG_SHELL is bash and it inherits a
2064 # broken ls alias from the environment. This has actually
2065 # happened. Such a system could not be considered "sane".
2066 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2067 alias in your environment" >&5
2068 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2069 alias in your environment" >&2;}
2070 { (exit 1); exit 1; }; }
2073 test "$2" = conftest.file
2079 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2080 Check your system clock" >&5
2081 echo "$as_me: error: newly created file is older than distributed files!
2082 Check your system clock" >&2;}
2083 { (exit 1); exit 1; }; }
2085 { echo "$as_me:$LINENO: result: yes" >&5
2086 echo "${ECHO_T}yes" >&6; }
2087 test "$program_prefix" != NONE &&
2088 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2089 # Use a double $ so make ignores it.
2090 test "$program_suffix" != NONE &&
2091 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2092 # Double any \ or $. echo might interpret backslashes.
2093 # By default was `s,x,x', remove it if useless.
2094 cat <<\_ACEOF >conftest.sed
2095 s/[\\$]/&&/g;s/;s,x,x,$//
2097 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2100 # expand $ac_aux_dir to an absolute path
2101 am_aux_dir=`cd $ac_aux_dir && pwd`
2103 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2104 # Use eval to expand $SHELL
2105 if eval "$MISSING --run true"; then
2106 am_missing_run="$MISSING --run "
2109 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2110 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2113 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2114 # We used to keeping the `.' as first argument, in order to
2115 # allow $(mkdir_p) to be used without argument. As in
2116 # $(mkdir_p) $(somedir)
2117 # where $(somedir) is conditionally defined. However this is wrong
2119 # 1. if the package is installed by a user who cannot write `.'
2120 # make install will fail,
2121 # 2. the above comment should most certainly read
2122 # $(mkdir_p) $(DESTDIR)$(somedir)
2123 # so it does not work when $(somedir) is undefined and
2124 # $(DESTDIR) is not.
2125 # To support the latter case, we have to write
2126 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2127 # so the `.' trick is pointless.
2128 mkdir_p='mkdir -p --'
2130 # On NextStep and OpenStep, the `mkdir' command does not
2131 # recognize any option. It will interpret all options as
2132 # directories to create, and then abort because `.' already
2134 for d in ./-p ./--version;
2136 test -d $d && rmdir $d
2138 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2139 if test -f "$ac_aux_dir/mkinstalldirs"; then
2140 mkdir_p='$(mkinstalldirs)'
2142 mkdir_p='$(install_sh) -d'
2146 for ac_prog in gawk mawk nawk awk
2148 # Extract the first word of "$ac_prog", so it can be a program name with args.
2149 set dummy $ac_prog; ac_word=$2
2150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2152 if test "${ac_cv_prog_AWK+set}" = set; then
2153 echo $ECHO_N "(cached) $ECHO_C" >&6
2155 if test -n "$AWK"; then
2156 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2162 test -z "$as_dir" && as_dir=.
2163 for ac_exec_ext in '' $ac_executable_extensions; do
2164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2165 ac_cv_prog_AWK="$ac_prog"
2166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2176 if test -n "$AWK"; then
2177 { echo "$as_me:$LINENO: result: $AWK" >&5
2178 echo "${ECHO_T}$AWK" >&6; }
2180 { echo "$as_me:$LINENO: result: no" >&5
2181 echo "${ECHO_T}no" >&6; }
2185 test -n "$AWK" && break
2188 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2189 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2190 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2191 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2192 echo $ECHO_N "(cached) $ECHO_C" >&6
2194 cat >conftest.make <<\_ACEOF
2197 @echo '@@@%%%=$(MAKE)=@@@%%%'
2199 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2200 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2202 eval ac_cv_prog_make_${ac_make}_set=yes;;
2204 eval ac_cv_prog_make_${ac_make}_set=no;;
2208 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2209 { echo "$as_me:$LINENO: result: yes" >&5
2210 echo "${ECHO_T}yes" >&6; }
2213 { echo "$as_me:$LINENO: result: no" >&5
2214 echo "${ECHO_T}no" >&6; }
2215 SET_MAKE="MAKE=${MAKE-make}"
2218 rm -rf .tst 2>/dev/null
2219 mkdir .tst 2>/dev/null
2220 if test -d .tst; then
2225 rmdir .tst 2>/dev/null
2227 # test to see if srcdir already configured
2228 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2229 test -f $srcdir/config.status; then
2230 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2231 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2232 { (exit 1); exit 1; }; }
2235 # test whether we have cygpath
2236 if test -z "$CYGPATH_W"; then
2237 if (cygpath --version) >/dev/null 2>/dev/null; then
2238 CYGPATH_W='cygpath -w'
2245 # Define the identity of the package.
2250 cat >>confdefs.h <<_ACEOF
2251 #define PACKAGE "$PACKAGE"
2255 cat >>confdefs.h <<_ACEOF
2256 #define VERSION "$VERSION"
2259 # Some tools Automake needs.
2261 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2264 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2267 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2270 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2273 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2275 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2277 # Installed binaries are usually stripped using `strip' when the user
2278 # run `make install-strip'. However `strip' might not be the right
2279 # tool to use in cross-compilation environments, therefore Automake
2280 # will honor the `STRIP' environment variable to overrule this program.
2281 if test "$cross_compiling" != no; then
2282 if test -n "$ac_tool_prefix"; then
2283 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2284 set dummy ${ac_tool_prefix}strip; ac_word=$2
2285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2287 if test "${ac_cv_prog_STRIP+set}" = set; then
2288 echo $ECHO_N "(cached) $ECHO_C" >&6
2290 if test -n "$STRIP"; then
2291 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2297 test -z "$as_dir" && as_dir=.
2298 for ac_exec_ext in '' $ac_executable_extensions; do
2299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2300 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2310 STRIP=$ac_cv_prog_STRIP
2311 if test -n "$STRIP"; then
2312 { echo "$as_me:$LINENO: result: $STRIP" >&5
2313 echo "${ECHO_T}$STRIP" >&6; }
2315 { echo "$as_me:$LINENO: result: no" >&5
2316 echo "${ECHO_T}no" >&6; }
2321 if test -z "$ac_cv_prog_STRIP"; then
2323 # Extract the first word of "strip", so it can be a program name with args.
2324 set dummy strip; ac_word=$2
2325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2327 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2328 echo $ECHO_N "(cached) $ECHO_C" >&6
2330 if test -n "$ac_ct_STRIP"; then
2331 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2337 test -z "$as_dir" && as_dir=.
2338 for ac_exec_ext in '' $ac_executable_extensions; do
2339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2340 ac_cv_prog_ac_ct_STRIP="strip"
2341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2350 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2351 if test -n "$ac_ct_STRIP"; then
2352 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2353 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2355 { echo "$as_me:$LINENO: result: no" >&5
2356 echo "${ECHO_T}no" >&6; }
2359 if test "x$ac_ct_STRIP" = x; then
2362 case $cross_compiling:$ac_tool_warned in
2364 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2365 whose name does not start with the host triplet. If you think this
2366 configuration is useful to you, please write to autoconf@gnu.org." >&5
2367 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2368 whose name does not start with the host triplet. If you think this
2369 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2370 ac_tool_warned=yes ;;
2375 STRIP="$ac_cv_prog_STRIP"
2379 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2381 # We need awk for the "check" target. The system "awk" is bad on
2383 # Always define AMTAR for backward compatibility.
2385 AMTAR=${AMTAR-"${am_missing_run}tar"}
2387 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2393 ac_config_headers="$ac_config_headers config.h"
2397 ac_cpp='$CPP $CPPFLAGS'
2398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2401 if test -n "$ac_tool_prefix"; then
2402 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2403 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2404 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2406 if test "${ac_cv_prog_CC+set}" = set; then
2407 echo $ECHO_N "(cached) $ECHO_C" >&6
2409 if test -n "$CC"; then
2410 ac_cv_prog_CC="$CC" # Let the user override the test.
2412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2416 test -z "$as_dir" && as_dir=.
2417 for ac_exec_ext in '' $ac_executable_extensions; do
2418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2419 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2430 if test -n "$CC"; then
2431 { echo "$as_me:$LINENO: result: $CC" >&5
2432 echo "${ECHO_T}$CC" >&6; }
2434 { echo "$as_me:$LINENO: result: no" >&5
2435 echo "${ECHO_T}no" >&6; }
2440 if test -z "$ac_cv_prog_CC"; then
2442 # Extract the first word of "gcc", so it can be a program name with args.
2443 set dummy gcc; ac_word=$2
2444 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2446 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2447 echo $ECHO_N "(cached) $ECHO_C" >&6
2449 if test -n "$ac_ct_CC"; then
2450 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456 test -z "$as_dir" && as_dir=.
2457 for ac_exec_ext in '' $ac_executable_extensions; do
2458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2459 ac_cv_prog_ac_ct_CC="gcc"
2460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2469 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2470 if test -n "$ac_ct_CC"; then
2471 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2472 echo "${ECHO_T}$ac_ct_CC" >&6; }
2474 { echo "$as_me:$LINENO: result: no" >&5
2475 echo "${ECHO_T}no" >&6; }
2478 if test "x$ac_ct_CC" = x; then
2481 case $cross_compiling:$ac_tool_warned in
2483 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2484 whose name does not start with the host triplet. If you think this
2485 configuration is useful to you, please write to autoconf@gnu.org." >&5
2486 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2487 whose name does not start with the host triplet. If you think this
2488 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2489 ac_tool_warned=yes ;;
2497 if test -z "$CC"; then
2498 if test -n "$ac_tool_prefix"; then
2499 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2500 set dummy ${ac_tool_prefix}cc; ac_word=$2
2501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2503 if test "${ac_cv_prog_CC+set}" = set; then
2504 echo $ECHO_N "(cached) $ECHO_C" >&6
2506 if test -n "$CC"; then
2507 ac_cv_prog_CC="$CC" # Let the user override the test.
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513 test -z "$as_dir" && as_dir=.
2514 for ac_exec_ext in '' $ac_executable_extensions; do
2515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2516 ac_cv_prog_CC="${ac_tool_prefix}cc"
2517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2527 if test -n "$CC"; then
2528 { echo "$as_me:$LINENO: result: $CC" >&5
2529 echo "${ECHO_T}$CC" >&6; }
2531 { echo "$as_me:$LINENO: result: no" >&5
2532 echo "${ECHO_T}no" >&6; }
2538 if test -z "$CC"; then
2539 # Extract the first word of "cc", so it can be a program name with args.
2540 set dummy cc; ac_word=$2
2541 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2543 if test "${ac_cv_prog_CC+set}" = set; then
2544 echo $ECHO_N "(cached) $ECHO_C" >&6
2546 if test -n "$CC"; then
2547 ac_cv_prog_CC="$CC" # Let the user override the test.
2550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2554 test -z "$as_dir" && as_dir=.
2555 for ac_exec_ext in '' $ac_executable_extensions; do
2556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2557 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2558 ac_prog_rejected=yes
2562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2569 if test $ac_prog_rejected = yes; then
2570 # We found a bogon in the path, so make sure we never use it.
2571 set dummy $ac_cv_prog_CC
2573 if test $# != 0; then
2574 # We chose a different compiler from the bogus one.
2575 # However, it has the same basename, so the bogon will be chosen
2576 # first if we set CC to just the basename; use the full file name.
2578 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2584 if test -n "$CC"; then
2585 { echo "$as_me:$LINENO: result: $CC" >&5
2586 echo "${ECHO_T}$CC" >&6; }
2588 { echo "$as_me:$LINENO: result: no" >&5
2589 echo "${ECHO_T}no" >&6; }
2594 if test -z "$CC"; then
2595 if test -n "$ac_tool_prefix"; then
2596 for ac_prog in cl.exe
2598 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2599 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2600 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2602 if test "${ac_cv_prog_CC+set}" = set; then
2603 echo $ECHO_N "(cached) $ECHO_C" >&6
2605 if test -n "$CC"; then
2606 ac_cv_prog_CC="$CC" # Let the user override the test.
2608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612 test -z "$as_dir" && as_dir=.
2613 for ac_exec_ext in '' $ac_executable_extensions; do
2614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2615 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2626 if test -n "$CC"; then
2627 { echo "$as_me:$LINENO: result: $CC" >&5
2628 echo "${ECHO_T}$CC" >&6; }
2630 { echo "$as_me:$LINENO: result: no" >&5
2631 echo "${ECHO_T}no" >&6; }
2635 test -n "$CC" && break
2638 if test -z "$CC"; then
2640 for ac_prog in cl.exe
2642 # Extract the first word of "$ac_prog", so it can be a program name with args.
2643 set dummy $ac_prog; ac_word=$2
2644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2646 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2647 echo $ECHO_N "(cached) $ECHO_C" >&6
2649 if test -n "$ac_ct_CC"; then
2650 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656 test -z "$as_dir" && as_dir=.
2657 for ac_exec_ext in '' $ac_executable_extensions; do
2658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2659 ac_cv_prog_ac_ct_CC="$ac_prog"
2660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2669 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2670 if test -n "$ac_ct_CC"; then
2671 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2672 echo "${ECHO_T}$ac_ct_CC" >&6; }
2674 { echo "$as_me:$LINENO: result: no" >&5
2675 echo "${ECHO_T}no" >&6; }
2679 test -n "$ac_ct_CC" && break
2682 if test "x$ac_ct_CC" = x; then
2685 case $cross_compiling:$ac_tool_warned in
2687 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2688 whose name does not start with the host triplet. If you think this
2689 configuration is useful to you, please write to autoconf@gnu.org." >&5
2690 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2691 whose name does not start with the host triplet. If you think this
2692 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2693 ac_tool_warned=yes ;;
2702 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2703 See \`config.log' for more details." >&5
2704 echo "$as_me: error: no acceptable C compiler found in \$PATH
2705 See \`config.log' for more details." >&2;}
2706 { (exit 1); exit 1; }; }
2708 # Provide some information about the compiler.
2709 echo "$as_me:$LINENO: checking for C compiler version" >&5
2710 ac_compiler=`set X $ac_compile; echo $2`
2711 { (ac_try="$ac_compiler --version >&5"
2713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2714 *) ac_try_echo=$ac_try;;
2716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2717 (eval "$ac_compiler --version >&5") 2>&5
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); }
2721 { (ac_try="$ac_compiler -v >&5"
2723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724 *) ac_try_echo=$ac_try;;
2726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2727 (eval "$ac_compiler -v >&5") 2>&5
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); }
2731 { (ac_try="$ac_compiler -V >&5"
2733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2734 *) ac_try_echo=$ac_try;;
2736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2737 (eval "$ac_compiler -V >&5") 2>&5
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }
2742 cat >conftest.$ac_ext <<_ACEOF
2745 cat confdefs.h >>conftest.$ac_ext
2746 cat >>conftest.$ac_ext <<_ACEOF
2747 /* end confdefs.h. */
2757 ac_clean_files_save=$ac_clean_files
2758 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2759 # Try to create an executable without -o first, disregard a.out.
2760 # It will help us diagnose broken compilers, and finding out an intuition
2762 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2763 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2764 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2766 # List of possible output files, starting from the most likely.
2767 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2768 # only as a last resort. b.out is created by i960 compilers.
2769 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2771 # The IRIX 6 linker writes into existing files which may not be
2772 # executable, retaining their permissions. Remove them first so a
2773 # subsequent execution test works.
2775 for ac_file in $ac_files
2778 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2779 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2784 if { (ac_try="$ac_link_default"
2786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2787 *) ac_try_echo=$ac_try;;
2789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2790 (eval "$ac_link_default") 2>&5
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); }; then
2794 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2795 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2796 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2797 # so that the user can short-circuit this test for compilers unknown to
2799 for ac_file in $ac_files ''
2801 test -f "$ac_file" || continue
2803 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2806 # We found the default executable, but exeext='' is most
2810 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2812 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2814 # We set ac_cv_exeext here because the later test for it is not
2815 # safe: cross compilers may not add the suffix if given an `-o'
2816 # argument, so we may need to know it at that point already.
2817 # Even if this section looks crufty: it has the advantage of
2824 test "$ac_cv_exeext" = no && ac_cv_exeext=
2830 { echo "$as_me:$LINENO: result: $ac_file" >&5
2831 echo "${ECHO_T}$ac_file" >&6; }
2832 if test -z "$ac_file"; then
2833 echo "$as_me: failed program was:" >&5
2834 sed 's/^/| /' conftest.$ac_ext >&5
2836 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2837 See \`config.log' for more details." >&5
2838 echo "$as_me: error: C compiler cannot create executables
2839 See \`config.log' for more details." >&2;}
2840 { (exit 77); exit 77; }; }
2843 ac_exeext=$ac_cv_exeext
2845 # Check that the compiler produces executables we can run. If not, either
2846 # the compiler is broken, or we cross compile.
2847 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2848 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2849 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2850 # If not cross compiling, check that we can run a simple program.
2851 if test "$cross_compiling" != yes; then
2852 if { ac_try='./$ac_file'
2853 { (case "(($ac_try" in
2854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2855 *) ac_try_echo=$ac_try;;
2857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2858 (eval "$ac_try") 2>&5
2860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); }; }; then
2864 if test "$cross_compiling" = maybe; then
2867 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2868 If you meant to cross compile, use \`--host'.
2869 See \`config.log' for more details." >&5
2870 echo "$as_me: error: cannot run C compiled programs.
2871 If you meant to cross compile, use \`--host'.
2872 See \`config.log' for more details." >&2;}
2873 { (exit 1); exit 1; }; }
2877 { echo "$as_me:$LINENO: result: yes" >&5
2878 echo "${ECHO_T}yes" >&6; }
2880 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2881 ac_clean_files=$ac_clean_files_save
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 we are cross compiling" >&5
2885 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2886 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2887 echo "${ECHO_T}$cross_compiling" >&6; }
2889 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2890 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2891 if { (ac_try="$ac_link"
2893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894 *) ac_try_echo=$ac_try;;
2896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2897 (eval "$ac_link") 2>&5
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); }; then
2901 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2902 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2903 # work properly (i.e., refer to `conftest.exe'), while it won't with
2905 for ac_file in conftest.exe conftest conftest.*; do
2906 test -f "$ac_file" || continue
2908 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2909 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2915 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2916 See \`config.log' for more details." >&5
2917 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2918 See \`config.log' for more details." >&2;}
2919 { (exit 1); exit 1; }; }
2922 rm -f conftest$ac_cv_exeext
2923 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2924 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2926 rm -f conftest.$ac_ext
2927 EXEEXT=$ac_cv_exeext
2929 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2930 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2931 if test "${ac_cv_objext+set}" = set; then
2932 echo $ECHO_N "(cached) $ECHO_C" >&6
2934 cat >conftest.$ac_ext <<_ACEOF
2937 cat confdefs.h >>conftest.$ac_ext
2938 cat >>conftest.$ac_ext <<_ACEOF
2939 /* end confdefs.h. */
2949 rm -f conftest.o conftest.obj
2950 if { (ac_try="$ac_compile"
2952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2953 *) ac_try_echo=$ac_try;;
2955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2956 (eval "$ac_compile") 2>&5
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); }; then
2960 for ac_file in conftest.o conftest.obj conftest.*; do
2961 test -f "$ac_file" || continue;
2963 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2964 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2969 echo "$as_me: failed program was:" >&5
2970 sed 's/^/| /' conftest.$ac_ext >&5
2972 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2973 See \`config.log' for more details." >&5
2974 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2975 See \`config.log' for more details." >&2;}
2976 { (exit 1); exit 1; }; }
2979 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2981 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2982 echo "${ECHO_T}$ac_cv_objext" >&6; }
2983 OBJEXT=$ac_cv_objext
2985 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2986 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2987 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2988 echo $ECHO_N "(cached) $ECHO_C" >&6
2990 cat >conftest.$ac_ext <<_ACEOF
2993 cat confdefs.h >>conftest.$ac_ext
2994 cat >>conftest.$ac_ext <<_ACEOF
2995 /* end confdefs.h. */
3008 rm -f conftest.$ac_objext
3009 if { (ac_try="$ac_compile"
3011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012 *) ac_try_echo=$ac_try;;
3014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3015 (eval "$ac_compile") 2>conftest.er1
3017 grep -v '^ *+' conftest.er1 >conftest.err
3019 cat conftest.err >&5
3020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021 (exit $ac_status); } && {
3022 test -z "$ac_c_werror_flag" ||
3023 test ! -s conftest.err
3024 } && test -s conftest.$ac_objext; then
3027 echo "$as_me: failed program was:" >&5
3028 sed 's/^/| /' conftest.$ac_ext >&5
3033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3034 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3037 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3038 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3039 GCC=`test $ac_compiler_gnu = yes && echo yes`
3040 ac_test_CFLAGS=${CFLAGS+set}
3041 ac_save_CFLAGS=$CFLAGS
3042 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3043 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3044 if test "${ac_cv_prog_cc_g+set}" = set; then
3045 echo $ECHO_N "(cached) $ECHO_C" >&6
3047 ac_save_c_werror_flag=$ac_c_werror_flag
3048 ac_c_werror_flag=yes
3051 cat >conftest.$ac_ext <<_ACEOF
3054 cat confdefs.h >>conftest.$ac_ext
3055 cat >>conftest.$ac_ext <<_ACEOF
3056 /* end confdefs.h. */
3066 rm -f conftest.$ac_objext
3067 if { (ac_try="$ac_compile"
3069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070 *) ac_try_echo=$ac_try;;
3072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3073 (eval "$ac_compile") 2>conftest.er1
3075 grep -v '^ *+' conftest.er1 >conftest.err
3077 cat conftest.err >&5
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); } && {
3080 test -z "$ac_c_werror_flag" ||
3081 test ! -s conftest.err
3082 } && test -s conftest.$ac_objext; then
3085 echo "$as_me: failed program was:" >&5
3086 sed 's/^/| /' conftest.$ac_ext >&5
3089 cat >conftest.$ac_ext <<_ACEOF
3092 cat confdefs.h >>conftest.$ac_ext
3093 cat >>conftest.$ac_ext <<_ACEOF
3094 /* end confdefs.h. */
3104 rm -f conftest.$ac_objext
3105 if { (ac_try="$ac_compile"
3107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108 *) ac_try_echo=$ac_try;;
3110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3111 (eval "$ac_compile") 2>conftest.er1
3113 grep -v '^ *+' conftest.er1 >conftest.err
3115 cat conftest.err >&5
3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117 (exit $ac_status); } && {
3118 test -z "$ac_c_werror_flag" ||
3119 test ! -s conftest.err
3120 } && test -s conftest.$ac_objext; then
3123 echo "$as_me: failed program was:" >&5
3124 sed 's/^/| /' conftest.$ac_ext >&5
3126 ac_c_werror_flag=$ac_save_c_werror_flag
3128 cat >conftest.$ac_ext <<_ACEOF
3131 cat confdefs.h >>conftest.$ac_ext
3132 cat >>conftest.$ac_ext <<_ACEOF
3133 /* end confdefs.h. */
3143 rm -f conftest.$ac_objext
3144 if { (ac_try="$ac_compile"
3146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147 *) ac_try_echo=$ac_try;;
3149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3150 (eval "$ac_compile") 2>conftest.er1
3152 grep -v '^ *+' conftest.er1 >conftest.err
3154 cat conftest.err >&5
3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156 (exit $ac_status); } && {
3157 test -z "$ac_c_werror_flag" ||
3158 test ! -s conftest.err
3159 } && test -s conftest.$ac_objext; then
3162 echo "$as_me: failed program was:" >&5
3163 sed 's/^/| /' conftest.$ac_ext >&5
3168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3175 ac_c_werror_flag=$ac_save_c_werror_flag
3177 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3178 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3179 if test "$ac_test_CFLAGS" = set; then
3180 CFLAGS=$ac_save_CFLAGS
3181 elif test $ac_cv_prog_cc_g = yes; then
3182 if test "$GCC" = yes; then
3188 if test "$GCC" = yes; then
3194 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3195 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3196 if test "${ac_cv_prog_cc_c89+set}" = set; then
3197 echo $ECHO_N "(cached) $ECHO_C" >&6
3199 ac_cv_prog_cc_c89=no
3201 cat >conftest.$ac_ext <<_ACEOF
3204 cat confdefs.h >>conftest.$ac_ext
3205 cat >>conftest.$ac_ext <<_ACEOF
3206 /* end confdefs.h. */
3209 #include <sys/types.h>
3210 #include <sys/stat.h>
3211 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3212 struct buf { int x; };
3213 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3214 static char *e (p, i)
3220 static char *f (char * (*g) (char **, int), char **p, ...)
3225 s = g (p, va_arg (v,int));
3230 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3231 function prototypes and stuff, but not '\xHH' hex character constants.
3232 These don't provoke an error unfortunately, instead are silently treated
3233 as 'x'. The following induces an error, until -std is added to get
3234 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3235 array size at least. It's necessary to write '\x00'==0 to get something
3236 that's true only with -std. */
3237 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3239 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3240 inside strings and character constants. */
3242 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3244 int test (int i, double x);
3245 struct s1 {int (*f) (int a);};
3246 struct s2 {int (*f) (double a);};
3247 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3253 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3258 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3259 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3261 CC="$ac_save_CC $ac_arg"
3262 rm -f conftest.$ac_objext
3263 if { (ac_try="$ac_compile"
3265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266 *) ac_try_echo=$ac_try;;
3268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3269 (eval "$ac_compile") 2>conftest.er1
3271 grep -v '^ *+' conftest.er1 >conftest.err
3273 cat conftest.err >&5
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); } && {
3276 test -z "$ac_c_werror_flag" ||
3277 test ! -s conftest.err
3278 } && test -s conftest.$ac_objext; then
3279 ac_cv_prog_cc_c89=$ac_arg
3281 echo "$as_me: failed program was:" >&5
3282 sed 's/^/| /' conftest.$ac_ext >&5
3287 rm -f core conftest.err conftest.$ac_objext
3288 test "x$ac_cv_prog_cc_c89" != "xno" && break
3290 rm -f conftest.$ac_ext
3295 case "x$ac_cv_prog_cc_c89" in
3297 { echo "$as_me:$LINENO: result: none needed" >&5
3298 echo "${ECHO_T}none needed" >&6; } ;;
3300 { echo "$as_me:$LINENO: result: unsupported" >&5
3301 echo "${ECHO_T}unsupported" >&6; } ;;
3303 CC="$CC $ac_cv_prog_cc_c89"
3304 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3305 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3310 ac_cpp='$CPP $CPPFLAGS'
3311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3314 DEPDIR="${am__leading_dot}deps"
3316 ac_config_commands="$ac_config_commands depfiles"
3319 am_make=${MAKE-make}
3320 cat > confinc << 'END'
3325 # If we don't find an include directive, just comment out the code.
3326 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3327 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3331 # First try GNU make style include.
3332 echo "include confinc" > confmf
3333 # We grep out `Entering directory' and `Leaving directory'
3334 # messages which can occur if `w' ends up in MAKEFLAGS.
3335 # In particular we don't look at `^make:' because GNU make might
3336 # be invoked under some other name (usually "gmake"), in which
3337 # case it prints its new name instead of `make'.
3338 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3343 # Now try BSD make style include.
3344 if test "$am__include" = "#"; then
3345 echo '.include "confinc"' > confmf
3346 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3347 am__include=.include
3354 { echo "$as_me:$LINENO: result: $_am_result" >&5
3355 echo "${ECHO_T}$_am_result" >&6; }
3356 rm -f confinc confmf
3358 # Check whether --enable-dependency-tracking was given.
3359 if test "${enable_dependency_tracking+set}" = set; then
3360 enableval=$enable_dependency_tracking;
3363 if test "x$enable_dependency_tracking" != xno; then
3364 am_depcomp="$ac_aux_dir/depcomp"
3369 if test "x$enable_dependency_tracking" != xno; then
3380 depcc="$CC" am_compiler_list=
3382 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3383 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3384 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3385 echo $ECHO_N "(cached) $ECHO_C" >&6
3387 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3388 # We make a subdir and do the tests there. Otherwise we can end up
3389 # making bogus files that we don't know about and never remove. For
3390 # instance it was reported that on HP-UX the gcc test will end up
3391 # making a dummy file named `D' -- because `-MD' means `put the output
3394 # Copy depcomp to subdir because otherwise we won't find it if we're
3395 # using a relative directory.
3396 cp "$am_depcomp" conftest.dir
3398 # We will build objects and dependencies in a subdirectory because
3399 # it helps to detect inapplicable dependency modes. For instance
3400 # both Tru64's cc and ICC support -MD to output dependencies as a
3401 # side effect of compilation, but ICC will put the dependencies in
3402 # the current directory while Tru64 will put them in the object
3406 am_cv_CC_dependencies_compiler_type=none
3407 if test "$am_compiler_list" = ""; then
3408 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3410 for depmode in $am_compiler_list; do
3411 # Setup a source with many dependencies, because some compilers
3412 # like to wrap large dependency lists on column 80 (with \), and
3413 # we should not choose a depcomp mode which is confused by this.
3415 # We need to recreate these files for each test, as the compiler may
3416 # overwrite some of them when testing with obscure command lines.
3417 # This happens at least with the AIX C compiler.
3419 for i in 1 2 3 4 5 6; do
3420 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3421 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3422 # Solaris 8's {/usr,}/bin/sh.
3423 touch sub/conftst$i.h
3425 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3429 # after this tag, mechanisms are not by side-effect, so they'll
3430 # only be used when explicitly requested
3431 if test "x$enable_dependency_tracking" = xyes; then
3439 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3440 # mode. It turns out that the SunPro C++ compiler does not properly
3441 # handle `-M -o', and we need to detect this.
3442 if depmode=$depmode \
3443 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3444 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3445 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3446 >/dev/null 2>conftest.err &&
3447 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3448 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3449 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3450 # icc doesn't choke on unknown options, it will just issue warnings
3451 # or remarks (even with -Werror). So we grep stderr for any message
3452 # that says an option was ignored or not supported.
3453 # When given -MP, icc 7.0 and 7.1 complain thusly:
3454 # icc: Command line warning: ignoring option '-M'; no argument required
3455 # The diagnosis changed in icc 8.0:
3456 # icc: Command line remark: option '-MP' not supported
3457 if (grep 'ignoring option' conftest.err ||
3458 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3459 am_cv_CC_dependencies_compiler_type=$depmode
3468 am_cv_CC_dependencies_compiler_type=none
3472 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3473 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3474 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3479 test "x$enable_dependency_tracking" != xno \
3480 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3482 am__fastdepCC_FALSE='#'
3484 am__fastdepCC_TRUE='#'
3485 am__fastdepCC_FALSE=
3490 ac_cpp='$CPP $CPPFLAGS'
3491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3494 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3495 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3496 # On Suns, sometimes $CPP names a directory.
3497 if test -n "$CPP" && test -d "$CPP"; then
3500 if test -z "$CPP"; then
3501 if test "${ac_cv_prog_CPP+set}" = set; then
3502 echo $ECHO_N "(cached) $ECHO_C" >&6
3504 # Double quotes because CPP needs to be expanded
3505 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3508 for ac_c_preproc_warn_flag in '' yes
3510 # Use a header file that comes with gcc, so configuring glibc
3511 # with a fresh cross-compiler works.
3512 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3513 # <limits.h> exists even on freestanding compilers.
3514 # On the NeXT, cc -E runs the code through the compiler's parser,
3515 # not just through cpp. "Syntax error" is here to catch this case.
3516 cat >conftest.$ac_ext <<_ACEOF
3519 cat confdefs.h >>conftest.$ac_ext
3520 cat >>conftest.$ac_ext <<_ACEOF
3521 /* end confdefs.h. */
3523 # include <limits.h>
3525 # include <assert.h>
3529 if { (ac_try="$ac_cpp conftest.$ac_ext"
3531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3532 *) ac_try_echo=$ac_try;;
3534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3535 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3537 grep -v '^ *+' conftest.er1 >conftest.err
3539 cat conftest.err >&5
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); } >/dev/null && {
3542 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3543 test ! -s conftest.err
3547 echo "$as_me: failed program was:" >&5
3548 sed 's/^/| /' conftest.$ac_ext >&5
3550 # Broken: fails on valid input.
3554 rm -f conftest.err conftest.$ac_ext
3556 # OK, works on sane cases. Now check whether nonexistent headers
3557 # can be detected and how.
3558 cat >conftest.$ac_ext <<_ACEOF
3561 cat confdefs.h >>conftest.$ac_ext
3562 cat >>conftest.$ac_ext <<_ACEOF
3563 /* end confdefs.h. */
3564 #include <ac_nonexistent.h>
3566 if { (ac_try="$ac_cpp conftest.$ac_ext"
3568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3569 *) ac_try_echo=$ac_try;;
3571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3572 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3574 grep -v '^ *+' conftest.er1 >conftest.err
3576 cat conftest.err >&5
3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); } >/dev/null && {
3579 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3580 test ! -s conftest.err
3582 # Broken: success on invalid input.
3585 echo "$as_me: failed program was:" >&5
3586 sed 's/^/| /' conftest.$ac_ext >&5
3588 # Passes both tests.
3593 rm -f conftest.err conftest.$ac_ext
3596 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3597 rm -f conftest.err conftest.$ac_ext
3598 if $ac_preproc_ok; then
3610 { echo "$as_me:$LINENO: result: $CPP" >&5
3611 echo "${ECHO_T}$CPP" >&6; }
3613 for ac_c_preproc_warn_flag in '' yes
3615 # Use a header file that comes with gcc, so configuring glibc
3616 # with a fresh cross-compiler works.
3617 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3618 # <limits.h> exists even on freestanding compilers.
3619 # On the NeXT, cc -E runs the code through the compiler's parser,
3620 # not just through cpp. "Syntax error" is here to catch this case.
3621 cat >conftest.$ac_ext <<_ACEOF
3624 cat confdefs.h >>conftest.$ac_ext
3625 cat >>conftest.$ac_ext <<_ACEOF
3626 /* end confdefs.h. */
3628 # include <limits.h>
3630 # include <assert.h>
3634 if { (ac_try="$ac_cpp conftest.$ac_ext"
3636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3637 *) ac_try_echo=$ac_try;;
3639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3640 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3642 grep -v '^ *+' conftest.er1 >conftest.err
3644 cat conftest.err >&5
3645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646 (exit $ac_status); } >/dev/null && {
3647 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3648 test ! -s conftest.err
3652 echo "$as_me: failed program was:" >&5
3653 sed 's/^/| /' conftest.$ac_ext >&5
3655 # Broken: fails on valid input.
3659 rm -f conftest.err conftest.$ac_ext
3661 # OK, works on sane cases. Now check whether nonexistent headers
3662 # can be detected and how.
3663 cat >conftest.$ac_ext <<_ACEOF
3666 cat confdefs.h >>conftest.$ac_ext
3667 cat >>conftest.$ac_ext <<_ACEOF
3668 /* end confdefs.h. */
3669 #include <ac_nonexistent.h>
3671 if { (ac_try="$ac_cpp conftest.$ac_ext"
3673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3674 *) ac_try_echo=$ac_try;;
3676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3677 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3679 grep -v '^ *+' conftest.er1 >conftest.err
3681 cat conftest.err >&5
3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); } >/dev/null && {
3684 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3685 test ! -s conftest.err
3687 # Broken: success on invalid input.
3690 echo "$as_me: failed program was:" >&5
3691 sed 's/^/| /' conftest.$ac_ext >&5
3693 # Passes both tests.
3698 rm -f conftest.err conftest.$ac_ext
3701 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3702 rm -f conftest.err conftest.$ac_ext
3703 if $ac_preproc_ok; then
3706 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3707 See \`config.log' for more details." >&5
3708 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3709 See \`config.log' for more details." >&2;}
3710 { (exit 1); exit 1; }; }
3714 ac_cpp='$CPP $CPPFLAGS'
3715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3719 # Check whether --enable-shared was given.
3720 if test "${enable_shared+set}" = set; then
3721 enableval=$enable_shared; p=${PACKAGE-default}
3723 yes) enable_shared=yes ;;
3724 no) enable_shared=no ;;
3727 # Look at the argument we got. We use all the common list separators.
3728 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3729 for pkg in $enableval; do
3731 if test "X$pkg" = "X$p"; then
3743 # Check whether --enable-static was given.
3744 if test "${enable_static+set}" = set; then
3745 enableval=$enable_static; p=${PACKAGE-default}
3747 yes) enable_static=yes ;;
3748 no) enable_static=no ;;
3751 # Look at the argument we got. We use all the common list separators.
3752 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3753 for pkg in $enableval; do
3755 if test "X$pkg" = "X$p"; then
3767 # Check whether --enable-fast-install was given.
3768 if test "${enable_fast_install+set}" = set; then
3769 enableval=$enable_fast_install; p=${PACKAGE-default}
3771 yes) enable_fast_install=yes ;;
3772 no) enable_fast_install=no ;;
3774 enable_fast_install=no
3775 # Look at the argument we got. We use all the common list separators.
3776 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3777 for pkg in $enableval; do
3779 if test "X$pkg" = "X$p"; then
3780 enable_fast_install=yes
3787 enable_fast_install=yes
3791 # Make sure we can run config.sub.
3792 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3793 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3794 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3795 { (exit 1); exit 1; }; }
3797 { echo "$as_me:$LINENO: checking build system type" >&5
3798 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3799 if test "${ac_cv_build+set}" = set; then
3800 echo $ECHO_N "(cached) $ECHO_C" >&6
3802 ac_build_alias=$build_alias
3803 test "x$ac_build_alias" = x &&
3804 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3805 test "x$ac_build_alias" = x &&
3806 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3807 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3808 { (exit 1); exit 1; }; }
3809 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3810 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3811 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3812 { (exit 1); exit 1; }; }
3815 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3816 echo "${ECHO_T}$ac_cv_build" >&6; }
3817 case $ac_cv_build in
3819 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3820 echo "$as_me: error: invalid value of canonical build" >&2;}
3821 { (exit 1); exit 1; }; };;
3824 ac_save_IFS=$IFS; IFS='-'
3830 # Remember, the first character of IFS is used to create $*,
3831 # except with old shells:
3834 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3837 { echo "$as_me:$LINENO: checking host system type" >&5
3838 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3839 if test "${ac_cv_host+set}" = set; then
3840 echo $ECHO_N "(cached) $ECHO_C" >&6
3842 if test "x$host_alias" = x; then
3843 ac_cv_host=$ac_cv_build
3845 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3846 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3847 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3848 { (exit 1); exit 1; }; }
3852 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3853 echo "${ECHO_T}$ac_cv_host" >&6; }
3856 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3857 echo "$as_me: error: invalid value of canonical host" >&2;}
3858 { (exit 1); exit 1; }; };;
3861 ac_save_IFS=$IFS; IFS='-'
3867 # Remember, the first character of IFS is used to create $*,
3868 # except with old shells:
3871 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3874 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3875 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3876 if test "${lt_cv_path_SED+set}" = set; then
3877 echo $ECHO_N "(cached) $ECHO_C" >&6
3879 # Loop through the user's path and test for sed and gsed.
3880 # Then use that list of sed's as ones to test for truncation.
3881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3885 test -z "$as_dir" && as_dir=.
3886 for lt_ac_prog in sed gsed; do
3887 for ac_exec_ext in '' $ac_executable_extensions; do
3888 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3889 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3896 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3897 # along with /bin/sed that truncates output.
3898 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3899 test ! -f $lt_ac_sed && continue
3900 cat /dev/null > conftest.in
3902 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3903 # Check for GNU sed and select it if it is found.
3904 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3905 lt_cv_path_SED=$lt_ac_sed
3909 cat conftest.in conftest.in >conftest.tmp
3910 mv conftest.tmp conftest.in
3911 cp conftest.in conftest.nl
3913 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3914 cmp -s conftest.out conftest.nl || break
3915 # 10000 chars as input seems more than enough
3916 test $lt_ac_count -gt 10 && break
3917 lt_ac_count=`expr $lt_ac_count + 1`
3918 if test $lt_ac_count -gt $lt_ac_max; then
3919 lt_ac_max=$lt_ac_count
3920 lt_cv_path_SED=$lt_ac_sed
3928 { echo "$as_me:$LINENO: result: $SED" >&5
3929 echo "${ECHO_T}$SED" >&6; }
3931 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3932 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3933 if test "${ac_cv_path_GREP+set}" = set; then
3934 echo $ECHO_N "(cached) $ECHO_C" >&6
3936 # Extract the first word of "grep ggrep" to use in msg output
3937 if test -z "$GREP"; then
3938 set dummy grep ggrep; ac_prog_name=$2
3939 if test "${ac_cv_path_GREP+set}" = set; then
3940 echo $ECHO_N "(cached) $ECHO_C" >&6
3942 ac_path_GREP_found=false
3943 # Loop through the user's path and test for each of PROGNAME-LIST
3944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3945 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3948 test -z "$as_dir" && as_dir=.
3949 for ac_prog in grep ggrep; do
3950 for ac_exec_ext in '' $ac_executable_extensions; do
3951 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3952 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3953 # Check for GNU ac_path_GREP and select it if it is found.
3954 # Check for GNU $ac_path_GREP
3955 case `"$ac_path_GREP" --version 2>&1` in
3957 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3960 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3963 cat "conftest.in" "conftest.in" >"conftest.tmp"
3964 mv "conftest.tmp" "conftest.in"
3965 cp "conftest.in" "conftest.nl"
3966 echo 'GREP' >> "conftest.nl"
3967 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3968 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3969 ac_count=`expr $ac_count + 1`
3970 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3971 # Best one so far, save it but keep looking for a better one
3972 ac_cv_path_GREP="$ac_path_GREP"
3973 ac_path_GREP_max=$ac_count
3975 # 10*(2^10) chars as input seems more than enough
3976 test $ac_count -gt 10 && break
3978 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3982 $ac_path_GREP_found && break 3
3992 GREP="$ac_cv_path_GREP"
3993 if test -z "$GREP"; then
3994 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3995 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3996 { (exit 1); exit 1; }; }
4000 ac_cv_path_GREP=$GREP
4005 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4006 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4007 GREP="$ac_cv_path_GREP"
4010 { echo "$as_me:$LINENO: checking for egrep" >&5
4011 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4012 if test "${ac_cv_path_EGREP+set}" = set; then
4013 echo $ECHO_N "(cached) $ECHO_C" >&6
4015 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4016 then ac_cv_path_EGREP="$GREP -E"
4018 # Extract the first word of "egrep" to use in msg output
4019 if test -z "$EGREP"; then
4020 set dummy egrep; ac_prog_name=$2
4021 if test "${ac_cv_path_EGREP+set}" = set; then
4022 echo $ECHO_N "(cached) $ECHO_C" >&6
4024 ac_path_EGREP_found=false
4025 # Loop through the user's path and test for each of PROGNAME-LIST
4026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4027 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4030 test -z "$as_dir" && as_dir=.
4031 for ac_prog in egrep; do
4032 for ac_exec_ext in '' $ac_executable_extensions; do
4033 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4034 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4035 # Check for GNU ac_path_EGREP and select it if it is found.
4036 # Check for GNU $ac_path_EGREP
4037 case `"$ac_path_EGREP" --version 2>&1` in
4039 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4042 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4045 cat "conftest.in" "conftest.in" >"conftest.tmp"
4046 mv "conftest.tmp" "conftest.in"
4047 cp "conftest.in" "conftest.nl"
4048 echo 'EGREP' >> "conftest.nl"
4049 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4050 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4051 ac_count=`expr $ac_count + 1`
4052 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4053 # Best one so far, save it but keep looking for a better one
4054 ac_cv_path_EGREP="$ac_path_EGREP"
4055 ac_path_EGREP_max=$ac_count
4057 # 10*(2^10) chars as input seems more than enough
4058 test $ac_count -gt 10 && break
4060 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4064 $ac_path_EGREP_found && break 3
4074 EGREP="$ac_cv_path_EGREP"
4075 if test -z "$EGREP"; then
4076 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4077 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4078 { (exit 1); exit 1; }; }
4082 ac_cv_path_EGREP=$EGREP
4088 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4089 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4090 EGREP="$ac_cv_path_EGREP"
4094 # Check whether --with-gnu-ld was given.
4095 if test "${with_gnu_ld+set}" = set; then
4096 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4102 if test "$GCC" = yes; then
4103 # Check if gcc -print-prog-name=ld gives a path.
4104 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4105 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4108 # gcc leaves a trailing carriage return which upsets mingw
4109 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4111 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4114 # Accept absolute paths.
4116 re_direlt='/[^/][^/]*/\.\./'
4117 # Canonicalize the pathname of ld
4118 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4119 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4120 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4122 test -z "$LD" && LD="$ac_prog"
4125 # If it fails, then pretend we aren't using GCC.
4129 # If it is relative, then search for the first ld in PATH.
4133 elif test "$with_gnu_ld" = yes; then
4134 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4135 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4137 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4138 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4140 if test "${lt_cv_path_LD+set}" = set; then
4141 echo $ECHO_N "(cached) $ECHO_C" >&6
4143 if test -z "$LD"; then
4144 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4145 for ac_dir in $PATH; do
4147 test -z "$ac_dir" && ac_dir=.
4148 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4149 lt_cv_path_LD="$ac_dir/$ac_prog"
4150 # Check to see if the program is GNU ld. I'd rather use --version,
4151 # but apparently some variants of GNU ld only accept -v.
4152 # Break only if it was the GNU/non-GNU ld that we prefer.
4153 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4154 *GNU* | *'with BFD'*)
4155 test "$with_gnu_ld" != no && break
4158 test "$with_gnu_ld" != yes && break
4165 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4170 if test -n "$LD"; then
4171 { echo "$as_me:$LINENO: result: $LD" >&5
4172 echo "${ECHO_T}$LD" >&6; }
4174 { echo "$as_me:$LINENO: result: no" >&5
4175 echo "${ECHO_T}no" >&6; }
4177 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4178 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4179 { (exit 1); exit 1; }; }
4180 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4181 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4182 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4183 echo $ECHO_N "(cached) $ECHO_C" >&6
4185 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4186 case `$LD -v 2>&1 </dev/null` in
4187 *GNU* | *'with BFD'*)
4188 lt_cv_prog_gnu_ld=yes
4191 lt_cv_prog_gnu_ld=no
4195 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4196 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4197 with_gnu_ld=$lt_cv_prog_gnu_ld
4200 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4201 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4202 if test "${lt_cv_ld_reload_flag+set}" = set; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
4205 lt_cv_ld_reload_flag='-r'
4207 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4208 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4209 reload_flag=$lt_cv_ld_reload_flag
4210 case $reload_flag in
4212 *) reload_flag=" $reload_flag" ;;
4214 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4217 if test "$GCC" = yes; then
4218 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4220 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4225 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4226 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4227 if test "${lt_cv_path_NM+set}" = set; then
4228 echo $ECHO_N "(cached) $ECHO_C" >&6
4230 if test -n "$NM"; then
4231 # Let the user override the test.
4234 lt_nm_to_check="${ac_tool_prefix}nm"
4235 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4236 lt_nm_to_check="$lt_nm_to_check nm"
4238 for lt_tmp_nm in $lt_nm_to_check; do
4239 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4240 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4242 test -z "$ac_dir" && ac_dir=.
4243 tmp_nm="$ac_dir/$lt_tmp_nm"
4244 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4245 # Check to see if the nm accepts a BSD-compat flag.
4246 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4247 # nm: unknown option "B" ignored
4248 # Tru64's nm complains that /dev/null is an invalid object file
4249 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4250 */dev/null* | *'Invalid file or object type'*)
4251 lt_cv_path_NM="$tmp_nm -B"
4255 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4257 lt_cv_path_NM="$tmp_nm -p"
4261 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4262 continue # so that we can try to find one that supports BSD flags
4271 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4274 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4275 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4278 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4279 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4281 if test "$LN_S" = "ln -s"; then
4282 { echo "$as_me:$LINENO: result: yes" >&5
4283 echo "${ECHO_T}yes" >&6; }
4285 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4286 echo "${ECHO_T}no, using $LN_S" >&6; }
4289 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4290 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4291 if test "${lt_cv_deplibs_check_method+set}" = set; then
4292 echo $ECHO_N "(cached) $ECHO_C" >&6
4294 lt_cv_file_magic_cmd='$MAGIC_CMD'
4295 lt_cv_file_magic_test_file=
4296 lt_cv_deplibs_check_method='unknown'
4297 # Need to set the preceding variable on all platforms that support
4298 # interlibrary dependencies.
4299 # 'none' -- dependencies not supported.
4300 # `unknown' -- same as none, but documents that we really don't know.
4301 # 'pass_all' -- all dependencies passed with no checks.
4302 # 'test_compile' -- check by making test program.
4303 # 'file_magic [[regex]]' -- check by looking for files in library path
4304 # which responds to the $file_magic_cmd with a given extended regex.
4305 # If you have `file' or equivalent on your system and you're not sure
4306 # whether `pass_all' will *always* work, you probably want this one.
4310 lt_cv_deplibs_check_method=pass_all
4314 lt_cv_deplibs_check_method=pass_all
4318 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4319 lt_cv_file_magic_cmd='/usr/bin/file -L'
4320 lt_cv_file_magic_test_file=/shlib/libc.so
4324 # func_win32_libid is a shell function defined in ltmain.sh
4325 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4326 lt_cv_file_magic_cmd='func_win32_libid'
4330 # Base MSYS/MinGW do not provide the 'file' command needed by
4331 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4332 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4333 lt_cv_file_magic_cmd='$OBJDUMP -f'
4336 darwin* | rhapsody*)
4337 lt_cv_deplibs_check_method=pass_all
4340 freebsd* | dragonfly*)
4341 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4344 # Not sure whether the presence of OpenBSD here was a mistake.
4345 # Let's accept both of them until this is cleared up.
4346 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4347 lt_cv_file_magic_cmd=/usr/bin/file
4348 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4352 lt_cv_deplibs_check_method=pass_all
4357 lt_cv_deplibs_check_method=pass_all
4360 hpux10.20* | hpux11*)
4361 lt_cv_file_magic_cmd=/usr/bin/file
4364 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4365 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4368 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]'
4369 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4372 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4373 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4379 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4380 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4383 irix5* | irix6* | nonstopux*)
4385 *-32|*"-32 ") libmagic=32-bit;;
4386 *-n32|*"-n32 ") libmagic=N32;;
4387 *-64|*"-64 ") libmagic=64-bit;;
4388 *) libmagic=never-match;;
4390 lt_cv_deplibs_check_method=pass_all
4393 # This must be Linux ELF.
4394 linux* | k*bsd*-gnu)
4395 lt_cv_deplibs_check_method=pass_all
4398 netbsd* | netbsdelf*-gnu)
4399 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4400 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4402 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4407 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4408 lt_cv_file_magic_cmd=/usr/bin/file
4409 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4413 lt_cv_deplibs_check_method=unknown
4417 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4418 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4420 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4424 osf3* | osf4* | osf5*)
4425 lt_cv_deplibs_check_method=pass_all
4429 lt_cv_deplibs_check_method=pass_all
4433 case $host_vendor in
4435 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]'
4436 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4439 lt_cv_deplibs_check_method=pass_all
4442 lt_cv_file_magic_cmd='/bin/file'
4443 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4446 lt_cv_file_magic_cmd='/bin/file'
4447 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4448 lt_cv_file_magic_test_file=/lib/libc.so
4451 lt_cv_deplibs_check_method=pass_all
4454 lt_cv_deplibs_check_method=pass_all
4459 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4460 lt_cv_deplibs_check_method=pass_all
4465 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4466 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4467 file_magic_cmd=$lt_cv_file_magic_cmd
4468 deplibs_check_method=$lt_cv_deplibs_check_method
4469 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4474 # If no C compiler was specified, use CC.
4477 # If no C compiler flags were specified, use CFLAGS.
4478 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4480 # Allow CC to be a program name with arguments.
4484 # Check whether --enable-libtool-lock was given.
4485 if test "${enable_libtool_lock+set}" = set; then
4486 enableval=$enable_libtool_lock;
4489 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4491 # Some flags need to be propagated to the compiler or linker for good
4495 # Find out which ABI we are using.
4496 echo 'int i;' > conftest.$ac_ext
4497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4498 (eval $ac_compile) 2>&5
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); }; then
4502 case `/usr/bin/file conftest.$ac_objext` in
4514 # Find out which ABI we are using.
4515 echo '#line 4515 "configure"' > conftest.$ac_ext
4516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4517 (eval $ac_compile) 2>&5
4519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520 (exit $ac_status); }; then
4521 if test "$lt_cv_prog_gnu_ld" = yes; then
4522 case `/usr/bin/file conftest.$ac_objext` in
4524 LD="${LD-ld} -melf32bsmip"
4527 LD="${LD-ld} -melf32bmipn32"
4530 LD="${LD-ld} -melf64bmip"
4534 case `/usr/bin/file conftest.$ac_objext` in
4550 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4551 # Find out which ABI we are using.
4552 echo 'int i;' > conftest.$ac_ext
4553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4554 (eval $ac_compile) 2>&5
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); }; then
4558 case `/usr/bin/file conftest.o` in
4562 LD="${LD-ld} -m elf_i386"
4564 ppc64-*linux*|powerpc64-*linux*)
4565 LD="${LD-ld} -m elf32ppclinux"
4568 LD="${LD-ld} -m elf_s390"
4571 LD="${LD-ld} -m elf32_sparc"
4578 LD="${LD-ld} -m elf_x86_64"
4580 ppc*-*linux*|powerpc*-*linux*)
4581 LD="${LD-ld} -m elf64ppc"
4584 LD="${LD-ld} -m elf64_s390"
4587 LD="${LD-ld} -m elf64_sparc"
4597 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4598 SAVE_CFLAGS="$CFLAGS"
4599 CFLAGS="$CFLAGS -belf"
4600 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4601 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4602 if test "${lt_cv_cc_needs_belf+set}" = set; then
4603 echo $ECHO_N "(cached) $ECHO_C" >&6
4606 ac_cpp='$CPP $CPPFLAGS'
4607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4611 cat >conftest.$ac_ext <<_ACEOF
4614 cat confdefs.h >>conftest.$ac_ext
4615 cat >>conftest.$ac_ext <<_ACEOF
4616 /* end confdefs.h. */
4626 rm -f conftest.$ac_objext conftest$ac_exeext
4627 if { (ac_try="$ac_link"
4629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4630 *) ac_try_echo=$ac_try;;
4632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4633 (eval "$ac_link") 2>conftest.er1
4635 grep -v '^ *+' conftest.er1 >conftest.err
4637 cat conftest.err >&5
4638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639 (exit $ac_status); } && {
4640 test -z "$ac_c_werror_flag" ||
4641 test ! -s conftest.err
4642 } && test -s conftest$ac_exeext &&
4643 $as_test_x conftest$ac_exeext; then
4644 lt_cv_cc_needs_belf=yes
4646 echo "$as_me: failed program was:" >&5
4647 sed 's/^/| /' conftest.$ac_ext >&5
4649 lt_cv_cc_needs_belf=no
4652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4653 conftest$ac_exeext conftest.$ac_ext
4655 ac_cpp='$CPP $CPPFLAGS'
4656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4661 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4662 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4663 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4664 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4665 CFLAGS="$SAVE_CFLAGS"
4669 # Find out which ABI we are using.
4670 echo 'int i;' > conftest.$ac_ext
4671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4672 (eval $ac_compile) 2>&5
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); }; then
4676 case `/usr/bin/file conftest.o` in
4678 case $lt_cv_prog_gnu_ld in
4679 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4680 *) LD="${LD-ld} -64" ;;
4691 need_locks="$enable_libtool_lock"
4695 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4696 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4697 if test "${ac_cv_header_stdc+set}" = set; then
4698 echo $ECHO_N "(cached) $ECHO_C" >&6
4700 cat >conftest.$ac_ext <<_ACEOF
4703 cat confdefs.h >>conftest.$ac_ext
4704 cat >>conftest.$ac_ext <<_ACEOF
4705 /* end confdefs.h. */
4719 rm -f conftest.$ac_objext
4720 if { (ac_try="$ac_compile"
4722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4723 *) ac_try_echo=$ac_try;;
4725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4726 (eval "$ac_compile") 2>conftest.er1
4728 grep -v '^ *+' conftest.er1 >conftest.err
4730 cat conftest.err >&5
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); } && {
4733 test -z "$ac_c_werror_flag" ||
4734 test ! -s conftest.err
4735 } && test -s conftest.$ac_objext; then
4736 ac_cv_header_stdc=yes
4738 echo "$as_me: failed program was:" >&5
4739 sed 's/^/| /' conftest.$ac_ext >&5
4741 ac_cv_header_stdc=no
4744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4746 if test $ac_cv_header_stdc = yes; then
4747 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4748 cat >conftest.$ac_ext <<_ACEOF
4751 cat confdefs.h >>conftest.$ac_ext
4752 cat >>conftest.$ac_ext <<_ACEOF
4753 /* end confdefs.h. */
4757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4758 $EGREP "memchr" >/dev/null 2>&1; then
4761 ac_cv_header_stdc=no
4767 if test $ac_cv_header_stdc = yes; then
4768 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4769 cat >conftest.$ac_ext <<_ACEOF
4772 cat confdefs.h >>conftest.$ac_ext
4773 cat >>conftest.$ac_ext <<_ACEOF
4774 /* end confdefs.h. */
4778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4779 $EGREP "free" >/dev/null 2>&1; then
4782 ac_cv_header_stdc=no
4788 if test $ac_cv_header_stdc = yes; then
4789 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4790 if test "$cross_compiling" = yes; then
4793 cat >conftest.$ac_ext <<_ACEOF
4796 cat confdefs.h >>conftest.$ac_ext
4797 cat >>conftest.$ac_ext <<_ACEOF
4798 /* end confdefs.h. */
4801 #if ((' ' & 0x0FF) == 0x020)
4802 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4803 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4805 # define ISLOWER(c) \
4806 (('a' <= (c) && (c) <= 'i') \
4807 || ('j' <= (c) && (c) <= 'r') \
4808 || ('s' <= (c) && (c) <= 'z'))
4809 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4812 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4817 for (i = 0; i < 256; i++)
4818 if (XOR (islower (i), ISLOWER (i))
4819 || toupper (i) != TOUPPER (i))
4824 rm -f conftest$ac_exeext
4825 if { (ac_try="$ac_link"
4827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4828 *) ac_try_echo=$ac_try;;
4830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4831 (eval "$ac_link") 2>&5
4833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4835 { (case "(($ac_try" in
4836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4837 *) ac_try_echo=$ac_try;;
4839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4840 (eval "$ac_try") 2>&5
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); }; }; then
4846 echo "$as_me: program exited with status $ac_status" >&5
4847 echo "$as_me: failed program was:" >&5
4848 sed 's/^/| /' conftest.$ac_ext >&5
4851 ac_cv_header_stdc=no
4853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4859 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4860 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4861 if test $ac_cv_header_stdc = yes; then
4863 cat >>confdefs.h <<\_ACEOF
4864 #define STDC_HEADERS 1
4869 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4879 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4880 inttypes.h stdint.h unistd.h
4882 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4883 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4886 echo $ECHO_N "(cached) $ECHO_C" >&6
4888 cat >conftest.$ac_ext <<_ACEOF
4891 cat confdefs.h >>conftest.$ac_ext
4892 cat >>conftest.$ac_ext <<_ACEOF
4893 /* end confdefs.h. */
4894 $ac_includes_default
4896 #include <$ac_header>
4898 rm -f conftest.$ac_objext
4899 if { (ac_try="$ac_compile"
4901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4902 *) ac_try_echo=$ac_try;;
4904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4905 (eval "$ac_compile") 2>conftest.er1
4907 grep -v '^ *+' conftest.er1 >conftest.err
4909 cat conftest.err >&5
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); } && {
4912 test -z "$ac_c_werror_flag" ||
4913 test ! -s conftest.err
4914 } && test -s conftest.$ac_objext; then
4915 eval "$as_ac_Header=yes"
4917 echo "$as_me: failed program was:" >&5
4918 sed 's/^/| /' conftest.$ac_ext >&5
4920 eval "$as_ac_Header=no"
4923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4925 ac_res=`eval echo '${'$as_ac_Header'}'`
4926 { echo "$as_me:$LINENO: result: $ac_res" >&5
4927 echo "${ECHO_T}$ac_res" >&6; }
4928 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4929 cat >>confdefs.h <<_ACEOF
4930 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4939 for ac_header in dlfcn.h
4941 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4943 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4946 echo $ECHO_N "(cached) $ECHO_C" >&6
4948 ac_res=`eval echo '${'$as_ac_Header'}'`
4949 { echo "$as_me:$LINENO: result: $ac_res" >&5
4950 echo "${ECHO_T}$ac_res" >&6; }
4952 # Is the header compilable?
4953 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4954 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4955 cat >conftest.$ac_ext <<_ACEOF
4958 cat confdefs.h >>conftest.$ac_ext
4959 cat >>conftest.$ac_ext <<_ACEOF
4960 /* end confdefs.h. */
4961 $ac_includes_default
4962 #include <$ac_header>
4964 rm -f conftest.$ac_objext
4965 if { (ac_try="$ac_compile"
4967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4968 *) ac_try_echo=$ac_try;;
4970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4971 (eval "$ac_compile") 2>conftest.er1
4973 grep -v '^ *+' conftest.er1 >conftest.err
4975 cat conftest.err >&5
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); } && {
4978 test -z "$ac_c_werror_flag" ||
4979 test ! -s conftest.err
4980 } && test -s conftest.$ac_objext; then
4981 ac_header_compiler=yes
4983 echo "$as_me: failed program was:" >&5
4984 sed 's/^/| /' conftest.$ac_ext >&5
4986 ac_header_compiler=no
4989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4990 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4991 echo "${ECHO_T}$ac_header_compiler" >&6; }
4993 # Is the header present?
4994 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4995 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4996 cat >conftest.$ac_ext <<_ACEOF
4999 cat confdefs.h >>conftest.$ac_ext
5000 cat >>conftest.$ac_ext <<_ACEOF
5001 /* end confdefs.h. */
5002 #include <$ac_header>
5004 if { (ac_try="$ac_cpp conftest.$ac_ext"
5006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5007 *) ac_try_echo=$ac_try;;
5009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5012 grep -v '^ *+' conftest.er1 >conftest.err
5014 cat conftest.err >&5
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); } >/dev/null && {
5017 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5018 test ! -s conftest.err
5020 ac_header_preproc=yes
5022 echo "$as_me: failed program was:" >&5
5023 sed 's/^/| /' conftest.$ac_ext >&5
5025 ac_header_preproc=no
5028 rm -f conftest.err conftest.$ac_ext
5029 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5030 echo "${ECHO_T}$ac_header_preproc" >&6; }
5032 # So? What about this header?
5033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5035 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5036 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5038 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5039 ac_header_preproc=yes
5042 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5043 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5044 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5045 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5046 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5047 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5048 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5049 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5052 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5053 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5057 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5060 echo $ECHO_N "(cached) $ECHO_C" >&6
5062 eval "$as_ac_Header=\$ac_header_preproc"
5064 ac_res=`eval echo '${'$as_ac_Header'}'`
5065 { echo "$as_me:$LINENO: result: $ac_res" >&5
5066 echo "${ECHO_T}$ac_res" >&6; }
5069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5070 cat >>confdefs.h <<_ACEOF
5071 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5079 ac_cpp='$CXXCPP $CPPFLAGS'
5080 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5081 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5082 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5083 if test -z "$CXX"; then
5084 if test -n "$CCC"; then
5087 if test -n "$ac_tool_prefix"; then
5088 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5090 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5091 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5094 if test "${ac_cv_prog_CXX+set}" = set; then
5095 echo $ECHO_N "(cached) $ECHO_C" >&6
5097 if test -n "$CXX"; then
5098 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104 test -z "$as_dir" && as_dir=.
5105 for ac_exec_ext in '' $ac_executable_extensions; do
5106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5107 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5118 if test -n "$CXX"; then
5119 { echo "$as_me:$LINENO: result: $CXX" >&5
5120 echo "${ECHO_T}$CXX" >&6; }
5122 { echo "$as_me:$LINENO: result: no" >&5
5123 echo "${ECHO_T}no" >&6; }
5127 test -n "$CXX" && break
5130 if test -z "$CXX"; then
5132 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5134 # Extract the first word of "$ac_prog", so it can be a program name with args.
5135 set dummy $ac_prog; ac_word=$2
5136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5138 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5139 echo $ECHO_N "(cached) $ECHO_C" >&6
5141 if test -n "$ac_ct_CXX"; then
5142 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5148 test -z "$as_dir" && as_dir=.
5149 for ac_exec_ext in '' $ac_executable_extensions; do
5150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5151 ac_cv_prog_ac_ct_CXX="$ac_prog"
5152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5161 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5162 if test -n "$ac_ct_CXX"; then
5163 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5164 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5166 { echo "$as_me:$LINENO: result: no" >&5
5167 echo "${ECHO_T}no" >&6; }
5171 test -n "$ac_ct_CXX" && break
5174 if test "x$ac_ct_CXX" = x; then
5177 case $cross_compiling:$ac_tool_warned in
5179 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5180 whose name does not start with the host triplet. If you think this
5181 configuration is useful to you, please write to autoconf@gnu.org." >&5
5182 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5183 whose name does not start with the host triplet. If you think this
5184 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5185 ac_tool_warned=yes ;;
5193 # Provide some information about the compiler.
5194 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5195 ac_compiler=`set X $ac_compile; echo $2`
5196 { (ac_try="$ac_compiler --version >&5"
5198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5199 *) ac_try_echo=$ac_try;;
5201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5202 (eval "$ac_compiler --version >&5") 2>&5
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); }
5206 { (ac_try="$ac_compiler -v >&5"
5208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5209 *) ac_try_echo=$ac_try;;
5211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5212 (eval "$ac_compiler -v >&5") 2>&5
5214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215 (exit $ac_status); }
5216 { (ac_try="$ac_compiler -V >&5"
5218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5219 *) ac_try_echo=$ac_try;;
5221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5222 (eval "$ac_compiler -V >&5") 2>&5
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); }
5227 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5228 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5229 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5230 echo $ECHO_N "(cached) $ECHO_C" >&6
5232 cat >conftest.$ac_ext <<_ACEOF
5235 cat confdefs.h >>conftest.$ac_ext
5236 cat >>conftest.$ac_ext <<_ACEOF
5237 /* end confdefs.h. */
5250 rm -f conftest.$ac_objext
5251 if { (ac_try="$ac_compile"
5253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5254 *) ac_try_echo=$ac_try;;
5256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5257 (eval "$ac_compile") 2>conftest.er1
5259 grep -v '^ *+' conftest.er1 >conftest.err
5261 cat conftest.err >&5
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); } && {
5264 test -z "$ac_cxx_werror_flag" ||
5265 test ! -s conftest.err
5266 } && test -s conftest.$ac_objext; then
5269 echo "$as_me: failed program was:" >&5
5270 sed 's/^/| /' conftest.$ac_ext >&5
5275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5276 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5279 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5280 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5281 GXX=`test $ac_compiler_gnu = yes && echo yes`
5282 ac_test_CXXFLAGS=${CXXFLAGS+set}
5283 ac_save_CXXFLAGS=$CXXFLAGS
5284 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5285 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5286 if test "${ac_cv_prog_cxx_g+set}" = set; then
5287 echo $ECHO_N "(cached) $ECHO_C" >&6
5289 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5290 ac_cxx_werror_flag=yes
5293 cat >conftest.$ac_ext <<_ACEOF
5296 cat confdefs.h >>conftest.$ac_ext
5297 cat >>conftest.$ac_ext <<_ACEOF
5298 /* end confdefs.h. */
5308 rm -f conftest.$ac_objext
5309 if { (ac_try="$ac_compile"
5311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5312 *) ac_try_echo=$ac_try;;
5314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5315 (eval "$ac_compile") 2>conftest.er1
5317 grep -v '^ *+' conftest.er1 >conftest.err
5319 cat conftest.err >&5
5320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321 (exit $ac_status); } && {
5322 test -z "$ac_cxx_werror_flag" ||
5323 test ! -s conftest.err
5324 } && test -s conftest.$ac_objext; then
5325 ac_cv_prog_cxx_g=yes
5327 echo "$as_me: failed program was:" >&5
5328 sed 's/^/| /' conftest.$ac_ext >&5
5331 cat >conftest.$ac_ext <<_ACEOF
5334 cat confdefs.h >>conftest.$ac_ext
5335 cat >>conftest.$ac_ext <<_ACEOF
5336 /* end confdefs.h. */
5346 rm -f conftest.$ac_objext
5347 if { (ac_try="$ac_compile"
5349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5350 *) ac_try_echo=$ac_try;;
5352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5353 (eval "$ac_compile") 2>conftest.er1
5355 grep -v '^ *+' conftest.er1 >conftest.err
5357 cat conftest.err >&5
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); } && {
5360 test -z "$ac_cxx_werror_flag" ||
5361 test ! -s conftest.err
5362 } && test -s conftest.$ac_objext; then
5365 echo "$as_me: failed program was:" >&5
5366 sed 's/^/| /' conftest.$ac_ext >&5
5368 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5370 cat >conftest.$ac_ext <<_ACEOF
5373 cat confdefs.h >>conftest.$ac_ext
5374 cat >>conftest.$ac_ext <<_ACEOF
5375 /* end confdefs.h. */
5385 rm -f conftest.$ac_objext
5386 if { (ac_try="$ac_compile"
5388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5389 *) ac_try_echo=$ac_try;;
5391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5392 (eval "$ac_compile") 2>conftest.er1
5394 grep -v '^ *+' conftest.er1 >conftest.err
5396 cat conftest.err >&5
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); } && {
5399 test -z "$ac_cxx_werror_flag" ||
5400 test ! -s conftest.err
5401 } && test -s conftest.$ac_objext; then
5402 ac_cv_prog_cxx_g=yes
5404 echo "$as_me: failed program was:" >&5
5405 sed 's/^/| /' conftest.$ac_ext >&5
5410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5417 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5419 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5420 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5421 if test "$ac_test_CXXFLAGS" = set; then
5422 CXXFLAGS=$ac_save_CXXFLAGS
5423 elif test $ac_cv_prog_cxx_g = yes; then
5424 if test "$GXX" = yes; then
5430 if test "$GXX" = yes; then
5437 ac_cpp='$CXXCPP $CPPFLAGS'
5438 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5439 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5440 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5442 depcc="$CXX" am_compiler_list=
5444 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5445 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5446 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5447 echo $ECHO_N "(cached) $ECHO_C" >&6
5449 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5450 # We make a subdir and do the tests there. Otherwise we can end up
5451 # making bogus files that we don't know about and never remove. For
5452 # instance it was reported that on HP-UX the gcc test will end up
5453 # making a dummy file named `D' -- because `-MD' means `put the output
5456 # Copy depcomp to subdir because otherwise we won't find it if we're
5457 # using a relative directory.
5458 cp "$am_depcomp" conftest.dir
5460 # We will build objects and dependencies in a subdirectory because
5461 # it helps to detect inapplicable dependency modes. For instance
5462 # both Tru64's cc and ICC support -MD to output dependencies as a
5463 # side effect of compilation, but ICC will put the dependencies in
5464 # the current directory while Tru64 will put them in the object
5468 am_cv_CXX_dependencies_compiler_type=none
5469 if test "$am_compiler_list" = ""; then
5470 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5472 for depmode in $am_compiler_list; do
5473 # Setup a source with many dependencies, because some compilers
5474 # like to wrap large dependency lists on column 80 (with \), and
5475 # we should not choose a depcomp mode which is confused by this.
5477 # We need to recreate these files for each test, as the compiler may
5478 # overwrite some of them when testing with obscure command lines.
5479 # This happens at least with the AIX C compiler.
5481 for i in 1 2 3 4 5 6; do
5482 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5483 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5484 # Solaris 8's {/usr,}/bin/sh.
5485 touch sub/conftst$i.h
5487 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5491 # after this tag, mechanisms are not by side-effect, so they'll
5492 # only be used when explicitly requested
5493 if test "x$enable_dependency_tracking" = xyes; then
5501 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5502 # mode. It turns out that the SunPro C++ compiler does not properly
5503 # handle `-M -o', and we need to detect this.
5504 if depmode=$depmode \
5505 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5506 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5507 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5508 >/dev/null 2>conftest.err &&
5509 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5510 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5511 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5512 # icc doesn't choke on unknown options, it will just issue warnings
5513 # or remarks (even with -Werror). So we grep stderr for any message
5514 # that says an option was ignored or not supported.
5515 # When given -MP, icc 7.0 and 7.1 complain thusly:
5516 # icc: Command line warning: ignoring option '-M'; no argument required
5517 # The diagnosis changed in icc 8.0:
5518 # icc: Command line remark: option '-MP' not supported
5519 if (grep 'ignoring option' conftest.err ||
5520 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5521 am_cv_CXX_dependencies_compiler_type=$depmode
5530 am_cv_CXX_dependencies_compiler_type=none
5534 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5535 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5536 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5541 test "x$enable_dependency_tracking" != xno \
5542 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5543 am__fastdepCXX_TRUE=
5544 am__fastdepCXX_FALSE='#'
5546 am__fastdepCXX_TRUE='#'
5547 am__fastdepCXX_FALSE=
5553 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5554 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5555 (test "X$CXX" != "Xg++"))) ; then
5557 ac_cpp='$CXXCPP $CPPFLAGS'
5558 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5559 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5560 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5561 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5562 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5563 if test -z "$CXXCPP"; then
5564 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5565 echo $ECHO_N "(cached) $ECHO_C" >&6
5567 # Double quotes because CXXCPP needs to be expanded
5568 for CXXCPP in "$CXX -E" "/lib/cpp"
5571 for ac_cxx_preproc_warn_flag in '' yes
5573 # Use a header file that comes with gcc, so configuring glibc
5574 # with a fresh cross-compiler works.
5575 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5576 # <limits.h> exists even on freestanding compilers.
5577 # On the NeXT, cc -E runs the code through the compiler's parser,
5578 # not just through cpp. "Syntax error" is here to catch this case.
5579 cat >conftest.$ac_ext <<_ACEOF
5582 cat confdefs.h >>conftest.$ac_ext
5583 cat >>conftest.$ac_ext <<_ACEOF
5584 /* end confdefs.h. */
5586 # include <limits.h>
5588 # include <assert.h>
5592 if { (ac_try="$ac_cpp conftest.$ac_ext"
5594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5595 *) ac_try_echo=$ac_try;;
5597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5598 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5600 grep -v '^ *+' conftest.er1 >conftest.err
5602 cat conftest.err >&5
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); } >/dev/null && {
5605 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5606 test ! -s conftest.err
5610 echo "$as_me: failed program was:" >&5
5611 sed 's/^/| /' conftest.$ac_ext >&5
5613 # Broken: fails on valid input.
5617 rm -f conftest.err conftest.$ac_ext
5619 # OK, works on sane cases. Now check whether nonexistent headers
5620 # can be detected and how.
5621 cat >conftest.$ac_ext <<_ACEOF
5624 cat confdefs.h >>conftest.$ac_ext
5625 cat >>conftest.$ac_ext <<_ACEOF
5626 /* end confdefs.h. */
5627 #include <ac_nonexistent.h>
5629 if { (ac_try="$ac_cpp conftest.$ac_ext"
5631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5632 *) ac_try_echo=$ac_try;;
5634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5635 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5637 grep -v '^ *+' conftest.er1 >conftest.err
5639 cat conftest.err >&5
5640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641 (exit $ac_status); } >/dev/null && {
5642 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5643 test ! -s conftest.err
5645 # Broken: success on invalid input.
5648 echo "$as_me: failed program was:" >&5
5649 sed 's/^/| /' conftest.$ac_ext >&5
5651 # Passes both tests.
5656 rm -f conftest.err conftest.$ac_ext
5659 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5660 rm -f conftest.err conftest.$ac_ext
5661 if $ac_preproc_ok; then
5666 ac_cv_prog_CXXCPP=$CXXCPP
5669 CXXCPP=$ac_cv_prog_CXXCPP
5671 ac_cv_prog_CXXCPP=$CXXCPP
5673 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5674 echo "${ECHO_T}$CXXCPP" >&6; }
5676 for ac_cxx_preproc_warn_flag in '' yes
5678 # Use a header file that comes with gcc, so configuring glibc
5679 # with a fresh cross-compiler works.
5680 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5681 # <limits.h> exists even on freestanding compilers.
5682 # On the NeXT, cc -E runs the code through the compiler's parser,
5683 # not just through cpp. "Syntax error" is here to catch this case.
5684 cat >conftest.$ac_ext <<_ACEOF
5687 cat confdefs.h >>conftest.$ac_ext
5688 cat >>conftest.$ac_ext <<_ACEOF
5689 /* end confdefs.h. */
5691 # include <limits.h>
5693 # include <assert.h>
5697 if { (ac_try="$ac_cpp conftest.$ac_ext"
5699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5700 *) ac_try_echo=$ac_try;;
5702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5705 grep -v '^ *+' conftest.er1 >conftest.err
5707 cat conftest.err >&5
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); } >/dev/null && {
5710 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5711 test ! -s conftest.err
5715 echo "$as_me: failed program was:" >&5
5716 sed 's/^/| /' conftest.$ac_ext >&5
5718 # Broken: fails on valid input.
5722 rm -f conftest.err conftest.$ac_ext
5724 # OK, works on sane cases. Now check whether nonexistent headers
5725 # can be detected and how.
5726 cat >conftest.$ac_ext <<_ACEOF
5729 cat confdefs.h >>conftest.$ac_ext
5730 cat >>conftest.$ac_ext <<_ACEOF
5731 /* end confdefs.h. */
5732 #include <ac_nonexistent.h>
5734 if { (ac_try="$ac_cpp conftest.$ac_ext"
5736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5737 *) ac_try_echo=$ac_try;;
5739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5740 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5742 grep -v '^ *+' conftest.er1 >conftest.err
5744 cat conftest.err >&5
5745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746 (exit $ac_status); } >/dev/null && {
5747 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5748 test ! -s conftest.err
5750 # Broken: success on invalid input.
5753 echo "$as_me: failed program was:" >&5
5754 sed 's/^/| /' conftest.$ac_ext >&5
5756 # Passes both tests.
5761 rm -f conftest.err conftest.$ac_ext
5764 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5765 rm -f conftest.err conftest.$ac_ext
5766 if $ac_preproc_ok; then
5769 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5770 See \`config.log' for more details." >&5
5771 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5772 See \`config.log' for more details." >&2;}
5773 { (exit 1); exit 1; }; }
5777 ac_cpp='$CXXCPP $CPPFLAGS'
5778 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5779 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5780 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5786 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5787 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5788 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5789 if test -n "$ac_tool_prefix"; then
5790 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
5792 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5793 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5796 if test "${ac_cv_prog_F77+set}" = set; then
5797 echo $ECHO_N "(cached) $ECHO_C" >&6
5799 if test -n "$F77"; then
5800 ac_cv_prog_F77="$F77" # Let the user override the test.
5802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5806 test -z "$as_dir" && as_dir=.
5807 for ac_exec_ext in '' $ac_executable_extensions; do
5808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5809 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5820 if test -n "$F77"; then
5821 { echo "$as_me:$LINENO: result: $F77" >&5
5822 echo "${ECHO_T}$F77" >&6; }
5824 { echo "$as_me:$LINENO: result: no" >&5
5825 echo "${ECHO_T}no" >&6; }
5829 test -n "$F77" && break
5832 if test -z "$F77"; then
5834 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
5836 # Extract the first word of "$ac_prog", so it can be a program name with args.
5837 set dummy $ac_prog; ac_word=$2
5838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5840 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5841 echo $ECHO_N "(cached) $ECHO_C" >&6
5843 if test -n "$ac_ct_F77"; then
5844 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5850 test -z "$as_dir" && as_dir=.
5851 for ac_exec_ext in '' $ac_executable_extensions; do
5852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5853 ac_cv_prog_ac_ct_F77="$ac_prog"
5854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5863 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5864 if test -n "$ac_ct_F77"; then
5865 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5866 echo "${ECHO_T}$ac_ct_F77" >&6; }
5868 { echo "$as_me:$LINENO: result: no" >&5
5869 echo "${ECHO_T}no" >&6; }
5873 test -n "$ac_ct_F77" && break
5876 if test "x$ac_ct_F77" = x; then
5879 case $cross_compiling:$ac_tool_warned in
5881 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5882 whose name does not start with the host triplet. If you think this
5883 configuration is useful to you, please write to autoconf@gnu.org." >&5
5884 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5885 whose name does not start with the host triplet. If you think this
5886 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5887 ac_tool_warned=yes ;;
5894 # Provide some information about the compiler.
5895 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5896 ac_compiler=`set X $ac_compile; echo $2`
5897 { (ac_try="$ac_compiler --version >&5"
5899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5900 *) ac_try_echo=$ac_try;;
5902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5903 (eval "$ac_compiler --version >&5") 2>&5
5905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906 (exit $ac_status); }
5907 { (ac_try="$ac_compiler -v >&5"
5909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5910 *) ac_try_echo=$ac_try;;
5912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5913 (eval "$ac_compiler -v >&5") 2>&5
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); }
5917 { (ac_try="$ac_compiler -V >&5"
5919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5920 *) ac_try_echo=$ac_try;;
5922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5923 (eval "$ac_compiler -V >&5") 2>&5
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); }
5929 # If we don't use `.F' as extension, the preprocessor is not run on the
5930 # input file. (Note that this only needs to work for GNU compilers.)
5933 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5934 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5935 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5936 echo $ECHO_N "(cached) $ECHO_C" >&6
5938 cat >conftest.$ac_ext <<_ACEOF
5946 rm -f conftest.$ac_objext
5947 if { (ac_try="$ac_compile"
5949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5950 *) ac_try_echo=$ac_try;;
5952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5953 (eval "$ac_compile") 2>conftest.er1
5955 grep -v '^ *+' conftest.er1 >conftest.err
5957 cat conftest.err >&5
5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); } && {
5960 test -z "$ac_f77_werror_flag" ||
5961 test ! -s conftest.err
5962 } && test -s conftest.$ac_objext; then
5965 echo "$as_me: failed program was:" >&5
5966 sed 's/^/| /' conftest.$ac_ext >&5
5971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5972 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5975 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5976 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5978 ac_test_FFLAGS=${FFLAGS+set}
5979 ac_save_FFLAGS=$FFLAGS
5981 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5982 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5983 if test "${ac_cv_prog_f77_g+set}" = set; then
5984 echo $ECHO_N "(cached) $ECHO_C" >&6
5987 cat >conftest.$ac_ext <<_ACEOF
5992 rm -f conftest.$ac_objext
5993 if { (ac_try="$ac_compile"
5995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5996 *) ac_try_echo=$ac_try;;
5998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5999 (eval "$ac_compile") 2>conftest.er1
6001 grep -v '^ *+' conftest.er1 >conftest.err
6003 cat conftest.err >&5
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); } && {
6006 test -z "$ac_f77_werror_flag" ||
6007 test ! -s conftest.err
6008 } && test -s conftest.$ac_objext; then
6009 ac_cv_prog_f77_g=yes
6011 echo "$as_me: failed program was:" >&5
6012 sed 's/^/| /' conftest.$ac_ext >&5
6017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6020 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6021 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6022 if test "$ac_test_FFLAGS" = set; then
6023 FFLAGS=$ac_save_FFLAGS
6024 elif test $ac_cv_prog_f77_g = yes; then
6025 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6031 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6038 G77=`test $ac_compiler_gnu = yes && echo yes`
6040 ac_cpp='$CPP $CPPFLAGS'
6041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6047 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6049 # find the maximum length of command line arguments
6050 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6051 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6052 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6053 echo $ECHO_N "(cached) $ECHO_C" >&6
6060 # On DJGPP, this test can blow up pretty badly due to problems in libc
6061 # (any single argument exceeding 2000 bytes causes a buffer overrun
6062 # during glob expansion). Even if it were fixed, the result of this
6063 # check would be larger than it should be.
6064 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6068 # Under GNU Hurd, this test is not required because there is
6069 # no limit to the length of command line arguments.
6070 # Libtool will interpret -1 as no limit whatsoever
6071 lt_cv_sys_max_cmd_len=-1;
6075 # On Win9x/ME, this test blows up -- it succeeds, but takes
6076 # about 5 minutes as the teststring grows exponentially.
6077 # Worse, since 9x/ME are not pre-emptively multitasking,
6078 # you end up with a "frozen" computer, even though with patience
6079 # the test eventually succeeds (with a max line length of 256k).
6080 # Instead, let's just punt: use the minimum linelength reported by
6081 # all of the supported platforms: 8192 (on NT/2K/XP).
6082 lt_cv_sys_max_cmd_len=8192;
6086 # On AmigaOS with pdksh, this test takes hours, literally.
6087 # So we just punt and use a minimum line length of 8192.
6088 lt_cv_sys_max_cmd_len=8192;
6091 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6092 # This has been around since 386BSD, at least. Likely further.
6093 if test -x /sbin/sysctl; then
6094 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6095 elif test -x /usr/sbin/sysctl; then
6096 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6098 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6100 # And add a safety zone
6101 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6102 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6106 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6107 lt_cv_sys_max_cmd_len=196608
6111 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6112 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6113 # nice to cause kernel panics so lets avoid the loop below.
6114 # First set a reasonable default.
6115 lt_cv_sys_max_cmd_len=16384
6117 if test -x /sbin/sysconfig; then
6118 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6119 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6124 lt_cv_sys_max_cmd_len=102400
6126 sysv5* | sco5v6* | sysv4.2uw2*)
6127 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6128 if test -n "$kargmax"; then
6129 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6131 lt_cv_sys_max_cmd_len=32768
6135 # If test is not a shell built-in, we'll probably end up computing a
6136 # maximum length that is only half of the actual maximum length, but
6138 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6139 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6140 = "XX$teststring") >/dev/null 2>&1 &&
6141 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6142 lt_cv_sys_max_cmd_len=$new_result &&
6143 test $i != 17 # 1/2 MB should be enough
6146 teststring=$teststring$teststring
6149 # Add a significant safety factor because C++ compilers can tack on massive
6150 # amounts of additional arguments before passing them to the linker.
6151 # It appears as though 1/2 is a usable value.
6152 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6158 if test -n $lt_cv_sys_max_cmd_len ; then
6159 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6160 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6162 { echo "$as_me:$LINENO: result: none" >&5
6163 echo "${ECHO_T}none" >&6; }
6169 # Check for command to grab the raw symbol name followed by C symbol from nm.
6170 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6171 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6172 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6173 echo $ECHO_N "(cached) $ECHO_C" >&6
6176 # These are sane defaults that work on at least a few old systems.
6177 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6179 # Character class describing NM global symbol codes.
6180 symcode='[BCDEGRST]'
6182 # Regexp to match symbols that can be accessed directly from C.
6183 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6185 # Transform an extracted symbol line into a proper C declaration
6186 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6188 # Transform an extracted symbol line into symbol name and symbol address
6189 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'"
6191 # Define system-specific variables.
6196 cygwin* | mingw* | pw32*)
6197 symcode='[ABCDGISTW]'
6199 hpux*) # Its linker distinguishes data from code symbols
6200 if test "$host_cpu" = ia64; then
6201 symcode='[ABCDEGRST]'
6203 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6204 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'"
6206 linux* | k*bsd*-gnu)
6207 if test "$host_cpu" = ia64; then
6208 symcode='[ABCDGIRSTW]'
6209 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6210 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'"
6214 symcode='[BCDEGRST]'
6217 symcode='[BCDEGQRST]'
6228 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6236 # Handle CRLF in mingw tool chain
6240 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6244 # If we're using GNU nm, then use its standard symbol codes.
6245 case `$NM -V 2>&1` in
6246 *GNU* | *'with BFD'*)
6247 symcode='[ABCDGIRSTW]' ;;
6250 # Try without a prefix undercore, then with it.
6251 for ac_symprfx in "" "_"; do
6253 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6254 symxfrm="\\1 $ac_symprfx\\2 \\2"
6256 # Write the raw and C identifiers.
6257 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6259 # Check to see that the pipe works correctly.
6263 cat > conftest.$ac_ext <<EOF
6268 void nm_test_func(){}
6272 int main(){nm_test_var='a';nm_test_func();return(0);}
6275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6276 (eval $ac_compile) 2>&5
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); }; then
6280 # Now try to grab the symbols.
6282 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6283 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); } && test -s "$nlist"; then
6287 # Try sorting and uniquifying the output.
6288 if sort "$nlist" | uniq > "$nlist"T; then
6289 mv -f "$nlist"T "$nlist"
6294 # Make sure that we snagged all the symbols we need.
6295 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6296 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6297 cat <<EOF > conftest.$ac_ext
6303 # Now generate the symbol file.
6304 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6306 cat <<EOF >> conftest.$ac_ext
6307 #if defined (__STDC__) && __STDC__
6308 # define lt_ptr_t void *
6310 # define lt_ptr_t char *
6314 /* The mapping between symbol names and symbols. */
6319 lt_preloaded_symbols[] =
6322 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6323 cat <<\EOF >> conftest.$ac_ext
6331 # Now try linking the two files.
6332 mv conftest.$ac_objext conftstm.$ac_objext
6333 lt_save_LIBS="$LIBS"
6334 lt_save_CFLAGS="$CFLAGS"
6335 LIBS="conftstm.$ac_objext"
6336 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6338 (eval $ac_link) 2>&5
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6344 LIBS="$lt_save_LIBS"
6345 CFLAGS="$lt_save_CFLAGS"
6347 echo "cannot find nm_test_func in $nlist" >&5
6350 echo "cannot find nm_test_var in $nlist" >&5
6353 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6356 echo "$progname: failed program was:" >&5
6357 cat conftest.$ac_ext >&5
6359 rm -f conftest* conftst*
6361 # Do not use the global_symbol_pipe unless it works.
6362 if test "$pipe_works" = yes; then
6365 lt_cv_sys_global_symbol_pipe=
6371 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6372 lt_cv_sys_global_symbol_to_cdecl=
6374 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6375 { echo "$as_me:$LINENO: result: failed" >&5
6376 echo "${ECHO_T}failed" >&6; }
6378 { echo "$as_me:$LINENO: result: ok" >&5
6379 echo "${ECHO_T}ok" >&6; }
6382 { echo "$as_me:$LINENO: checking for objdir" >&5
6383 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6384 if test "${lt_cv_objdir+set}" = set; then
6385 echo $ECHO_N "(cached) $ECHO_C" >&6
6387 rm -f .libs 2>/dev/null
6388 mkdir .libs 2>/dev/null
6389 if test -d .libs; then
6392 # MS-DOS does not allow filenames that begin with a dot.
6395 rmdir .libs 2>/dev/null
6397 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6398 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6399 objdir=$lt_cv_objdir
6407 # AIX sometimes has problems with the GCC collect2 program. For some
6408 # reason, if we set the COLLECT_NAMES environment variable, the problems
6409 # vanish in a puff of smoke.
6410 if test "X${COLLECT_NAMES+set}" != Xset; then
6412 export COLLECT_NAMES
6417 # Sed substitution that helps us do robust quoting. It backslashifies
6418 # metacharacters that are still active within double-quoted strings.
6419 Xsed='sed -e 1s/^X//'
6420 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6422 # Same as above, but do not quote variable references.
6423 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6425 # Sed substitution to delay expansion of an escaped shell variable in a
6426 # double_quote_subst'ed string.
6427 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6429 # Sed substitution to avoid accidental globbing in evaled expressions
6430 no_glob_subst='s/\*/\\\*/g'
6436 default_ofile=libtool
6437 can_build_shared=yes
6439 # All known linkers require a `.a' archive for static linking (except MSVC,
6440 # which needs '.lib').
6442 ltmain="$ac_aux_dir/ltmain.sh"
6443 ofile="$default_ofile"
6444 with_gnu_ld="$lt_cv_prog_gnu_ld"
6446 if test -n "$ac_tool_prefix"; then
6447 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6448 set dummy ${ac_tool_prefix}ar; ac_word=$2
6449 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6451 if test "${ac_cv_prog_AR+set}" = set; then
6452 echo $ECHO_N "(cached) $ECHO_C" >&6
6454 if test -n "$AR"; then
6455 ac_cv_prog_AR="$AR" # Let the user override the test.
6457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6461 test -z "$as_dir" && as_dir=.
6462 for ac_exec_ext in '' $ac_executable_extensions; do
6463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6464 ac_cv_prog_AR="${ac_tool_prefix}ar"
6465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6475 if test -n "$AR"; then
6476 { echo "$as_me:$LINENO: result: $AR" >&5
6477 echo "${ECHO_T}$AR" >&6; }
6479 { echo "$as_me:$LINENO: result: no" >&5
6480 echo "${ECHO_T}no" >&6; }
6485 if test -z "$ac_cv_prog_AR"; then
6487 # Extract the first word of "ar", so it can be a program name with args.
6488 set dummy ar; ac_word=$2
6489 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6491 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6492 echo $ECHO_N "(cached) $ECHO_C" >&6
6494 if test -n "$ac_ct_AR"; then
6495 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6501 test -z "$as_dir" && as_dir=.
6502 for ac_exec_ext in '' $ac_executable_extensions; do
6503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6504 ac_cv_prog_ac_ct_AR="ar"
6505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6514 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6515 if test -n "$ac_ct_AR"; then
6516 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6517 echo "${ECHO_T}$ac_ct_AR" >&6; }
6519 { echo "$as_me:$LINENO: result: no" >&5
6520 echo "${ECHO_T}no" >&6; }
6523 if test "x$ac_ct_AR" = x; then
6526 case $cross_compiling:$ac_tool_warned in
6528 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6529 whose name does not start with the host triplet. If you think this
6530 configuration is useful to you, please write to autoconf@gnu.org." >&5
6531 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6532 whose name does not start with the host triplet. If you think this
6533 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6534 ac_tool_warned=yes ;;
6542 if test -n "$ac_tool_prefix"; then
6543 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6544 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6547 if test "${ac_cv_prog_RANLIB+set}" = set; then
6548 echo $ECHO_N "(cached) $ECHO_C" >&6
6550 if test -n "$RANLIB"; then
6551 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6557 test -z "$as_dir" && as_dir=.
6558 for ac_exec_ext in '' $ac_executable_extensions; do
6559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6560 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6570 RANLIB=$ac_cv_prog_RANLIB
6571 if test -n "$RANLIB"; then
6572 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6573 echo "${ECHO_T}$RANLIB" >&6; }
6575 { echo "$as_me:$LINENO: result: no" >&5
6576 echo "${ECHO_T}no" >&6; }
6581 if test -z "$ac_cv_prog_RANLIB"; then
6582 ac_ct_RANLIB=$RANLIB
6583 # Extract the first word of "ranlib", so it can be a program name with args.
6584 set dummy ranlib; ac_word=$2
6585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6587 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6588 echo $ECHO_N "(cached) $ECHO_C" >&6
6590 if test -n "$ac_ct_RANLIB"; then
6591 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6597 test -z "$as_dir" && as_dir=.
6598 for ac_exec_ext in '' $ac_executable_extensions; do
6599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6600 ac_cv_prog_ac_ct_RANLIB="ranlib"
6601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6610 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6611 if test -n "$ac_ct_RANLIB"; then
6612 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6613 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6615 { echo "$as_me:$LINENO: result: no" >&5
6616 echo "${ECHO_T}no" >&6; }
6619 if test "x$ac_ct_RANLIB" = x; then
6622 case $cross_compiling:$ac_tool_warned in
6624 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6625 whose name does not start with the host triplet. If you think this
6626 configuration is useful to you, please write to autoconf@gnu.org." >&5
6627 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6628 whose name does not start with the host triplet. If you think this
6629 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6630 ac_tool_warned=yes ;;
6632 RANLIB=$ac_ct_RANLIB
6635 RANLIB="$ac_cv_prog_RANLIB"
6638 if test -n "$ac_tool_prefix"; then
6639 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6640 set dummy ${ac_tool_prefix}strip; ac_word=$2
6641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6643 if test "${ac_cv_prog_STRIP+set}" = set; then
6644 echo $ECHO_N "(cached) $ECHO_C" >&6
6646 if test -n "$STRIP"; then
6647 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6653 test -z "$as_dir" && as_dir=.
6654 for ac_exec_ext in '' $ac_executable_extensions; do
6655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6656 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6666 STRIP=$ac_cv_prog_STRIP
6667 if test -n "$STRIP"; then
6668 { echo "$as_me:$LINENO: result: $STRIP" >&5
6669 echo "${ECHO_T}$STRIP" >&6; }
6671 { echo "$as_me:$LINENO: result: no" >&5
6672 echo "${ECHO_T}no" >&6; }
6677 if test -z "$ac_cv_prog_STRIP"; then
6679 # Extract the first word of "strip", so it can be a program name with args.
6680 set dummy strip; ac_word=$2
6681 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6683 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6684 echo $ECHO_N "(cached) $ECHO_C" >&6
6686 if test -n "$ac_ct_STRIP"; then
6687 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6693 test -z "$as_dir" && as_dir=.
6694 for ac_exec_ext in '' $ac_executable_extensions; do
6695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6696 ac_cv_prog_ac_ct_STRIP="strip"
6697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6706 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6707 if test -n "$ac_ct_STRIP"; then
6708 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6709 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6711 { echo "$as_me:$LINENO: result: no" >&5
6712 echo "${ECHO_T}no" >&6; }
6715 if test "x$ac_ct_STRIP" = x; then
6718 case $cross_compiling:$ac_tool_warned in
6720 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6721 whose name does not start with the host triplet. If you think this
6722 configuration is useful to you, please write to autoconf@gnu.org." >&5
6723 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6724 whose name does not start with the host triplet. If you think this
6725 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6726 ac_tool_warned=yes ;;
6731 STRIP="$ac_cv_prog_STRIP"
6736 old_CFLAGS="$CFLAGS"
6738 # Set sane defaults for various variables
6739 test -z "$AR" && AR=ar
6740 test -z "$AR_FLAGS" && AR_FLAGS=cru
6741 test -z "$AS" && AS=as
6742 test -z "$CC" && CC=cc
6743 test -z "$LTCC" && LTCC=$CC
6744 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6745 test -z "$DLLTOOL" && DLLTOOL=dlltool
6746 test -z "$LD" && LD=ld
6747 test -z "$LN_S" && LN_S="ln -s"
6748 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6749 test -z "$NM" && NM=nm
6750 test -z "$SED" && SED=sed
6751 test -z "$OBJDUMP" && OBJDUMP=objdump
6752 test -z "$RANLIB" && RANLIB=:
6753 test -z "$STRIP" && STRIP=:
6754 test -z "$ac_objext" && ac_objext=o
6756 # Determine commands to create old-style static archives.
6757 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6758 old_postinstall_cmds='chmod 644 $oldlib'
6759 old_postuninstall_cmds=
6761 if test -n "$RANLIB"; then
6764 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6767 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6770 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6773 for cc_temp in $compiler""; do
6775 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6776 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6781 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6784 # Only perform the check for file, if the check method requires it
6785 case $deplibs_check_method in
6787 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6788 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6789 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6790 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6791 echo $ECHO_N "(cached) $ECHO_C" >&6
6795 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6798 lt_save_MAGIC_CMD="$MAGIC_CMD"
6799 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6800 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6801 for ac_dir in $ac_dummy; do
6803 test -z "$ac_dir" && ac_dir=.
6804 if test -f $ac_dir/${ac_tool_prefix}file; then
6805 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6806 if test -n "$file_magic_test_file"; then
6807 case $deplibs_check_method in
6809 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6810 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6811 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6812 $EGREP "$file_magic_regex" > /dev/null; then
6817 *** Warning: the command libtool uses to detect shared libraries,
6818 *** $file_magic_cmd, produces output that libtool cannot recognize.
6819 *** The result is that libtool may fail to recognize shared libraries
6820 *** as such. This will affect the creation of libtool libraries that
6821 *** depend on shared libraries, but programs linked with such libtool
6822 *** libraries will work regardless of this problem. Nevertheless, you
6823 *** may want to report the problem to your system manager and/or to
6824 *** bug-libtool@gnu.org
6834 MAGIC_CMD="$lt_save_MAGIC_CMD"
6839 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6840 if test -n "$MAGIC_CMD"; then
6841 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6842 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6844 { echo "$as_me:$LINENO: result: no" >&5
6845 echo "${ECHO_T}no" >&6; }
6848 if test -z "$lt_cv_path_MAGIC_CMD"; then
6849 if test -n "$ac_tool_prefix"; then
6850 { echo "$as_me:$LINENO: checking for file" >&5
6851 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6852 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6853 echo $ECHO_N "(cached) $ECHO_C" >&6
6857 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6860 lt_save_MAGIC_CMD="$MAGIC_CMD"
6861 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6862 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6863 for ac_dir in $ac_dummy; do
6865 test -z "$ac_dir" && ac_dir=.
6866 if test -f $ac_dir/file; then
6867 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6868 if test -n "$file_magic_test_file"; then
6869 case $deplibs_check_method in
6871 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6872 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6873 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6874 $EGREP "$file_magic_regex" > /dev/null; then
6879 *** Warning: the command libtool uses to detect shared libraries,
6880 *** $file_magic_cmd, produces output that libtool cannot recognize.
6881 *** The result is that libtool may fail to recognize shared libraries
6882 *** as such. This will affect the creation of libtool libraries that
6883 *** depend on shared libraries, but programs linked with such libtool
6884 *** libraries will work regardless of this problem. Nevertheless, you
6885 *** may want to report the problem to your system manager and/or to
6886 *** bug-libtool@gnu.org
6896 MAGIC_CMD="$lt_save_MAGIC_CMD"
6901 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6902 if test -n "$MAGIC_CMD"; then
6903 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6904 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6906 { echo "$as_me:$LINENO: result: no" >&5
6907 echo "${ECHO_T}no" >&6; }
6922 # Check whether --enable-libtool-lock was given.
6923 if test "${enable_libtool_lock+set}" = set; then
6924 enableval=$enable_libtool_lock;
6927 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6930 # Check whether --with-pic was given.
6931 if test "${with_pic+set}" = set; then
6932 withval=$with_pic; pic_mode="$withval"
6937 test -z "$pic_mode" && pic_mode=default
6939 # Use C for the default configuration in the libtool script
6943 ac_cpp='$CPP $CPPFLAGS'
6944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6949 # Source file extension for C test sources.
6952 # Object file extension for compiled C test sources.
6956 # Code to be used in simple compile tests
6957 lt_simple_compile_test_code="int some_variable = 0;\n"
6959 # Code to be used in simple link tests
6960 lt_simple_link_test_code='int main(){return(0);}\n'
6963 # If no C compiler was specified, use CC.
6966 # If no C compiler flags were specified, use CFLAGS.
6967 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6969 # Allow CC to be a program name with arguments.
6973 # save warnings/boilerplate of simple test code
6974 ac_outfile=conftest.$ac_objext
6975 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6976 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6977 _lt_compiler_boilerplate=`cat conftest.err`
6980 ac_outfile=conftest.$ac_objext
6981 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6982 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6983 _lt_linker_boilerplate=`cat conftest.err`
6988 lt_prog_compiler_no_builtin_flag=
6990 if test "$GCC" = yes; then
6991 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6994 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6995 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6996 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6997 echo $ECHO_N "(cached) $ECHO_C" >&6
6999 lt_cv_prog_compiler_rtti_exceptions=no
7000 ac_outfile=conftest.$ac_objext
7001 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7002 lt_compiler_flag="-fno-rtti -fno-exceptions"
7003 # Insert the option either (1) after the last *FLAGS variable, or
7004 # (2) before a word containing "conftest.", or (3) at the end.
7005 # Note that $ac_compile itself does not contain backslashes and begins
7006 # with a dollar sign (not a hyphen), so the echo should work correctly.
7007 # The option is referenced via a variable to avoid confusing sed.
7008 lt_compile=`echo "$ac_compile" | $SED \
7009 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7010 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7011 -e 's:$: $lt_compiler_flag:'`
7012 (eval echo "\"\$as_me:7012: $lt_compile\"" >&5)
7013 (eval "$lt_compile" 2>conftest.err)
7015 cat conftest.err >&5
7016 echo "$as_me:7016: \$? = $ac_status" >&5
7017 if (exit $ac_status) && test -s "$ac_outfile"; then
7018 # The compiler can only warn and ignore the option if not recognized
7019 # So say no if there are warnings other than the usual output.
7020 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7021 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7022 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7023 lt_cv_prog_compiler_rtti_exceptions=yes
7029 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7030 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7032 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7033 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7040 lt_prog_compiler_wl=
7041 lt_prog_compiler_pic=
7042 lt_prog_compiler_static=
7044 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7045 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7047 if test "$GCC" = yes; then
7048 lt_prog_compiler_wl='-Wl,'
7049 lt_prog_compiler_static='-static'
7053 # All AIX code is PIC.
7054 if test "$host_cpu" = ia64; then
7055 # AIX 5 now supports IA64 processor
7056 lt_prog_compiler_static='-Bstatic'
7061 # FIXME: we need at least 68020 code to build shared libraries, but
7062 # adding the `-m68020' flag to GCC prevents building anything better,
7064 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7067 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7068 # PIC is the default for these OSes.
7071 mingw* | pw32* | os2*)
7072 # This hack is so that the source file can tell whether it is being
7073 # built for inclusion in a dll (and should export symbols for example).
7074 lt_prog_compiler_pic='-DDLL_EXPORT'
7077 darwin* | rhapsody*)
7078 # PIC is the default on this platform
7079 # Common symbols not allowed in MH_DYLIB files
7080 lt_prog_compiler_pic='-fno-common'
7084 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7085 # Instead, we relocate shared libraries at runtime.
7089 # Just because we use GCC doesn't mean we suddenly get shared libraries
7090 # on systems that don't support them.
7091 lt_prog_compiler_can_build_shared=no
7096 if test -d /usr/nec; then
7097 lt_prog_compiler_pic=-Kconform_pic
7102 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7109 lt_prog_compiler_pic='-fPIC'
7115 lt_prog_compiler_pic='-fPIC'
7119 # PORTME Check for flag to pass linker flags through the system compiler.
7122 lt_prog_compiler_wl='-Wl,'
7123 if test "$host_cpu" = ia64; then
7124 # AIX 5 now supports IA64 processor
7125 lt_prog_compiler_static='-Bstatic'
7127 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7131 # PIC is the default on this platform
7132 # Common symbols not allowed in MH_DYLIB files
7133 case $cc_basename in
7135 lt_prog_compiler_pic='-qnocommon'
7136 lt_prog_compiler_wl='-Wl,'
7141 mingw* | pw32* | os2*)
7142 # This hack is so that the source file can tell whether it is being
7143 # built for inclusion in a dll (and should export symbols for example).
7144 lt_prog_compiler_pic='-DDLL_EXPORT'
7147 hpux9* | hpux10* | hpux11*)
7148 lt_prog_compiler_wl='-Wl,'
7149 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7156 lt_prog_compiler_pic='+Z'
7159 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7160 lt_prog_compiler_static='${wl}-a ${wl}archive'
7163 irix5* | irix6* | nonstopux*)
7164 lt_prog_compiler_wl='-Wl,'
7165 # PIC (with -KPIC) is the default.
7166 lt_prog_compiler_static='-non_shared'
7170 lt_prog_compiler_pic='-KPIC'
7171 lt_prog_compiler_static='-Bstatic'
7174 linux* | k*bsd*-gnu)
7175 case $cc_basename in
7177 lt_prog_compiler_wl='-Wl,'
7178 lt_prog_compiler_pic='-KPIC'
7179 lt_prog_compiler_static='-static'
7181 pgcc* | pgf77* | pgf90* | pgf95*)
7182 # Portland Group compilers (*not* the Pentium gcc compiler,
7183 # which looks to be a dead project)
7184 lt_prog_compiler_wl='-Wl,'
7185 lt_prog_compiler_pic='-fpic'
7186 lt_prog_compiler_static='-Bstatic'
7189 lt_prog_compiler_wl='-Wl,'
7190 # All Alpha code is PIC.
7191 lt_prog_compiler_static='-non_shared'
7196 osf3* | osf4* | osf5*)
7197 lt_prog_compiler_wl='-Wl,'
7198 # All OSF/1 code is PIC.
7199 lt_prog_compiler_static='-non_shared'
7203 lt_prog_compiler_pic='-KPIC'
7204 lt_prog_compiler_static='-Bstatic'
7205 case $cc_basename in
7207 lt_prog_compiler_wl='-Qoption ld ';;
7209 lt_prog_compiler_wl='-Wl,';;
7214 lt_prog_compiler_wl='-Qoption ld '
7215 lt_prog_compiler_pic='-PIC'
7216 lt_prog_compiler_static='-Bstatic'
7219 sysv4 | sysv4.2uw2* | sysv4.3*)
7220 lt_prog_compiler_wl='-Wl,'
7221 lt_prog_compiler_pic='-KPIC'
7222 lt_prog_compiler_static='-Bstatic'
7226 if test -d /usr/nec ;then
7227 lt_prog_compiler_pic='-Kconform_pic'
7228 lt_prog_compiler_static='-Bstatic'
7232 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7233 lt_prog_compiler_wl='-Wl,'
7234 lt_prog_compiler_pic='-KPIC'
7235 lt_prog_compiler_static='-Bstatic'
7239 lt_prog_compiler_wl='-Wl,'
7240 lt_prog_compiler_can_build_shared=no
7244 lt_prog_compiler_pic='-pic'
7245 lt_prog_compiler_static='-Bstatic'
7249 lt_prog_compiler_can_build_shared=no
7254 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7255 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7258 # Check to make sure the PIC flag actually works.
7260 if test -n "$lt_prog_compiler_pic"; then
7262 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7263 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7264 if test "${lt_prog_compiler_pic_works+set}" = set; then
7265 echo $ECHO_N "(cached) $ECHO_C" >&6
7267 lt_prog_compiler_pic_works=no
7268 ac_outfile=conftest.$ac_objext
7269 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7270 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7271 # Insert the option either (1) after the last *FLAGS variable, or
7272 # (2) before a word containing "conftest.", or (3) at the end.
7273 # Note that $ac_compile itself does not contain backslashes and begins
7274 # with a dollar sign (not a hyphen), so the echo should work correctly.
7275 # The option is referenced via a variable to avoid confusing sed.
7276 lt_compile=`echo "$ac_compile" | $SED \
7277 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7278 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7279 -e 's:$: $lt_compiler_flag:'`
7280 (eval echo "\"\$as_me:7280: $lt_compile\"" >&5)
7281 (eval "$lt_compile" 2>conftest.err)
7283 cat conftest.err >&5
7284 echo "$as_me:7284: \$? = $ac_status" >&5
7285 if (exit $ac_status) && test -s "$ac_outfile"; then
7286 # The compiler can only warn and ignore the option if not recognized
7287 # So say no if there are warnings other than the usual output.
7288 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7289 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7290 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7291 lt_prog_compiler_pic_works=yes
7297 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7298 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7300 if test x"$lt_prog_compiler_pic_works" = xyes; then
7301 case $lt_prog_compiler_pic in
7303 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7306 lt_prog_compiler_pic=
7307 lt_prog_compiler_can_build_shared=no
7312 # For platforms which do not support PIC, -DPIC is meaningless:
7314 lt_prog_compiler_pic=
7317 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7322 # Check to make sure the static flag actually works.
7324 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7325 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7326 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7327 if test "${lt_prog_compiler_static_works+set}" = set; then
7328 echo $ECHO_N "(cached) $ECHO_C" >&6
7330 lt_prog_compiler_static_works=no
7331 save_LDFLAGS="$LDFLAGS"
7332 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7333 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7334 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7335 # The linker can only warn and ignore the option if not recognized
7336 # So say no if there are warnings
7337 if test -s conftest.err; then
7338 # Append any errors to the config.log.
7339 cat conftest.err 1>&5
7340 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7341 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7342 if diff conftest.exp conftest.er2 >/dev/null; then
7343 lt_prog_compiler_static_works=yes
7346 lt_prog_compiler_static_works=yes
7350 LDFLAGS="$save_LDFLAGS"
7353 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7354 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7356 if test x"$lt_prog_compiler_static_works" = xyes; then
7359 lt_prog_compiler_static=
7363 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7364 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7365 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7366 echo $ECHO_N "(cached) $ECHO_C" >&6
7368 lt_cv_prog_compiler_c_o=no
7369 $rm -r conftest 2>/dev/null
7373 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7375 lt_compiler_flag="-o out/conftest2.$ac_objext"
7376 # Insert the option either (1) after the last *FLAGS variable, or
7377 # (2) before a word containing "conftest.", or (3) at the end.
7378 # Note that $ac_compile itself does not contain backslashes and begins
7379 # with a dollar sign (not a hyphen), so the echo should work correctly.
7380 lt_compile=`echo "$ac_compile" | $SED \
7381 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7382 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7383 -e 's:$: $lt_compiler_flag:'`
7384 (eval echo "\"\$as_me:7384: $lt_compile\"" >&5)
7385 (eval "$lt_compile" 2>out/conftest.err)
7387 cat out/conftest.err >&5
7388 echo "$as_me:7388: \$? = $ac_status" >&5
7389 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7391 # The compiler can only warn and ignore the option if not recognized
7392 # So say no if there are warnings
7393 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7394 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7395 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7396 lt_cv_prog_compiler_c_o=yes
7401 # SGI C++ compiler will create directory out/ii_files/ for
7402 # template instantiation
7403 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7404 $rm out/* && rmdir out
7410 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7411 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7414 hard_links="nottested"
7415 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7416 # do not overwrite the value of need_locks provided by the user
7417 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7418 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7421 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7423 ln conftest.a conftest.b 2>&5 || hard_links=no
7424 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7425 { echo "$as_me:$LINENO: result: $hard_links" >&5
7426 echo "${ECHO_T}$hard_links" >&6; }
7427 if test "$hard_links" = no; then
7428 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7429 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7436 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7437 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7440 allow_undefined_flag=
7441 enable_shared_with_static_runtimes=no
7443 archive_expsym_cmds=
7444 old_archive_From_new_cmds=
7445 old_archive_from_expsyms_cmds=
7446 export_dynamic_flag_spec=
7447 whole_archive_flag_spec=
7448 thread_safe_flag_spec=
7449 hardcode_libdir_flag_spec=
7450 hardcode_libdir_flag_spec_ld=
7451 hardcode_libdir_separator=
7454 hardcode_shlibpath_var=unsupported
7455 link_all_deplibs=unknown
7456 hardcode_automatic=no
7459 always_export_symbols=no
7460 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7461 # include_expsyms should be a list of space-separated symbols to be *always*
7462 # included in the symbol list
7464 # exclude_expsyms can be an extended regexp of symbols to exclude
7465 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7466 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7467 # as well as any symbol that contains `d'.
7468 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7469 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7470 # platforms (ab)use it in PIC code, but their linkers get confused if
7471 # the symbol is explicitly referenced. Since portable code cannot
7472 # rely on this symbol name, it's probably fine to never include it in
7473 # preloaded symbol tables.
7474 extract_expsyms_cmds=
7475 # Just being paranoid about ensuring that cc_basename is set.
7476 for cc_temp in $compiler""; do
7478 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7479 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7484 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7487 cygwin* | mingw* | pw32*)
7488 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7489 # When not using gcc, we currently assume that we are using
7490 # Microsoft Visual C++.
7491 if test "$GCC" != yes; then
7496 # we just hope/assume this is gcc and not c89 (= MSVC++)
7505 if test "$with_gnu_ld" = yes; then
7506 # If archive_cmds runs LD, not CC, wlarc should be empty
7509 # Set some defaults for GNU ld with shared library support. These
7510 # are reset later if shared libraries are not supported. Putting them
7511 # here allows them to be overridden if necessary.
7512 runpath_var=LD_RUN_PATH
7513 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7514 export_dynamic_flag_spec='${wl}--export-dynamic'
7515 # ancient GNU ld didn't support --whole-archive et. al.
7516 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7517 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7519 whole_archive_flag_spec=
7521 supports_anon_versioning=no
7522 case `$LD -v 2>/dev/null` in
7523 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7524 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7525 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7526 *\ 2.11.*) ;; # other 2.11 versions
7527 *) supports_anon_versioning=yes ;;
7530 # See if GNU ld supports shared libraries.
7532 aix3* | aix4* | aix5*)
7533 # On AIX/PPC, the GNU linker is very broken
7534 if test "$host_cpu" != ia64; then
7538 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7539 *** to be unable to reliably create shared libraries on AIX.
7540 *** Therefore, libtool is disabling shared libraries support. If you
7541 *** really care for shared libraries, you may want to modify your PATH
7542 *** so that a non-GNU linker is found, and then restart.
7549 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)'
7550 hardcode_libdir_flag_spec='-L$libdir'
7551 hardcode_minus_L=yes
7553 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7554 # that the semantics of dynamic libraries on AmigaOS, at least up
7555 # to version 4, is to share data among multiple programs linked
7556 # with the same dynamic library. Since this doesn't match the
7557 # behavior of shared libraries on other platforms, we can't use
7563 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7564 allow_undefined_flag=unsupported
7565 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7566 # support --undefined. This deserves some investigation. FIXME
7567 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7573 cygwin* | mingw* | pw32*)
7574 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7575 # as there is no search path for DLLs.
7576 hardcode_libdir_flag_spec='-L$libdir'
7577 allow_undefined_flag=unsupported
7578 always_export_symbols=no
7579 enable_shared_with_static_runtimes=yes
7580 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7582 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7583 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7584 # If the export-symbols file already is a .def file (1st line
7585 # is EXPORTS), use it as is; otherwise, prepend...
7586 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7587 cp $export_symbols $output_objdir/$soname.def;
7589 echo EXPORTS > $output_objdir/$soname.def;
7590 cat $export_symbols >> $output_objdir/$soname.def;
7592 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7600 hardcode_shlibpath_var=no
7601 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7602 export_dynamic_flag_spec='${wl}-E'
7603 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7604 # Instead, shared libraries are loaded at an image base (0x10000000 by
7605 # default) and relocated if they conflict, which is a slow very memory
7606 # consuming and fragmenting process. To avoid this, we pick a random,
7607 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7608 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7609 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7610 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'
7613 linux* | k*bsd*-gnu)
7614 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7616 case $cc_basename,$host_cpu in
7617 pgcc*) # Portland Group C compiler
7618 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'
7619 tmp_addflag=' $pic_flag'
7621 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7622 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'
7623 tmp_addflag=' $pic_flag -Mnomain' ;;
7624 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7625 tmp_addflag=' -i_dynamic' ;;
7626 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7627 tmp_addflag=' -i_dynamic -nofor_main' ;;
7628 ifc* | ifort*) # Intel Fortran compiler
7629 tmp_addflag=' -nofor_main' ;;
7631 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7633 if test $supports_anon_versioning = yes; then
7634 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7635 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7636 $echo "local: *; };" >> $output_objdir/$libname.ver~
7637 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7645 netbsd* | netbsdelf*-gnu)
7646 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7647 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7650 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7651 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7656 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7660 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7661 *** create shared libraries on Solaris systems. Therefore, libtool
7662 *** is disabling shared libraries support. We urge you to upgrade GNU
7663 *** binutils to release 2.9.1 or newer. Another option is to modify
7664 *** your PATH or compiler configuration so that the native linker is
7665 *** used, and then restart.
7668 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7669 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7670 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7676 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7677 case `$LD -v 2>&1` in
7678 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7682 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7683 *** reliably create shared libraries on SCO systems. Therefore, libtool
7684 *** is disabling shared libraries support. We urge you to upgrade GNU
7685 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7686 *** your PATH or compiler configuration so that the native linker is
7687 *** used, and then restart.
7692 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7693 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7694 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7695 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7704 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7707 hardcode_shlibpath_var=no
7711 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7712 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7713 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7720 if test "$ld_shlibs" = no; then
7722 hardcode_libdir_flag_spec=
7723 export_dynamic_flag_spec=
7724 whole_archive_flag_spec=
7727 # PORTME fill in a description of your system's linker (not GNU ld)
7730 allow_undefined_flag=unsupported
7731 always_export_symbols=yes
7732 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'
7733 # Note: this linker hardcodes the directories in LIBPATH if there
7734 # are no directories specified by -L.
7735 hardcode_minus_L=yes
7736 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7737 # Neither direct hardcoding nor static linking is supported with a
7739 hardcode_direct=unsupported
7744 if test "$host_cpu" = ia64; then
7745 # On IA64, the linker does run time linking by default, so we don't
7746 # have to do anything special.
7747 aix_use_runtimelinking=no
7748 exp_sym_flag='-Bexport'
7751 # If we're using GNU nm, then we don't want the "-C" option.
7752 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7753 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7754 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'
7756 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'
7758 aix_use_runtimelinking=no
7760 # Test if we are trying to use run time linking or normal
7761 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7762 # need to do runtime linking.
7763 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7764 for ld_flag in $LDFLAGS; do
7765 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7766 aix_use_runtimelinking=yes
7773 exp_sym_flag='-bexport'
7774 no_entry_flag='-bnoentry'
7777 # When large executables or shared objects are built, AIX ld can
7778 # have problems creating the table of contents. If linking a library
7779 # or program results in "error TOC overflow" add -mminimal-toc to
7780 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7781 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7785 hardcode_libdir_separator=':'
7786 link_all_deplibs=yes
7788 if test "$GCC" = yes; then
7789 case $host_os in aix4.[012]|aix4.[012].*)
7790 # We only want to do this on AIX 4.2 and lower, the check
7791 # below for broken collect2 doesn't work under 4.3+
7792 collect2name=`${CC} -print-prog-name=collect2`
7793 if test -f "$collect2name" && \
7794 strings "$collect2name" | grep resolve_lib_name >/dev/null
7796 # We have reworked collect2
7799 # We have old collect2
7800 hardcode_direct=unsupported
7801 # It fails to find uninstalled libraries when the uninstalled
7802 # path is not listed in the libpath. Setting hardcode_minus_L
7803 # to unsupported forces relinking
7804 hardcode_minus_L=yes
7805 hardcode_libdir_flag_spec='-L$libdir'
7806 hardcode_libdir_separator=
7810 shared_flag='-shared'
7811 if test "$aix_use_runtimelinking" = yes; then
7812 shared_flag="$shared_flag "'${wl}-G'
7816 if test "$host_cpu" = ia64; then
7817 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7818 # chokes on -Wl,-G. The following line is correct:
7821 if test "$aix_use_runtimelinking" = yes; then
7822 shared_flag='${wl}-G'
7824 shared_flag='${wl}-bM:SRE'
7829 # It seems that -bexpall does not export symbols beginning with
7830 # underscore (_), so it is better to generate a list of symbols to export.
7831 always_export_symbols=yes
7832 if test "$aix_use_runtimelinking" = yes; then
7833 # Warning - without using the other runtime loading flags (-brtl),
7834 # -berok will link without error, but may produce a broken library.
7835 allow_undefined_flag='-berok'
7836 # Determine the default libpath from the value encoded in an empty executable.
7837 cat >conftest.$ac_ext <<_ACEOF
7840 cat confdefs.h >>conftest.$ac_ext
7841 cat >>conftest.$ac_ext <<_ACEOF
7842 /* end confdefs.h. */
7852 rm -f conftest.$ac_objext conftest$ac_exeext
7853 if { (ac_try="$ac_link"
7855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7856 *) ac_try_echo=$ac_try;;
7858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7859 (eval "$ac_link") 2>conftest.er1
7861 grep -v '^ *+' conftest.er1 >conftest.err
7863 cat conftest.err >&5
7864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865 (exit $ac_status); } && {
7866 test -z "$ac_c_werror_flag" ||
7867 test ! -s conftest.err
7868 } && test -s conftest$ac_exeext &&
7869 $as_test_x conftest$ac_exeext; then
7871 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7873 # Check for a 64-bit object if we didn't find anything.
7874 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7877 echo "$as_me: failed program was:" >&5
7878 sed 's/^/| /' conftest.$ac_ext >&5
7883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7884 conftest$ac_exeext conftest.$ac_ext
7885 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7887 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7888 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"
7890 if test "$host_cpu" = ia64; then
7891 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7892 allow_undefined_flag="-z nodefs"
7893 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"
7895 # Determine the default libpath from the value encoded in an empty executable.
7896 cat >conftest.$ac_ext <<_ACEOF
7899 cat confdefs.h >>conftest.$ac_ext
7900 cat >>conftest.$ac_ext <<_ACEOF
7901 /* end confdefs.h. */
7911 rm -f conftest.$ac_objext conftest$ac_exeext
7912 if { (ac_try="$ac_link"
7914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7915 *) ac_try_echo=$ac_try;;
7917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7918 (eval "$ac_link") 2>conftest.er1
7920 grep -v '^ *+' conftest.er1 >conftest.err
7922 cat conftest.err >&5
7923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924 (exit $ac_status); } && {
7925 test -z "$ac_c_werror_flag" ||
7926 test ! -s conftest.err
7927 } && test -s conftest$ac_exeext &&
7928 $as_test_x conftest$ac_exeext; then
7930 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7932 # Check for a 64-bit object if we didn't find anything.
7933 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7936 echo "$as_me: failed program was:" >&5
7937 sed 's/^/| /' conftest.$ac_ext >&5
7942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7943 conftest$ac_exeext conftest.$ac_ext
7944 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7946 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7947 # Warning - without using the other run time loading flags,
7948 # -berok will link without error, but may produce a broken library.
7949 no_undefined_flag=' ${wl}-bernotok'
7950 allow_undefined_flag=' ${wl}-berok'
7951 # Exported symbols can be pulled into shared objects from archives
7952 whole_archive_flag_spec='$convenience'
7953 archive_cmds_need_lc=yes
7954 # This is similar to how AIX traditionally builds its shared libraries.
7955 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'
7961 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)'
7962 hardcode_libdir_flag_spec='-L$libdir'
7963 hardcode_minus_L=yes
7964 # see comment about different semantics on the GNU ld section
7969 export_dynamic_flag_spec=-rdynamic
7972 cygwin* | mingw* | pw32*)
7973 # When not using gcc, we currently assume that we are using
7974 # Microsoft Visual C++.
7975 # hardcode_libdir_flag_spec is actually meaningless, as there is
7976 # no search path for DLLs.
7977 hardcode_libdir_flag_spec=' '
7978 allow_undefined_flag=unsupported
7979 # Tell ltmain to make .lib files, not .a files.
7981 # Tell ltmain to make .dll files, not .so files.
7983 # FIXME: Setting linknames here is a bad hack.
7984 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7985 # The linker will automatically build a .lib file if we build a DLL.
7986 old_archive_From_new_cmds='true'
7987 # FIXME: Should let the user specify the lib program.
7988 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7989 fix_srcfile_path='`cygpath -w "$srcfile"`'
7990 enable_shared_with_static_runtimes=yes
7993 darwin* | rhapsody*)
7995 rhapsody* | darwin1.[012])
7996 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7999 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8000 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8002 case ${MACOSX_DEPLOYMENT_TARGET} in
8004 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8007 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8013 archive_cmds_need_lc=no
8015 hardcode_automatic=yes
8016 hardcode_shlibpath_var=unsupported
8017 whole_archive_flag_spec=''
8018 link_all_deplibs=yes
8019 if test "$GCC" = yes ; then
8020 output_verbose_link_cmd='echo'
8021 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8022 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8023 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8024 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}'
8025 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}'
8027 case $cc_basename in
8029 output_verbose_link_cmd='echo'
8030 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8031 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8032 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8033 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8034 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}'
8044 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8045 hardcode_libdir_flag_spec='-L$libdir'
8046 hardcode_shlibpath_var=no
8053 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8054 # support. Future versions do this automatically, but an explicit c++rt0.o
8055 # does not break anything, and helps significantly (at the cost of a little
8058 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8059 hardcode_libdir_flag_spec='-R$libdir'
8061 hardcode_shlibpath_var=no
8064 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8066 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8068 hardcode_minus_L=yes
8069 hardcode_shlibpath_var=no
8072 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8073 freebsd* | dragonfly*)
8074 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8075 hardcode_libdir_flag_spec='-R$libdir'
8077 hardcode_shlibpath_var=no
8081 if test "$GCC" = yes; then
8082 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'
8084 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'
8086 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8087 hardcode_libdir_separator=:
8090 # hardcode_minus_L: Not really in the search PATH,
8091 # but as the default location of the library.
8092 hardcode_minus_L=yes
8093 export_dynamic_flag_spec='${wl}-E'
8097 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8098 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8100 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8102 if test "$with_gnu_ld" = no; then
8103 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8104 hardcode_libdir_separator=:
8107 export_dynamic_flag_spec='${wl}-E'
8109 # hardcode_minus_L: Not really in the search PATH,
8110 # but as the default location of the library.
8111 hardcode_minus_L=yes
8116 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8119 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8122 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8125 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8131 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8134 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8137 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8141 if test "$with_gnu_ld" = no; then
8142 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8143 hardcode_libdir_separator=:
8147 hardcode_libdir_flag_spec_ld='+b $libdir'
8149 hardcode_shlibpath_var=no
8153 export_dynamic_flag_spec='${wl}-E'
8155 # hardcode_minus_L: Not really in the search PATH,
8156 # but as the default location of the library.
8157 hardcode_minus_L=yes
8163 irix5* | irix6* | nonstopux*)
8164 if test "$GCC" = yes; then
8165 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'
8167 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'
8168 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8170 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8171 hardcode_libdir_separator=:
8172 link_all_deplibs=yes
8175 netbsd* | netbsdelf*-gnu)
8176 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8177 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8179 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8181 hardcode_libdir_flag_spec='-R$libdir'
8183 hardcode_shlibpath_var=no
8187 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8189 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8190 hardcode_libdir_separator=:
8191 hardcode_shlibpath_var=no
8196 hardcode_shlibpath_var=no
8197 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8198 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8199 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8200 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8201 export_dynamic_flag_spec='${wl}-E'
8204 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8205 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8206 hardcode_libdir_flag_spec='-R$libdir'
8209 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8210 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8217 hardcode_libdir_flag_spec='-L$libdir'
8218 hardcode_minus_L=yes
8219 allow_undefined_flag=unsupported
8220 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'
8221 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8225 if test "$GCC" = yes; then
8226 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8227 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'
8229 allow_undefined_flag=' -expect_unresolved \*'
8230 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'
8232 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8233 hardcode_libdir_separator=:
8236 osf4* | osf5*) # as osf3* with the addition of -msym flag
8237 if test "$GCC" = yes; then
8238 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8239 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'
8240 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8242 allow_undefined_flag=' -expect_unresolved \*'
8243 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'
8244 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8245 $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'
8247 # Both c and cxx compiler support -rpath directly
8248 hardcode_libdir_flag_spec='-rpath $libdir'
8250 hardcode_libdir_separator=:
8254 no_undefined_flag=' -z text'
8255 if test "$GCC" = yes; then
8257 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8258 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8259 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8262 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8263 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8264 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8266 hardcode_libdir_flag_spec='-R$libdir'
8267 hardcode_shlibpath_var=no
8269 solaris2.[0-5] | solaris2.[0-5].*) ;;
8271 # The compiler driver will combine linker options so we
8272 # cannot just pass the convience library names through
8273 # without $wl, iff we do not link with $LD.
8274 # Luckily, gcc supports the same syntax we need for Sun Studio.
8275 # Supported since Solaris 2.6 (maybe 2.5.1?)
8278 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8280 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8283 link_all_deplibs=yes
8287 if test "x$host_vendor" = xsequent; then
8288 # Use $CC to link under sequent, because it throws in some extra .o
8289 # files that make .init and .fini sections work.
8290 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8292 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8294 hardcode_libdir_flag_spec='-L$libdir'
8296 hardcode_minus_L=yes
8297 hardcode_shlibpath_var=no
8301 case $host_vendor in
8303 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8304 hardcode_direct=yes # is this really true???
8307 ## LD is ld it makes a PLAMLIB
8308 ## CC just makes a GrossModule.
8309 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8310 reload_cmds='$CC -r -o $output$reload_objs'
8314 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8315 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8318 runpath_var='LD_RUN_PATH'
8319 hardcode_shlibpath_var=no
8323 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8324 hardcode_shlibpath_var=no
8325 export_dynamic_flag_spec='-Bexport'
8329 if test -d /usr/nec; then
8330 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8331 hardcode_shlibpath_var=no
8332 runpath_var=LD_RUN_PATH
8333 hardcode_runpath_var=yes
8338 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8339 no_undefined_flag='${wl}-z,text'
8340 archive_cmds_need_lc=no
8341 hardcode_shlibpath_var=no
8342 runpath_var='LD_RUN_PATH'
8344 if test "$GCC" = yes; then
8345 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8346 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8348 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8349 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8353 sysv5* | sco3.2v5* | sco5v6*)
8354 # Note: We can NOT use -z defs as we might desire, because we do not
8355 # link with -lc, and that would cause any symbols used from libc to
8356 # always be unresolved, which means just about no library would
8357 # ever link correctly. If we're not using GNU ld we use -z text
8358 # though, which does catch some bad symbols but isn't as heavy-handed
8360 no_undefined_flag='${wl}-z,text'
8361 allow_undefined_flag='${wl}-z,nodefs'
8362 archive_cmds_need_lc=no
8363 hardcode_shlibpath_var=no
8364 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8365 hardcode_libdir_separator=':'
8366 link_all_deplibs=yes
8367 export_dynamic_flag_spec='${wl}-Bexport'
8368 runpath_var='LD_RUN_PATH'
8370 if test "$GCC" = yes; then
8371 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8372 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8374 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8375 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8380 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8381 hardcode_libdir_flag_spec='-L$libdir'
8382 hardcode_shlibpath_var=no
8391 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8392 echo "${ECHO_T}$ld_shlibs" >&6; }
8393 test "$ld_shlibs" = no && can_build_shared=no
8396 # Do we need to explicitly link libc?
8398 case "x$archive_cmds_need_lc" in
8400 # Assume -lc should be added
8401 archive_cmds_need_lc=yes
8403 if test "$enable_shared" = yes && test "$GCC" = yes; then
8404 case $archive_cmds in
8406 # FIXME: we may have to deal with multi-command sequences.
8409 # Test whether the compiler implicitly links with -lc since on some
8410 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8411 # to ld, don't add -lc before -lgcc.
8412 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8413 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8415 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8418 (eval $ac_compile) 2>&5
8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); } 2>conftest.err; then
8424 libobjs=conftest.$ac_objext
8426 wl=$lt_prog_compiler_wl
8427 pic_flag=$lt_prog_compiler_pic
8433 lt_save_allow_undefined_flag=$allow_undefined_flag
8434 allow_undefined_flag=
8435 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8436 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439 (exit $ac_status); }
8441 archive_cmds_need_lc=no
8443 archive_cmds_need_lc=yes
8445 allow_undefined_flag=$lt_save_allow_undefined_flag
8447 cat conftest.err 1>&5
8450 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8451 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8458 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8459 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8461 libname_spec='lib$name'
8469 shlibpath_overrides_runpath=unknown
8471 dynamic_linker="$host_os ld.so"
8472 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8473 if test "$GCC" = yes; then
8474 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8475 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8476 # if the path contains ";" then we assume it to be the separator
8477 # otherwise default to the standard path separator (i.e. ":") - it is
8478 # assumed that no part of a normal pathname contains ";" but that should
8479 # okay in the real world where ";" in dirpaths is itself problematic.
8480 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8482 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8485 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8487 need_lib_prefix=unknown
8488 hardcode_into_libs=no
8490 # when you set need_version to no, make sure it does not cause -set_version
8491 # flags to be left without arguments
8492 need_version=unknown
8497 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8498 shlibpath_var=LIBPATH
8500 # AIX 3 has no versioning support, so we append a major version to the name.
8501 soname_spec='${libname}${release}${shared_ext}$major'
8508 hardcode_into_libs=yes
8509 if test "$host_cpu" = ia64; then
8510 # AIX 5 supports IA64
8511 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8512 shlibpath_var=LD_LIBRARY_PATH
8514 # With GCC up to 2.95.x, collect2 would create an import file
8515 # for dependence libraries. The import file would start with
8516 # the line `#! .'. This would cause the generated library to
8517 # depend on `.', always an invalid library. This was fixed in
8518 # development snapshots of GCC prior to 3.0.
8520 aix4 | aix4.[01] | aix4.[01].*)
8521 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8523 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8530 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8531 # soname into executable. Probably we can add versioning support to
8532 # collect2, so additional links can be useful in future.
8533 if test "$aix_use_runtimelinking" = yes; then
8534 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8535 # instead of lib<name>.a to let people know that these are not
8536 # typical AIX shared libraries.
8537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8539 # We preserve .a as extension for shared libraries through AIX4.2
8540 # and later when we are not doing run time linking.
8541 library_names_spec='${libname}${release}.a $libname.a'
8542 soname_spec='${libname}${release}${shared_ext}$major'
8544 shlibpath_var=LIBPATH
8549 library_names_spec='$libname.ixlibrary $libname.a'
8550 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8551 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'
8555 library_names_spec='${libname}${shared_ext}'
8556 dynamic_linker="$host_os ld.so"
8557 shlibpath_var=LIBRARY_PATH
8563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8564 soname_spec='${libname}${release}${shared_ext}$major'
8565 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8566 shlibpath_var=LD_LIBRARY_PATH
8567 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8568 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8569 # the default ld.so.conf also contains /usr/contrib/lib and
8570 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8571 # libtool to hard-code these into programs
8574 cygwin* | mingw* | pw32*)
8575 version_type=windows
8580 case $GCC,$host_os in
8581 yes,cygwin* | yes,mingw* | yes,pw32*)
8582 library_names_spec='$libname.dll.a'
8583 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8584 postinstall_cmds='base_file=`basename \${file}`~
8585 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8586 dldir=$destdir/`dirname \$dlpath`~
8587 test -d \$dldir || mkdir -p \$dldir~
8588 $install_prog $dir/$dlname \$dldir/$dlname~
8589 chmod a+x \$dldir/$dlname'
8590 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8591 dlpath=$dir/\$dldll~
8593 shlibpath_overrides_runpath=yes
8597 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8598 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8599 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8602 # MinGW DLLs use traditional 'lib' prefix
8603 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8604 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8605 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8606 # It is most probably a Windows format PATH printed by
8607 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8608 # path with ; separators, and with drive letters. We can handle the
8609 # drive letters (cygwin fileutils understands them), so leave them,
8610 # especially as we might pass files found there to a mingw objdump,
8611 # which wouldn't understand a cygwinified path. Ahh.
8612 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8614 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8618 # pw32 DLLs use 'pw' prefix rather than 'lib'
8619 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8625 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8628 dynamic_linker='Win32 ld.exe'
8629 # FIXME: first we should search . and the directory the executable is in
8633 darwin* | rhapsody*)
8634 dynamic_linker="$host_os dyld"
8638 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8639 soname_spec='${libname}${release}${major}$shared_ext'
8640 shlibpath_overrides_runpath=yes
8641 shlibpath_var=DYLD_LIBRARY_PATH
8642 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8643 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8644 if test "$GCC" = yes; then
8645 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8647 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8649 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8657 soname_spec='${libname}${release}${shared_ext}$major'
8658 shlibpath_var=LD_LIBRARY_PATH
8665 freebsd* | dragonfly*)
8666 # DragonFly does not have aout. When/if they implement a new
8667 # versioning mechanism, adjust this.
8668 if test -x /usr/bin/objformat; then
8669 objformat=`/usr/bin/objformat`
8672 freebsd[123]*) objformat=aout ;;
8676 version_type=freebsd-$objformat
8677 case $version_type in
8679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8684 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8688 shlibpath_var=LD_LIBRARY_PATH
8691 shlibpath_overrides_runpath=yes
8693 freebsd3.[01]* | freebsdelf3.[01]*)
8694 shlibpath_overrides_runpath=yes
8695 hardcode_into_libs=yes
8697 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8698 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8699 shlibpath_overrides_runpath=no
8700 hardcode_into_libs=yes
8702 freebsd*) # from 4.6 on
8703 shlibpath_overrides_runpath=yes
8704 hardcode_into_libs=yes
8713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8714 soname_spec='${libname}${release}${shared_ext}$major'
8715 shlibpath_var=LD_LIBRARY_PATH
8716 hardcode_into_libs=yes
8719 hpux9* | hpux10* | hpux11*)
8720 # Give a soname corresponding to the major version so that dld.sl refuses to
8721 # link against other versions.
8728 hardcode_into_libs=yes
8729 dynamic_linker="$host_os dld.so"
8730 shlibpath_var=LD_LIBRARY_PATH
8731 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8733 soname_spec='${libname}${release}${shared_ext}$major'
8734 if test "X$HPUX_IA64_MODE" = X32; then
8735 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8737 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8739 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8743 hardcode_into_libs=yes
8744 dynamic_linker="$host_os dld.sl"
8745 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8746 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8748 soname_spec='${libname}${release}${shared_ext}$major'
8749 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8750 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8754 dynamic_linker="$host_os dld.sl"
8755 shlibpath_var=SHLIB_PATH
8756 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8758 soname_spec='${libname}${release}${shared_ext}$major'
8761 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8762 postinstall_cmds='chmod 555 $lib'
8769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8770 soname_spec='${libname}${release}${shared_ext}$major'
8771 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8772 shlibpath_var=LD_LIBRARY_PATH
8773 shlibpath_overrides_runpath=no
8774 hardcode_into_libs=yes
8777 irix5* | irix6* | nonstopux*)
8779 nonstopux*) version_type=nonstopux ;;
8781 if test "$lt_cv_prog_gnu_ld" = yes; then
8789 soname_spec='${libname}${release}${shared_ext}$major'
8790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8792 irix5* | nonstopux*)
8796 case $LD in # libtool.m4 will add one of these switches to LD
8797 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8798 libsuff= shlibsuff= libmagic=32-bit;;
8799 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8800 libsuff=32 shlibsuff=N32 libmagic=N32;;
8801 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8802 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8803 *) libsuff= shlibsuff= libmagic=never-match;;
8807 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8808 shlibpath_overrides_runpath=no
8809 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8810 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8811 hardcode_into_libs=yes
8814 # No shared lib support for Linux oldld, aout, or coff.
8815 linux*oldld* | linux*aout* | linux*coff*)
8819 # This must be Linux ELF.
8820 linux* | k*bsd*-gnu)
8824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8825 soname_spec='${libname}${release}${shared_ext}$major'
8826 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8827 shlibpath_var=LD_LIBRARY_PATH
8828 shlibpath_overrides_runpath=no
8829 # This implies no fast_install, which is unacceptable.
8830 # Some rework will be needed to allow for fast_install
8831 # before this can be enabled.
8832 hardcode_into_libs=yes
8834 # Append ld.so.conf contents to the search path
8835 if test -f /etc/ld.so.conf; then
8836 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8837 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8840 # We used to test for /lib/ld.so.1 and disable shared libraries on
8841 # powerpc, because MkLinux only supported shared libraries with the
8842 # GNU dynamic linker. Since this was broken with cross compilers,
8843 # most powerpc-linux boxes support dynamic linking these days and
8844 # people can always --disable-shared, the test was removed, and we
8845 # assume the GNU/Linux dynamic linker is in use.
8846 dynamic_linker='GNU/Linux ld.so'
8853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8854 soname_spec='${libname}${release}${shared_ext}$major'
8855 shlibpath_var=LD_LIBRARY_PATH
8856 shlibpath_overrides_runpath=no
8857 hardcode_into_libs=yes
8858 dynamic_linker='NetBSD ld.elf_so'
8865 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8867 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8868 dynamic_linker='NetBSD (a.out) ld.so'
8870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8871 soname_spec='${libname}${release}${shared_ext}$major'
8872 dynamic_linker='NetBSD ld.elf_so'
8874 shlibpath_var=LD_LIBRARY_PATH
8875 shlibpath_overrides_runpath=yes
8876 hardcode_into_libs=yes
8881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8882 shlibpath_var=LD_LIBRARY_PATH
8883 shlibpath_overrides_runpath=yes
8890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8891 soname_spec='${libname}${release}${shared_ext}$major'
8892 shlibpath_var=LD_LIBRARY_PATH
8893 shlibpath_overrides_runpath=yes
8898 sys_lib_dlsearch_path_spec="/usr/lib"
8900 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8902 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8903 *) need_version=no ;;
8905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8906 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8907 shlibpath_var=LD_LIBRARY_PATH
8908 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8910 openbsd2.[89] | openbsd2.[89].*)
8911 shlibpath_overrides_runpath=no
8914 shlibpath_overrides_runpath=yes
8918 shlibpath_overrides_runpath=yes
8923 libname_spec='$name'
8926 library_names_spec='$libname${shared_ext} $libname.a'
8927 dynamic_linker='OS/2 ld.exe'
8928 shlibpath_var=LIBPATH
8931 osf3* | osf4* | osf5*)
8935 soname_spec='${libname}${release}${shared_ext}$major'
8936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8937 shlibpath_var=LD_LIBRARY_PATH
8938 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8939 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8947 soname_spec='${libname}${release}${shared_ext}$major'
8948 shlibpath_var=LD_LIBRARY_PATH
8949 shlibpath_overrides_runpath=yes
8950 hardcode_into_libs=yes
8951 # ldd complains unless libraries are executable
8952 postinstall_cmds='chmod +x $lib'
8957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8958 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8959 shlibpath_var=LD_LIBRARY_PATH
8960 shlibpath_overrides_runpath=yes
8961 if test "$with_gnu_ld" = yes; then
8969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8970 soname_spec='${libname}${release}${shared_ext}$major'
8971 shlibpath_var=LD_LIBRARY_PATH
8972 case $host_vendor in
8974 shlibpath_overrides_runpath=no
8976 export_dynamic_flag_spec='${wl}-Blargedynsym'
8977 runpath_var=LD_RUN_PATH
8985 shlibpath_overrides_runpath=no
8986 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8992 if test -d /usr/nec ;then
8994 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8995 soname_spec='$libname${shared_ext}.$major'
8996 shlibpath_var=LD_LIBRARY_PATH
9000 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9001 version_type=freebsd-elf
9004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9005 soname_spec='${libname}${release}${shared_ext}$major'
9006 shlibpath_var=LD_LIBRARY_PATH
9007 hardcode_into_libs=yes
9008 if test "$with_gnu_ld" = yes; then
9009 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9010 shlibpath_overrides_runpath=no
9012 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9013 shlibpath_overrides_runpath=yes
9016 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9020 sys_lib_dlsearch_path_spec='/usr/lib'
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'
9027 shlibpath_var=LD_LIBRARY_PATH
9034 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9035 echo "${ECHO_T}$dynamic_linker" >&6; }
9036 test "$dynamic_linker" = no && can_build_shared=no
9038 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9039 if test "$GCC" = yes; then
9040 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9043 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9044 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9046 if test -n "$hardcode_libdir_flag_spec" || \
9047 test -n "$runpath_var" || \
9048 test "X$hardcode_automatic" = "Xyes" ; then
9050 # We can hardcode non-existant directories.
9051 if test "$hardcode_direct" != no &&
9052 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9053 # have to relink, otherwise we might link with an installed library
9054 # when we should be linking with a yet-to-be-installed one
9055 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9056 test "$hardcode_minus_L" != no; then
9057 # Linking always hardcodes the temporary library directory.
9058 hardcode_action=relink
9060 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9061 hardcode_action=immediate
9064 # We cannot hardcode anything, or else we can only hardcode existing
9066 hardcode_action=unsupported
9068 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9069 echo "${ECHO_T}$hardcode_action" >&6; }
9071 if test "$hardcode_action" = relink; then
9072 # Fast installation is not supported
9073 enable_fast_install=no
9074 elif test "$shlibpath_overrides_runpath" = yes ||
9075 test "$enable_shared" = no; then
9076 # Fast installation is not necessary
9077 enable_fast_install=needless
9082 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9083 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9084 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9085 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9086 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9087 { echo "$as_me:$LINENO: result: yes" >&5
9088 echo "${ECHO_T}yes" >&6; }
9090 # FIXME - insert some real tests, host_os isn't really good enough
9093 if test -n "$STRIP" ; then
9094 striplib="$STRIP -x"
9095 { echo "$as_me:$LINENO: result: yes" >&5
9096 echo "${ECHO_T}yes" >&6; }
9098 { echo "$as_me:$LINENO: result: no" >&5
9099 echo "${ECHO_T}no" >&6; }
9103 { echo "$as_me:$LINENO: result: no" >&5
9104 echo "${ECHO_T}no" >&6; }
9109 if test "x$enable_dlopen" != xyes; then
9110 enable_dlopen=unknown
9111 enable_dlopen_self=unknown
9112 enable_dlopen_self_static=unknown
9119 lt_cv_dlopen="load_add_on"
9121 lt_cv_dlopen_self=yes
9125 lt_cv_dlopen="LoadLibrary"
9130 lt_cv_dlopen="dlopen"
9135 # if libdl is installed we need to link against it
9136 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9137 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9138 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9139 echo $ECHO_N "(cached) $ECHO_C" >&6
9141 ac_check_lib_save_LIBS=$LIBS
9143 cat >conftest.$ac_ext <<_ACEOF
9146 cat confdefs.h >>conftest.$ac_ext
9147 cat >>conftest.$ac_ext <<_ACEOF
9148 /* end confdefs.h. */
9150 /* Override any GCC internal prototype to avoid an error.
9151 Use char because int might match the return type of a GCC
9152 builtin and then its argument prototype would still apply. */
9165 rm -f conftest.$ac_objext conftest$ac_exeext
9166 if { (ac_try="$ac_link"
9168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9169 *) ac_try_echo=$ac_try;;
9171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9172 (eval "$ac_link") 2>conftest.er1
9174 grep -v '^ *+' conftest.er1 >conftest.err
9176 cat conftest.err >&5
9177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); } && {
9179 test -z "$ac_c_werror_flag" ||
9180 test ! -s conftest.err
9181 } && test -s conftest$ac_exeext &&
9182 $as_test_x conftest$ac_exeext; then
9183 ac_cv_lib_dl_dlopen=yes
9185 echo "$as_me: failed program was:" >&5
9186 sed 's/^/| /' conftest.$ac_ext >&5
9188 ac_cv_lib_dl_dlopen=no
9191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9192 conftest$ac_exeext conftest.$ac_ext
9193 LIBS=$ac_check_lib_save_LIBS
9195 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9196 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9197 if test $ac_cv_lib_dl_dlopen = yes; then
9198 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9203 lt_cv_dlopen_self=yes
9210 { echo "$as_me:$LINENO: checking for shl_load" >&5
9211 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9212 if test "${ac_cv_func_shl_load+set}" = set; then
9213 echo $ECHO_N "(cached) $ECHO_C" >&6
9215 cat >conftest.$ac_ext <<_ACEOF
9218 cat confdefs.h >>conftest.$ac_ext
9219 cat >>conftest.$ac_ext <<_ACEOF
9220 /* end confdefs.h. */
9221 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9222 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9223 #define shl_load innocuous_shl_load
9225 /* System header to define __stub macros and hopefully few prototypes,
9226 which can conflict with char shl_load (); below.
9227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9228 <limits.h> exists even on freestanding compilers. */
9231 # include <limits.h>
9233 # include <assert.h>
9238 /* Override any GCC internal prototype to avoid an error.
9239 Use char because int might match the return type of a GCC
9240 builtin and then its argument prototype would still apply. */
9245 /* The GNU C library defines this for functions which it implements
9246 to always fail with ENOSYS. Some functions are actually named
9247 something starting with __ and the normal name is an alias. */
9248 #if defined __stub_shl_load || defined __stub___shl_load
9260 rm -f conftest.$ac_objext conftest$ac_exeext
9261 if { (ac_try="$ac_link"
9263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9264 *) ac_try_echo=$ac_try;;
9266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9267 (eval "$ac_link") 2>conftest.er1
9269 grep -v '^ *+' conftest.er1 >conftest.err
9271 cat conftest.err >&5
9272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273 (exit $ac_status); } && {
9274 test -z "$ac_c_werror_flag" ||
9275 test ! -s conftest.err
9276 } && test -s conftest$ac_exeext &&
9277 $as_test_x conftest$ac_exeext; then
9278 ac_cv_func_shl_load=yes
9280 echo "$as_me: failed program was:" >&5
9281 sed 's/^/| /' conftest.$ac_ext >&5
9283 ac_cv_func_shl_load=no
9286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9287 conftest$ac_exeext conftest.$ac_ext
9289 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9290 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9291 if test $ac_cv_func_shl_load = yes; then
9292 lt_cv_dlopen="shl_load"
9294 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9295 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9296 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9297 echo $ECHO_N "(cached) $ECHO_C" >&6
9299 ac_check_lib_save_LIBS=$LIBS
9301 cat >conftest.$ac_ext <<_ACEOF
9304 cat confdefs.h >>conftest.$ac_ext
9305 cat >>conftest.$ac_ext <<_ACEOF
9306 /* end confdefs.h. */
9308 /* Override any GCC internal prototype to avoid an error.
9309 Use char because int might match the return type of a GCC
9310 builtin and then its argument prototype would still apply. */
9323 rm -f conftest.$ac_objext conftest$ac_exeext
9324 if { (ac_try="$ac_link"
9326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9327 *) ac_try_echo=$ac_try;;
9329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9330 (eval "$ac_link") 2>conftest.er1
9332 grep -v '^ *+' conftest.er1 >conftest.err
9334 cat conftest.err >&5
9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336 (exit $ac_status); } && {
9337 test -z "$ac_c_werror_flag" ||
9338 test ! -s conftest.err
9339 } && test -s conftest$ac_exeext &&
9340 $as_test_x conftest$ac_exeext; then
9341 ac_cv_lib_dld_shl_load=yes
9343 echo "$as_me: failed program was:" >&5
9344 sed 's/^/| /' conftest.$ac_ext >&5
9346 ac_cv_lib_dld_shl_load=no
9349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9350 conftest$ac_exeext conftest.$ac_ext
9351 LIBS=$ac_check_lib_save_LIBS
9353 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9354 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9355 if test $ac_cv_lib_dld_shl_load = yes; then
9356 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9358 { echo "$as_me:$LINENO: checking for dlopen" >&5
9359 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9360 if test "${ac_cv_func_dlopen+set}" = set; then
9361 echo $ECHO_N "(cached) $ECHO_C" >&6
9363 cat >conftest.$ac_ext <<_ACEOF
9366 cat confdefs.h >>conftest.$ac_ext
9367 cat >>conftest.$ac_ext <<_ACEOF
9368 /* end confdefs.h. */
9369 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9370 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9371 #define dlopen innocuous_dlopen
9373 /* System header to define __stub macros and hopefully few prototypes,
9374 which can conflict with char dlopen (); below.
9375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9376 <limits.h> exists even on freestanding compilers. */
9379 # include <limits.h>
9381 # include <assert.h>
9386 /* Override any GCC internal prototype to avoid an error.
9387 Use char because int might match the return type of a GCC
9388 builtin and then its argument prototype would still apply. */
9393 /* The GNU C library defines this for functions which it implements
9394 to always fail with ENOSYS. Some functions are actually named
9395 something starting with __ and the normal name is an alias. */
9396 #if defined __stub_dlopen || defined __stub___dlopen
9408 rm -f conftest.$ac_objext conftest$ac_exeext
9409 if { (ac_try="$ac_link"
9411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9412 *) ac_try_echo=$ac_try;;
9414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9415 (eval "$ac_link") 2>conftest.er1
9417 grep -v '^ *+' conftest.er1 >conftest.err
9419 cat conftest.err >&5
9420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421 (exit $ac_status); } && {
9422 test -z "$ac_c_werror_flag" ||
9423 test ! -s conftest.err
9424 } && test -s conftest$ac_exeext &&
9425 $as_test_x conftest$ac_exeext; then
9426 ac_cv_func_dlopen=yes
9428 echo "$as_me: failed program was:" >&5
9429 sed 's/^/| /' conftest.$ac_ext >&5
9431 ac_cv_func_dlopen=no
9434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9435 conftest$ac_exeext conftest.$ac_ext
9437 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9438 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9439 if test $ac_cv_func_dlopen = yes; then
9440 lt_cv_dlopen="dlopen"
9442 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9443 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9444 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9445 echo $ECHO_N "(cached) $ECHO_C" >&6
9447 ac_check_lib_save_LIBS=$LIBS
9449 cat >conftest.$ac_ext <<_ACEOF
9452 cat confdefs.h >>conftest.$ac_ext
9453 cat >>conftest.$ac_ext <<_ACEOF
9454 /* end confdefs.h. */
9456 /* Override any GCC internal prototype to avoid an error.
9457 Use char because int might match the return type of a GCC
9458 builtin and then its argument prototype would still apply. */
9471 rm -f conftest.$ac_objext conftest$ac_exeext
9472 if { (ac_try="$ac_link"
9474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9475 *) ac_try_echo=$ac_try;;
9477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9478 (eval "$ac_link") 2>conftest.er1
9480 grep -v '^ *+' conftest.er1 >conftest.err
9482 cat conftest.err >&5
9483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9484 (exit $ac_status); } && {
9485 test -z "$ac_c_werror_flag" ||
9486 test ! -s conftest.err
9487 } && test -s conftest$ac_exeext &&
9488 $as_test_x conftest$ac_exeext; then
9489 ac_cv_lib_dl_dlopen=yes
9491 echo "$as_me: failed program was:" >&5
9492 sed 's/^/| /' conftest.$ac_ext >&5
9494 ac_cv_lib_dl_dlopen=no
9497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9498 conftest$ac_exeext conftest.$ac_ext
9499 LIBS=$ac_check_lib_save_LIBS
9501 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9502 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9503 if test $ac_cv_lib_dl_dlopen = yes; then
9504 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9506 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9507 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9508 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9509 echo $ECHO_N "(cached) $ECHO_C" >&6
9511 ac_check_lib_save_LIBS=$LIBS
9513 cat >conftest.$ac_ext <<_ACEOF
9516 cat confdefs.h >>conftest.$ac_ext
9517 cat >>conftest.$ac_ext <<_ACEOF
9518 /* end confdefs.h. */
9520 /* Override any GCC internal prototype to avoid an error.
9521 Use char because int might match the return type of a GCC
9522 builtin and then its argument prototype would still apply. */
9535 rm -f conftest.$ac_objext conftest$ac_exeext
9536 if { (ac_try="$ac_link"
9538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9539 *) ac_try_echo=$ac_try;;
9541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9542 (eval "$ac_link") 2>conftest.er1
9544 grep -v '^ *+' conftest.er1 >conftest.err
9546 cat conftest.err >&5
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); } && {
9549 test -z "$ac_c_werror_flag" ||
9550 test ! -s conftest.err
9551 } && test -s conftest$ac_exeext &&
9552 $as_test_x conftest$ac_exeext; then
9553 ac_cv_lib_svld_dlopen=yes
9555 echo "$as_me: failed program was:" >&5
9556 sed 's/^/| /' conftest.$ac_ext >&5
9558 ac_cv_lib_svld_dlopen=no
9561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9562 conftest$ac_exeext conftest.$ac_ext
9563 LIBS=$ac_check_lib_save_LIBS
9565 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9566 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9567 if test $ac_cv_lib_svld_dlopen = yes; then
9568 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9570 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9571 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9572 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9573 echo $ECHO_N "(cached) $ECHO_C" >&6
9575 ac_check_lib_save_LIBS=$LIBS
9577 cat >conftest.$ac_ext <<_ACEOF
9580 cat confdefs.h >>conftest.$ac_ext
9581 cat >>conftest.$ac_ext <<_ACEOF
9582 /* end confdefs.h. */
9584 /* Override any GCC internal prototype to avoid an error.
9585 Use char because int might match the return type of a GCC
9586 builtin and then its argument prototype would still apply. */
9599 rm -f conftest.$ac_objext conftest$ac_exeext
9600 if { (ac_try="$ac_link"
9602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9603 *) ac_try_echo=$ac_try;;
9605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9606 (eval "$ac_link") 2>conftest.er1
9608 grep -v '^ *+' conftest.er1 >conftest.err
9610 cat conftest.err >&5
9611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612 (exit $ac_status); } && {
9613 test -z "$ac_c_werror_flag" ||
9614 test ! -s conftest.err
9615 } && test -s conftest$ac_exeext &&
9616 $as_test_x conftest$ac_exeext; then
9617 ac_cv_lib_dld_dld_link=yes
9619 echo "$as_me: failed program was:" >&5
9620 sed 's/^/| /' conftest.$ac_ext >&5
9622 ac_cv_lib_dld_dld_link=no
9625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9626 conftest$ac_exeext conftest.$ac_ext
9627 LIBS=$ac_check_lib_save_LIBS
9629 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9630 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9631 if test $ac_cv_lib_dld_dld_link = yes; then
9632 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9653 if test "x$lt_cv_dlopen" != xno; then
9659 case $lt_cv_dlopen in
9661 save_CPPFLAGS="$CPPFLAGS"
9662 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9664 save_LDFLAGS="$LDFLAGS"
9665 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9668 LIBS="$lt_cv_dlopen_libs $LIBS"
9670 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9671 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9672 if test "${lt_cv_dlopen_self+set}" = set; then
9673 echo $ECHO_N "(cached) $ECHO_C" >&6
9675 if test "$cross_compiling" = yes; then :
9676 lt_cv_dlopen_self=cross
9678 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9679 lt_status=$lt_dlunknown
9680 cat > conftest.$ac_ext <<EOF
9681 #line 9681 "configure"
9682 #include "confdefs.h"
9691 # define LT_DLGLOBAL RTLD_GLOBAL
9694 # define LT_DLGLOBAL DL_GLOBAL
9696 # define LT_DLGLOBAL 0
9700 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9701 find out it does not work in some platform. */
9702 #ifndef LT_DLLAZY_OR_NOW
9704 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9707 # define LT_DLLAZY_OR_NOW DL_LAZY
9710 # define LT_DLLAZY_OR_NOW RTLD_NOW
9713 # define LT_DLLAZY_OR_NOW DL_NOW
9715 # define LT_DLLAZY_OR_NOW 0
9723 extern "C" void exit (int);
9726 void fnord() { int i=42;}
9729 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9730 int status = $lt_dlunknown;
9734 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9735 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9736 /* dlclose (self); */
9744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9745 (eval $ac_link) 2>&5
9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9749 (./conftest; exit; ) >&5 2>/dev/null
9752 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9753 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9754 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9757 # compilation failed
9758 lt_cv_dlopen_self=no
9765 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9766 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9768 if test "x$lt_cv_dlopen_self" = xyes; then
9769 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9770 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9771 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9772 if test "${lt_cv_dlopen_self_static+set}" = set; then
9773 echo $ECHO_N "(cached) $ECHO_C" >&6
9775 if test "$cross_compiling" = yes; then :
9776 lt_cv_dlopen_self_static=cross
9778 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9779 lt_status=$lt_dlunknown
9780 cat > conftest.$ac_ext <<EOF
9781 #line 9781 "configure"
9782 #include "confdefs.h"
9791 # define LT_DLGLOBAL RTLD_GLOBAL
9794 # define LT_DLGLOBAL DL_GLOBAL
9796 # define LT_DLGLOBAL 0
9800 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9801 find out it does not work in some platform. */
9802 #ifndef LT_DLLAZY_OR_NOW
9804 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9807 # define LT_DLLAZY_OR_NOW DL_LAZY
9810 # define LT_DLLAZY_OR_NOW RTLD_NOW
9813 # define LT_DLLAZY_OR_NOW DL_NOW
9815 # define LT_DLLAZY_OR_NOW 0
9823 extern "C" void exit (int);
9826 void fnord() { int i=42;}
9829 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9830 int status = $lt_dlunknown;
9834 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9835 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9836 /* dlclose (self); */
9844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9845 (eval $ac_link) 2>&5
9847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9849 (./conftest; exit; ) >&5 2>/dev/null
9852 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9853 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9854 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9857 # compilation failed
9858 lt_cv_dlopen_self_static=no
9865 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9866 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9869 CPPFLAGS="$save_CPPFLAGS"
9870 LDFLAGS="$save_LDFLAGS"
9875 case $lt_cv_dlopen_self in
9876 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9877 *) enable_dlopen_self=unknown ;;
9880 case $lt_cv_dlopen_self_static in
9881 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9882 *) enable_dlopen_self_static=unknown ;;
9887 # Report which library types will actually be built
9888 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9889 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9890 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9891 echo "${ECHO_T}$can_build_shared" >&6; }
9893 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9894 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9895 test "$can_build_shared" = "no" && enable_shared=no
9897 # On AIX, shared libraries and static libraries use the same namespace, and
9898 # are all built from PIC.
9901 test "$enable_shared" = yes && enable_static=no
9902 if test -n "$RANLIB"; then
9903 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9904 postinstall_cmds='$RANLIB $lib'
9909 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9910 test "$enable_shared" = yes && enable_static=no
9914 { echo "$as_me:$LINENO: result: $enable_shared" >&5
9915 echo "${ECHO_T}$enable_shared" >&6; }
9917 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9918 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9919 # Make sure either enable_shared or enable_static is yes.
9920 test "$enable_shared" = yes || enable_static=yes
9921 { echo "$as_me:$LINENO: result: $enable_static" >&5
9922 echo "${ECHO_T}$enable_static" >&6; }
9924 # The else clause should only fire when bootstrapping the
9925 # libtool distribution, otherwise you forgot to ship ltmain.sh
9926 # with your package, and you will get complaints that there are
9927 # no rules to generate ltmain.sh.
9928 if test -f "$ltmain"; then
9929 # See if we are running on zsh, and set the options which allow our commands through
9930 # without removal of \ escapes.
9931 if test -n "${ZSH_VERSION+set}" ; then
9932 setopt NO_GLOB_SUBST
9934 # Now quote all the things that may contain metacharacters while being
9935 # careful not to overquote the AC_SUBSTed values. We take copies of the
9936 # variables and quote the copies for generation of the libtool script.
9937 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9939 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9940 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9941 deplibs_check_method reload_flag reload_cmds need_locks \
9942 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9943 lt_cv_sys_global_symbol_to_c_name_address \
9944 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9945 old_postinstall_cmds old_postuninstall_cmds \
9949 lt_prog_compiler_wl \
9950 lt_prog_compiler_pic \
9951 lt_prog_compiler_static \
9952 lt_prog_compiler_no_builtin_flag \
9953 export_dynamic_flag_spec \
9954 thread_safe_flag_spec \
9955 whole_archive_flag_spec \
9956 enable_shared_with_static_runtimes \
9958 old_archive_from_new_cmds \
9963 compiler_lib_search_path \
9965 archive_expsym_cmds \
9967 postuninstall_cmds \
9968 old_archive_from_expsyms_cmds \
9969 allow_undefined_flag \
9971 export_symbols_cmds \
9972 hardcode_libdir_flag_spec \
9973 hardcode_libdir_flag_spec_ld \
9974 hardcode_libdir_separator \
9975 hardcode_automatic \
9977 module_expsym_cmds \
9978 lt_cv_prog_compiler_c_o \
9983 old_archive_cmds | \
9984 old_archive_from_new_cmds | \
9986 archive_expsym_cmds | \
9988 module_expsym_cmds | \
9989 old_archive_from_expsyms_cmds | \
9990 export_symbols_cmds | \
9991 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9992 postinstall_cmds | postuninstall_cmds | \
9993 old_postinstall_cmds | old_postuninstall_cmds | \
9994 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9995 # Double-quote double-evaled strings.
9996 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9999 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10005 *'\$0 --fallback-echo"')
10006 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10010 cfgfile="${ofile}T"
10011 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10013 { echo "$as_me:$LINENO: creating $ofile" >&5
10014 echo "$as_me: creating $ofile" >&6;}
10016 cat <<__EOF__ >> "$cfgfile"
10019 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10020 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10021 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10023 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10024 # Free Software Foundation, Inc.
10026 # This file is part of GNU Libtool:
10027 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10029 # This program is free software; you can redistribute it and/or modify
10030 # it under the terms of the GNU General Public License as published by
10031 # the Free Software Foundation; either version 2 of the License, or
10032 # (at your option) any later version.
10034 # This program is distributed in the hope that it will be useful, but
10035 # WITHOUT ANY WARRANTY; without even the implied warranty of
10036 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10037 # General Public License for more details.
10039 # You should have received a copy of the GNU General Public License
10040 # along with this program; if not, write to the Free Software
10041 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10043 # As a special exception to the GNU General Public License, if you
10044 # distribute this file as part of a program that contains a
10045 # configuration script generated by Autoconf, you may include it under
10046 # the same distribution terms that you use for the rest of that program.
10048 # A sed program that does not truncate output.
10051 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10052 Xsed="$SED -e 1s/^X//"
10054 # The HP-UX ksh and POSIX shell print the target directory to stdout
10055 # if CDPATH is set.
10056 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10058 # The names of the tagged configurations supported by this script.
10061 # ### BEGIN LIBTOOL CONFIG
10063 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10065 # Shell to use when invoking shell scripts.
10068 # Whether or not to build shared libraries.
10069 build_libtool_libs=$enable_shared
10071 # Whether or not to build static libraries.
10072 build_old_libs=$enable_static
10074 # Whether or not to add -lc for building shared libraries.
10075 build_libtool_need_lc=$archive_cmds_need_lc
10077 # Whether or not to disallow shared libs when runtime libs are static
10078 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10080 # Whether or not to optimize for fast installation.
10081 fast_install=$enable_fast_install
10084 host_alias=$host_alias
10088 # The build system.
10089 build_alias=$build_alias
10093 # An echo program that does not interpret backslashes.
10098 AR_FLAGS=$lt_AR_FLAGS
10103 # LTCC compiler flags.
10104 LTCFLAGS=$lt_LTCFLAGS
10106 # A language-specific compiler.
10109 # Is the compiler the GNU C compiler?
10115 # The linker used to build libraries.
10118 # Whether we need hard or soft links.
10121 # A BSD-compatible nm program.
10124 # A symbol stripping program
10127 # Used to examine libraries when file_magic_cmd begins "file"
10128 MAGIC_CMD=$MAGIC_CMD
10130 # Used on cygwin: DLL creation program.
10133 # Used on cygwin: object dumper.
10136 # Used on cygwin: assembler.
10139 # The name of the directory that contains temporary libtool files.
10142 # How to create reloadable object files.
10143 reload_flag=$lt_reload_flag
10144 reload_cmds=$lt_reload_cmds
10146 # How to pass a linker flag through the compiler.
10147 wl=$lt_lt_prog_compiler_wl
10149 # Object file suffix (normally "o").
10150 objext="$ac_objext"
10152 # Old archive suffix (normally "a").
10155 # Shared library suffix (normally ".so").
10156 shrext_cmds='$shrext_cmds'
10158 # Executable file suffix (normally "").
10161 # Additional compiler flags for building library objects.
10162 pic_flag=$lt_lt_prog_compiler_pic
10165 # What is the maximum length of a command?
10166 max_cmd_len=$lt_cv_sys_max_cmd_len
10168 # Does compiler simultaneously support -c and -o options?
10169 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10171 # Must we lock files when doing compilation?
10172 need_locks=$lt_need_locks
10174 # Do we need the lib prefix for modules?
10175 need_lib_prefix=$need_lib_prefix
10177 # Do we need a version for libraries?
10178 need_version=$need_version
10180 # Whether dlopen is supported.
10181 dlopen_support=$enable_dlopen
10183 # Whether dlopen of programs is supported.
10184 dlopen_self=$enable_dlopen_self
10186 # Whether dlopen of statically linked programs is supported.
10187 dlopen_self_static=$enable_dlopen_self_static
10189 # Compiler flag to prevent dynamic linking.
10190 link_static_flag=$lt_lt_prog_compiler_static
10192 # Compiler flag to turn off builtin functions.
10193 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10195 # Compiler flag to allow reflexive dlopens.
10196 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10198 # Compiler flag to generate shared objects directly from archives.
10199 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10201 # Compiler flag to generate thread-safe objects.
10202 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10204 # Library versioning type.
10205 version_type=$version_type
10207 # Format of library name prefix.
10208 libname_spec=$lt_libname_spec
10210 # List of archive names. First name is the real one, the rest are links.
10211 # The last name is the one that the linker finds with -lNAME.
10212 library_names_spec=$lt_library_names_spec
10214 # The coded name of the library, if different from the real name.
10215 soname_spec=$lt_soname_spec
10217 # Commands used to build and install an old-style archive.
10219 old_archive_cmds=$lt_old_archive_cmds
10220 old_postinstall_cmds=$lt_old_postinstall_cmds
10221 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10223 # Create an old-style archive from a shared archive.
10224 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10226 # Create a temporary old-style archive to link instead of a shared archive.
10227 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10229 # Commands used to build and install a shared archive.
10230 archive_cmds=$lt_archive_cmds
10231 archive_expsym_cmds=$lt_archive_expsym_cmds
10232 postinstall_cmds=$lt_postinstall_cmds
10233 postuninstall_cmds=$lt_postuninstall_cmds
10235 # Commands used to build a loadable module (assumed same as above if empty)
10236 module_cmds=$lt_module_cmds
10237 module_expsym_cmds=$lt_module_expsym_cmds
10239 # Commands to strip libraries.
10240 old_striplib=$lt_old_striplib
10241 striplib=$lt_striplib
10243 # Dependencies to place before the objects being linked to create a
10245 predep_objects=$lt_predep_objects
10247 # Dependencies to place after the objects being linked to create a
10249 postdep_objects=$lt_postdep_objects
10251 # Dependencies to place before the objects being linked to create a
10253 predeps=$lt_predeps
10255 # Dependencies to place after the objects being linked to create a
10257 postdeps=$lt_postdeps
10259 # The library search path used internally by the compiler when linking
10260 # a shared library.
10261 compiler_lib_search_path=$lt_compiler_lib_search_path
10263 # Method to check whether dependent libraries are shared objects.
10264 deplibs_check_method=$lt_deplibs_check_method
10266 # Command to use when deplibs_check_method == file_magic.
10267 file_magic_cmd=$lt_file_magic_cmd
10269 # Flag that allows shared libraries with undefined symbols to be built.
10270 allow_undefined_flag=$lt_allow_undefined_flag
10272 # Flag that forces no undefined symbols.
10273 no_undefined_flag=$lt_no_undefined_flag
10275 # Commands used to finish a libtool library installation in a directory.
10276 finish_cmds=$lt_finish_cmds
10278 # Same as above, but a single script fragment to be evaled but not shown.
10279 finish_eval=$lt_finish_eval
10281 # Take the output of nm and produce a listing of raw symbols and C names.
10282 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10284 # Transform the output of nm in a proper C declaration
10285 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10287 # Transform the output of nm in a C name address pair
10288 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10290 # This is the shared library runtime path variable.
10291 runpath_var=$runpath_var
10293 # This is the shared library path variable.
10294 shlibpath_var=$shlibpath_var
10296 # Is shlibpath searched before the hard-coded library search path?
10297 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10299 # How to hardcode a shared library path into an executable.
10300 hardcode_action=$hardcode_action
10302 # Whether we should hardcode library paths into libraries.
10303 hardcode_into_libs=$hardcode_into_libs
10305 # Flag to hardcode \$libdir into a binary during linking.
10306 # This must work even if \$libdir does not exist.
10307 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10309 # If ld is used when linking, flag to hardcode \$libdir into
10310 # a binary during linking. This must work even if \$libdir does
10312 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10314 # Whether we need a single -rpath flag with a separated argument.
10315 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10317 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10318 # resulting binary.
10319 hardcode_direct=$hardcode_direct
10321 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10322 # resulting binary.
10323 hardcode_minus_L=$hardcode_minus_L
10325 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10326 # the resulting binary.
10327 hardcode_shlibpath_var=$hardcode_shlibpath_var
10329 # Set to yes if building a shared library automatically hardcodes DIR into the library
10330 # and all subsequent libraries and executables linked against it.
10331 hardcode_automatic=$hardcode_automatic
10333 # Variables whose values should be saved in libtool wrapper scripts and
10334 # restored at relink time.
10335 variables_saved_for_relink="$variables_saved_for_relink"
10337 # Whether libtool must link a program against all its dependency libraries.
10338 link_all_deplibs=$link_all_deplibs
10340 # Compile-time system search path for libraries
10341 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10343 # Run-time system search path for libraries
10344 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10346 # Fix the shell variable \$srcfile for the compiler.
10347 fix_srcfile_path="$fix_srcfile_path"
10349 # Set to yes if exported symbols are required.
10350 always_export_symbols=$always_export_symbols
10352 # The commands to list exported symbols.
10353 export_symbols_cmds=$lt_export_symbols_cmds
10355 # The commands to extract the exported symbol list from a shared archive.
10356 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10358 # Symbols that should not be listed in the preloaded symbols.
10359 exclude_expsyms=$lt_exclude_expsyms
10361 # Symbols that must always be exported.
10362 include_expsyms=$lt_include_expsyms
10364 # ### END LIBTOOL CONFIG
10371 cat <<\EOF >> "$cfgfile"
10373 # AIX sometimes has problems with the GCC collect2 program. For some
10374 # reason, if we set the COLLECT_NAMES environment variable, the problems
10375 # vanish in a puff of smoke.
10376 if test "X${COLLECT_NAMES+set}" != Xset; then
10378 export COLLECT_NAMES
10384 # We use sed instead of cat because bash on DJGPP gets confused if
10385 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10386 # text mode, it properly converts lines to CR/LF. This bash problem
10387 # is reportedly fixed, but why not run on old versions too?
10388 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10390 mv -f "$cfgfile" "$ofile" || \
10391 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10395 # If there is no Makefile yet, we rely on a make rule to execute
10396 # `config.status --recheck' to rerun these tests and create the
10397 # libtool script then.
10398 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10399 if test -f "$ltmain_in"; then
10400 test -f Makefile && make "$ltmain"
10406 ac_cpp='$CPP $CPPFLAGS'
10407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10414 # Check whether --with-tags was given.
10415 if test "${with_tags+set}" = set; then
10416 withval=$with_tags; tagnames="$withval"
10420 if test -f "$ltmain" && test -n "$tagnames"; then
10421 if test ! -f "${ofile}"; then
10422 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10423 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10426 if test -z "$LTCC"; then
10427 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10428 if test -z "$LTCC"; then
10429 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10430 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10432 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10433 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10436 if test -z "$LTCFLAGS"; then
10437 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10440 # Extract list of available tagged configurations in $ofile.
10441 # Note that this assumes the entire list is on one line.
10442 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10444 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10445 for tagname in $tagnames; do
10447 # Check whether tagname contains only valid characters
10448 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10450 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10451 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10452 { (exit 1); exit 1; }; }
10456 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10458 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10459 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10460 { (exit 1); exit 1; }; }
10463 # Update the list of available tags.
10464 if test -n "$tagname"; then
10465 echo appending configuration tag \"$tagname\" to $ofile
10469 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10470 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10471 (test "X$CXX" != "Xg++"))) ; then
10473 ac_cpp='$CXXCPP $CPPFLAGS'
10474 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10475 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10476 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10481 archive_cmds_need_lc_CXX=no
10482 allow_undefined_flag_CXX=
10483 always_export_symbols_CXX=no
10484 archive_expsym_cmds_CXX=
10485 export_dynamic_flag_spec_CXX=
10486 hardcode_direct_CXX=no
10487 hardcode_libdir_flag_spec_CXX=
10488 hardcode_libdir_flag_spec_ld_CXX=
10489 hardcode_libdir_separator_CXX=
10490 hardcode_minus_L_CXX=no
10491 hardcode_shlibpath_var_CXX=unsupported
10492 hardcode_automatic_CXX=no
10494 module_expsym_cmds_CXX=
10495 link_all_deplibs_CXX=unknown
10496 old_archive_cmds_CXX=$old_archive_cmds
10497 no_undefined_flag_CXX=
10498 whole_archive_flag_spec_CXX=
10499 enable_shared_with_static_runtimes_CXX=no
10501 # Dependencies to place before and after the object being linked:
10502 predep_objects_CXX=
10503 postdep_objects_CXX=
10506 compiler_lib_search_path_CXX=
10508 # Source file extension for C++ test sources.
10511 # Object file extension for compiled C++ test sources.
10515 # Code to be used in simple compile tests
10516 lt_simple_compile_test_code="int some_variable = 0;\n"
10518 # Code to be used in simple link tests
10519 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10521 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10523 # If no C compiler was specified, use CC.
10526 # If no C compiler flags were specified, use CFLAGS.
10527 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10529 # Allow CC to be a program name with arguments.
10533 # save warnings/boilerplate of simple test code
10534 ac_outfile=conftest.$ac_objext
10535 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10536 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10537 _lt_compiler_boilerplate=`cat conftest.err`
10540 ac_outfile=conftest.$ac_objext
10541 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10542 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10543 _lt_linker_boilerplate=`cat conftest.err`
10547 # Allow CC to be a program name with arguments.
10552 lt_save_with_gnu_ld=$with_gnu_ld
10553 lt_save_path_LD=$lt_cv_path_LD
10554 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10555 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10557 $as_unset lt_cv_prog_gnu_ld
10559 if test -n "${lt_cv_path_LDCXX+set}"; then
10560 lt_cv_path_LD=$lt_cv_path_LDCXX
10562 $as_unset lt_cv_path_LD
10564 test -z "${LDCXX+set}" || LD=$LDCXX
10568 for cc_temp in $compiler""; do
10570 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10571 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10576 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10579 # We don't want -fno-exception wen compiling C++ code, so set the
10580 # no_builtin_flag separately
10581 if test "$GXX" = yes; then
10582 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10584 lt_prog_compiler_no_builtin_flag_CXX=
10587 if test "$GXX" = yes; then
10588 # Set up default GNU C++ configuration
10591 # Check whether --with-gnu-ld was given.
10592 if test "${with_gnu_ld+set}" = set; then
10593 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10599 if test "$GCC" = yes; then
10600 # Check if gcc -print-prog-name=ld gives a path.
10601 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10602 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10605 # gcc leaves a trailing carriage return which upsets mingw
10606 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10608 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10611 # Accept absolute paths.
10613 re_direlt='/[^/][^/]*/\.\./'
10614 # Canonicalize the pathname of ld
10615 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10616 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10617 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10619 test -z "$LD" && LD="$ac_prog"
10622 # If it fails, then pretend we aren't using GCC.
10626 # If it is relative, then search for the first ld in PATH.
10627 with_gnu_ld=unknown
10630 elif test "$with_gnu_ld" = yes; then
10631 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10632 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10634 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10635 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10637 if test "${lt_cv_path_LD+set}" = set; then
10638 echo $ECHO_N "(cached) $ECHO_C" >&6
10640 if test -z "$LD"; then
10641 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10642 for ac_dir in $PATH; do
10644 test -z "$ac_dir" && ac_dir=.
10645 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10646 lt_cv_path_LD="$ac_dir/$ac_prog"
10647 # Check to see if the program is GNU ld. I'd rather use --version,
10648 # but apparently some variants of GNU ld only accept -v.
10649 # Break only if it was the GNU/non-GNU ld that we prefer.
10650 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10651 *GNU* | *'with BFD'*)
10652 test "$with_gnu_ld" != no && break
10655 test "$with_gnu_ld" != yes && break
10662 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10666 LD="$lt_cv_path_LD"
10667 if test -n "$LD"; then
10668 { echo "$as_me:$LINENO: result: $LD" >&5
10669 echo "${ECHO_T}$LD" >&6; }
10671 { echo "$as_me:$LINENO: result: no" >&5
10672 echo "${ECHO_T}no" >&6; }
10674 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10675 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10676 { (exit 1); exit 1; }; }
10677 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10678 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10679 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10680 echo $ECHO_N "(cached) $ECHO_C" >&6
10682 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10683 case `$LD -v 2>&1 </dev/null` in
10684 *GNU* | *'with BFD'*)
10685 lt_cv_prog_gnu_ld=yes
10688 lt_cv_prog_gnu_ld=no
10692 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10693 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10694 with_gnu_ld=$lt_cv_prog_gnu_ld
10698 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10699 # archiving commands below assume that GNU ld is being used.
10700 if test "$with_gnu_ld" = yes; then
10701 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10702 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'
10704 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10705 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10707 # If archive_cmds runs LD, not CC, wlarc should be empty
10708 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10709 # investigate it a little bit more. (MM)
10712 # ancient GNU ld didn't support --whole-archive et. al.
10713 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10714 grep 'no-whole-archive' > /dev/null; then
10715 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10717 whole_archive_flag_spec_CXX=
10723 # A generic and very simple default shared library creation
10724 # command for GNU C++ for the case where it uses the native
10725 # linker, instead of GNU ld. If possible, this setting should
10726 # overridden to take advantage of the native linker features on
10727 # the platform it is being used on.
10728 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10731 # Commands to make compiler produce verbose output that lists
10732 # what "hidden" libraries, object files and flags are used when
10733 # linking a shared library.
10734 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10742 # PORTME: fill in a description of your system's C++ link characteristics
10743 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10744 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10748 # FIXME: insert proper C++ library support
10752 if test "$host_cpu" = ia64; then
10753 # On IA64, the linker does run time linking by default, so we don't
10754 # have to do anything special.
10755 aix_use_runtimelinking=no
10756 exp_sym_flag='-Bexport'
10759 aix_use_runtimelinking=no
10761 # Test if we are trying to use run time linking or normal
10762 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10763 # need to do runtime linking.
10764 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10765 for ld_flag in $LDFLAGS; do
10768 aix_use_runtimelinking=yes
10776 exp_sym_flag='-bexport'
10777 no_entry_flag='-bnoentry'
10780 # When large executables or shared objects are built, AIX ld can
10781 # have problems creating the table of contents. If linking a library
10782 # or program results in "error TOC overflow" add -mminimal-toc to
10783 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10784 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10786 archive_cmds_CXX=''
10787 hardcode_direct_CXX=yes
10788 hardcode_libdir_separator_CXX=':'
10789 link_all_deplibs_CXX=yes
10791 if test "$GXX" = yes; then
10792 case $host_os in aix4.[012]|aix4.[012].*)
10793 # We only want to do this on AIX 4.2 and lower, the check
10794 # below for broken collect2 doesn't work under 4.3+
10795 collect2name=`${CC} -print-prog-name=collect2`
10796 if test -f "$collect2name" && \
10797 strings "$collect2name" | grep resolve_lib_name >/dev/null
10799 # We have reworked collect2
10800 hardcode_direct_CXX=yes
10802 # We have old collect2
10803 hardcode_direct_CXX=unsupported
10804 # It fails to find uninstalled libraries when the uninstalled
10805 # path is not listed in the libpath. Setting hardcode_minus_L
10806 # to unsupported forces relinking
10807 hardcode_minus_L_CXX=yes
10808 hardcode_libdir_flag_spec_CXX='-L$libdir'
10809 hardcode_libdir_separator_CXX=
10813 shared_flag='-shared'
10814 if test "$aix_use_runtimelinking" = yes; then
10815 shared_flag="$shared_flag "'${wl}-G'
10819 if test "$host_cpu" = ia64; then
10820 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10821 # chokes on -Wl,-G. The following line is correct:
10824 if test "$aix_use_runtimelinking" = yes; then
10825 shared_flag='${wl}-G'
10827 shared_flag='${wl}-bM:SRE'
10832 # It seems that -bexpall does not export symbols beginning with
10833 # underscore (_), so it is better to generate a list of symbols to export.
10834 always_export_symbols_CXX=yes
10835 if test "$aix_use_runtimelinking" = yes; then
10836 # Warning - without using the other runtime loading flags (-brtl),
10837 # -berok will link without error, but may produce a broken library.
10838 allow_undefined_flag_CXX='-berok'
10839 # Determine the default libpath from the value encoded in an empty executable.
10840 cat >conftest.$ac_ext <<_ACEOF
10843 cat confdefs.h >>conftest.$ac_ext
10844 cat >>conftest.$ac_ext <<_ACEOF
10845 /* end confdefs.h. */
10855 rm -f conftest.$ac_objext conftest$ac_exeext
10856 if { (ac_try="$ac_link"
10857 case "(($ac_try" in
10858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10859 *) ac_try_echo=$ac_try;;
10861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10862 (eval "$ac_link") 2>conftest.er1
10864 grep -v '^ *+' conftest.er1 >conftest.err
10866 cat conftest.err >&5
10867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868 (exit $ac_status); } && {
10869 test -z "$ac_cxx_werror_flag" ||
10870 test ! -s conftest.err
10871 } && test -s conftest$ac_exeext &&
10872 $as_test_x conftest$ac_exeext; then
10874 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10876 # Check for a 64-bit object if we didn't find anything.
10877 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10880 echo "$as_me: failed program was:" >&5
10881 sed 's/^/| /' conftest.$ac_ext >&5
10886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10887 conftest$ac_exeext conftest.$ac_ext
10888 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10890 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10892 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"
10894 if test "$host_cpu" = ia64; then
10895 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10896 allow_undefined_flag_CXX="-z nodefs"
10897 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"
10899 # Determine the default libpath from the value encoded in an empty executable.
10900 cat >conftest.$ac_ext <<_ACEOF
10903 cat confdefs.h >>conftest.$ac_ext
10904 cat >>conftest.$ac_ext <<_ACEOF
10905 /* end confdefs.h. */
10915 rm -f conftest.$ac_objext conftest$ac_exeext
10916 if { (ac_try="$ac_link"
10917 case "(($ac_try" in
10918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10919 *) ac_try_echo=$ac_try;;
10921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10922 (eval "$ac_link") 2>conftest.er1
10924 grep -v '^ *+' conftest.er1 >conftest.err
10926 cat conftest.err >&5
10927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928 (exit $ac_status); } && {
10929 test -z "$ac_cxx_werror_flag" ||
10930 test ! -s conftest.err
10931 } && test -s conftest$ac_exeext &&
10932 $as_test_x conftest$ac_exeext; then
10934 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10936 # Check for a 64-bit object if we didn't find anything.
10937 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10940 echo "$as_me: failed program was:" >&5
10941 sed 's/^/| /' conftest.$ac_ext >&5
10946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10947 conftest$ac_exeext conftest.$ac_ext
10948 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10950 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10951 # Warning - without using the other run time loading flags,
10952 # -berok will link without error, but may produce a broken library.
10953 no_undefined_flag_CXX=' ${wl}-bernotok'
10954 allow_undefined_flag_CXX=' ${wl}-berok'
10955 # Exported symbols can be pulled into shared objects from archives
10956 whole_archive_flag_spec_CXX='$convenience'
10957 archive_cmds_need_lc_CXX=yes
10958 # This is similar to how AIX traditionally builds its shared libraries.
10959 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'
10965 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10966 allow_undefined_flag_CXX=unsupported
10967 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10968 # support --undefined. This deserves some investigation. FIXME
10969 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10976 case $cc_basename in
10978 # FIXME: insert proper C++ library support
10984 cygwin* | mingw* | pw32*)
10985 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10986 # as there is no search path for DLLs.
10987 hardcode_libdir_flag_spec_CXX='-L$libdir'
10988 allow_undefined_flag_CXX=unsupported
10989 always_export_symbols_CXX=no
10990 enable_shared_with_static_runtimes_CXX=yes
10992 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10993 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'
10994 # If the export-symbols file already is a .def file (1st line
10995 # is EXPORTS), use it as is; otherwise, prepend...
10996 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10997 cp $export_symbols $output_objdir/$soname.def;
10999 echo EXPORTS > $output_objdir/$soname.def;
11000 cat $export_symbols >> $output_objdir/$soname.def;
11002 $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'
11007 darwin* | rhapsody*)
11009 rhapsody* | darwin1.[012])
11010 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11013 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11014 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11016 case ${MACOSX_DEPLOYMENT_TARGET} in
11018 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11021 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11027 archive_cmds_need_lc_CXX=no
11028 hardcode_direct_CXX=no
11029 hardcode_automatic_CXX=yes
11030 hardcode_shlibpath_var_CXX=unsupported
11031 whole_archive_flag_spec_CXX=''
11032 link_all_deplibs_CXX=yes
11034 if test "$GXX" = yes ; then
11035 lt_int_apple_cc_single_mod=no
11036 output_verbose_link_cmd='echo'
11037 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11038 lt_int_apple_cc_single_mod=yes
11040 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11041 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11043 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'
11045 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11046 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11047 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11048 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}'
11050 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}'
11052 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}'
11054 case $cc_basename in
11056 output_verbose_link_cmd='echo'
11057 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11058 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11059 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11060 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11061 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}'
11071 case $cc_basename in
11073 # FIXME: insert proper C++ library support
11077 # Green Hills C++ Compiler
11078 # FIXME: insert proper C++ library support
11082 # FIXME: insert proper C++ library support
11088 # C++ shared libraries reported to be fairly broken before switch to ELF
11092 archive_cmds_need_lc_CXX=no
11094 freebsd* | dragonfly*)
11095 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11102 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11103 hardcode_libdir_separator_CXX=:
11104 export_dynamic_flag_spec_CXX='${wl}-E'
11105 hardcode_direct_CXX=yes
11106 hardcode_minus_L_CXX=yes # Not in the search PATH,
11107 # but as the default
11108 # location of the library.
11110 case $cc_basename in
11112 # FIXME: insert proper C++ library support
11116 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'
11117 # Commands to make compiler produce verbose output that lists
11118 # what "hidden" libraries, object files and flags are used when
11119 # linking a shared library.
11121 # There doesn't appear to be a way to prevent this compiler from
11122 # explicitly linking system object files so we need to strip them
11123 # from the output so that they don't get included in the library
11125 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'
11128 if test "$GXX" = yes; then
11129 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'
11131 # FIXME: insert proper C++ library support
11138 if test $with_gnu_ld = no; then
11139 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11140 hardcode_libdir_separator_CXX=:
11144 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11147 export_dynamic_flag_spec_CXX='${wl}-E'
11153 hardcode_direct_CXX=no
11154 hardcode_shlibpath_var_CXX=no
11157 hardcode_direct_CXX=yes
11158 hardcode_minus_L_CXX=yes # Not in the search PATH,
11159 # but as the default
11160 # location of the library.
11164 case $cc_basename in
11166 # FIXME: insert proper C++ library support
11172 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11175 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11178 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11181 # Commands to make compiler produce verbose output that lists
11182 # what "hidden" libraries, object files and flags are used when
11183 # linking a shared library.
11185 # There doesn't appear to be a way to prevent this compiler from
11186 # explicitly linking system object files so we need to strip them
11187 # from the output so that they don't get included in the library
11189 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'
11192 if test "$GXX" = yes; then
11193 if test $with_gnu_ld = no; then
11196 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11199 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11202 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'
11207 # FIXME: insert proper C++ library support
11214 hardcode_direct_CXX=no
11215 hardcode_shlibpath_var_CXX=no
11216 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11217 export_dynamic_flag_spec_CXX='${wl}-E'
11218 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11219 # Instead, shared libraries are loaded at an image base (0x10000000 by
11220 # default) and relocated if they conflict, which is a slow very memory
11221 # consuming and fragmenting process. To avoid this, we pick a random,
11222 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11223 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11224 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'
11225 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'
11228 case $cc_basename in
11231 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'
11233 # Archives containing C++ object files must be created using
11234 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11235 # necessary to make sure instantiated templates are included
11237 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11240 if test "$GXX" = yes; then
11241 if test "$with_gnu_ld" = no; then
11242 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'
11244 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'
11247 link_all_deplibs_CXX=yes
11250 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11251 hardcode_libdir_separator_CXX=:
11253 linux* | k*bsd*-gnu)
11254 case $cc_basename in
11256 # Kuck and Associates, Inc. (KAI) C++ Compiler
11258 # KCC will only create a shared library if the output file
11259 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11260 # to its proper name (with version) after linking.
11261 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'
11262 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'
11263 # Commands to make compiler produce verbose output that lists
11264 # what "hidden" libraries, object files and flags are used when
11265 # linking a shared library.
11267 # There doesn't appear to be a way to prevent this compiler from
11268 # explicitly linking system object files so we need to strip them
11269 # from the output so that they don't get included in the library
11271 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'
11273 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11274 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11276 # Archives containing C++ object files must be created using
11277 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11278 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11283 # version 8.0 and above of icpc choke on multiply defined symbols
11284 # if we add $predep_objects and $postdep_objects, however 7.1 and
11285 # earlier do not add the objects themselves.
11286 case `$CC -V 2>&1` in
11288 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11289 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'
11291 *) # Version 8.0 or newer
11294 ia64*) tmp_idyn=' -i_dynamic';;
11296 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11297 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'
11300 archive_cmds_need_lc_CXX=no
11301 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11302 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11303 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11306 # Portland Group C++ compiler
11307 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11308 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'
11310 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11311 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11312 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'
11316 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11317 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'
11319 runpath_var=LD_RUN_PATH
11320 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11321 hardcode_libdir_separator_CXX=:
11323 # Commands to make compiler produce verbose output that lists
11324 # what "hidden" libraries, object files and flags are used when
11325 # linking a shared library.
11327 # There doesn't appear to be a way to prevent this compiler from
11328 # explicitly linking system object files so we need to strip them
11329 # from the output so that they don't get included in the library
11331 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'
11336 # FIXME: insert proper C++ library support
11340 # FIXME: insert proper C++ library support
11344 case $cc_basename in
11346 # FIXME: insert proper C++ library support
11350 # FIXME: insert proper C++ library support
11355 netbsd* | netbsdelf*-gnu)
11356 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11357 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11359 hardcode_libdir_flag_spec_CXX='-R$libdir'
11360 hardcode_direct_CXX=yes
11361 hardcode_shlibpath_var_CXX=no
11363 # Workaround some broken pre-1.5 toolchains
11364 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11367 # C++ shared libraries are fairly broken
11371 hardcode_direct_CXX=yes
11372 hardcode_shlibpath_var_CXX=no
11373 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11374 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11375 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11376 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11377 export_dynamic_flag_spec_CXX='${wl}-E'
11378 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11380 output_verbose_link_cmd='echo'
11383 case $cc_basename in
11385 # Kuck and Associates, Inc. (KAI) C++ Compiler
11387 # KCC will only create a shared library if the output file
11388 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11389 # to its proper name (with version) after linking.
11390 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'
11392 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11393 hardcode_libdir_separator_CXX=:
11395 # Archives containing C++ object files must be created using
11396 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11397 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11401 # Rational C++ 2.4.1
11402 # FIXME: insert proper C++ library support
11406 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11407 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'
11409 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11410 hardcode_libdir_separator_CXX=:
11412 # Commands to make compiler produce verbose output that lists
11413 # what "hidden" libraries, object files and flags are used when
11414 # linking a shared library.
11416 # There doesn't appear to be a way to prevent this compiler from
11417 # explicitly linking system object files so we need to strip them
11418 # from the output so that they don't get included in the library
11420 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'
11423 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11424 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11425 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'
11427 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11428 hardcode_libdir_separator_CXX=:
11430 # Commands to make compiler produce verbose output that lists
11431 # what "hidden" libraries, object files and flags are used when
11432 # linking a shared library.
11433 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11436 # FIXME: insert proper C++ library support
11443 case $cc_basename in
11445 # Kuck and Associates, Inc. (KAI) C++ Compiler
11447 # KCC will only create a shared library if the output file
11448 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11449 # to its proper name (with version) after linking.
11450 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'
11452 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11453 hardcode_libdir_separator_CXX=:
11455 # Archives containing C++ object files must be created using
11456 # the KAI C++ compiler.
11457 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11460 # Rational C++ 2.4.1
11461 # FIXME: insert proper C++ library support
11465 allow_undefined_flag_CXX=' -expect_unresolved \*'
11466 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'
11467 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11468 echo "-hidden">> $lib.exp~
11469 $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~
11472 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11473 hardcode_libdir_separator_CXX=:
11475 # Commands to make compiler produce verbose output that lists
11476 # what "hidden" libraries, object files and flags are used when
11477 # linking a shared library.
11479 # There doesn't appear to be a way to prevent this compiler from
11480 # explicitly linking system object files so we need to strip them
11481 # from the output so that they don't get included in the library
11483 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'
11486 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11487 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11488 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'
11490 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11491 hardcode_libdir_separator_CXX=:
11493 # Commands to make compiler produce verbose output that lists
11494 # what "hidden" libraries, object files and flags are used when
11495 # linking a shared library.
11496 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11499 # FIXME: insert proper C++ library support
11506 # FIXME: insert proper C++ library support
11510 case $cc_basename in
11513 # FIXME: insert proper C++ library support
11518 # FIXME: insert proper C++ library support
11522 # FIXME: insert proper C++ library support
11528 case $cc_basename in
11530 # Sun C++ 4.2, 5.x and Centerline C++
11531 archive_cmds_need_lc_CXX=yes
11532 no_undefined_flag_CXX=' -zdefs'
11533 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11534 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11535 $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'
11537 hardcode_libdir_flag_spec_CXX='-R$libdir'
11538 hardcode_shlibpath_var_CXX=no
11540 solaris2.[0-5] | solaris2.[0-5].*) ;;
11542 # The C++ compiler is used as linker so we must use $wl
11543 # flag to pass the commands to the underlying system
11544 # linker. We must also pass each convience library through
11545 # to the system linker between allextract/defaultextract.
11546 # The C++ compiler will combine linker options so we
11547 # cannot just pass the convience library names through
11549 # Supported since Solaris 2.6 (maybe 2.5.1?)
11550 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11553 link_all_deplibs_CXX=yes
11555 output_verbose_link_cmd='echo'
11557 # Archives containing C++ object files must be created using
11558 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11559 # necessary to make sure instantiated templates are included
11561 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11564 # Green Hills C++ Compiler
11565 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11567 # The C++ compiler must be used to create the archive.
11568 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11571 # GNU C++ compiler with Solaris linker
11572 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11573 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11574 if $CC --version | grep -v '^2\.7' > /dev/null; then
11575 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11576 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11577 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11579 # Commands to make compiler produce verbose output that lists
11580 # what "hidden" libraries, object files and flags are used when
11581 # linking a shared library.
11582 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11584 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11586 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11587 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11588 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11590 # Commands to make compiler produce verbose output that lists
11591 # what "hidden" libraries, object files and flags are used when
11592 # linking a shared library.
11593 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11596 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11601 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11602 no_undefined_flag_CXX='${wl}-z,text'
11603 archive_cmds_need_lc_CXX=no
11604 hardcode_shlibpath_var_CXX=no
11605 runpath_var='LD_RUN_PATH'
11607 case $cc_basename in
11609 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11610 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11613 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11614 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11618 sysv5* | sco3.2v5* | sco5v6*)
11619 # Note: We can NOT use -z defs as we might desire, because we do not
11620 # link with -lc, and that would cause any symbols used from libc to
11621 # always be unresolved, which means just about no library would
11622 # ever link correctly. If we're not using GNU ld we use -z text
11623 # though, which does catch some bad symbols but isn't as heavy-handed
11625 # For security reasons, it is highly recommended that you always
11626 # use absolute paths for naming shared libraries, and exclude the
11627 # DT_RUNPATH tag from executables and libraries. But doing so
11628 # requires that you compile everything twice, which is a pain.
11629 # So that behaviour is only enabled if SCOABSPATH is set to a
11630 # non-empty value in the environment. Most likely only useful for
11631 # creating official distributions of packages.
11632 # This is a hack until libtool officially supports absolute path
11633 # names for shared libraries.
11634 no_undefined_flag_CXX='${wl}-z,text'
11635 allow_undefined_flag_CXX='${wl}-z,nodefs'
11636 archive_cmds_need_lc_CXX=no
11637 hardcode_shlibpath_var_CXX=no
11638 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11639 hardcode_libdir_separator_CXX=':'
11640 link_all_deplibs_CXX=yes
11641 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11642 runpath_var='LD_RUN_PATH'
11644 case $cc_basename in
11646 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11647 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11650 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11651 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11656 case $cc_basename in
11658 # NonStop-UX NCC 3.20
11659 # FIXME: insert proper C++ library support
11663 # FIXME: insert proper C++ library support
11669 # FIXME: insert proper C++ library support
11673 # FIXME: insert proper C++ library support
11677 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11678 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11679 test "$ld_shlibs_CXX" = no && can_build_shared=no
11685 cat > conftest.$ac_ext <<EOF
11689 Foo (void) { a = 0; }
11695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11696 (eval $ac_compile) 2>&5
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); }; then
11700 # Parse the compiler output and extract the necessary
11701 # objects, libraries and library flags.
11703 # Sentinel used to keep track of whether or not we are before
11704 # the conftest object file.
11705 pre_test_object_deps_done=no
11707 # The `*' in the case matches for architectures that use `case' in
11708 # $output_verbose_cmd can trigger glob expansion during the loop
11709 # eval without this substitution.
11710 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11712 for p in `eval $output_verbose_link_cmd`; do
11716 # Some compilers place space between "-{L,R}" and the path.
11717 # Remove the space.
11718 if test $p = "-L" \
11719 || test $p = "-R"; then
11726 if test "$pre_test_object_deps_done" = no; then
11729 # Internal compiler library paths should come after those
11730 # provided the user. The postdeps already come after the
11731 # user supplied libs so there is no need to process them.
11732 if test -z "$compiler_lib_search_path_CXX"; then
11733 compiler_lib_search_path_CXX="${prev}${p}"
11735 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11738 # The "-l" case would never come before the object being
11739 # linked, so don't bother handling this case.
11742 if test -z "$postdeps_CXX"; then
11743 postdeps_CXX="${prev}${p}"
11745 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11751 # This assumes that the test object file only shows up
11752 # once in the compiler output.
11753 if test "$p" = "conftest.$objext"; then
11754 pre_test_object_deps_done=yes
11758 if test "$pre_test_object_deps_done" = no; then
11759 if test -z "$predep_objects_CXX"; then
11760 predep_objects_CXX="$p"
11762 predep_objects_CXX="$predep_objects_CXX $p"
11765 if test -z "$postdep_objects_CXX"; then
11766 postdep_objects_CXX="$p"
11768 postdep_objects_CXX="$postdep_objects_CXX $p"
11773 *) ;; # Ignore the rest.
11781 echo "libtool.m4: error: problem compiling CXX test program"
11784 $rm -f confest.$objext
11786 # PORTME: override above test on systems where it is broken
11789 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11790 # hack all around it, let's just trust "g++" to DTRT.
11791 predep_objects_CXX=
11792 postdep_objects_CXX=
11797 case $cc_basename in
11799 # Adding this requires a known-good setup of shared libraries for
11800 # Sun compiler versions before 5.6, else PIC objects from an old
11801 # archive will be linked into the output, leading to subtle bugs.
11802 postdeps_CXX='-lCstd -lCrun'
11809 case " $postdeps_CXX " in
11810 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11813 lt_prog_compiler_wl_CXX=
11814 lt_prog_compiler_pic_CXX=
11815 lt_prog_compiler_static_CXX=
11817 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11818 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11820 # C++ specific cases for pic, static, wl, etc.
11821 if test "$GXX" = yes; then
11822 lt_prog_compiler_wl_CXX='-Wl,'
11823 lt_prog_compiler_static_CXX='-static'
11827 # All AIX code is PIC.
11828 if test "$host_cpu" = ia64; then
11829 # AIX 5 now supports IA64 processor
11830 lt_prog_compiler_static_CXX='-Bstatic'
11834 # FIXME: we need at least 68020 code to build shared libraries, but
11835 # adding the `-m68020' flag to GCC prevents building anything better,
11837 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11839 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11840 # PIC is the default for these OSes.
11842 mingw* | os2* | pw32*)
11843 # This hack is so that the source file can tell whether it is being
11844 # built for inclusion in a dll (and should export symbols for example).
11845 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11847 darwin* | rhapsody*)
11848 # PIC is the default on this platform
11849 # Common symbols not allowed in MH_DYLIB files
11850 lt_prog_compiler_pic_CXX='-fno-common'
11853 # DJGPP does not support shared libraries at all
11854 lt_prog_compiler_pic_CXX=
11857 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11858 # Instead, we relocate shared libraries at runtime.
11861 if test -d /usr/nec; then
11862 lt_prog_compiler_pic_CXX=-Kconform_pic
11866 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11867 # not for PA HP-UX.
11872 lt_prog_compiler_pic_CXX='-fPIC'
11877 lt_prog_compiler_pic_CXX='-fPIC'
11883 # All AIX code is PIC.
11884 if test "$host_cpu" = ia64; then
11885 # AIX 5 now supports IA64 processor
11886 lt_prog_compiler_static_CXX='-Bstatic'
11888 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11892 case $cc_basename in
11894 # Green Hills C++ Compiler
11895 # _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"
11900 # PIC is the default on this platform
11901 # Common symbols not allowed in MH_DYLIB files
11902 case $cc_basename in
11904 lt_prog_compiler_pic_CXX='-qnocommon'
11905 lt_prog_compiler_wl_CXX='-Wl,'
11910 case $cc_basename in
11912 lt_prog_compiler_pic_CXX='-KPIC'
11915 # Green Hills C++ Compiler
11916 lt_prog_compiler_pic_CXX='-pic'
11922 freebsd* | dragonfly*)
11923 # FreeBSD uses GNU C++
11925 hpux9* | hpux10* | hpux11*)
11926 case $cc_basename in
11928 lt_prog_compiler_wl_CXX='-Wl,'
11929 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11930 if test "$host_cpu" != ia64; then
11931 lt_prog_compiler_pic_CXX='+Z'
11935 lt_prog_compiler_wl_CXX='-Wl,'
11936 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11942 lt_prog_compiler_pic_CXX='+Z'
11951 # This is c89, which is MS Visual C++ (no shared libs)
11952 # Anyone wants to do a port?
11954 irix5* | irix6* | nonstopux*)
11955 case $cc_basename in
11957 lt_prog_compiler_wl_CXX='-Wl,'
11958 lt_prog_compiler_static_CXX='-non_shared'
11959 # CC pic flag -KPIC is the default.
11965 linux* | k*bsd*-gnu)
11966 case $cc_basename in
11969 lt_prog_compiler_wl_CXX='--backend -Wl,'
11970 lt_prog_compiler_pic_CXX='-fPIC'
11974 lt_prog_compiler_wl_CXX='-Wl,'
11975 lt_prog_compiler_pic_CXX='-KPIC'
11976 lt_prog_compiler_static_CXX='-static'
11979 # Portland Group C++ compiler.
11980 lt_prog_compiler_wl_CXX='-Wl,'
11981 lt_prog_compiler_pic_CXX='-fpic'
11982 lt_prog_compiler_static_CXX='-Bstatic'
11986 # Make sure the PIC flag is empty. It appears that all Alpha
11987 # Linux and Compaq Tru64 Unix objects are PIC.
11988 lt_prog_compiler_pic_CXX=
11989 lt_prog_compiler_static_CXX='-non_shared'
12000 case $cc_basename in
12002 lt_prog_compiler_pic_CXX='-W c,exportall'
12008 netbsd* | netbsdelf*-gnu)
12010 osf3* | osf4* | osf5*)
12011 case $cc_basename in
12013 lt_prog_compiler_wl_CXX='--backend -Wl,'
12016 # Rational C++ 2.4.1
12017 lt_prog_compiler_pic_CXX='-pic'
12020 # Digital/Compaq C++
12021 lt_prog_compiler_wl_CXX='-Wl,'
12022 # Make sure the PIC flag is empty. It appears that all Alpha
12023 # Linux and Compaq Tru64 Unix objects are PIC.
12024 lt_prog_compiler_pic_CXX=
12025 lt_prog_compiler_static_CXX='-non_shared'
12034 case $cc_basename in
12036 # Sun C++ 4.2, 5.x and Centerline C++
12037 lt_prog_compiler_pic_CXX='-KPIC'
12038 lt_prog_compiler_static_CXX='-Bstatic'
12039 lt_prog_compiler_wl_CXX='-Qoption ld '
12042 # Green Hills C++ Compiler
12043 lt_prog_compiler_pic_CXX='-PIC'
12050 case $cc_basename in
12053 lt_prog_compiler_pic_CXX='-pic'
12054 lt_prog_compiler_static_CXX='-Bstatic'
12058 lt_prog_compiler_pic_CXX='-pic'
12065 case $cc_basename in
12067 # NonStop-UX NCC 3.20
12068 lt_prog_compiler_pic_CXX='-KPIC'
12074 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12075 case $cc_basename in
12077 lt_prog_compiler_wl_CXX='-Wl,'
12078 lt_prog_compiler_pic_CXX='-KPIC'
12079 lt_prog_compiler_static_CXX='-Bstatic'
12086 lt_prog_compiler_can_build_shared_CXX=no
12091 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12092 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12095 # Check to make sure the PIC flag actually works.
12097 if test -n "$lt_prog_compiler_pic_CXX"; then
12099 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12100 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12101 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12102 echo $ECHO_N "(cached) $ECHO_C" >&6
12104 lt_prog_compiler_pic_works_CXX=no
12105 ac_outfile=conftest.$ac_objext
12106 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12107 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12108 # Insert the option either (1) after the last *FLAGS variable, or
12109 # (2) before a word containing "conftest.", or (3) at the end.
12110 # Note that $ac_compile itself does not contain backslashes and begins
12111 # with a dollar sign (not a hyphen), so the echo should work correctly.
12112 # The option is referenced via a variable to avoid confusing sed.
12113 lt_compile=`echo "$ac_compile" | $SED \
12114 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12115 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12116 -e 's:$: $lt_compiler_flag:'`
12117 (eval echo "\"\$as_me:12117: $lt_compile\"" >&5)
12118 (eval "$lt_compile" 2>conftest.err)
12120 cat conftest.err >&5
12121 echo "$as_me:12121: \$? = $ac_status" >&5
12122 if (exit $ac_status) && test -s "$ac_outfile"; then
12123 # The compiler can only warn and ignore the option if not recognized
12124 # So say no if there are warnings other than the usual output.
12125 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12126 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12127 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12128 lt_prog_compiler_pic_works_CXX=yes
12134 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12135 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12137 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12138 case $lt_prog_compiler_pic_CXX in
12140 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12143 lt_prog_compiler_pic_CXX=
12144 lt_prog_compiler_can_build_shared_CXX=no
12149 # For platforms which do not support PIC, -DPIC is meaningless:
12151 lt_prog_compiler_pic_CXX=
12154 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12159 # Check to make sure the static flag actually works.
12161 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12162 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12163 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12164 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12165 echo $ECHO_N "(cached) $ECHO_C" >&6
12167 lt_prog_compiler_static_works_CXX=no
12168 save_LDFLAGS="$LDFLAGS"
12169 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12170 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12171 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12172 # The linker can only warn and ignore the option if not recognized
12173 # So say no if there are warnings
12174 if test -s conftest.err; then
12175 # Append any errors to the config.log.
12176 cat conftest.err 1>&5
12177 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12178 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12179 if diff conftest.exp conftest.er2 >/dev/null; then
12180 lt_prog_compiler_static_works_CXX=yes
12183 lt_prog_compiler_static_works_CXX=yes
12187 LDFLAGS="$save_LDFLAGS"
12190 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12191 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12193 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12196 lt_prog_compiler_static_CXX=
12200 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12201 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12202 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12203 echo $ECHO_N "(cached) $ECHO_C" >&6
12205 lt_cv_prog_compiler_c_o_CXX=no
12206 $rm -r conftest 2>/dev/null
12210 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12212 lt_compiler_flag="-o out/conftest2.$ac_objext"
12213 # Insert the option either (1) after the last *FLAGS variable, or
12214 # (2) before a word containing "conftest.", or (3) at the end.
12215 # Note that $ac_compile itself does not contain backslashes and begins
12216 # with a dollar sign (not a hyphen), so the echo should work correctly.
12217 lt_compile=`echo "$ac_compile" | $SED \
12218 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12219 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12220 -e 's:$: $lt_compiler_flag:'`
12221 (eval echo "\"\$as_me:12221: $lt_compile\"" >&5)
12222 (eval "$lt_compile" 2>out/conftest.err)
12224 cat out/conftest.err >&5
12225 echo "$as_me:12225: \$? = $ac_status" >&5
12226 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12228 # The compiler can only warn and ignore the option if not recognized
12229 # So say no if there are warnings
12230 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12231 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12232 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12233 lt_cv_prog_compiler_c_o_CXX=yes
12238 # SGI C++ compiler will create directory out/ii_files/ for
12239 # template instantiation
12240 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12241 $rm out/* && rmdir out
12247 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12248 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12251 hard_links="nottested"
12252 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12253 # do not overwrite the value of need_locks provided by the user
12254 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12255 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12258 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12260 ln conftest.a conftest.b 2>&5 || hard_links=no
12261 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12262 { echo "$as_me:$LINENO: result: $hard_links" >&5
12263 echo "${ECHO_T}$hard_links" >&6; }
12264 if test "$hard_links" = no; then
12265 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12266 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12273 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12274 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12276 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12279 # If we're using GNU nm, then we don't want the "-C" option.
12280 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12281 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12282 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'
12284 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'
12288 export_symbols_cmds_CXX="$ltdll_cmds"
12291 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'
12293 linux* | k*bsd*-gnu)
12294 link_all_deplibs_CXX=no
12297 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12301 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12302 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12303 test "$ld_shlibs_CXX" = no && can_build_shared=no
12306 # Do we need to explicitly link libc?
12308 case "x$archive_cmds_need_lc_CXX" in
12310 # Assume -lc should be added
12311 archive_cmds_need_lc_CXX=yes
12313 if test "$enable_shared" = yes && test "$GCC" = yes; then
12314 case $archive_cmds_CXX in
12316 # FIXME: we may have to deal with multi-command sequences.
12319 # Test whether the compiler implicitly links with -lc since on some
12320 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12321 # to ld, don't add -lc before -lgcc.
12322 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12323 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12325 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12328 (eval $ac_compile) 2>&5
12330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331 (exit $ac_status); } 2>conftest.err; then
12334 libobjs=conftest.$ac_objext
12336 wl=$lt_prog_compiler_wl_CXX
12337 pic_flag=$lt_prog_compiler_pic_CXX
12343 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12344 allow_undefined_flag_CXX=
12345 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12346 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); }
12351 archive_cmds_need_lc_CXX=no
12353 archive_cmds_need_lc_CXX=yes
12355 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12357 cat conftest.err 1>&5
12360 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12361 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12368 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12369 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12370 library_names_spec=
12371 libname_spec='lib$name'
12375 postuninstall_cmds=
12379 shlibpath_overrides_runpath=unknown
12381 dynamic_linker="$host_os ld.so"
12382 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12383 if test "$GCC" = yes; then
12384 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12385 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12386 # if the path contains ";" then we assume it to be the separator
12387 # otherwise default to the standard path separator (i.e. ":") - it is
12388 # assumed that no part of a normal pathname contains ";" but that should
12389 # okay in the real world where ";" in dirpaths is itself problematic.
12390 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12392 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12395 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12397 need_lib_prefix=unknown
12398 hardcode_into_libs=no
12400 # when you set need_version to no, make sure it does not cause -set_version
12401 # flags to be left without arguments
12402 need_version=unknown
12407 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12408 shlibpath_var=LIBPATH
12410 # AIX 3 has no versioning support, so we append a major version to the name.
12411 soname_spec='${libname}${release}${shared_ext}$major'
12418 hardcode_into_libs=yes
12419 if test "$host_cpu" = ia64; then
12420 # AIX 5 supports IA64
12421 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12422 shlibpath_var=LD_LIBRARY_PATH
12424 # With GCC up to 2.95.x, collect2 would create an import file
12425 # for dependence libraries. The import file would start with
12426 # the line `#! .'. This would cause the generated library to
12427 # depend on `.', always an invalid library. This was fixed in
12428 # development snapshots of GCC prior to 3.0.
12430 aix4 | aix4.[01] | aix4.[01].*)
12431 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12433 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12436 can_build_shared=no
12440 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12441 # soname into executable. Probably we can add versioning support to
12442 # collect2, so additional links can be useful in future.
12443 if test "$aix_use_runtimelinking" = yes; then
12444 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12445 # instead of lib<name>.a to let people know that these are not
12446 # typical AIX shared libraries.
12447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12449 # We preserve .a as extension for shared libraries through AIX4.2
12450 # and later when we are not doing run time linking.
12451 library_names_spec='${libname}${release}.a $libname.a'
12452 soname_spec='${libname}${release}${shared_ext}$major'
12454 shlibpath_var=LIBPATH
12459 library_names_spec='$libname.ixlibrary $libname.a'
12460 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12461 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'
12465 library_names_spec='${libname}${shared_ext}'
12466 dynamic_linker="$host_os ld.so"
12467 shlibpath_var=LIBRARY_PATH
12473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12474 soname_spec='${libname}${release}${shared_ext}$major'
12475 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12476 shlibpath_var=LD_LIBRARY_PATH
12477 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12478 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12479 # the default ld.so.conf also contains /usr/contrib/lib and
12480 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12481 # libtool to hard-code these into programs
12484 cygwin* | mingw* | pw32*)
12485 version_type=windows
12490 case $GCC,$host_os in
12491 yes,cygwin* | yes,mingw* | yes,pw32*)
12492 library_names_spec='$libname.dll.a'
12493 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12494 postinstall_cmds='base_file=`basename \${file}`~
12495 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12496 dldir=$destdir/`dirname \$dlpath`~
12497 test -d \$dldir || mkdir -p \$dldir~
12498 $install_prog $dir/$dlname \$dldir/$dlname~
12499 chmod a+x \$dldir/$dlname'
12500 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12501 dlpath=$dir/\$dldll~
12503 shlibpath_overrides_runpath=yes
12507 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12508 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12509 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12512 # MinGW DLLs use traditional 'lib' prefix
12513 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12514 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12515 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12516 # It is most probably a Windows format PATH printed by
12517 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12518 # path with ; separators, and with drive letters. We can handle the
12519 # drive letters (cygwin fileutils understands them), so leave them,
12520 # especially as we might pass files found there to a mingw objdump,
12521 # which wouldn't understand a cygwinified path. Ahh.
12522 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12524 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12528 # pw32 DLLs use 'pw' prefix rather than 'lib'
12529 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12535 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12538 dynamic_linker='Win32 ld.exe'
12539 # FIXME: first we should search . and the directory the executable is in
12543 darwin* | rhapsody*)
12544 dynamic_linker="$host_os dyld"
12545 version_type=darwin
12548 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12549 soname_spec='${libname}${release}${major}$shared_ext'
12550 shlibpath_overrides_runpath=yes
12551 shlibpath_var=DYLD_LIBRARY_PATH
12552 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12553 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12554 if test "$GCC" = yes; then
12555 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12557 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12559 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12567 soname_spec='${libname}${release}${shared_ext}$major'
12568 shlibpath_var=LD_LIBRARY_PATH
12575 freebsd* | dragonfly*)
12576 # DragonFly does not have aout. When/if they implement a new
12577 # versioning mechanism, adjust this.
12578 if test -x /usr/bin/objformat; then
12579 objformat=`/usr/bin/objformat`
12582 freebsd[123]*) objformat=aout ;;
12583 *) objformat=elf ;;
12586 version_type=freebsd-$objformat
12587 case $version_type in
12589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12594 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12598 shlibpath_var=LD_LIBRARY_PATH
12601 shlibpath_overrides_runpath=yes
12603 freebsd3.[01]* | freebsdelf3.[01]*)
12604 shlibpath_overrides_runpath=yes
12605 hardcode_into_libs=yes
12607 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12608 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12609 shlibpath_overrides_runpath=no
12610 hardcode_into_libs=yes
12612 freebsd*) # from 4.6 on
12613 shlibpath_overrides_runpath=yes
12614 hardcode_into_libs=yes
12623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12624 soname_spec='${libname}${release}${shared_ext}$major'
12625 shlibpath_var=LD_LIBRARY_PATH
12626 hardcode_into_libs=yes
12629 hpux9* | hpux10* | hpux11*)
12630 # Give a soname corresponding to the major version so that dld.sl refuses to
12631 # link against other versions.
12638 hardcode_into_libs=yes
12639 dynamic_linker="$host_os dld.so"
12640 shlibpath_var=LD_LIBRARY_PATH
12641 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12643 soname_spec='${libname}${release}${shared_ext}$major'
12644 if test "X$HPUX_IA64_MODE" = X32; then
12645 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12647 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12649 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12653 hardcode_into_libs=yes
12654 dynamic_linker="$host_os dld.sl"
12655 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12656 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12658 soname_spec='${libname}${release}${shared_ext}$major'
12659 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12660 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12664 dynamic_linker="$host_os dld.sl"
12665 shlibpath_var=SHLIB_PATH
12666 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12668 soname_spec='${libname}${release}${shared_ext}$major'
12671 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12672 postinstall_cmds='chmod 555 $lib'
12679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12680 soname_spec='${libname}${release}${shared_ext}$major'
12681 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12682 shlibpath_var=LD_LIBRARY_PATH
12683 shlibpath_overrides_runpath=no
12684 hardcode_into_libs=yes
12687 irix5* | irix6* | nonstopux*)
12689 nonstopux*) version_type=nonstopux ;;
12691 if test "$lt_cv_prog_gnu_ld" = yes; then
12699 soname_spec='${libname}${release}${shared_ext}$major'
12700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12702 irix5* | nonstopux*)
12703 libsuff= shlibsuff=
12706 case $LD in # libtool.m4 will add one of these switches to LD
12707 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12708 libsuff= shlibsuff= libmagic=32-bit;;
12709 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12710 libsuff=32 shlibsuff=N32 libmagic=N32;;
12711 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12712 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12713 *) libsuff= shlibsuff= libmagic=never-match;;
12717 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12718 shlibpath_overrides_runpath=no
12719 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12720 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12721 hardcode_into_libs=yes
12724 # No shared lib support for Linux oldld, aout, or coff.
12725 linux*oldld* | linux*aout* | linux*coff*)
12729 # This must be Linux ELF.
12730 linux* | k*bsd*-gnu)
12734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12735 soname_spec='${libname}${release}${shared_ext}$major'
12736 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12737 shlibpath_var=LD_LIBRARY_PATH
12738 shlibpath_overrides_runpath=no
12739 # This implies no fast_install, which is unacceptable.
12740 # Some rework will be needed to allow for fast_install
12741 # before this can be enabled.
12742 hardcode_into_libs=yes
12744 # Append ld.so.conf contents to the search path
12745 if test -f /etc/ld.so.conf; then
12746 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12747 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12750 # We used to test for /lib/ld.so.1 and disable shared libraries on
12751 # powerpc, because MkLinux only supported shared libraries with the
12752 # GNU dynamic linker. Since this was broken with cross compilers,
12753 # most powerpc-linux boxes support dynamic linking these days and
12754 # people can always --disable-shared, the test was removed, and we
12755 # assume the GNU/Linux dynamic linker is in use.
12756 dynamic_linker='GNU/Linux ld.so'
12763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12764 soname_spec='${libname}${release}${shared_ext}$major'
12765 shlibpath_var=LD_LIBRARY_PATH
12766 shlibpath_overrides_runpath=no
12767 hardcode_into_libs=yes
12768 dynamic_linker='NetBSD ld.elf_so'
12775 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12777 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12778 dynamic_linker='NetBSD (a.out) ld.so'
12780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12781 soname_spec='${libname}${release}${shared_ext}$major'
12782 dynamic_linker='NetBSD ld.elf_so'
12784 shlibpath_var=LD_LIBRARY_PATH
12785 shlibpath_overrides_runpath=yes
12786 hardcode_into_libs=yes
12791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12792 shlibpath_var=LD_LIBRARY_PATH
12793 shlibpath_overrides_runpath=yes
12800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12801 soname_spec='${libname}${release}${shared_ext}$major'
12802 shlibpath_var=LD_LIBRARY_PATH
12803 shlibpath_overrides_runpath=yes
12808 sys_lib_dlsearch_path_spec="/usr/lib"
12810 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12812 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12813 *) need_version=no ;;
12815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12816 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12817 shlibpath_var=LD_LIBRARY_PATH
12818 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12820 openbsd2.[89] | openbsd2.[89].*)
12821 shlibpath_overrides_runpath=no
12824 shlibpath_overrides_runpath=yes
12828 shlibpath_overrides_runpath=yes
12833 libname_spec='$name'
12836 library_names_spec='$libname${shared_ext} $libname.a'
12837 dynamic_linker='OS/2 ld.exe'
12838 shlibpath_var=LIBPATH
12841 osf3* | osf4* | osf5*)
12845 soname_spec='${libname}${release}${shared_ext}$major'
12846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12847 shlibpath_var=LD_LIBRARY_PATH
12848 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12849 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12857 soname_spec='${libname}${release}${shared_ext}$major'
12858 shlibpath_var=LD_LIBRARY_PATH
12859 shlibpath_overrides_runpath=yes
12860 hardcode_into_libs=yes
12861 # ldd complains unless libraries are executable
12862 postinstall_cmds='chmod +x $lib'
12867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12868 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12869 shlibpath_var=LD_LIBRARY_PATH
12870 shlibpath_overrides_runpath=yes
12871 if test "$with_gnu_ld" = yes; then
12879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12880 soname_spec='${libname}${release}${shared_ext}$major'
12881 shlibpath_var=LD_LIBRARY_PATH
12882 case $host_vendor in
12884 shlibpath_overrides_runpath=no
12886 export_dynamic_flag_spec='${wl}-Blargedynsym'
12887 runpath_var=LD_RUN_PATH
12895 shlibpath_overrides_runpath=no
12896 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12902 if test -d /usr/nec ;then
12904 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12905 soname_spec='$libname${shared_ext}.$major'
12906 shlibpath_var=LD_LIBRARY_PATH
12910 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12911 version_type=freebsd-elf
12914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12915 soname_spec='${libname}${release}${shared_ext}$major'
12916 shlibpath_var=LD_LIBRARY_PATH
12917 hardcode_into_libs=yes
12918 if test "$with_gnu_ld" = yes; then
12919 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12920 shlibpath_overrides_runpath=no
12922 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12923 shlibpath_overrides_runpath=yes
12926 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12930 sys_lib_dlsearch_path_spec='/usr/lib'
12935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12936 soname_spec='${libname}${release}${shared_ext}$major'
12937 shlibpath_var=LD_LIBRARY_PATH
12944 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12945 echo "${ECHO_T}$dynamic_linker" >&6; }
12946 test "$dynamic_linker" = no && can_build_shared=no
12948 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12949 if test "$GCC" = yes; then
12950 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12953 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12954 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12955 hardcode_action_CXX=
12956 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12957 test -n "$runpath_var_CXX" || \
12958 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12960 # We can hardcode non-existant directories.
12961 if test "$hardcode_direct_CXX" != no &&
12962 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12963 # have to relink, otherwise we might link with an installed library
12964 # when we should be linking with a yet-to-be-installed one
12965 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12966 test "$hardcode_minus_L_CXX" != no; then
12967 # Linking always hardcodes the temporary library directory.
12968 hardcode_action_CXX=relink
12970 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12971 hardcode_action_CXX=immediate
12974 # We cannot hardcode anything, or else we can only hardcode existing
12976 hardcode_action_CXX=unsupported
12978 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12979 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
12981 if test "$hardcode_action_CXX" = relink; then
12982 # Fast installation is not supported
12983 enable_fast_install=no
12984 elif test "$shlibpath_overrides_runpath" = yes ||
12985 test "$enable_shared" = no; then
12986 # Fast installation is not necessary
12987 enable_fast_install=needless
12991 # The else clause should only fire when bootstrapping the
12992 # libtool distribution, otherwise you forgot to ship ltmain.sh
12993 # with your package, and you will get complaints that there are
12994 # no rules to generate ltmain.sh.
12995 if test -f "$ltmain"; then
12996 # See if we are running on zsh, and set the options which allow our commands through
12997 # without removal of \ escapes.
12998 if test -n "${ZSH_VERSION+set}" ; then
12999 setopt NO_GLOB_SUBST
13001 # Now quote all the things that may contain metacharacters while being
13002 # careful not to overquote the AC_SUBSTed values. We take copies of the
13003 # variables and quote the copies for generation of the libtool script.
13004 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13006 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13007 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13008 deplibs_check_method reload_flag reload_cmds need_locks \
13009 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13010 lt_cv_sys_global_symbol_to_c_name_address \
13011 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13012 old_postinstall_cmds old_postuninstall_cmds \
13016 lt_prog_compiler_wl_CXX \
13017 lt_prog_compiler_pic_CXX \
13018 lt_prog_compiler_static_CXX \
13019 lt_prog_compiler_no_builtin_flag_CXX \
13020 export_dynamic_flag_spec_CXX \
13021 thread_safe_flag_spec_CXX \
13022 whole_archive_flag_spec_CXX \
13023 enable_shared_with_static_runtimes_CXX \
13024 old_archive_cmds_CXX \
13025 old_archive_from_new_cmds_CXX \
13026 predep_objects_CXX \
13027 postdep_objects_CXX \
13030 compiler_lib_search_path_CXX \
13032 archive_expsym_cmds_CXX \
13033 postinstall_cmds_CXX \
13034 postuninstall_cmds_CXX \
13035 old_archive_from_expsyms_cmds_CXX \
13036 allow_undefined_flag_CXX \
13037 no_undefined_flag_CXX \
13038 export_symbols_cmds_CXX \
13039 hardcode_libdir_flag_spec_CXX \
13040 hardcode_libdir_flag_spec_ld_CXX \
13041 hardcode_libdir_separator_CXX \
13042 hardcode_automatic_CXX \
13044 module_expsym_cmds_CXX \
13045 lt_cv_prog_compiler_c_o_CXX \
13046 exclude_expsyms_CXX \
13047 include_expsyms_CXX; do
13050 old_archive_cmds_CXX | \
13051 old_archive_from_new_cmds_CXX | \
13052 archive_cmds_CXX | \
13053 archive_expsym_cmds_CXX | \
13054 module_cmds_CXX | \
13055 module_expsym_cmds_CXX | \
13056 old_archive_from_expsyms_cmds_CXX | \
13057 export_symbols_cmds_CXX | \
13058 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13059 postinstall_cmds | postuninstall_cmds | \
13060 old_postinstall_cmds | old_postuninstall_cmds | \
13061 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13062 # Double-quote double-evaled strings.
13063 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13066 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13072 *'\$0 --fallback-echo"')
13073 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13079 cat <<__EOF__ >> "$cfgfile"
13080 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13082 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13084 # Shell to use when invoking shell scripts.
13087 # Whether or not to build shared libraries.
13088 build_libtool_libs=$enable_shared
13090 # Whether or not to build static libraries.
13091 build_old_libs=$enable_static
13093 # Whether or not to add -lc for building shared libraries.
13094 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13096 # Whether or not to disallow shared libs when runtime libs are static
13097 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13099 # Whether or not to optimize for fast installation.
13100 fast_install=$enable_fast_install
13103 host_alias=$host_alias
13107 # The build system.
13108 build_alias=$build_alias
13112 # An echo program that does not interpret backslashes.
13117 AR_FLAGS=$lt_AR_FLAGS
13122 # LTCC compiler flags.
13123 LTCFLAGS=$lt_LTCFLAGS
13125 # A language-specific compiler.
13126 CC=$lt_compiler_CXX
13128 # Is the compiler the GNU C compiler?
13134 # The linker used to build libraries.
13137 # Whether we need hard or soft links.
13140 # A BSD-compatible nm program.
13143 # A symbol stripping program
13146 # Used to examine libraries when file_magic_cmd begins "file"
13147 MAGIC_CMD=$MAGIC_CMD
13149 # Used on cygwin: DLL creation program.
13152 # Used on cygwin: object dumper.
13155 # Used on cygwin: assembler.
13158 # The name of the directory that contains temporary libtool files.
13161 # How to create reloadable object files.
13162 reload_flag=$lt_reload_flag
13163 reload_cmds=$lt_reload_cmds
13165 # How to pass a linker flag through the compiler.
13166 wl=$lt_lt_prog_compiler_wl_CXX
13168 # Object file suffix (normally "o").
13169 objext="$ac_objext"
13171 # Old archive suffix (normally "a").
13174 # Shared library suffix (normally ".so").
13175 shrext_cmds='$shrext_cmds'
13177 # Executable file suffix (normally "").
13180 # Additional compiler flags for building library objects.
13181 pic_flag=$lt_lt_prog_compiler_pic_CXX
13184 # What is the maximum length of a command?
13185 max_cmd_len=$lt_cv_sys_max_cmd_len
13187 # Does compiler simultaneously support -c and -o options?
13188 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13190 # Must we lock files when doing compilation?
13191 need_locks=$lt_need_locks
13193 # Do we need the lib prefix for modules?
13194 need_lib_prefix=$need_lib_prefix
13196 # Do we need a version for libraries?
13197 need_version=$need_version
13199 # Whether dlopen is supported.
13200 dlopen_support=$enable_dlopen
13202 # Whether dlopen of programs is supported.
13203 dlopen_self=$enable_dlopen_self
13205 # Whether dlopen of statically linked programs is supported.
13206 dlopen_self_static=$enable_dlopen_self_static
13208 # Compiler flag to prevent dynamic linking.
13209 link_static_flag=$lt_lt_prog_compiler_static_CXX
13211 # Compiler flag to turn off builtin functions.
13212 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13214 # Compiler flag to allow reflexive dlopens.
13215 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13217 # Compiler flag to generate shared objects directly from archives.
13218 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13220 # Compiler flag to generate thread-safe objects.
13221 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13223 # Library versioning type.
13224 version_type=$version_type
13226 # Format of library name prefix.
13227 libname_spec=$lt_libname_spec
13229 # List of archive names. First name is the real one, the rest are links.
13230 # The last name is the one that the linker finds with -lNAME.
13231 library_names_spec=$lt_library_names_spec
13233 # The coded name of the library, if different from the real name.
13234 soname_spec=$lt_soname_spec
13236 # Commands used to build and install an old-style archive.
13238 old_archive_cmds=$lt_old_archive_cmds_CXX
13239 old_postinstall_cmds=$lt_old_postinstall_cmds
13240 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13242 # Create an old-style archive from a shared archive.
13243 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13245 # Create a temporary old-style archive to link instead of a shared archive.
13246 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13248 # Commands used to build and install a shared archive.
13249 archive_cmds=$lt_archive_cmds_CXX
13250 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13251 postinstall_cmds=$lt_postinstall_cmds
13252 postuninstall_cmds=$lt_postuninstall_cmds
13254 # Commands used to build a loadable module (assumed same as above if empty)
13255 module_cmds=$lt_module_cmds_CXX
13256 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13258 # Commands to strip libraries.
13259 old_striplib=$lt_old_striplib
13260 striplib=$lt_striplib
13262 # Dependencies to place before the objects being linked to create a
13264 predep_objects=$lt_predep_objects_CXX
13266 # Dependencies to place after the objects being linked to create a
13268 postdep_objects=$lt_postdep_objects_CXX
13270 # Dependencies to place before the objects being linked to create a
13272 predeps=$lt_predeps_CXX
13274 # Dependencies to place after the objects being linked to create a
13276 postdeps=$lt_postdeps_CXX
13278 # The library search path used internally by the compiler when linking
13279 # a shared library.
13280 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13282 # Method to check whether dependent libraries are shared objects.
13283 deplibs_check_method=$lt_deplibs_check_method
13285 # Command to use when deplibs_check_method == file_magic.
13286 file_magic_cmd=$lt_file_magic_cmd
13288 # Flag that allows shared libraries with undefined symbols to be built.
13289 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13291 # Flag that forces no undefined symbols.
13292 no_undefined_flag=$lt_no_undefined_flag_CXX
13294 # Commands used to finish a libtool library installation in a directory.
13295 finish_cmds=$lt_finish_cmds
13297 # Same as above, but a single script fragment to be evaled but not shown.
13298 finish_eval=$lt_finish_eval
13300 # Take the output of nm and produce a listing of raw symbols and C names.
13301 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13303 # Transform the output of nm in a proper C declaration
13304 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13306 # Transform the output of nm in a C name address pair
13307 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13309 # This is the shared library runtime path variable.
13310 runpath_var=$runpath_var
13312 # This is the shared library path variable.
13313 shlibpath_var=$shlibpath_var
13315 # Is shlibpath searched before the hard-coded library search path?
13316 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13318 # How to hardcode a shared library path into an executable.
13319 hardcode_action=$hardcode_action_CXX
13321 # Whether we should hardcode library paths into libraries.
13322 hardcode_into_libs=$hardcode_into_libs
13324 # Flag to hardcode \$libdir into a binary during linking.
13325 # This must work even if \$libdir does not exist.
13326 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13328 # If ld is used when linking, flag to hardcode \$libdir into
13329 # a binary during linking. This must work even if \$libdir does
13331 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13333 # Whether we need a single -rpath flag with a separated argument.
13334 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13336 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13337 # resulting binary.
13338 hardcode_direct=$hardcode_direct_CXX
13340 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13341 # resulting binary.
13342 hardcode_minus_L=$hardcode_minus_L_CXX
13344 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13345 # the resulting binary.
13346 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13348 # Set to yes if building a shared library automatically hardcodes DIR into the library
13349 # and all subsequent libraries and executables linked against it.
13350 hardcode_automatic=$hardcode_automatic_CXX
13352 # Variables whose values should be saved in libtool wrapper scripts and
13353 # restored at relink time.
13354 variables_saved_for_relink="$variables_saved_for_relink"
13356 # Whether libtool must link a program against all its dependency libraries.
13357 link_all_deplibs=$link_all_deplibs_CXX
13359 # Compile-time system search path for libraries
13360 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13362 # Run-time system search path for libraries
13363 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13365 # Fix the shell variable \$srcfile for the compiler.
13366 fix_srcfile_path="$fix_srcfile_path_CXX"
13368 # Set to yes if exported symbols are required.
13369 always_export_symbols=$always_export_symbols_CXX
13371 # The commands to list exported symbols.
13372 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13374 # The commands to extract the exported symbol list from a shared archive.
13375 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13377 # Symbols that should not be listed in the preloaded symbols.
13378 exclude_expsyms=$lt_exclude_expsyms_CXX
13380 # Symbols that must always be exported.
13381 include_expsyms=$lt_include_expsyms_CXX
13383 # ### END LIBTOOL TAG CONFIG: $tagname
13389 # If there is no Makefile yet, we rely on a make rule to execute
13390 # `config.status --recheck' to rerun these tests and create the
13391 # libtool script then.
13392 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13393 if test -f "$ltmain_in"; then
13394 test -f Makefile && make "$ltmain"
13400 ac_cpp='$CPP $CPPFLAGS'
13401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13409 with_gnu_ldcxx=$with_gnu_ld
13410 with_gnu_ld=$lt_save_with_gnu_ld
13411 lt_cv_path_LDCXX=$lt_cv_path_LD
13412 lt_cv_path_LD=$lt_save_path_LD
13413 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13414 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13422 if test -n "$F77" && test "X$F77" != "Xno"; then
13425 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13426 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13427 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13430 archive_cmds_need_lc_F77=no
13431 allow_undefined_flag_F77=
13432 always_export_symbols_F77=no
13433 archive_expsym_cmds_F77=
13434 export_dynamic_flag_spec_F77=
13435 hardcode_direct_F77=no
13436 hardcode_libdir_flag_spec_F77=
13437 hardcode_libdir_flag_spec_ld_F77=
13438 hardcode_libdir_separator_F77=
13439 hardcode_minus_L_F77=no
13440 hardcode_automatic_F77=no
13442 module_expsym_cmds_F77=
13443 link_all_deplibs_F77=unknown
13444 old_archive_cmds_F77=$old_archive_cmds
13445 no_undefined_flag_F77=
13446 whole_archive_flag_spec_F77=
13447 enable_shared_with_static_runtimes_F77=no
13449 # Source file extension for f77 test sources.
13452 # Object file extension for compiled f77 test sources.
13456 # Code to be used in simple compile tests
13457 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13459 # Code to be used in simple link tests
13460 lt_simple_link_test_code=" program t\n end\n"
13462 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13464 # If no C compiler was specified, use CC.
13467 # If no C compiler flags were specified, use CFLAGS.
13468 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13470 # Allow CC to be a program name with arguments.
13474 # save warnings/boilerplate of simple test code
13475 ac_outfile=conftest.$ac_objext
13476 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13477 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13478 _lt_compiler_boilerplate=`cat conftest.err`
13481 ac_outfile=conftest.$ac_objext
13482 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13483 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13484 _lt_linker_boilerplate=`cat conftest.err`
13488 # Allow CC to be a program name with arguments.
13493 for cc_temp in $compiler""; do
13495 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13496 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13501 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13504 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13505 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13506 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13507 echo "${ECHO_T}$can_build_shared" >&6; }
13509 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13510 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13511 test "$can_build_shared" = "no" && enable_shared=no
13513 # On AIX, shared libraries and static libraries use the same namespace, and
13514 # are all built from PIC.
13517 test "$enable_shared" = yes && enable_static=no
13518 if test -n "$RANLIB"; then
13519 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13520 postinstall_cmds='$RANLIB $lib'
13524 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13525 test "$enable_shared" = yes && enable_static=no
13529 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13530 echo "${ECHO_T}$enable_shared" >&6; }
13532 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13533 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13534 # Make sure either enable_shared or enable_static is yes.
13535 test "$enable_shared" = yes || enable_static=yes
13536 { echo "$as_me:$LINENO: result: $enable_static" >&5
13537 echo "${ECHO_T}$enable_static" >&6; }
13542 lt_prog_compiler_wl_F77=
13543 lt_prog_compiler_pic_F77=
13544 lt_prog_compiler_static_F77=
13546 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13547 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13549 if test "$GCC" = yes; then
13550 lt_prog_compiler_wl_F77='-Wl,'
13551 lt_prog_compiler_static_F77='-static'
13555 # All AIX code is PIC.
13556 if test "$host_cpu" = ia64; then
13557 # AIX 5 now supports IA64 processor
13558 lt_prog_compiler_static_F77='-Bstatic'
13563 # FIXME: we need at least 68020 code to build shared libraries, but
13564 # adding the `-m68020' flag to GCC prevents building anything better,
13566 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13569 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13570 # PIC is the default for these OSes.
13573 mingw* | pw32* | os2*)
13574 # This hack is so that the source file can tell whether it is being
13575 # built for inclusion in a dll (and should export symbols for example).
13576 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13579 darwin* | rhapsody*)
13580 # PIC is the default on this platform
13581 # Common symbols not allowed in MH_DYLIB files
13582 lt_prog_compiler_pic_F77='-fno-common'
13586 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13587 # Instead, we relocate shared libraries at runtime.
13591 # Just because we use GCC doesn't mean we suddenly get shared libraries
13592 # on systems that don't support them.
13593 lt_prog_compiler_can_build_shared_F77=no
13598 if test -d /usr/nec; then
13599 lt_prog_compiler_pic_F77=-Kconform_pic
13604 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13605 # not for PA HP-UX.
13611 lt_prog_compiler_pic_F77='-fPIC'
13617 lt_prog_compiler_pic_F77='-fPIC'
13621 # PORTME Check for flag to pass linker flags through the system compiler.
13624 lt_prog_compiler_wl_F77='-Wl,'
13625 if test "$host_cpu" = ia64; then
13626 # AIX 5 now supports IA64 processor
13627 lt_prog_compiler_static_F77='-Bstatic'
13629 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13633 # PIC is the default on this platform
13634 # Common symbols not allowed in MH_DYLIB files
13635 case $cc_basename in
13637 lt_prog_compiler_pic_F77='-qnocommon'
13638 lt_prog_compiler_wl_F77='-Wl,'
13643 mingw* | pw32* | os2*)
13644 # This hack is so that the source file can tell whether it is being
13645 # built for inclusion in a dll (and should export symbols for example).
13646 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13649 hpux9* | hpux10* | hpux11*)
13650 lt_prog_compiler_wl_F77='-Wl,'
13651 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13652 # not for PA HP-UX.
13658 lt_prog_compiler_pic_F77='+Z'
13661 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13662 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13665 irix5* | irix6* | nonstopux*)
13666 lt_prog_compiler_wl_F77='-Wl,'
13667 # PIC (with -KPIC) is the default.
13668 lt_prog_compiler_static_F77='-non_shared'
13672 lt_prog_compiler_pic_F77='-KPIC'
13673 lt_prog_compiler_static_F77='-Bstatic'
13676 linux* | k*bsd*-gnu)
13677 case $cc_basename in
13679 lt_prog_compiler_wl_F77='-Wl,'
13680 lt_prog_compiler_pic_F77='-KPIC'
13681 lt_prog_compiler_static_F77='-static'
13683 pgcc* | pgf77* | pgf90* | pgf95*)
13684 # Portland Group compilers (*not* the Pentium gcc compiler,
13685 # which looks to be a dead project)
13686 lt_prog_compiler_wl_F77='-Wl,'
13687 lt_prog_compiler_pic_F77='-fpic'
13688 lt_prog_compiler_static_F77='-Bstatic'
13691 lt_prog_compiler_wl_F77='-Wl,'
13692 # All Alpha code is PIC.
13693 lt_prog_compiler_static_F77='-non_shared'
13698 osf3* | osf4* | osf5*)
13699 lt_prog_compiler_wl_F77='-Wl,'
13700 # All OSF/1 code is PIC.
13701 lt_prog_compiler_static_F77='-non_shared'
13705 lt_prog_compiler_pic_F77='-KPIC'
13706 lt_prog_compiler_static_F77='-Bstatic'
13707 case $cc_basename in
13708 f77* | f90* | f95*)
13709 lt_prog_compiler_wl_F77='-Qoption ld ';;
13711 lt_prog_compiler_wl_F77='-Wl,';;
13716 lt_prog_compiler_wl_F77='-Qoption ld '
13717 lt_prog_compiler_pic_F77='-PIC'
13718 lt_prog_compiler_static_F77='-Bstatic'
13721 sysv4 | sysv4.2uw2* | sysv4.3*)
13722 lt_prog_compiler_wl_F77='-Wl,'
13723 lt_prog_compiler_pic_F77='-KPIC'
13724 lt_prog_compiler_static_F77='-Bstatic'
13728 if test -d /usr/nec ;then
13729 lt_prog_compiler_pic_F77='-Kconform_pic'
13730 lt_prog_compiler_static_F77='-Bstatic'
13734 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13735 lt_prog_compiler_wl_F77='-Wl,'
13736 lt_prog_compiler_pic_F77='-KPIC'
13737 lt_prog_compiler_static_F77='-Bstatic'
13741 lt_prog_compiler_wl_F77='-Wl,'
13742 lt_prog_compiler_can_build_shared_F77=no
13746 lt_prog_compiler_pic_F77='-pic'
13747 lt_prog_compiler_static_F77='-Bstatic'
13751 lt_prog_compiler_can_build_shared_F77=no
13756 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13757 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13760 # Check to make sure the PIC flag actually works.
13762 if test -n "$lt_prog_compiler_pic_F77"; then
13764 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13765 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13766 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13767 echo $ECHO_N "(cached) $ECHO_C" >&6
13769 lt_prog_compiler_pic_works_F77=no
13770 ac_outfile=conftest.$ac_objext
13771 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13772 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13773 # Insert the option either (1) after the last *FLAGS variable, or
13774 # (2) before a word containing "conftest.", or (3) at the end.
13775 # Note that $ac_compile itself does not contain backslashes and begins
13776 # with a dollar sign (not a hyphen), so the echo should work correctly.
13777 # The option is referenced via a variable to avoid confusing sed.
13778 lt_compile=`echo "$ac_compile" | $SED \
13779 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13780 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13781 -e 's:$: $lt_compiler_flag:'`
13782 (eval echo "\"\$as_me:13782: $lt_compile\"" >&5)
13783 (eval "$lt_compile" 2>conftest.err)
13785 cat conftest.err >&5
13786 echo "$as_me:13786: \$? = $ac_status" >&5
13787 if (exit $ac_status) && test -s "$ac_outfile"; then
13788 # The compiler can only warn and ignore the option if not recognized
13789 # So say no if there are warnings other than the usual output.
13790 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13791 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13792 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13793 lt_prog_compiler_pic_works_F77=yes
13799 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13800 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13802 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13803 case $lt_prog_compiler_pic_F77 in
13805 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13808 lt_prog_compiler_pic_F77=
13809 lt_prog_compiler_can_build_shared_F77=no
13814 # For platforms which do not support PIC, -DPIC is meaningless:
13816 lt_prog_compiler_pic_F77=
13819 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13824 # Check to make sure the static flag actually works.
13826 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13827 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13828 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13829 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13830 echo $ECHO_N "(cached) $ECHO_C" >&6
13832 lt_prog_compiler_static_works_F77=no
13833 save_LDFLAGS="$LDFLAGS"
13834 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13835 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13836 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13837 # The linker can only warn and ignore the option if not recognized
13838 # So say no if there are warnings
13839 if test -s conftest.err; then
13840 # Append any errors to the config.log.
13841 cat conftest.err 1>&5
13842 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13843 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13844 if diff conftest.exp conftest.er2 >/dev/null; then
13845 lt_prog_compiler_static_works_F77=yes
13848 lt_prog_compiler_static_works_F77=yes
13852 LDFLAGS="$save_LDFLAGS"
13855 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13856 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
13858 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13861 lt_prog_compiler_static_F77=
13865 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13866 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13867 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13868 echo $ECHO_N "(cached) $ECHO_C" >&6
13870 lt_cv_prog_compiler_c_o_F77=no
13871 $rm -r conftest 2>/dev/null
13875 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13877 lt_compiler_flag="-o out/conftest2.$ac_objext"
13878 # Insert the option either (1) after the last *FLAGS variable, or
13879 # (2) before a word containing "conftest.", or (3) at the end.
13880 # Note that $ac_compile itself does not contain backslashes and begins
13881 # with a dollar sign (not a hyphen), so the echo should work correctly.
13882 lt_compile=`echo "$ac_compile" | $SED \
13883 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13884 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13885 -e 's:$: $lt_compiler_flag:'`
13886 (eval echo "\"\$as_me:13886: $lt_compile\"" >&5)
13887 (eval "$lt_compile" 2>out/conftest.err)
13889 cat out/conftest.err >&5
13890 echo "$as_me:13890: \$? = $ac_status" >&5
13891 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13893 # The compiler can only warn and ignore the option if not recognized
13894 # So say no if there are warnings
13895 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13896 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13897 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13898 lt_cv_prog_compiler_c_o_F77=yes
13903 # SGI C++ compiler will create directory out/ii_files/ for
13904 # template instantiation
13905 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13906 $rm out/* && rmdir out
13912 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13913 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13916 hard_links="nottested"
13917 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13918 # do not overwrite the value of need_locks provided by the user
13919 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13920 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13923 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13925 ln conftest.a conftest.b 2>&5 || hard_links=no
13926 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13927 { echo "$as_me:$LINENO: result: $hard_links" >&5
13928 echo "${ECHO_T}$hard_links" >&6; }
13929 if test "$hard_links" = no; then
13930 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13931 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13938 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13939 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13942 allow_undefined_flag_F77=
13943 enable_shared_with_static_runtimes_F77=no
13945 archive_expsym_cmds_F77=
13946 old_archive_From_new_cmds_F77=
13947 old_archive_from_expsyms_cmds_F77=
13948 export_dynamic_flag_spec_F77=
13949 whole_archive_flag_spec_F77=
13950 thread_safe_flag_spec_F77=
13951 hardcode_libdir_flag_spec_F77=
13952 hardcode_libdir_flag_spec_ld_F77=
13953 hardcode_libdir_separator_F77=
13954 hardcode_direct_F77=no
13955 hardcode_minus_L_F77=no
13956 hardcode_shlibpath_var_F77=unsupported
13957 link_all_deplibs_F77=unknown
13958 hardcode_automatic_F77=no
13960 module_expsym_cmds_F77=
13961 always_export_symbols_F77=no
13962 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13963 # include_expsyms should be a list of space-separated symbols to be *always*
13964 # included in the symbol list
13965 include_expsyms_F77=
13966 # exclude_expsyms can be an extended regexp of symbols to exclude
13967 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13968 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13969 # as well as any symbol that contains `d'.
13970 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13971 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13972 # platforms (ab)use it in PIC code, but their linkers get confused if
13973 # the symbol is explicitly referenced. Since portable code cannot
13974 # rely on this symbol name, it's probably fine to never include it in
13975 # preloaded symbol tables.
13976 extract_expsyms_cmds=
13977 # Just being paranoid about ensuring that cc_basename is set.
13978 for cc_temp in $compiler""; do
13980 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13981 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13986 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13989 cygwin* | mingw* | pw32*)
13990 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13991 # When not using gcc, we currently assume that we are using
13992 # Microsoft Visual C++.
13993 if test "$GCC" != yes; then
13998 # we just hope/assume this is gcc and not c89 (= MSVC++)
14007 if test "$with_gnu_ld" = yes; then
14008 # If archive_cmds runs LD, not CC, wlarc should be empty
14011 # Set some defaults for GNU ld with shared library support. These
14012 # are reset later if shared libraries are not supported. Putting them
14013 # here allows them to be overridden if necessary.
14014 runpath_var=LD_RUN_PATH
14015 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14016 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14017 # ancient GNU ld didn't support --whole-archive et. al.
14018 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14019 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14021 whole_archive_flag_spec_F77=
14023 supports_anon_versioning=no
14024 case `$LD -v 2>/dev/null` in
14025 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14026 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14027 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14028 *\ 2.11.*) ;; # other 2.11 versions
14029 *) supports_anon_versioning=yes ;;
14032 # See if GNU ld supports shared libraries.
14034 aix3* | aix4* | aix5*)
14035 # On AIX/PPC, the GNU linker is very broken
14036 if test "$host_cpu" != ia64; then
14040 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14041 *** to be unable to reliably create shared libraries on AIX.
14042 *** Therefore, libtool is disabling shared libraries support. If you
14043 *** really care for shared libraries, you may want to modify your PATH
14044 *** so that a non-GNU linker is found, and then restart.
14051 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)'
14052 hardcode_libdir_flag_spec_F77='-L$libdir'
14053 hardcode_minus_L_F77=yes
14055 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14056 # that the semantics of dynamic libraries on AmigaOS, at least up
14057 # to version 4, is to share data among multiple programs linked
14058 # with the same dynamic library. Since this doesn't match the
14059 # behavior of shared libraries on other platforms, we can't use
14065 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14066 allow_undefined_flag_F77=unsupported
14067 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14068 # support --undefined. This deserves some investigation. FIXME
14069 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14075 cygwin* | mingw* | pw32*)
14076 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14077 # as there is no search path for DLLs.
14078 hardcode_libdir_flag_spec_F77='-L$libdir'
14079 allow_undefined_flag_F77=unsupported
14080 always_export_symbols_F77=no
14081 enable_shared_with_static_runtimes_F77=yes
14082 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14084 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14085 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14086 # If the export-symbols file already is a .def file (1st line
14087 # is EXPORTS), use it as is; otherwise, prepend...
14088 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14089 cp $export_symbols $output_objdir/$soname.def;
14091 echo EXPORTS > $output_objdir/$soname.def;
14092 cat $export_symbols >> $output_objdir/$soname.def;
14094 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14101 hardcode_direct_F77=no
14102 hardcode_shlibpath_var_F77=no
14103 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14104 export_dynamic_flag_spec_F77='${wl}-E'
14105 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14106 # Instead, shared libraries are loaded at an image base (0x10000000 by
14107 # default) and relocated if they conflict, which is a slow very memory
14108 # consuming and fragmenting process. To avoid this, we pick a random,
14109 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14110 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14111 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'
14112 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'
14115 linux* | k*bsd*-gnu)
14116 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14118 case $cc_basename,$host_cpu in
14119 pgcc*) # Portland Group C compiler
14120 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'
14121 tmp_addflag=' $pic_flag'
14123 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14124 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'
14125 tmp_addflag=' $pic_flag -Mnomain' ;;
14126 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14127 tmp_addflag=' -i_dynamic' ;;
14128 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14129 tmp_addflag=' -i_dynamic -nofor_main' ;;
14130 ifc* | ifort*) # Intel Fortran compiler
14131 tmp_addflag=' -nofor_main' ;;
14133 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14135 if test $supports_anon_versioning = yes; then
14136 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14137 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14138 $echo "local: *; };" >> $output_objdir/$libname.ver~
14139 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14141 link_all_deplibs_F77=no
14147 netbsd* | netbsdelf*-gnu)
14148 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14149 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14152 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14153 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14158 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14162 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14163 *** create shared libraries on Solaris systems. Therefore, libtool
14164 *** is disabling shared libraries support. We urge you to upgrade GNU
14165 *** binutils to release 2.9.1 or newer. Another option is to modify
14166 *** your PATH or compiler configuration so that the native linker is
14167 *** used, and then restart.
14170 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14171 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14172 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14178 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14179 case `$LD -v 2>&1` in
14180 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14184 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14185 *** reliably create shared libraries on SCO systems. Therefore, libtool
14186 *** is disabling shared libraries support. We urge you to upgrade GNU
14187 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14188 *** your PATH or compiler configuration so that the native linker is
14189 *** used, and then restart.
14194 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14195 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14196 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14197 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14206 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14208 hardcode_direct_F77=yes
14209 hardcode_shlibpath_var_F77=no
14213 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14214 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14215 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14222 if test "$ld_shlibs_F77" = no; then
14224 hardcode_libdir_flag_spec_F77=
14225 export_dynamic_flag_spec_F77=
14226 whole_archive_flag_spec_F77=
14229 # PORTME fill in a description of your system's linker (not GNU ld)
14232 allow_undefined_flag_F77=unsupported
14233 always_export_symbols_F77=yes
14234 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'
14235 # Note: this linker hardcodes the directories in LIBPATH if there
14236 # are no directories specified by -L.
14237 hardcode_minus_L_F77=yes
14238 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14239 # Neither direct hardcoding nor static linking is supported with a
14241 hardcode_direct_F77=unsupported
14246 if test "$host_cpu" = ia64; then
14247 # On IA64, the linker does run time linking by default, so we don't
14248 # have to do anything special.
14249 aix_use_runtimelinking=no
14250 exp_sym_flag='-Bexport'
14253 # If we're using GNU nm, then we don't want the "-C" option.
14254 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14255 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14256 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'
14258 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'
14260 aix_use_runtimelinking=no
14262 # Test if we are trying to use run time linking or normal
14263 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14264 # need to do runtime linking.
14265 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14266 for ld_flag in $LDFLAGS; do
14267 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14268 aix_use_runtimelinking=yes
14275 exp_sym_flag='-bexport'
14276 no_entry_flag='-bnoentry'
14279 # When large executables or shared objects are built, AIX ld can
14280 # have problems creating the table of contents. If linking a library
14281 # or program results in "error TOC overflow" add -mminimal-toc to
14282 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14283 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14285 archive_cmds_F77=''
14286 hardcode_direct_F77=yes
14287 hardcode_libdir_separator_F77=':'
14288 link_all_deplibs_F77=yes
14290 if test "$GCC" = yes; then
14291 case $host_os in aix4.[012]|aix4.[012].*)
14292 # We only want to do this on AIX 4.2 and lower, the check
14293 # below for broken collect2 doesn't work under 4.3+
14294 collect2name=`${CC} -print-prog-name=collect2`
14295 if test -f "$collect2name" && \
14296 strings "$collect2name" | grep resolve_lib_name >/dev/null
14298 # We have reworked collect2
14299 hardcode_direct_F77=yes
14301 # We have old collect2
14302 hardcode_direct_F77=unsupported
14303 # It fails to find uninstalled libraries when the uninstalled
14304 # path is not listed in the libpath. Setting hardcode_minus_L
14305 # to unsupported forces relinking
14306 hardcode_minus_L_F77=yes
14307 hardcode_libdir_flag_spec_F77='-L$libdir'
14308 hardcode_libdir_separator_F77=
14312 shared_flag='-shared'
14313 if test "$aix_use_runtimelinking" = yes; then
14314 shared_flag="$shared_flag "'${wl}-G'
14318 if test "$host_cpu" = ia64; then
14319 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14320 # chokes on -Wl,-G. The following line is correct:
14323 if test "$aix_use_runtimelinking" = yes; then
14324 shared_flag='${wl}-G'
14326 shared_flag='${wl}-bM:SRE'
14331 # It seems that -bexpall does not export symbols beginning with
14332 # underscore (_), so it is better to generate a list of symbols to export.
14333 always_export_symbols_F77=yes
14334 if test "$aix_use_runtimelinking" = yes; then
14335 # Warning - without using the other runtime loading flags (-brtl),
14336 # -berok will link without error, but may produce a broken library.
14337 allow_undefined_flag_F77='-berok'
14338 # Determine the default libpath from the value encoded in an empty executable.
14339 cat >conftest.$ac_ext <<_ACEOF
14344 rm -f conftest.$ac_objext conftest$ac_exeext
14345 if { (ac_try="$ac_link"
14346 case "(($ac_try" in
14347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14348 *) ac_try_echo=$ac_try;;
14350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14351 (eval "$ac_link") 2>conftest.er1
14353 grep -v '^ *+' conftest.er1 >conftest.err
14355 cat conftest.err >&5
14356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14357 (exit $ac_status); } && {
14358 test -z "$ac_f77_werror_flag" ||
14359 test ! -s conftest.err
14360 } && test -s conftest$ac_exeext &&
14361 $as_test_x conftest$ac_exeext; then
14363 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14365 # Check for a 64-bit object if we didn't find anything.
14366 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14369 echo "$as_me: failed program was:" >&5
14370 sed 's/^/| /' conftest.$ac_ext >&5
14375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14376 conftest$ac_exeext conftest.$ac_ext
14377 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14379 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14380 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"
14382 if test "$host_cpu" = ia64; then
14383 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14384 allow_undefined_flag_F77="-z nodefs"
14385 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"
14387 # Determine the default libpath from the value encoded in an empty executable.
14388 cat >conftest.$ac_ext <<_ACEOF
14393 rm -f conftest.$ac_objext conftest$ac_exeext
14394 if { (ac_try="$ac_link"
14395 case "(($ac_try" in
14396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14397 *) ac_try_echo=$ac_try;;
14399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14400 (eval "$ac_link") 2>conftest.er1
14402 grep -v '^ *+' conftest.er1 >conftest.err
14404 cat conftest.err >&5
14405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406 (exit $ac_status); } && {
14407 test -z "$ac_f77_werror_flag" ||
14408 test ! -s conftest.err
14409 } && test -s conftest$ac_exeext &&
14410 $as_test_x conftest$ac_exeext; then
14412 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14414 # Check for a 64-bit object if we didn't find anything.
14415 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14418 echo "$as_me: failed program was:" >&5
14419 sed 's/^/| /' conftest.$ac_ext >&5
14424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14425 conftest$ac_exeext conftest.$ac_ext
14426 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14428 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14429 # Warning - without using the other run time loading flags,
14430 # -berok will link without error, but may produce a broken library.
14431 no_undefined_flag_F77=' ${wl}-bernotok'
14432 allow_undefined_flag_F77=' ${wl}-berok'
14433 # Exported symbols can be pulled into shared objects from archives
14434 whole_archive_flag_spec_F77='$convenience'
14435 archive_cmds_need_lc_F77=yes
14436 # This is similar to how AIX traditionally builds its shared libraries.
14437 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'
14443 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)'
14444 hardcode_libdir_flag_spec_F77='-L$libdir'
14445 hardcode_minus_L_F77=yes
14446 # see comment about different semantics on the GNU ld section
14451 export_dynamic_flag_spec_F77=-rdynamic
14454 cygwin* | mingw* | pw32*)
14455 # When not using gcc, we currently assume that we are using
14456 # Microsoft Visual C++.
14457 # hardcode_libdir_flag_spec is actually meaningless, as there is
14458 # no search path for DLLs.
14459 hardcode_libdir_flag_spec_F77=' '
14460 allow_undefined_flag_F77=unsupported
14461 # Tell ltmain to make .lib files, not .a files.
14463 # Tell ltmain to make .dll files, not .so files.
14465 # FIXME: Setting linknames here is a bad hack.
14466 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14467 # The linker will automatically build a .lib file if we build a DLL.
14468 old_archive_From_new_cmds_F77='true'
14469 # FIXME: Should let the user specify the lib program.
14470 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14471 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14472 enable_shared_with_static_runtimes_F77=yes
14475 darwin* | rhapsody*)
14477 rhapsody* | darwin1.[012])
14478 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14481 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14482 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14484 case ${MACOSX_DEPLOYMENT_TARGET} in
14486 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14489 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14495 archive_cmds_need_lc_F77=no
14496 hardcode_direct_F77=no
14497 hardcode_automatic_F77=yes
14498 hardcode_shlibpath_var_F77=unsupported
14499 whole_archive_flag_spec_F77=''
14500 link_all_deplibs_F77=yes
14501 if test "$GCC" = yes ; then
14502 output_verbose_link_cmd='echo'
14503 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14504 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14505 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14506 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}'
14507 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}'
14509 case $cc_basename in
14511 output_verbose_link_cmd='echo'
14512 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14513 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14514 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14515 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14516 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}'
14526 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14527 hardcode_libdir_flag_spec_F77='-L$libdir'
14528 hardcode_shlibpath_var_F77=no
14535 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14536 # support. Future versions do this automatically, but an explicit c++rt0.o
14537 # does not break anything, and helps significantly (at the cost of a little
14540 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14541 hardcode_libdir_flag_spec_F77='-R$libdir'
14542 hardcode_direct_F77=yes
14543 hardcode_shlibpath_var_F77=no
14546 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14548 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14549 hardcode_direct_F77=yes
14550 hardcode_minus_L_F77=yes
14551 hardcode_shlibpath_var_F77=no
14554 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14555 freebsd* | dragonfly*)
14556 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14557 hardcode_libdir_flag_spec_F77='-R$libdir'
14558 hardcode_direct_F77=yes
14559 hardcode_shlibpath_var_F77=no
14563 if test "$GCC" = yes; then
14564 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'
14566 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'
14568 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14569 hardcode_libdir_separator_F77=:
14570 hardcode_direct_F77=yes
14572 # hardcode_minus_L: Not really in the search PATH,
14573 # but as the default location of the library.
14574 hardcode_minus_L_F77=yes
14575 export_dynamic_flag_spec_F77='${wl}-E'
14579 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14580 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14582 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14584 if test "$with_gnu_ld" = no; then
14585 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14586 hardcode_libdir_separator_F77=:
14588 hardcode_direct_F77=yes
14589 export_dynamic_flag_spec_F77='${wl}-E'
14591 # hardcode_minus_L: Not really in the search PATH,
14592 # but as the default location of the library.
14593 hardcode_minus_L_F77=yes
14598 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14601 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14604 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14607 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14613 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14616 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14619 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14623 if test "$with_gnu_ld" = no; then
14624 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14625 hardcode_libdir_separator_F77=:
14629 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14630 hardcode_direct_F77=no
14631 hardcode_shlibpath_var_F77=no
14634 hardcode_direct_F77=yes
14635 export_dynamic_flag_spec_F77='${wl}-E'
14637 # hardcode_minus_L: Not really in the search PATH,
14638 # but as the default location of the library.
14639 hardcode_minus_L_F77=yes
14645 irix5* | irix6* | nonstopux*)
14646 if test "$GCC" = yes; then
14647 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'
14649 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'
14650 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14652 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14653 hardcode_libdir_separator_F77=:
14654 link_all_deplibs_F77=yes
14657 netbsd* | netbsdelf*-gnu)
14658 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14659 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14661 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14663 hardcode_libdir_flag_spec_F77='-R$libdir'
14664 hardcode_direct_F77=yes
14665 hardcode_shlibpath_var_F77=no
14669 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14670 hardcode_direct_F77=yes
14671 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14672 hardcode_libdir_separator_F77=:
14673 hardcode_shlibpath_var_F77=no
14677 hardcode_direct_F77=yes
14678 hardcode_shlibpath_var_F77=no
14679 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14680 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14681 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14682 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14683 export_dynamic_flag_spec_F77='${wl}-E'
14686 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14687 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14688 hardcode_libdir_flag_spec_F77='-R$libdir'
14691 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14692 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14699 hardcode_libdir_flag_spec_F77='-L$libdir'
14700 hardcode_minus_L_F77=yes
14701 allow_undefined_flag_F77=unsupported
14702 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'
14703 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14707 if test "$GCC" = yes; then
14708 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14709 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'
14711 allow_undefined_flag_F77=' -expect_unresolved \*'
14712 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'
14714 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14715 hardcode_libdir_separator_F77=:
14718 osf4* | osf5*) # as osf3* with the addition of -msym flag
14719 if test "$GCC" = yes; then
14720 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14721 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'
14722 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14724 allow_undefined_flag_F77=' -expect_unresolved \*'
14725 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'
14726 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~
14727 $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'
14729 # Both c and cxx compiler support -rpath directly
14730 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14732 hardcode_libdir_separator_F77=:
14736 no_undefined_flag_F77=' -z text'
14737 if test "$GCC" = yes; then
14739 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14740 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14741 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14744 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14745 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14746 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14748 hardcode_libdir_flag_spec_F77='-R$libdir'
14749 hardcode_shlibpath_var_F77=no
14751 solaris2.[0-5] | solaris2.[0-5].*) ;;
14753 # The compiler driver will combine linker options so we
14754 # cannot just pass the convience library names through
14755 # without $wl, iff we do not link with $LD.
14756 # Luckily, gcc supports the same syntax we need for Sun Studio.
14757 # Supported since Solaris 2.6 (maybe 2.5.1?)
14760 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14762 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14765 link_all_deplibs_F77=yes
14769 if test "x$host_vendor" = xsequent; then
14770 # Use $CC to link under sequent, because it throws in some extra .o
14771 # files that make .init and .fini sections work.
14772 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14774 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14776 hardcode_libdir_flag_spec_F77='-L$libdir'
14777 hardcode_direct_F77=yes
14778 hardcode_minus_L_F77=yes
14779 hardcode_shlibpath_var_F77=no
14783 case $host_vendor in
14785 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14786 hardcode_direct_F77=yes # is this really true???
14789 ## LD is ld it makes a PLAMLIB
14790 ## CC just makes a GrossModule.
14791 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14792 reload_cmds_F77='$CC -r -o $output$reload_objs'
14793 hardcode_direct_F77=no
14796 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14797 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14800 runpath_var='LD_RUN_PATH'
14801 hardcode_shlibpath_var_F77=no
14805 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14806 hardcode_shlibpath_var_F77=no
14807 export_dynamic_flag_spec_F77='-Bexport'
14811 if test -d /usr/nec; then
14812 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14813 hardcode_shlibpath_var_F77=no
14814 runpath_var=LD_RUN_PATH
14815 hardcode_runpath_var=yes
14820 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14821 no_undefined_flag_F77='${wl}-z,text'
14822 archive_cmds_need_lc_F77=no
14823 hardcode_shlibpath_var_F77=no
14824 runpath_var='LD_RUN_PATH'
14826 if test "$GCC" = yes; then
14827 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14828 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14830 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14831 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14835 sysv5* | sco3.2v5* | sco5v6*)
14836 # Note: We can NOT use -z defs as we might desire, because we do not
14837 # link with -lc, and that would cause any symbols used from libc to
14838 # always be unresolved, which means just about no library would
14839 # ever link correctly. If we're not using GNU ld we use -z text
14840 # though, which does catch some bad symbols but isn't as heavy-handed
14842 no_undefined_flag_F77='${wl}-z,text'
14843 allow_undefined_flag_F77='${wl}-z,nodefs'
14844 archive_cmds_need_lc_F77=no
14845 hardcode_shlibpath_var_F77=no
14846 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14847 hardcode_libdir_separator_F77=':'
14848 link_all_deplibs_F77=yes
14849 export_dynamic_flag_spec_F77='${wl}-Bexport'
14850 runpath_var='LD_RUN_PATH'
14852 if test "$GCC" = yes; then
14853 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14854 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14856 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14857 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14862 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14863 hardcode_libdir_flag_spec_F77='-L$libdir'
14864 hardcode_shlibpath_var_F77=no
14873 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14874 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14875 test "$ld_shlibs_F77" = no && can_build_shared=no
14878 # Do we need to explicitly link libc?
14880 case "x$archive_cmds_need_lc_F77" in
14882 # Assume -lc should be added
14883 archive_cmds_need_lc_F77=yes
14885 if test "$enable_shared" = yes && test "$GCC" = yes; then
14886 case $archive_cmds_F77 in
14888 # FIXME: we may have to deal with multi-command sequences.
14891 # Test whether the compiler implicitly links with -lc since on some
14892 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14893 # to ld, don't add -lc before -lgcc.
14894 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14895 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14897 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14900 (eval $ac_compile) 2>&5
14902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903 (exit $ac_status); } 2>conftest.err; then
14906 libobjs=conftest.$ac_objext
14908 wl=$lt_prog_compiler_wl_F77
14909 pic_flag=$lt_prog_compiler_pic_F77
14915 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14916 allow_undefined_flag_F77=
14917 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14918 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921 (exit $ac_status); }
14923 archive_cmds_need_lc_F77=no
14925 archive_cmds_need_lc_F77=yes
14927 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14929 cat conftest.err 1>&5
14932 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14933 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
14940 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14941 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14942 library_names_spec=
14943 libname_spec='lib$name'
14947 postuninstall_cmds=
14951 shlibpath_overrides_runpath=unknown
14953 dynamic_linker="$host_os ld.so"
14954 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14955 if test "$GCC" = yes; then
14956 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14957 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14958 # if the path contains ";" then we assume it to be the separator
14959 # otherwise default to the standard path separator (i.e. ":") - it is
14960 # assumed that no part of a normal pathname contains ";" but that should
14961 # okay in the real world where ";" in dirpaths is itself problematic.
14962 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14964 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14967 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14969 need_lib_prefix=unknown
14970 hardcode_into_libs=no
14972 # when you set need_version to no, make sure it does not cause -set_version
14973 # flags to be left without arguments
14974 need_version=unknown
14979 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14980 shlibpath_var=LIBPATH
14982 # AIX 3 has no versioning support, so we append a major version to the name.
14983 soname_spec='${libname}${release}${shared_ext}$major'
14990 hardcode_into_libs=yes
14991 if test "$host_cpu" = ia64; then
14992 # AIX 5 supports IA64
14993 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14994 shlibpath_var=LD_LIBRARY_PATH
14996 # With GCC up to 2.95.x, collect2 would create an import file
14997 # for dependence libraries. The import file would start with
14998 # the line `#! .'. This would cause the generated library to
14999 # depend on `.', always an invalid library. This was fixed in
15000 # development snapshots of GCC prior to 3.0.
15002 aix4 | aix4.[01] | aix4.[01].*)
15003 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15005 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15008 can_build_shared=no
15012 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15013 # soname into executable. Probably we can add versioning support to
15014 # collect2, so additional links can be useful in future.
15015 if test "$aix_use_runtimelinking" = yes; then
15016 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15017 # instead of lib<name>.a to let people know that these are not
15018 # typical AIX shared libraries.
15019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15021 # We preserve .a as extension for shared libraries through AIX4.2
15022 # and later when we are not doing run time linking.
15023 library_names_spec='${libname}${release}.a $libname.a'
15024 soname_spec='${libname}${release}${shared_ext}$major'
15026 shlibpath_var=LIBPATH
15031 library_names_spec='$libname.ixlibrary $libname.a'
15032 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15033 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'
15037 library_names_spec='${libname}${shared_ext}'
15038 dynamic_linker="$host_os ld.so"
15039 shlibpath_var=LIBRARY_PATH
15045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15046 soname_spec='${libname}${release}${shared_ext}$major'
15047 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15048 shlibpath_var=LD_LIBRARY_PATH
15049 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15050 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15051 # the default ld.so.conf also contains /usr/contrib/lib and
15052 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15053 # libtool to hard-code these into programs
15056 cygwin* | mingw* | pw32*)
15057 version_type=windows
15062 case $GCC,$host_os in
15063 yes,cygwin* | yes,mingw* | yes,pw32*)
15064 library_names_spec='$libname.dll.a'
15065 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15066 postinstall_cmds='base_file=`basename \${file}`~
15067 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15068 dldir=$destdir/`dirname \$dlpath`~
15069 test -d \$dldir || mkdir -p \$dldir~
15070 $install_prog $dir/$dlname \$dldir/$dlname~
15071 chmod a+x \$dldir/$dlname'
15072 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15073 dlpath=$dir/\$dldll~
15075 shlibpath_overrides_runpath=yes
15079 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15080 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15081 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15084 # MinGW DLLs use traditional 'lib' prefix
15085 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15086 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15087 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15088 # It is most probably a Windows format PATH printed by
15089 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15090 # path with ; separators, and with drive letters. We can handle the
15091 # drive letters (cygwin fileutils understands them), so leave them,
15092 # especially as we might pass files found there to a mingw objdump,
15093 # which wouldn't understand a cygwinified path. Ahh.
15094 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15096 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15100 # pw32 DLLs use 'pw' prefix rather than 'lib'
15101 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15107 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15110 dynamic_linker='Win32 ld.exe'
15111 # FIXME: first we should search . and the directory the executable is in
15115 darwin* | rhapsody*)
15116 dynamic_linker="$host_os dyld"
15117 version_type=darwin
15120 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15121 soname_spec='${libname}${release}${major}$shared_ext'
15122 shlibpath_overrides_runpath=yes
15123 shlibpath_var=DYLD_LIBRARY_PATH
15124 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15125 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15126 if test "$GCC" = yes; then
15127 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15129 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15131 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15139 soname_spec='${libname}${release}${shared_ext}$major'
15140 shlibpath_var=LD_LIBRARY_PATH
15147 freebsd* | dragonfly*)
15148 # DragonFly does not have aout. When/if they implement a new
15149 # versioning mechanism, adjust this.
15150 if test -x /usr/bin/objformat; then
15151 objformat=`/usr/bin/objformat`
15154 freebsd[123]*) objformat=aout ;;
15155 *) objformat=elf ;;
15158 version_type=freebsd-$objformat
15159 case $version_type in
15161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15166 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15170 shlibpath_var=LD_LIBRARY_PATH
15173 shlibpath_overrides_runpath=yes
15175 freebsd3.[01]* | freebsdelf3.[01]*)
15176 shlibpath_overrides_runpath=yes
15177 hardcode_into_libs=yes
15179 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15180 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15181 shlibpath_overrides_runpath=no
15182 hardcode_into_libs=yes
15184 freebsd*) # from 4.6 on
15185 shlibpath_overrides_runpath=yes
15186 hardcode_into_libs=yes
15195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15196 soname_spec='${libname}${release}${shared_ext}$major'
15197 shlibpath_var=LD_LIBRARY_PATH
15198 hardcode_into_libs=yes
15201 hpux9* | hpux10* | hpux11*)
15202 # Give a soname corresponding to the major version so that dld.sl refuses to
15203 # link against other versions.
15210 hardcode_into_libs=yes
15211 dynamic_linker="$host_os dld.so"
15212 shlibpath_var=LD_LIBRARY_PATH
15213 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15215 soname_spec='${libname}${release}${shared_ext}$major'
15216 if test "X$HPUX_IA64_MODE" = X32; then
15217 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15219 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15221 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15225 hardcode_into_libs=yes
15226 dynamic_linker="$host_os dld.sl"
15227 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15228 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15230 soname_spec='${libname}${release}${shared_ext}$major'
15231 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15232 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15236 dynamic_linker="$host_os dld.sl"
15237 shlibpath_var=SHLIB_PATH
15238 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15240 soname_spec='${libname}${release}${shared_ext}$major'
15243 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15244 postinstall_cmds='chmod 555 $lib'
15251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15252 soname_spec='${libname}${release}${shared_ext}$major'
15253 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15254 shlibpath_var=LD_LIBRARY_PATH
15255 shlibpath_overrides_runpath=no
15256 hardcode_into_libs=yes
15259 irix5* | irix6* | nonstopux*)
15261 nonstopux*) version_type=nonstopux ;;
15263 if test "$lt_cv_prog_gnu_ld" = yes; then
15271 soname_spec='${libname}${release}${shared_ext}$major'
15272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15274 irix5* | nonstopux*)
15275 libsuff= shlibsuff=
15278 case $LD in # libtool.m4 will add one of these switches to LD
15279 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15280 libsuff= shlibsuff= libmagic=32-bit;;
15281 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15282 libsuff=32 shlibsuff=N32 libmagic=N32;;
15283 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15284 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15285 *) libsuff= shlibsuff= libmagic=never-match;;
15289 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15290 shlibpath_overrides_runpath=no
15291 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15292 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15293 hardcode_into_libs=yes
15296 # No shared lib support for Linux oldld, aout, or coff.
15297 linux*oldld* | linux*aout* | linux*coff*)
15301 # This must be Linux ELF.
15302 linux* | k*bsd*-gnu)
15306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15307 soname_spec='${libname}${release}${shared_ext}$major'
15308 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15309 shlibpath_var=LD_LIBRARY_PATH
15310 shlibpath_overrides_runpath=no
15311 # This implies no fast_install, which is unacceptable.
15312 # Some rework will be needed to allow for fast_install
15313 # before this can be enabled.
15314 hardcode_into_libs=yes
15316 # Append ld.so.conf contents to the search path
15317 if test -f /etc/ld.so.conf; then
15318 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15319 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15322 # We used to test for /lib/ld.so.1 and disable shared libraries on
15323 # powerpc, because MkLinux only supported shared libraries with the
15324 # GNU dynamic linker. Since this was broken with cross compilers,
15325 # most powerpc-linux boxes support dynamic linking these days and
15326 # people can always --disable-shared, the test was removed, and we
15327 # assume the GNU/Linux dynamic linker is in use.
15328 dynamic_linker='GNU/Linux ld.so'
15335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15336 soname_spec='${libname}${release}${shared_ext}$major'
15337 shlibpath_var=LD_LIBRARY_PATH
15338 shlibpath_overrides_runpath=no
15339 hardcode_into_libs=yes
15340 dynamic_linker='NetBSD ld.elf_so'
15347 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15349 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15350 dynamic_linker='NetBSD (a.out) ld.so'
15352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15353 soname_spec='${libname}${release}${shared_ext}$major'
15354 dynamic_linker='NetBSD ld.elf_so'
15356 shlibpath_var=LD_LIBRARY_PATH
15357 shlibpath_overrides_runpath=yes
15358 hardcode_into_libs=yes
15363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15364 shlibpath_var=LD_LIBRARY_PATH
15365 shlibpath_overrides_runpath=yes
15372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15373 soname_spec='${libname}${release}${shared_ext}$major'
15374 shlibpath_var=LD_LIBRARY_PATH
15375 shlibpath_overrides_runpath=yes
15380 sys_lib_dlsearch_path_spec="/usr/lib"
15382 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15384 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15385 *) need_version=no ;;
15387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15388 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15389 shlibpath_var=LD_LIBRARY_PATH
15390 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15392 openbsd2.[89] | openbsd2.[89].*)
15393 shlibpath_overrides_runpath=no
15396 shlibpath_overrides_runpath=yes
15400 shlibpath_overrides_runpath=yes
15405 libname_spec='$name'
15408 library_names_spec='$libname${shared_ext} $libname.a'
15409 dynamic_linker='OS/2 ld.exe'
15410 shlibpath_var=LIBPATH
15413 osf3* | osf4* | osf5*)
15417 soname_spec='${libname}${release}${shared_ext}$major'
15418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15419 shlibpath_var=LD_LIBRARY_PATH
15420 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15421 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15429 soname_spec='${libname}${release}${shared_ext}$major'
15430 shlibpath_var=LD_LIBRARY_PATH
15431 shlibpath_overrides_runpath=yes
15432 hardcode_into_libs=yes
15433 # ldd complains unless libraries are executable
15434 postinstall_cmds='chmod +x $lib'
15439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15440 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15441 shlibpath_var=LD_LIBRARY_PATH
15442 shlibpath_overrides_runpath=yes
15443 if test "$with_gnu_ld" = yes; then
15451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15452 soname_spec='${libname}${release}${shared_ext}$major'
15453 shlibpath_var=LD_LIBRARY_PATH
15454 case $host_vendor in
15456 shlibpath_overrides_runpath=no
15458 export_dynamic_flag_spec='${wl}-Blargedynsym'
15459 runpath_var=LD_RUN_PATH
15467 shlibpath_overrides_runpath=no
15468 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15474 if test -d /usr/nec ;then
15476 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15477 soname_spec='$libname${shared_ext}.$major'
15478 shlibpath_var=LD_LIBRARY_PATH
15482 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15483 version_type=freebsd-elf
15486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15487 soname_spec='${libname}${release}${shared_ext}$major'
15488 shlibpath_var=LD_LIBRARY_PATH
15489 hardcode_into_libs=yes
15490 if test "$with_gnu_ld" = yes; then
15491 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15492 shlibpath_overrides_runpath=no
15494 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15495 shlibpath_overrides_runpath=yes
15498 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15502 sys_lib_dlsearch_path_spec='/usr/lib'
15507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15508 soname_spec='${libname}${release}${shared_ext}$major'
15509 shlibpath_var=LD_LIBRARY_PATH
15516 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15517 echo "${ECHO_T}$dynamic_linker" >&6; }
15518 test "$dynamic_linker" = no && can_build_shared=no
15520 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15521 if test "$GCC" = yes; then
15522 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15525 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15526 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15527 hardcode_action_F77=
15528 if test -n "$hardcode_libdir_flag_spec_F77" || \
15529 test -n "$runpath_var_F77" || \
15530 test "X$hardcode_automatic_F77" = "Xyes" ; then
15532 # We can hardcode non-existant directories.
15533 if test "$hardcode_direct_F77" != no &&
15534 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15535 # have to relink, otherwise we might link with an installed library
15536 # when we should be linking with a yet-to-be-installed one
15537 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15538 test "$hardcode_minus_L_F77" != no; then
15539 # Linking always hardcodes the temporary library directory.
15540 hardcode_action_F77=relink
15542 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15543 hardcode_action_F77=immediate
15546 # We cannot hardcode anything, or else we can only hardcode existing
15548 hardcode_action_F77=unsupported
15550 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15551 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15553 if test "$hardcode_action_F77" = relink; then
15554 # Fast installation is not supported
15555 enable_fast_install=no
15556 elif test "$shlibpath_overrides_runpath" = yes ||
15557 test "$enable_shared" = no; then
15558 # Fast installation is not necessary
15559 enable_fast_install=needless
15563 # The else clause should only fire when bootstrapping the
15564 # libtool distribution, otherwise you forgot to ship ltmain.sh
15565 # with your package, and you will get complaints that there are
15566 # no rules to generate ltmain.sh.
15567 if test -f "$ltmain"; then
15568 # See if we are running on zsh, and set the options which allow our commands through
15569 # without removal of \ escapes.
15570 if test -n "${ZSH_VERSION+set}" ; then
15571 setopt NO_GLOB_SUBST
15573 # Now quote all the things that may contain metacharacters while being
15574 # careful not to overquote the AC_SUBSTed values. We take copies of the
15575 # variables and quote the copies for generation of the libtool script.
15576 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15578 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15579 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15580 deplibs_check_method reload_flag reload_cmds need_locks \
15581 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15582 lt_cv_sys_global_symbol_to_c_name_address \
15583 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15584 old_postinstall_cmds old_postuninstall_cmds \
15588 lt_prog_compiler_wl_F77 \
15589 lt_prog_compiler_pic_F77 \
15590 lt_prog_compiler_static_F77 \
15591 lt_prog_compiler_no_builtin_flag_F77 \
15592 export_dynamic_flag_spec_F77 \
15593 thread_safe_flag_spec_F77 \
15594 whole_archive_flag_spec_F77 \
15595 enable_shared_with_static_runtimes_F77 \
15596 old_archive_cmds_F77 \
15597 old_archive_from_new_cmds_F77 \
15598 predep_objects_F77 \
15599 postdep_objects_F77 \
15602 compiler_lib_search_path_F77 \
15604 archive_expsym_cmds_F77 \
15605 postinstall_cmds_F77 \
15606 postuninstall_cmds_F77 \
15607 old_archive_from_expsyms_cmds_F77 \
15608 allow_undefined_flag_F77 \
15609 no_undefined_flag_F77 \
15610 export_symbols_cmds_F77 \
15611 hardcode_libdir_flag_spec_F77 \
15612 hardcode_libdir_flag_spec_ld_F77 \
15613 hardcode_libdir_separator_F77 \
15614 hardcode_automatic_F77 \
15616 module_expsym_cmds_F77 \
15617 lt_cv_prog_compiler_c_o_F77 \
15618 exclude_expsyms_F77 \
15619 include_expsyms_F77; do
15622 old_archive_cmds_F77 | \
15623 old_archive_from_new_cmds_F77 | \
15624 archive_cmds_F77 | \
15625 archive_expsym_cmds_F77 | \
15626 module_cmds_F77 | \
15627 module_expsym_cmds_F77 | \
15628 old_archive_from_expsyms_cmds_F77 | \
15629 export_symbols_cmds_F77 | \
15630 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15631 postinstall_cmds | postuninstall_cmds | \
15632 old_postinstall_cmds | old_postuninstall_cmds | \
15633 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15634 # Double-quote double-evaled strings.
15635 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15638 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15644 *'\$0 --fallback-echo"')
15645 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15651 cat <<__EOF__ >> "$cfgfile"
15652 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15654 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15656 # Shell to use when invoking shell scripts.
15659 # Whether or not to build shared libraries.
15660 build_libtool_libs=$enable_shared
15662 # Whether or not to build static libraries.
15663 build_old_libs=$enable_static
15665 # Whether or not to add -lc for building shared libraries.
15666 build_libtool_need_lc=$archive_cmds_need_lc_F77
15668 # Whether or not to disallow shared libs when runtime libs are static
15669 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15671 # Whether or not to optimize for fast installation.
15672 fast_install=$enable_fast_install
15675 host_alias=$host_alias
15679 # The build system.
15680 build_alias=$build_alias
15684 # An echo program that does not interpret backslashes.
15689 AR_FLAGS=$lt_AR_FLAGS
15694 # LTCC compiler flags.
15695 LTCFLAGS=$lt_LTCFLAGS
15697 # A language-specific compiler.
15698 CC=$lt_compiler_F77
15700 # Is the compiler the GNU C compiler?
15706 # The linker used to build libraries.
15709 # Whether we need hard or soft links.
15712 # A BSD-compatible nm program.
15715 # A symbol stripping program
15718 # Used to examine libraries when file_magic_cmd begins "file"
15719 MAGIC_CMD=$MAGIC_CMD
15721 # Used on cygwin: DLL creation program.
15724 # Used on cygwin: object dumper.
15727 # Used on cygwin: assembler.
15730 # The name of the directory that contains temporary libtool files.
15733 # How to create reloadable object files.
15734 reload_flag=$lt_reload_flag
15735 reload_cmds=$lt_reload_cmds
15737 # How to pass a linker flag through the compiler.
15738 wl=$lt_lt_prog_compiler_wl_F77
15740 # Object file suffix (normally "o").
15741 objext="$ac_objext"
15743 # Old archive suffix (normally "a").
15746 # Shared library suffix (normally ".so").
15747 shrext_cmds='$shrext_cmds'
15749 # Executable file suffix (normally "").
15752 # Additional compiler flags for building library objects.
15753 pic_flag=$lt_lt_prog_compiler_pic_F77
15756 # What is the maximum length of a command?
15757 max_cmd_len=$lt_cv_sys_max_cmd_len
15759 # Does compiler simultaneously support -c and -o options?
15760 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15762 # Must we lock files when doing compilation?
15763 need_locks=$lt_need_locks
15765 # Do we need the lib prefix for modules?
15766 need_lib_prefix=$need_lib_prefix
15768 # Do we need a version for libraries?
15769 need_version=$need_version
15771 # Whether dlopen is supported.
15772 dlopen_support=$enable_dlopen
15774 # Whether dlopen of programs is supported.
15775 dlopen_self=$enable_dlopen_self
15777 # Whether dlopen of statically linked programs is supported.
15778 dlopen_self_static=$enable_dlopen_self_static
15780 # Compiler flag to prevent dynamic linking.
15781 link_static_flag=$lt_lt_prog_compiler_static_F77
15783 # Compiler flag to turn off builtin functions.
15784 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15786 # Compiler flag to allow reflexive dlopens.
15787 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15789 # Compiler flag to generate shared objects directly from archives.
15790 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15792 # Compiler flag to generate thread-safe objects.
15793 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15795 # Library versioning type.
15796 version_type=$version_type
15798 # Format of library name prefix.
15799 libname_spec=$lt_libname_spec
15801 # List of archive names. First name is the real one, the rest are links.
15802 # The last name is the one that the linker finds with -lNAME.
15803 library_names_spec=$lt_library_names_spec
15805 # The coded name of the library, if different from the real name.
15806 soname_spec=$lt_soname_spec
15808 # Commands used to build and install an old-style archive.
15810 old_archive_cmds=$lt_old_archive_cmds_F77
15811 old_postinstall_cmds=$lt_old_postinstall_cmds
15812 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15814 # Create an old-style archive from a shared archive.
15815 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15817 # Create a temporary old-style archive to link instead of a shared archive.
15818 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15820 # Commands used to build and install a shared archive.
15821 archive_cmds=$lt_archive_cmds_F77
15822 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15823 postinstall_cmds=$lt_postinstall_cmds
15824 postuninstall_cmds=$lt_postuninstall_cmds
15826 # Commands used to build a loadable module (assumed same as above if empty)
15827 module_cmds=$lt_module_cmds_F77
15828 module_expsym_cmds=$lt_module_expsym_cmds_F77
15830 # Commands to strip libraries.
15831 old_striplib=$lt_old_striplib
15832 striplib=$lt_striplib
15834 # Dependencies to place before the objects being linked to create a
15836 predep_objects=$lt_predep_objects_F77
15838 # Dependencies to place after the objects being linked to create a
15840 postdep_objects=$lt_postdep_objects_F77
15842 # Dependencies to place before the objects being linked to create a
15844 predeps=$lt_predeps_F77
15846 # Dependencies to place after the objects being linked to create a
15848 postdeps=$lt_postdeps_F77
15850 # The library search path used internally by the compiler when linking
15851 # a shared library.
15852 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15854 # Method to check whether dependent libraries are shared objects.
15855 deplibs_check_method=$lt_deplibs_check_method
15857 # Command to use when deplibs_check_method == file_magic.
15858 file_magic_cmd=$lt_file_magic_cmd
15860 # Flag that allows shared libraries with undefined symbols to be built.
15861 allow_undefined_flag=$lt_allow_undefined_flag_F77
15863 # Flag that forces no undefined symbols.
15864 no_undefined_flag=$lt_no_undefined_flag_F77
15866 # Commands used to finish a libtool library installation in a directory.
15867 finish_cmds=$lt_finish_cmds
15869 # Same as above, but a single script fragment to be evaled but not shown.
15870 finish_eval=$lt_finish_eval
15872 # Take the output of nm and produce a listing of raw symbols and C names.
15873 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15875 # Transform the output of nm in a proper C declaration
15876 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15878 # Transform the output of nm in a C name address pair
15879 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15881 # This is the shared library runtime path variable.
15882 runpath_var=$runpath_var
15884 # This is the shared library path variable.
15885 shlibpath_var=$shlibpath_var
15887 # Is shlibpath searched before the hard-coded library search path?
15888 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15890 # How to hardcode a shared library path into an executable.
15891 hardcode_action=$hardcode_action_F77
15893 # Whether we should hardcode library paths into libraries.
15894 hardcode_into_libs=$hardcode_into_libs
15896 # Flag to hardcode \$libdir into a binary during linking.
15897 # This must work even if \$libdir does not exist.
15898 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15900 # If ld is used when linking, flag to hardcode \$libdir into
15901 # a binary during linking. This must work even if \$libdir does
15903 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15905 # Whether we need a single -rpath flag with a separated argument.
15906 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15908 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15909 # resulting binary.
15910 hardcode_direct=$hardcode_direct_F77
15912 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15913 # resulting binary.
15914 hardcode_minus_L=$hardcode_minus_L_F77
15916 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15917 # the resulting binary.
15918 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15920 # Set to yes if building a shared library automatically hardcodes DIR into the library
15921 # and all subsequent libraries and executables linked against it.
15922 hardcode_automatic=$hardcode_automatic_F77
15924 # Variables whose values should be saved in libtool wrapper scripts and
15925 # restored at relink time.
15926 variables_saved_for_relink="$variables_saved_for_relink"
15928 # Whether libtool must link a program against all its dependency libraries.
15929 link_all_deplibs=$link_all_deplibs_F77
15931 # Compile-time system search path for libraries
15932 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15934 # Run-time system search path for libraries
15935 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15937 # Fix the shell variable \$srcfile for the compiler.
15938 fix_srcfile_path="$fix_srcfile_path_F77"
15940 # Set to yes if exported symbols are required.
15941 always_export_symbols=$always_export_symbols_F77
15943 # The commands to list exported symbols.
15944 export_symbols_cmds=$lt_export_symbols_cmds_F77
15946 # The commands to extract the exported symbol list from a shared archive.
15947 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15949 # Symbols that should not be listed in the preloaded symbols.
15950 exclude_expsyms=$lt_exclude_expsyms_F77
15952 # Symbols that must always be exported.
15953 include_expsyms=$lt_include_expsyms_F77
15955 # ### END LIBTOOL TAG CONFIG: $tagname
15961 # If there is no Makefile yet, we rely on a make rule to execute
15962 # `config.status --recheck' to rerun these tests and create the
15963 # libtool script then.
15964 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15965 if test -f "$ltmain_in"; then
15966 test -f Makefile && make "$ltmain"
15972 ac_cpp='$CPP $CPPFLAGS'
15973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15985 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15988 # Source file extension for Java test sources.
15991 # Object file extension for compiled Java test sources.
15995 # Code to be used in simple compile tests
15996 lt_simple_compile_test_code="class foo {}\n"
15998 # Code to be used in simple link tests
15999 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16001 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16003 # If no C compiler was specified, use CC.
16006 # If no C compiler flags were specified, use CFLAGS.
16007 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16009 # Allow CC to be a program name with arguments.
16013 # save warnings/boilerplate of simple test code
16014 ac_outfile=conftest.$ac_objext
16015 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16016 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16017 _lt_compiler_boilerplate=`cat conftest.err`
16020 ac_outfile=conftest.$ac_objext
16021 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16022 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16023 _lt_linker_boilerplate=`cat conftest.err`
16027 # Allow CC to be a program name with arguments.
16032 for cc_temp in $compiler""; do
16034 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16035 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16040 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16043 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16044 archive_cmds_need_lc_GCJ=no
16046 old_archive_cmds_GCJ=$old_archive_cmds
16049 lt_prog_compiler_no_builtin_flag_GCJ=
16051 if test "$GCC" = yes; then
16052 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16055 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16056 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16057 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16058 echo $ECHO_N "(cached) $ECHO_C" >&6
16060 lt_cv_prog_compiler_rtti_exceptions=no
16061 ac_outfile=conftest.$ac_objext
16062 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16063 lt_compiler_flag="-fno-rtti -fno-exceptions"
16064 # Insert the option either (1) after the last *FLAGS variable, or
16065 # (2) before a word containing "conftest.", or (3) at the end.
16066 # Note that $ac_compile itself does not contain backslashes and begins
16067 # with a dollar sign (not a hyphen), so the echo should work correctly.
16068 # The option is referenced via a variable to avoid confusing sed.
16069 lt_compile=`echo "$ac_compile" | $SED \
16070 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16071 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16072 -e 's:$: $lt_compiler_flag:'`
16073 (eval echo "\"\$as_me:16073: $lt_compile\"" >&5)
16074 (eval "$lt_compile" 2>conftest.err)
16076 cat conftest.err >&5
16077 echo "$as_me:16077: \$? = $ac_status" >&5
16078 if (exit $ac_status) && test -s "$ac_outfile"; then
16079 # The compiler can only warn and ignore the option if not recognized
16080 # So say no if there are warnings other than the usual output.
16081 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16082 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16083 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16084 lt_cv_prog_compiler_rtti_exceptions=yes
16090 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16091 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16093 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16094 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16101 lt_prog_compiler_wl_GCJ=
16102 lt_prog_compiler_pic_GCJ=
16103 lt_prog_compiler_static_GCJ=
16105 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16106 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16108 if test "$GCC" = yes; then
16109 lt_prog_compiler_wl_GCJ='-Wl,'
16110 lt_prog_compiler_static_GCJ='-static'
16114 # All AIX code is PIC.
16115 if test "$host_cpu" = ia64; then
16116 # AIX 5 now supports IA64 processor
16117 lt_prog_compiler_static_GCJ='-Bstatic'
16122 # FIXME: we need at least 68020 code to build shared libraries, but
16123 # adding the `-m68020' flag to GCC prevents building anything better,
16125 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16128 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16129 # PIC is the default for these OSes.
16132 mingw* | pw32* | os2*)
16133 # This hack is so that the source file can tell whether it is being
16134 # built for inclusion in a dll (and should export symbols for example).
16135 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16138 darwin* | rhapsody*)
16139 # PIC is the default on this platform
16140 # Common symbols not allowed in MH_DYLIB files
16141 lt_prog_compiler_pic_GCJ='-fno-common'
16145 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16146 # Instead, we relocate shared libraries at runtime.
16150 # Just because we use GCC doesn't mean we suddenly get shared libraries
16151 # on systems that don't support them.
16152 lt_prog_compiler_can_build_shared_GCJ=no
16157 if test -d /usr/nec; then
16158 lt_prog_compiler_pic_GCJ=-Kconform_pic
16163 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16164 # not for PA HP-UX.
16170 lt_prog_compiler_pic_GCJ='-fPIC'
16176 lt_prog_compiler_pic_GCJ='-fPIC'
16180 # PORTME Check for flag to pass linker flags through the system compiler.
16183 lt_prog_compiler_wl_GCJ='-Wl,'
16184 if test "$host_cpu" = ia64; then
16185 # AIX 5 now supports IA64 processor
16186 lt_prog_compiler_static_GCJ='-Bstatic'
16188 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16192 # PIC is the default on this platform
16193 # Common symbols not allowed in MH_DYLIB files
16194 case $cc_basename in
16196 lt_prog_compiler_pic_GCJ='-qnocommon'
16197 lt_prog_compiler_wl_GCJ='-Wl,'
16202 mingw* | pw32* | os2*)
16203 # This hack is so that the source file can tell whether it is being
16204 # built for inclusion in a dll (and should export symbols for example).
16205 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16208 hpux9* | hpux10* | hpux11*)
16209 lt_prog_compiler_wl_GCJ='-Wl,'
16210 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16211 # not for PA HP-UX.
16217 lt_prog_compiler_pic_GCJ='+Z'
16220 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16221 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16224 irix5* | irix6* | nonstopux*)
16225 lt_prog_compiler_wl_GCJ='-Wl,'
16226 # PIC (with -KPIC) is the default.
16227 lt_prog_compiler_static_GCJ='-non_shared'
16231 lt_prog_compiler_pic_GCJ='-KPIC'
16232 lt_prog_compiler_static_GCJ='-Bstatic'
16235 linux* | k*bsd*-gnu)
16236 case $cc_basename in
16238 lt_prog_compiler_wl_GCJ='-Wl,'
16239 lt_prog_compiler_pic_GCJ='-KPIC'
16240 lt_prog_compiler_static_GCJ='-static'
16242 pgcc* | pgf77* | pgf90* | pgf95*)
16243 # Portland Group compilers (*not* the Pentium gcc compiler,
16244 # which looks to be a dead project)
16245 lt_prog_compiler_wl_GCJ='-Wl,'
16246 lt_prog_compiler_pic_GCJ='-fpic'
16247 lt_prog_compiler_static_GCJ='-Bstatic'
16250 lt_prog_compiler_wl_GCJ='-Wl,'
16251 # All Alpha code is PIC.
16252 lt_prog_compiler_static_GCJ='-non_shared'
16257 osf3* | osf4* | osf5*)
16258 lt_prog_compiler_wl_GCJ='-Wl,'
16259 # All OSF/1 code is PIC.
16260 lt_prog_compiler_static_GCJ='-non_shared'
16264 lt_prog_compiler_pic_GCJ='-KPIC'
16265 lt_prog_compiler_static_GCJ='-Bstatic'
16266 case $cc_basename in
16267 f77* | f90* | f95*)
16268 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16270 lt_prog_compiler_wl_GCJ='-Wl,';;
16275 lt_prog_compiler_wl_GCJ='-Qoption ld '
16276 lt_prog_compiler_pic_GCJ='-PIC'
16277 lt_prog_compiler_static_GCJ='-Bstatic'
16280 sysv4 | sysv4.2uw2* | sysv4.3*)
16281 lt_prog_compiler_wl_GCJ='-Wl,'
16282 lt_prog_compiler_pic_GCJ='-KPIC'
16283 lt_prog_compiler_static_GCJ='-Bstatic'
16287 if test -d /usr/nec ;then
16288 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16289 lt_prog_compiler_static_GCJ='-Bstatic'
16293 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16294 lt_prog_compiler_wl_GCJ='-Wl,'
16295 lt_prog_compiler_pic_GCJ='-KPIC'
16296 lt_prog_compiler_static_GCJ='-Bstatic'
16300 lt_prog_compiler_wl_GCJ='-Wl,'
16301 lt_prog_compiler_can_build_shared_GCJ=no
16305 lt_prog_compiler_pic_GCJ='-pic'
16306 lt_prog_compiler_static_GCJ='-Bstatic'
16310 lt_prog_compiler_can_build_shared_GCJ=no
16315 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16316 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16319 # Check to make sure the PIC flag actually works.
16321 if test -n "$lt_prog_compiler_pic_GCJ"; then
16323 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16324 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16325 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16326 echo $ECHO_N "(cached) $ECHO_C" >&6
16328 lt_prog_compiler_pic_works_GCJ=no
16329 ac_outfile=conftest.$ac_objext
16330 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16331 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16332 # Insert the option either (1) after the last *FLAGS variable, or
16333 # (2) before a word containing "conftest.", or (3) at the end.
16334 # Note that $ac_compile itself does not contain backslashes and begins
16335 # with a dollar sign (not a hyphen), so the echo should work correctly.
16336 # The option is referenced via a variable to avoid confusing sed.
16337 lt_compile=`echo "$ac_compile" | $SED \
16338 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16339 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16340 -e 's:$: $lt_compiler_flag:'`
16341 (eval echo "\"\$as_me:16341: $lt_compile\"" >&5)
16342 (eval "$lt_compile" 2>conftest.err)
16344 cat conftest.err >&5
16345 echo "$as_me:16345: \$? = $ac_status" >&5
16346 if (exit $ac_status) && test -s "$ac_outfile"; then
16347 # The compiler can only warn and ignore the option if not recognized
16348 # So say no if there are warnings other than the usual output.
16349 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16350 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16351 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16352 lt_prog_compiler_pic_works_GCJ=yes
16358 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16359 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16361 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16362 case $lt_prog_compiler_pic_GCJ in
16364 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16367 lt_prog_compiler_pic_GCJ=
16368 lt_prog_compiler_can_build_shared_GCJ=no
16373 # For platforms which do not support PIC, -DPIC is meaningless:
16375 lt_prog_compiler_pic_GCJ=
16378 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16383 # Check to make sure the static flag actually works.
16385 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16386 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16387 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16388 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16389 echo $ECHO_N "(cached) $ECHO_C" >&6
16391 lt_prog_compiler_static_works_GCJ=no
16392 save_LDFLAGS="$LDFLAGS"
16393 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16394 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16395 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16396 # The linker can only warn and ignore the option if not recognized
16397 # So say no if there are warnings
16398 if test -s conftest.err; then
16399 # Append any errors to the config.log.
16400 cat conftest.err 1>&5
16401 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16402 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16403 if diff conftest.exp conftest.er2 >/dev/null; then
16404 lt_prog_compiler_static_works_GCJ=yes
16407 lt_prog_compiler_static_works_GCJ=yes
16411 LDFLAGS="$save_LDFLAGS"
16414 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16415 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16417 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16420 lt_prog_compiler_static_GCJ=
16424 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16425 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16426 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16427 echo $ECHO_N "(cached) $ECHO_C" >&6
16429 lt_cv_prog_compiler_c_o_GCJ=no
16430 $rm -r conftest 2>/dev/null
16434 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16436 lt_compiler_flag="-o out/conftest2.$ac_objext"
16437 # Insert the option either (1) after the last *FLAGS variable, or
16438 # (2) before a word containing "conftest.", or (3) at the end.
16439 # Note that $ac_compile itself does not contain backslashes and begins
16440 # with a dollar sign (not a hyphen), so the echo should work correctly.
16441 lt_compile=`echo "$ac_compile" | $SED \
16442 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16443 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16444 -e 's:$: $lt_compiler_flag:'`
16445 (eval echo "\"\$as_me:16445: $lt_compile\"" >&5)
16446 (eval "$lt_compile" 2>out/conftest.err)
16448 cat out/conftest.err >&5
16449 echo "$as_me:16449: \$? = $ac_status" >&5
16450 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16452 # The compiler can only warn and ignore the option if not recognized
16453 # So say no if there are warnings
16454 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16455 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16456 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16457 lt_cv_prog_compiler_c_o_GCJ=yes
16462 # SGI C++ compiler will create directory out/ii_files/ for
16463 # template instantiation
16464 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16465 $rm out/* && rmdir out
16471 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16472 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16475 hard_links="nottested"
16476 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16477 # do not overwrite the value of need_locks provided by the user
16478 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16479 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16482 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16484 ln conftest.a conftest.b 2>&5 || hard_links=no
16485 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16486 { echo "$as_me:$LINENO: result: $hard_links" >&5
16487 echo "${ECHO_T}$hard_links" >&6; }
16488 if test "$hard_links" = no; then
16489 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16490 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16497 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16498 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16501 allow_undefined_flag_GCJ=
16502 enable_shared_with_static_runtimes_GCJ=no
16504 archive_expsym_cmds_GCJ=
16505 old_archive_From_new_cmds_GCJ=
16506 old_archive_from_expsyms_cmds_GCJ=
16507 export_dynamic_flag_spec_GCJ=
16508 whole_archive_flag_spec_GCJ=
16509 thread_safe_flag_spec_GCJ=
16510 hardcode_libdir_flag_spec_GCJ=
16511 hardcode_libdir_flag_spec_ld_GCJ=
16512 hardcode_libdir_separator_GCJ=
16513 hardcode_direct_GCJ=no
16514 hardcode_minus_L_GCJ=no
16515 hardcode_shlibpath_var_GCJ=unsupported
16516 link_all_deplibs_GCJ=unknown
16517 hardcode_automatic_GCJ=no
16519 module_expsym_cmds_GCJ=
16520 always_export_symbols_GCJ=no
16521 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16522 # include_expsyms should be a list of space-separated symbols to be *always*
16523 # included in the symbol list
16524 include_expsyms_GCJ=
16525 # exclude_expsyms can be an extended regexp of symbols to exclude
16526 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16527 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16528 # as well as any symbol that contains `d'.
16529 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16530 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16531 # platforms (ab)use it in PIC code, but their linkers get confused if
16532 # the symbol is explicitly referenced. Since portable code cannot
16533 # rely on this symbol name, it's probably fine to never include it in
16534 # preloaded symbol tables.
16535 extract_expsyms_cmds=
16536 # Just being paranoid about ensuring that cc_basename is set.
16537 for cc_temp in $compiler""; do
16539 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16540 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16545 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16548 cygwin* | mingw* | pw32*)
16549 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16550 # When not using gcc, we currently assume that we are using
16551 # Microsoft Visual C++.
16552 if test "$GCC" != yes; then
16557 # we just hope/assume this is gcc and not c89 (= MSVC++)
16566 if test "$with_gnu_ld" = yes; then
16567 # If archive_cmds runs LD, not CC, wlarc should be empty
16570 # Set some defaults for GNU ld with shared library support. These
16571 # are reset later if shared libraries are not supported. Putting them
16572 # here allows them to be overridden if necessary.
16573 runpath_var=LD_RUN_PATH
16574 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16575 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16576 # ancient GNU ld didn't support --whole-archive et. al.
16577 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16578 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16580 whole_archive_flag_spec_GCJ=
16582 supports_anon_versioning=no
16583 case `$LD -v 2>/dev/null` in
16584 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16585 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16586 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16587 *\ 2.11.*) ;; # other 2.11 versions
16588 *) supports_anon_versioning=yes ;;
16591 # See if GNU ld supports shared libraries.
16593 aix3* | aix4* | aix5*)
16594 # On AIX/PPC, the GNU linker is very broken
16595 if test "$host_cpu" != ia64; then
16599 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16600 *** to be unable to reliably create shared libraries on AIX.
16601 *** Therefore, libtool is disabling shared libraries support. If you
16602 *** really care for shared libraries, you may want to modify your PATH
16603 *** so that a non-GNU linker is found, and then restart.
16610 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)'
16611 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16612 hardcode_minus_L_GCJ=yes
16614 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16615 # that the semantics of dynamic libraries on AmigaOS, at least up
16616 # to version 4, is to share data among multiple programs linked
16617 # with the same dynamic library. Since this doesn't match the
16618 # behavior of shared libraries on other platforms, we can't use
16624 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16625 allow_undefined_flag_GCJ=unsupported
16626 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16627 # support --undefined. This deserves some investigation. FIXME
16628 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16634 cygwin* | mingw* | pw32*)
16635 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16636 # as there is no search path for DLLs.
16637 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16638 allow_undefined_flag_GCJ=unsupported
16639 always_export_symbols_GCJ=no
16640 enable_shared_with_static_runtimes_GCJ=yes
16641 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16643 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16644 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16645 # If the export-symbols file already is a .def file (1st line
16646 # is EXPORTS), use it as is; otherwise, prepend...
16647 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16648 cp $export_symbols $output_objdir/$soname.def;
16650 echo EXPORTS > $output_objdir/$soname.def;
16651 cat $export_symbols >> $output_objdir/$soname.def;
16653 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16660 hardcode_direct_GCJ=no
16661 hardcode_shlibpath_var_GCJ=no
16662 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16663 export_dynamic_flag_spec_GCJ='${wl}-E'
16664 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16665 # Instead, shared libraries are loaded at an image base (0x10000000 by
16666 # default) and relocated if they conflict, which is a slow very memory
16667 # consuming and fragmenting process. To avoid this, we pick a random,
16668 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16669 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16670 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'
16671 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'
16674 linux* | k*bsd*-gnu)
16675 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16677 case $cc_basename,$host_cpu in
16678 pgcc*) # Portland Group C compiler
16679 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'
16680 tmp_addflag=' $pic_flag'
16682 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16683 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'
16684 tmp_addflag=' $pic_flag -Mnomain' ;;
16685 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16686 tmp_addflag=' -i_dynamic' ;;
16687 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16688 tmp_addflag=' -i_dynamic -nofor_main' ;;
16689 ifc* | ifort*) # Intel Fortran compiler
16690 tmp_addflag=' -nofor_main' ;;
16692 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16694 if test $supports_anon_versioning = yes; then
16695 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16696 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16697 $echo "local: *; };" >> $output_objdir/$libname.ver~
16698 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16700 link_all_deplibs_GCJ=no
16706 netbsd* | netbsdelf*-gnu)
16707 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16708 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16711 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16712 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16717 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16721 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16722 *** create shared libraries on Solaris systems. Therefore, libtool
16723 *** is disabling shared libraries support. We urge you to upgrade GNU
16724 *** binutils to release 2.9.1 or newer. Another option is to modify
16725 *** your PATH or compiler configuration so that the native linker is
16726 *** used, and then restart.
16729 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16730 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16731 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16737 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16738 case `$LD -v 2>&1` in
16739 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16743 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16744 *** reliably create shared libraries on SCO systems. Therefore, libtool
16745 *** is disabling shared libraries support. We urge you to upgrade GNU
16746 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16747 *** your PATH or compiler configuration so that the native linker is
16748 *** used, and then restart.
16753 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16754 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16755 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16756 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16765 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16767 hardcode_direct_GCJ=yes
16768 hardcode_shlibpath_var_GCJ=no
16772 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16773 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16774 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16781 if test "$ld_shlibs_GCJ" = no; then
16783 hardcode_libdir_flag_spec_GCJ=
16784 export_dynamic_flag_spec_GCJ=
16785 whole_archive_flag_spec_GCJ=
16788 # PORTME fill in a description of your system's linker (not GNU ld)
16791 allow_undefined_flag_GCJ=unsupported
16792 always_export_symbols_GCJ=yes
16793 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'
16794 # Note: this linker hardcodes the directories in LIBPATH if there
16795 # are no directories specified by -L.
16796 hardcode_minus_L_GCJ=yes
16797 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16798 # Neither direct hardcoding nor static linking is supported with a
16800 hardcode_direct_GCJ=unsupported
16805 if test "$host_cpu" = ia64; then
16806 # On IA64, the linker does run time linking by default, so we don't
16807 # have to do anything special.
16808 aix_use_runtimelinking=no
16809 exp_sym_flag='-Bexport'
16812 # If we're using GNU nm, then we don't want the "-C" option.
16813 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16814 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16815 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'
16817 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'
16819 aix_use_runtimelinking=no
16821 # Test if we are trying to use run time linking or normal
16822 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16823 # need to do runtime linking.
16824 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16825 for ld_flag in $LDFLAGS; do
16826 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16827 aix_use_runtimelinking=yes
16834 exp_sym_flag='-bexport'
16835 no_entry_flag='-bnoentry'
16838 # When large executables or shared objects are built, AIX ld can
16839 # have problems creating the table of contents. If linking a library
16840 # or program results in "error TOC overflow" add -mminimal-toc to
16841 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16842 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16844 archive_cmds_GCJ=''
16845 hardcode_direct_GCJ=yes
16846 hardcode_libdir_separator_GCJ=':'
16847 link_all_deplibs_GCJ=yes
16849 if test "$GCC" = yes; then
16850 case $host_os in aix4.[012]|aix4.[012].*)
16851 # We only want to do this on AIX 4.2 and lower, the check
16852 # below for broken collect2 doesn't work under 4.3+
16853 collect2name=`${CC} -print-prog-name=collect2`
16854 if test -f "$collect2name" && \
16855 strings "$collect2name" | grep resolve_lib_name >/dev/null
16857 # We have reworked collect2
16858 hardcode_direct_GCJ=yes
16860 # We have old collect2
16861 hardcode_direct_GCJ=unsupported
16862 # It fails to find uninstalled libraries when the uninstalled
16863 # path is not listed in the libpath. Setting hardcode_minus_L
16864 # to unsupported forces relinking
16865 hardcode_minus_L_GCJ=yes
16866 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16867 hardcode_libdir_separator_GCJ=
16871 shared_flag='-shared'
16872 if test "$aix_use_runtimelinking" = yes; then
16873 shared_flag="$shared_flag "'${wl}-G'
16877 if test "$host_cpu" = ia64; then
16878 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16879 # chokes on -Wl,-G. The following line is correct:
16882 if test "$aix_use_runtimelinking" = yes; then
16883 shared_flag='${wl}-G'
16885 shared_flag='${wl}-bM:SRE'
16890 # It seems that -bexpall does not export symbols beginning with
16891 # underscore (_), so it is better to generate a list of symbols to export.
16892 always_export_symbols_GCJ=yes
16893 if test "$aix_use_runtimelinking" = yes; then
16894 # Warning - without using the other runtime loading flags (-brtl),
16895 # -berok will link without error, but may produce a broken library.
16896 allow_undefined_flag_GCJ='-berok'
16897 # Determine the default libpath from the value encoded in an empty executable.
16898 cat >conftest.$ac_ext <<_ACEOF
16901 cat confdefs.h >>conftest.$ac_ext
16902 cat >>conftest.$ac_ext <<_ACEOF
16903 /* end confdefs.h. */
16913 rm -f conftest.$ac_objext conftest$ac_exeext
16914 if { (ac_try="$ac_link"
16915 case "(($ac_try" in
16916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16917 *) ac_try_echo=$ac_try;;
16919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16920 (eval "$ac_link") 2>conftest.er1
16922 grep -v '^ *+' conftest.er1 >conftest.err
16924 cat conftest.err >&5
16925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926 (exit $ac_status); } && {
16927 test -z "$ac_c_werror_flag" ||
16928 test ! -s conftest.err
16929 } && test -s conftest$ac_exeext &&
16930 $as_test_x conftest$ac_exeext; then
16932 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16934 # Check for a 64-bit object if we didn't find anything.
16935 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16938 echo "$as_me: failed program was:" >&5
16939 sed 's/^/| /' conftest.$ac_ext >&5
16944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16945 conftest$ac_exeext conftest.$ac_ext
16946 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16948 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16949 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"
16951 if test "$host_cpu" = ia64; then
16952 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16953 allow_undefined_flag_GCJ="-z nodefs"
16954 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"
16956 # Determine the default libpath from the value encoded in an empty executable.
16957 cat >conftest.$ac_ext <<_ACEOF
16960 cat confdefs.h >>conftest.$ac_ext
16961 cat >>conftest.$ac_ext <<_ACEOF
16962 /* end confdefs.h. */
16972 rm -f conftest.$ac_objext conftest$ac_exeext
16973 if { (ac_try="$ac_link"
16974 case "(($ac_try" in
16975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16976 *) ac_try_echo=$ac_try;;
16978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16979 (eval "$ac_link") 2>conftest.er1
16981 grep -v '^ *+' conftest.er1 >conftest.err
16983 cat conftest.err >&5
16984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985 (exit $ac_status); } && {
16986 test -z "$ac_c_werror_flag" ||
16987 test ! -s conftest.err
16988 } && test -s conftest$ac_exeext &&
16989 $as_test_x conftest$ac_exeext; then
16991 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16993 # Check for a 64-bit object if we didn't find anything.
16994 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16997 echo "$as_me: failed program was:" >&5
16998 sed 's/^/| /' conftest.$ac_ext >&5
17003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17004 conftest$ac_exeext conftest.$ac_ext
17005 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17007 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17008 # Warning - without using the other run time loading flags,
17009 # -berok will link without error, but may produce a broken library.
17010 no_undefined_flag_GCJ=' ${wl}-bernotok'
17011 allow_undefined_flag_GCJ=' ${wl}-berok'
17012 # Exported symbols can be pulled into shared objects from archives
17013 whole_archive_flag_spec_GCJ='$convenience'
17014 archive_cmds_need_lc_GCJ=yes
17015 # This is similar to how AIX traditionally builds its shared libraries.
17016 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'
17022 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)'
17023 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17024 hardcode_minus_L_GCJ=yes
17025 # see comment about different semantics on the GNU ld section
17030 export_dynamic_flag_spec_GCJ=-rdynamic
17033 cygwin* | mingw* | pw32*)
17034 # When not using gcc, we currently assume that we are using
17035 # Microsoft Visual C++.
17036 # hardcode_libdir_flag_spec is actually meaningless, as there is
17037 # no search path for DLLs.
17038 hardcode_libdir_flag_spec_GCJ=' '
17039 allow_undefined_flag_GCJ=unsupported
17040 # Tell ltmain to make .lib files, not .a files.
17042 # Tell ltmain to make .dll files, not .so files.
17044 # FIXME: Setting linknames here is a bad hack.
17045 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17046 # The linker will automatically build a .lib file if we build a DLL.
17047 old_archive_From_new_cmds_GCJ='true'
17048 # FIXME: Should let the user specify the lib program.
17049 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17050 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17051 enable_shared_with_static_runtimes_GCJ=yes
17054 darwin* | rhapsody*)
17056 rhapsody* | darwin1.[012])
17057 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17060 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17061 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17063 case ${MACOSX_DEPLOYMENT_TARGET} in
17065 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17068 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17074 archive_cmds_need_lc_GCJ=no
17075 hardcode_direct_GCJ=no
17076 hardcode_automatic_GCJ=yes
17077 hardcode_shlibpath_var_GCJ=unsupported
17078 whole_archive_flag_spec_GCJ=''
17079 link_all_deplibs_GCJ=yes
17080 if test "$GCC" = yes ; then
17081 output_verbose_link_cmd='echo'
17082 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17083 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17084 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17085 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}'
17086 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}'
17088 case $cc_basename in
17090 output_verbose_link_cmd='echo'
17091 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17092 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17093 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17094 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17095 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}'
17105 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17106 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17107 hardcode_shlibpath_var_GCJ=no
17114 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17115 # support. Future versions do this automatically, but an explicit c++rt0.o
17116 # does not break anything, and helps significantly (at the cost of a little
17119 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17120 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17121 hardcode_direct_GCJ=yes
17122 hardcode_shlibpath_var_GCJ=no
17125 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17127 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17128 hardcode_direct_GCJ=yes
17129 hardcode_minus_L_GCJ=yes
17130 hardcode_shlibpath_var_GCJ=no
17133 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17134 freebsd* | dragonfly*)
17135 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17136 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17137 hardcode_direct_GCJ=yes
17138 hardcode_shlibpath_var_GCJ=no
17142 if test "$GCC" = yes; then
17143 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'
17145 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'
17147 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17148 hardcode_libdir_separator_GCJ=:
17149 hardcode_direct_GCJ=yes
17151 # hardcode_minus_L: Not really in the search PATH,
17152 # but as the default location of the library.
17153 hardcode_minus_L_GCJ=yes
17154 export_dynamic_flag_spec_GCJ='${wl}-E'
17158 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17159 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17161 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17163 if test "$with_gnu_ld" = no; then
17164 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17165 hardcode_libdir_separator_GCJ=:
17167 hardcode_direct_GCJ=yes
17168 export_dynamic_flag_spec_GCJ='${wl}-E'
17170 # hardcode_minus_L: Not really in the search PATH,
17171 # but as the default location of the library.
17172 hardcode_minus_L_GCJ=yes
17177 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17180 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17183 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17186 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17192 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17195 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17198 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17202 if test "$with_gnu_ld" = no; then
17203 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17204 hardcode_libdir_separator_GCJ=:
17208 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17209 hardcode_direct_GCJ=no
17210 hardcode_shlibpath_var_GCJ=no
17213 hardcode_direct_GCJ=yes
17214 export_dynamic_flag_spec_GCJ='${wl}-E'
17216 # hardcode_minus_L: Not really in the search PATH,
17217 # but as the default location of the library.
17218 hardcode_minus_L_GCJ=yes
17224 irix5* | irix6* | nonstopux*)
17225 if test "$GCC" = yes; then
17226 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'
17228 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'
17229 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17231 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17232 hardcode_libdir_separator_GCJ=:
17233 link_all_deplibs_GCJ=yes
17236 netbsd* | netbsdelf*-gnu)
17237 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17238 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17240 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17242 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17243 hardcode_direct_GCJ=yes
17244 hardcode_shlibpath_var_GCJ=no
17248 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17249 hardcode_direct_GCJ=yes
17250 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17251 hardcode_libdir_separator_GCJ=:
17252 hardcode_shlibpath_var_GCJ=no
17256 hardcode_direct_GCJ=yes
17257 hardcode_shlibpath_var_GCJ=no
17258 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17259 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17260 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17261 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17262 export_dynamic_flag_spec_GCJ='${wl}-E'
17265 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17266 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17267 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17270 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17271 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17278 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17279 hardcode_minus_L_GCJ=yes
17280 allow_undefined_flag_GCJ=unsupported
17281 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'
17282 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17286 if test "$GCC" = yes; then
17287 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17288 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'
17290 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17291 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'
17293 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17294 hardcode_libdir_separator_GCJ=:
17297 osf4* | osf5*) # as osf3* with the addition of -msym flag
17298 if test "$GCC" = yes; then
17299 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17300 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'
17301 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17303 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17304 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'
17305 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~
17306 $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'
17308 # Both c and cxx compiler support -rpath directly
17309 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17311 hardcode_libdir_separator_GCJ=:
17315 no_undefined_flag_GCJ=' -z text'
17316 if test "$GCC" = yes; then
17318 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17319 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17320 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17323 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17324 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17325 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17327 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17328 hardcode_shlibpath_var_GCJ=no
17330 solaris2.[0-5] | solaris2.[0-5].*) ;;
17332 # The compiler driver will combine linker options so we
17333 # cannot just pass the convience library names through
17334 # without $wl, iff we do not link with $LD.
17335 # Luckily, gcc supports the same syntax we need for Sun Studio.
17336 # Supported since Solaris 2.6 (maybe 2.5.1?)
17339 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17341 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17344 link_all_deplibs_GCJ=yes
17348 if test "x$host_vendor" = xsequent; then
17349 # Use $CC to link under sequent, because it throws in some extra .o
17350 # files that make .init and .fini sections work.
17351 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17353 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17355 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17356 hardcode_direct_GCJ=yes
17357 hardcode_minus_L_GCJ=yes
17358 hardcode_shlibpath_var_GCJ=no
17362 case $host_vendor in
17364 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17365 hardcode_direct_GCJ=yes # is this really true???
17368 ## LD is ld it makes a PLAMLIB
17369 ## CC just makes a GrossModule.
17370 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17371 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17372 hardcode_direct_GCJ=no
17375 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17376 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17379 runpath_var='LD_RUN_PATH'
17380 hardcode_shlibpath_var_GCJ=no
17384 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17385 hardcode_shlibpath_var_GCJ=no
17386 export_dynamic_flag_spec_GCJ='-Bexport'
17390 if test -d /usr/nec; then
17391 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17392 hardcode_shlibpath_var_GCJ=no
17393 runpath_var=LD_RUN_PATH
17394 hardcode_runpath_var=yes
17399 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17400 no_undefined_flag_GCJ='${wl}-z,text'
17401 archive_cmds_need_lc_GCJ=no
17402 hardcode_shlibpath_var_GCJ=no
17403 runpath_var='LD_RUN_PATH'
17405 if test "$GCC" = yes; then
17406 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17407 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17409 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17410 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17414 sysv5* | sco3.2v5* | sco5v6*)
17415 # Note: We can NOT use -z defs as we might desire, because we do not
17416 # link with -lc, and that would cause any symbols used from libc to
17417 # always be unresolved, which means just about no library would
17418 # ever link correctly. If we're not using GNU ld we use -z text
17419 # though, which does catch some bad symbols but isn't as heavy-handed
17421 no_undefined_flag_GCJ='${wl}-z,text'
17422 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17423 archive_cmds_need_lc_GCJ=no
17424 hardcode_shlibpath_var_GCJ=no
17425 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17426 hardcode_libdir_separator_GCJ=':'
17427 link_all_deplibs_GCJ=yes
17428 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17429 runpath_var='LD_RUN_PATH'
17431 if test "$GCC" = yes; then
17432 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17433 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17435 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17436 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17441 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17442 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17443 hardcode_shlibpath_var_GCJ=no
17452 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17453 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17454 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17457 # Do we need to explicitly link libc?
17459 case "x$archive_cmds_need_lc_GCJ" in
17461 # Assume -lc should be added
17462 archive_cmds_need_lc_GCJ=yes
17464 if test "$enable_shared" = yes && test "$GCC" = yes; then
17465 case $archive_cmds_GCJ in
17467 # FIXME: we may have to deal with multi-command sequences.
17470 # Test whether the compiler implicitly links with -lc since on some
17471 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17472 # to ld, don't add -lc before -lgcc.
17473 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17474 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17476 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17479 (eval $ac_compile) 2>&5
17481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482 (exit $ac_status); } 2>conftest.err; then
17485 libobjs=conftest.$ac_objext
17487 wl=$lt_prog_compiler_wl_GCJ
17488 pic_flag=$lt_prog_compiler_pic_GCJ
17494 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17495 allow_undefined_flag_GCJ=
17496 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17497 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500 (exit $ac_status); }
17502 archive_cmds_need_lc_GCJ=no
17504 archive_cmds_need_lc_GCJ=yes
17506 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17508 cat conftest.err 1>&5
17511 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17512 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17519 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17520 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17521 library_names_spec=
17522 libname_spec='lib$name'
17526 postuninstall_cmds=
17530 shlibpath_overrides_runpath=unknown
17532 dynamic_linker="$host_os ld.so"
17533 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17534 if test "$GCC" = yes; then
17535 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17536 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17537 # if the path contains ";" then we assume it to be the separator
17538 # otherwise default to the standard path separator (i.e. ":") - it is
17539 # assumed that no part of a normal pathname contains ";" but that should
17540 # okay in the real world where ";" in dirpaths is itself problematic.
17541 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17543 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17546 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17548 need_lib_prefix=unknown
17549 hardcode_into_libs=no
17551 # when you set need_version to no, make sure it does not cause -set_version
17552 # flags to be left without arguments
17553 need_version=unknown
17558 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17559 shlibpath_var=LIBPATH
17561 # AIX 3 has no versioning support, so we append a major version to the name.
17562 soname_spec='${libname}${release}${shared_ext}$major'
17569 hardcode_into_libs=yes
17570 if test "$host_cpu" = ia64; then
17571 # AIX 5 supports IA64
17572 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17573 shlibpath_var=LD_LIBRARY_PATH
17575 # With GCC up to 2.95.x, collect2 would create an import file
17576 # for dependence libraries. The import file would start with
17577 # the line `#! .'. This would cause the generated library to
17578 # depend on `.', always an invalid library. This was fixed in
17579 # development snapshots of GCC prior to 3.0.
17581 aix4 | aix4.[01] | aix4.[01].*)
17582 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17584 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17587 can_build_shared=no
17591 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17592 # soname into executable. Probably we can add versioning support to
17593 # collect2, so additional links can be useful in future.
17594 if test "$aix_use_runtimelinking" = yes; then
17595 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17596 # instead of lib<name>.a to let people know that these are not
17597 # typical AIX shared libraries.
17598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17600 # We preserve .a as extension for shared libraries through AIX4.2
17601 # and later when we are not doing run time linking.
17602 library_names_spec='${libname}${release}.a $libname.a'
17603 soname_spec='${libname}${release}${shared_ext}$major'
17605 shlibpath_var=LIBPATH
17610 library_names_spec='$libname.ixlibrary $libname.a'
17611 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17612 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'
17616 library_names_spec='${libname}${shared_ext}'
17617 dynamic_linker="$host_os ld.so"
17618 shlibpath_var=LIBRARY_PATH
17624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17625 soname_spec='${libname}${release}${shared_ext}$major'
17626 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17627 shlibpath_var=LD_LIBRARY_PATH
17628 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17629 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17630 # the default ld.so.conf also contains /usr/contrib/lib and
17631 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17632 # libtool to hard-code these into programs
17635 cygwin* | mingw* | pw32*)
17636 version_type=windows
17641 case $GCC,$host_os in
17642 yes,cygwin* | yes,mingw* | yes,pw32*)
17643 library_names_spec='$libname.dll.a'
17644 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17645 postinstall_cmds='base_file=`basename \${file}`~
17646 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17647 dldir=$destdir/`dirname \$dlpath`~
17648 test -d \$dldir || mkdir -p \$dldir~
17649 $install_prog $dir/$dlname \$dldir/$dlname~
17650 chmod a+x \$dldir/$dlname'
17651 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17652 dlpath=$dir/\$dldll~
17654 shlibpath_overrides_runpath=yes
17658 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17659 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17660 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17663 # MinGW DLLs use traditional 'lib' prefix
17664 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17665 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17666 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17667 # It is most probably a Windows format PATH printed by
17668 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17669 # path with ; separators, and with drive letters. We can handle the
17670 # drive letters (cygwin fileutils understands them), so leave them,
17671 # especially as we might pass files found there to a mingw objdump,
17672 # which wouldn't understand a cygwinified path. Ahh.
17673 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17675 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17679 # pw32 DLLs use 'pw' prefix rather than 'lib'
17680 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17686 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17689 dynamic_linker='Win32 ld.exe'
17690 # FIXME: first we should search . and the directory the executable is in
17694 darwin* | rhapsody*)
17695 dynamic_linker="$host_os dyld"
17696 version_type=darwin
17699 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17700 soname_spec='${libname}${release}${major}$shared_ext'
17701 shlibpath_overrides_runpath=yes
17702 shlibpath_var=DYLD_LIBRARY_PATH
17703 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17704 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17705 if test "$GCC" = yes; then
17706 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17708 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17710 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17718 soname_spec='${libname}${release}${shared_ext}$major'
17719 shlibpath_var=LD_LIBRARY_PATH
17726 freebsd* | dragonfly*)
17727 # DragonFly does not have aout. When/if they implement a new
17728 # versioning mechanism, adjust this.
17729 if test -x /usr/bin/objformat; then
17730 objformat=`/usr/bin/objformat`
17733 freebsd[123]*) objformat=aout ;;
17734 *) objformat=elf ;;
17737 version_type=freebsd-$objformat
17738 case $version_type in
17740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17745 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17749 shlibpath_var=LD_LIBRARY_PATH
17752 shlibpath_overrides_runpath=yes
17754 freebsd3.[01]* | freebsdelf3.[01]*)
17755 shlibpath_overrides_runpath=yes
17756 hardcode_into_libs=yes
17758 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17759 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17760 shlibpath_overrides_runpath=no
17761 hardcode_into_libs=yes
17763 freebsd*) # from 4.6 on
17764 shlibpath_overrides_runpath=yes
17765 hardcode_into_libs=yes
17774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17775 soname_spec='${libname}${release}${shared_ext}$major'
17776 shlibpath_var=LD_LIBRARY_PATH
17777 hardcode_into_libs=yes
17780 hpux9* | hpux10* | hpux11*)
17781 # Give a soname corresponding to the major version so that dld.sl refuses to
17782 # link against other versions.
17789 hardcode_into_libs=yes
17790 dynamic_linker="$host_os dld.so"
17791 shlibpath_var=LD_LIBRARY_PATH
17792 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17794 soname_spec='${libname}${release}${shared_ext}$major'
17795 if test "X$HPUX_IA64_MODE" = X32; then
17796 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17798 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17800 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17804 hardcode_into_libs=yes
17805 dynamic_linker="$host_os dld.sl"
17806 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17807 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17809 soname_spec='${libname}${release}${shared_ext}$major'
17810 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17811 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17815 dynamic_linker="$host_os dld.sl"
17816 shlibpath_var=SHLIB_PATH
17817 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17819 soname_spec='${libname}${release}${shared_ext}$major'
17822 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17823 postinstall_cmds='chmod 555 $lib'
17830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17831 soname_spec='${libname}${release}${shared_ext}$major'
17832 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17833 shlibpath_var=LD_LIBRARY_PATH
17834 shlibpath_overrides_runpath=no
17835 hardcode_into_libs=yes
17838 irix5* | irix6* | nonstopux*)
17840 nonstopux*) version_type=nonstopux ;;
17842 if test "$lt_cv_prog_gnu_ld" = yes; then
17850 soname_spec='${libname}${release}${shared_ext}$major'
17851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17853 irix5* | nonstopux*)
17854 libsuff= shlibsuff=
17857 case $LD in # libtool.m4 will add one of these switches to LD
17858 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17859 libsuff= shlibsuff= libmagic=32-bit;;
17860 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17861 libsuff=32 shlibsuff=N32 libmagic=N32;;
17862 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17863 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17864 *) libsuff= shlibsuff= libmagic=never-match;;
17868 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17869 shlibpath_overrides_runpath=no
17870 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17871 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17872 hardcode_into_libs=yes
17875 # No shared lib support for Linux oldld, aout, or coff.
17876 linux*oldld* | linux*aout* | linux*coff*)
17880 # This must be Linux ELF.
17881 linux* | k*bsd*-gnu)
17885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17886 soname_spec='${libname}${release}${shared_ext}$major'
17887 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17888 shlibpath_var=LD_LIBRARY_PATH
17889 shlibpath_overrides_runpath=no
17890 # This implies no fast_install, which is unacceptable.
17891 # Some rework will be needed to allow for fast_install
17892 # before this can be enabled.
17893 hardcode_into_libs=yes
17895 # Append ld.so.conf contents to the search path
17896 if test -f /etc/ld.so.conf; then
17897 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17898 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17901 # We used to test for /lib/ld.so.1 and disable shared libraries on
17902 # powerpc, because MkLinux only supported shared libraries with the
17903 # GNU dynamic linker. Since this was broken with cross compilers,
17904 # most powerpc-linux boxes support dynamic linking these days and
17905 # people can always --disable-shared, the test was removed, and we
17906 # assume the GNU/Linux dynamic linker is in use.
17907 dynamic_linker='GNU/Linux ld.so'
17914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17915 soname_spec='${libname}${release}${shared_ext}$major'
17916 shlibpath_var=LD_LIBRARY_PATH
17917 shlibpath_overrides_runpath=no
17918 hardcode_into_libs=yes
17919 dynamic_linker='NetBSD ld.elf_so'
17926 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17928 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17929 dynamic_linker='NetBSD (a.out) ld.so'
17931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17932 soname_spec='${libname}${release}${shared_ext}$major'
17933 dynamic_linker='NetBSD ld.elf_so'
17935 shlibpath_var=LD_LIBRARY_PATH
17936 shlibpath_overrides_runpath=yes
17937 hardcode_into_libs=yes
17942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17943 shlibpath_var=LD_LIBRARY_PATH
17944 shlibpath_overrides_runpath=yes
17951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17952 soname_spec='${libname}${release}${shared_ext}$major'
17953 shlibpath_var=LD_LIBRARY_PATH
17954 shlibpath_overrides_runpath=yes
17959 sys_lib_dlsearch_path_spec="/usr/lib"
17961 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17963 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17964 *) need_version=no ;;
17966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17967 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17968 shlibpath_var=LD_LIBRARY_PATH
17969 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17971 openbsd2.[89] | openbsd2.[89].*)
17972 shlibpath_overrides_runpath=no
17975 shlibpath_overrides_runpath=yes
17979 shlibpath_overrides_runpath=yes
17984 libname_spec='$name'
17987 library_names_spec='$libname${shared_ext} $libname.a'
17988 dynamic_linker='OS/2 ld.exe'
17989 shlibpath_var=LIBPATH
17992 osf3* | osf4* | osf5*)
17996 soname_spec='${libname}${release}${shared_ext}$major'
17997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17998 shlibpath_var=LD_LIBRARY_PATH
17999 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18000 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18008 soname_spec='${libname}${release}${shared_ext}$major'
18009 shlibpath_var=LD_LIBRARY_PATH
18010 shlibpath_overrides_runpath=yes
18011 hardcode_into_libs=yes
18012 # ldd complains unless libraries are executable
18013 postinstall_cmds='chmod +x $lib'
18018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18019 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18020 shlibpath_var=LD_LIBRARY_PATH
18021 shlibpath_overrides_runpath=yes
18022 if test "$with_gnu_ld" = yes; then
18030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18031 soname_spec='${libname}${release}${shared_ext}$major'
18032 shlibpath_var=LD_LIBRARY_PATH
18033 case $host_vendor in
18035 shlibpath_overrides_runpath=no
18037 export_dynamic_flag_spec='${wl}-Blargedynsym'
18038 runpath_var=LD_RUN_PATH
18046 shlibpath_overrides_runpath=no
18047 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18053 if test -d /usr/nec ;then
18055 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18056 soname_spec='$libname${shared_ext}.$major'
18057 shlibpath_var=LD_LIBRARY_PATH
18061 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18062 version_type=freebsd-elf
18065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18066 soname_spec='${libname}${release}${shared_ext}$major'
18067 shlibpath_var=LD_LIBRARY_PATH
18068 hardcode_into_libs=yes
18069 if test "$with_gnu_ld" = yes; then
18070 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18071 shlibpath_overrides_runpath=no
18073 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18074 shlibpath_overrides_runpath=yes
18077 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18081 sys_lib_dlsearch_path_spec='/usr/lib'
18086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18087 soname_spec='${libname}${release}${shared_ext}$major'
18088 shlibpath_var=LD_LIBRARY_PATH
18095 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18096 echo "${ECHO_T}$dynamic_linker" >&6; }
18097 test "$dynamic_linker" = no && can_build_shared=no
18099 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18100 if test "$GCC" = yes; then
18101 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18104 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18105 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18106 hardcode_action_GCJ=
18107 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18108 test -n "$runpath_var_GCJ" || \
18109 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18111 # We can hardcode non-existant directories.
18112 if test "$hardcode_direct_GCJ" != no &&
18113 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18114 # have to relink, otherwise we might link with an installed library
18115 # when we should be linking with a yet-to-be-installed one
18116 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18117 test "$hardcode_minus_L_GCJ" != no; then
18118 # Linking always hardcodes the temporary library directory.
18119 hardcode_action_GCJ=relink
18121 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18122 hardcode_action_GCJ=immediate
18125 # We cannot hardcode anything, or else we can only hardcode existing
18127 hardcode_action_GCJ=unsupported
18129 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18130 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18132 if test "$hardcode_action_GCJ" = relink; then
18133 # Fast installation is not supported
18134 enable_fast_install=no
18135 elif test "$shlibpath_overrides_runpath" = yes ||
18136 test "$enable_shared" = no; then
18137 # Fast installation is not necessary
18138 enable_fast_install=needless
18142 # The else clause should only fire when bootstrapping the
18143 # libtool distribution, otherwise you forgot to ship ltmain.sh
18144 # with your package, and you will get complaints that there are
18145 # no rules to generate ltmain.sh.
18146 if test -f "$ltmain"; then
18147 # See if we are running on zsh, and set the options which allow our commands through
18148 # without removal of \ escapes.
18149 if test -n "${ZSH_VERSION+set}" ; then
18150 setopt NO_GLOB_SUBST
18152 # Now quote all the things that may contain metacharacters while being
18153 # careful not to overquote the AC_SUBSTed values. We take copies of the
18154 # variables and quote the copies for generation of the libtool script.
18155 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18157 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18158 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18159 deplibs_check_method reload_flag reload_cmds need_locks \
18160 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18161 lt_cv_sys_global_symbol_to_c_name_address \
18162 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18163 old_postinstall_cmds old_postuninstall_cmds \
18167 lt_prog_compiler_wl_GCJ \
18168 lt_prog_compiler_pic_GCJ \
18169 lt_prog_compiler_static_GCJ \
18170 lt_prog_compiler_no_builtin_flag_GCJ \
18171 export_dynamic_flag_spec_GCJ \
18172 thread_safe_flag_spec_GCJ \
18173 whole_archive_flag_spec_GCJ \
18174 enable_shared_with_static_runtimes_GCJ \
18175 old_archive_cmds_GCJ \
18176 old_archive_from_new_cmds_GCJ \
18177 predep_objects_GCJ \
18178 postdep_objects_GCJ \
18181 compiler_lib_search_path_GCJ \
18183 archive_expsym_cmds_GCJ \
18184 postinstall_cmds_GCJ \
18185 postuninstall_cmds_GCJ \
18186 old_archive_from_expsyms_cmds_GCJ \
18187 allow_undefined_flag_GCJ \
18188 no_undefined_flag_GCJ \
18189 export_symbols_cmds_GCJ \
18190 hardcode_libdir_flag_spec_GCJ \
18191 hardcode_libdir_flag_spec_ld_GCJ \
18192 hardcode_libdir_separator_GCJ \
18193 hardcode_automatic_GCJ \
18195 module_expsym_cmds_GCJ \
18196 lt_cv_prog_compiler_c_o_GCJ \
18197 exclude_expsyms_GCJ \
18198 include_expsyms_GCJ; do
18201 old_archive_cmds_GCJ | \
18202 old_archive_from_new_cmds_GCJ | \
18203 archive_cmds_GCJ | \
18204 archive_expsym_cmds_GCJ | \
18205 module_cmds_GCJ | \
18206 module_expsym_cmds_GCJ | \
18207 old_archive_from_expsyms_cmds_GCJ | \
18208 export_symbols_cmds_GCJ | \
18209 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18210 postinstall_cmds | postuninstall_cmds | \
18211 old_postinstall_cmds | old_postuninstall_cmds | \
18212 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18213 # Double-quote double-evaled strings.
18214 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18217 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18223 *'\$0 --fallback-echo"')
18224 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18230 cat <<__EOF__ >> "$cfgfile"
18231 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18233 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18235 # Shell to use when invoking shell scripts.
18238 # Whether or not to build shared libraries.
18239 build_libtool_libs=$enable_shared
18241 # Whether or not to build static libraries.
18242 build_old_libs=$enable_static
18244 # Whether or not to add -lc for building shared libraries.
18245 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18247 # Whether or not to disallow shared libs when runtime libs are static
18248 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18250 # Whether or not to optimize for fast installation.
18251 fast_install=$enable_fast_install
18254 host_alias=$host_alias
18258 # The build system.
18259 build_alias=$build_alias
18263 # An echo program that does not interpret backslashes.
18268 AR_FLAGS=$lt_AR_FLAGS
18273 # LTCC compiler flags.
18274 LTCFLAGS=$lt_LTCFLAGS
18276 # A language-specific compiler.
18277 CC=$lt_compiler_GCJ
18279 # Is the compiler the GNU C compiler?
18285 # The linker used to build libraries.
18288 # Whether we need hard or soft links.
18291 # A BSD-compatible nm program.
18294 # A symbol stripping program
18297 # Used to examine libraries when file_magic_cmd begins "file"
18298 MAGIC_CMD=$MAGIC_CMD
18300 # Used on cygwin: DLL creation program.
18303 # Used on cygwin: object dumper.
18306 # Used on cygwin: assembler.
18309 # The name of the directory that contains temporary libtool files.
18312 # How to create reloadable object files.
18313 reload_flag=$lt_reload_flag
18314 reload_cmds=$lt_reload_cmds
18316 # How to pass a linker flag through the compiler.
18317 wl=$lt_lt_prog_compiler_wl_GCJ
18319 # Object file suffix (normally "o").
18320 objext="$ac_objext"
18322 # Old archive suffix (normally "a").
18325 # Shared library suffix (normally ".so").
18326 shrext_cmds='$shrext_cmds'
18328 # Executable file suffix (normally "").
18331 # Additional compiler flags for building library objects.
18332 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18335 # What is the maximum length of a command?
18336 max_cmd_len=$lt_cv_sys_max_cmd_len
18338 # Does compiler simultaneously support -c and -o options?
18339 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18341 # Must we lock files when doing compilation?
18342 need_locks=$lt_need_locks
18344 # Do we need the lib prefix for modules?
18345 need_lib_prefix=$need_lib_prefix
18347 # Do we need a version for libraries?
18348 need_version=$need_version
18350 # Whether dlopen is supported.
18351 dlopen_support=$enable_dlopen
18353 # Whether dlopen of programs is supported.
18354 dlopen_self=$enable_dlopen_self
18356 # Whether dlopen of statically linked programs is supported.
18357 dlopen_self_static=$enable_dlopen_self_static
18359 # Compiler flag to prevent dynamic linking.
18360 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18362 # Compiler flag to turn off builtin functions.
18363 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18365 # Compiler flag to allow reflexive dlopens.
18366 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18368 # Compiler flag to generate shared objects directly from archives.
18369 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18371 # Compiler flag to generate thread-safe objects.
18372 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18374 # Library versioning type.
18375 version_type=$version_type
18377 # Format of library name prefix.
18378 libname_spec=$lt_libname_spec
18380 # List of archive names. First name is the real one, the rest are links.
18381 # The last name is the one that the linker finds with -lNAME.
18382 library_names_spec=$lt_library_names_spec
18384 # The coded name of the library, if different from the real name.
18385 soname_spec=$lt_soname_spec
18387 # Commands used to build and install an old-style archive.
18389 old_archive_cmds=$lt_old_archive_cmds_GCJ
18390 old_postinstall_cmds=$lt_old_postinstall_cmds
18391 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18393 # Create an old-style archive from a shared archive.
18394 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18396 # Create a temporary old-style archive to link instead of a shared archive.
18397 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18399 # Commands used to build and install a shared archive.
18400 archive_cmds=$lt_archive_cmds_GCJ
18401 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18402 postinstall_cmds=$lt_postinstall_cmds
18403 postuninstall_cmds=$lt_postuninstall_cmds
18405 # Commands used to build a loadable module (assumed same as above if empty)
18406 module_cmds=$lt_module_cmds_GCJ
18407 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18409 # Commands to strip libraries.
18410 old_striplib=$lt_old_striplib
18411 striplib=$lt_striplib
18413 # Dependencies to place before the objects being linked to create a
18415 predep_objects=$lt_predep_objects_GCJ
18417 # Dependencies to place after the objects being linked to create a
18419 postdep_objects=$lt_postdep_objects_GCJ
18421 # Dependencies to place before the objects being linked to create a
18423 predeps=$lt_predeps_GCJ
18425 # Dependencies to place after the objects being linked to create a
18427 postdeps=$lt_postdeps_GCJ
18429 # The library search path used internally by the compiler when linking
18430 # a shared library.
18431 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18433 # Method to check whether dependent libraries are shared objects.
18434 deplibs_check_method=$lt_deplibs_check_method
18436 # Command to use when deplibs_check_method == file_magic.
18437 file_magic_cmd=$lt_file_magic_cmd
18439 # Flag that allows shared libraries with undefined symbols to be built.
18440 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18442 # Flag that forces no undefined symbols.
18443 no_undefined_flag=$lt_no_undefined_flag_GCJ
18445 # Commands used to finish a libtool library installation in a directory.
18446 finish_cmds=$lt_finish_cmds
18448 # Same as above, but a single script fragment to be evaled but not shown.
18449 finish_eval=$lt_finish_eval
18451 # Take the output of nm and produce a listing of raw symbols and C names.
18452 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18454 # Transform the output of nm in a proper C declaration
18455 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18457 # Transform the output of nm in a C name address pair
18458 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18460 # This is the shared library runtime path variable.
18461 runpath_var=$runpath_var
18463 # This is the shared library path variable.
18464 shlibpath_var=$shlibpath_var
18466 # Is shlibpath searched before the hard-coded library search path?
18467 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18469 # How to hardcode a shared library path into an executable.
18470 hardcode_action=$hardcode_action_GCJ
18472 # Whether we should hardcode library paths into libraries.
18473 hardcode_into_libs=$hardcode_into_libs
18475 # Flag to hardcode \$libdir into a binary during linking.
18476 # This must work even if \$libdir does not exist.
18477 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18479 # If ld is used when linking, flag to hardcode \$libdir into
18480 # a binary during linking. This must work even if \$libdir does
18482 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18484 # Whether we need a single -rpath flag with a separated argument.
18485 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18487 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18488 # resulting binary.
18489 hardcode_direct=$hardcode_direct_GCJ
18491 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18492 # resulting binary.
18493 hardcode_minus_L=$hardcode_minus_L_GCJ
18495 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18496 # the resulting binary.
18497 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18499 # Set to yes if building a shared library automatically hardcodes DIR into the library
18500 # and all subsequent libraries and executables linked against it.
18501 hardcode_automatic=$hardcode_automatic_GCJ
18503 # Variables whose values should be saved in libtool wrapper scripts and
18504 # restored at relink time.
18505 variables_saved_for_relink="$variables_saved_for_relink"
18507 # Whether libtool must link a program against all its dependency libraries.
18508 link_all_deplibs=$link_all_deplibs_GCJ
18510 # Compile-time system search path for libraries
18511 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18513 # Run-time system search path for libraries
18514 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18516 # Fix the shell variable \$srcfile for the compiler.
18517 fix_srcfile_path="$fix_srcfile_path_GCJ"
18519 # Set to yes if exported symbols are required.
18520 always_export_symbols=$always_export_symbols_GCJ
18522 # The commands to list exported symbols.
18523 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18525 # The commands to extract the exported symbol list from a shared archive.
18526 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18528 # Symbols that should not be listed in the preloaded symbols.
18529 exclude_expsyms=$lt_exclude_expsyms_GCJ
18531 # Symbols that must always be exported.
18532 include_expsyms=$lt_include_expsyms_GCJ
18534 # ### END LIBTOOL TAG CONFIG: $tagname
18540 # If there is no Makefile yet, we rely on a make rule to execute
18541 # `config.status --recheck' to rerun these tests and create the
18542 # libtool script then.
18543 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18544 if test -f "$ltmain_in"; then
18545 test -f Makefile && make "$ltmain"
18551 ac_cpp='$CPP $CPPFLAGS'
18552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18566 # Source file extension for RC test sources.
18569 # Object file extension for compiled RC test sources.
18573 # Code to be used in simple compile tests
18574 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18576 # Code to be used in simple link tests
18577 lt_simple_link_test_code="$lt_simple_compile_test_code"
18579 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18581 # If no C compiler was specified, use CC.
18584 # If no C compiler flags were specified, use CFLAGS.
18585 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18587 # Allow CC to be a program name with arguments.
18591 # save warnings/boilerplate of simple test code
18592 ac_outfile=conftest.$ac_objext
18593 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18594 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18595 _lt_compiler_boilerplate=`cat conftest.err`
18598 ac_outfile=conftest.$ac_objext
18599 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18600 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18601 _lt_linker_boilerplate=`cat conftest.err`
18605 # Allow CC to be a program name with arguments.
18610 for cc_temp in $compiler""; do
18612 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18613 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18618 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18620 lt_cv_prog_compiler_c_o_RC=yes
18622 # The else clause should only fire when bootstrapping the
18623 # libtool distribution, otherwise you forgot to ship ltmain.sh
18624 # with your package, and you will get complaints that there are
18625 # no rules to generate ltmain.sh.
18626 if test -f "$ltmain"; then
18627 # See if we are running on zsh, and set the options which allow our commands through
18628 # without removal of \ escapes.
18629 if test -n "${ZSH_VERSION+set}" ; then
18630 setopt NO_GLOB_SUBST
18632 # Now quote all the things that may contain metacharacters while being
18633 # careful not to overquote the AC_SUBSTed values. We take copies of the
18634 # variables and quote the copies for generation of the libtool script.
18635 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18637 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18638 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18639 deplibs_check_method reload_flag reload_cmds need_locks \
18640 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18641 lt_cv_sys_global_symbol_to_c_name_address \
18642 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18643 old_postinstall_cmds old_postuninstall_cmds \
18647 lt_prog_compiler_wl_RC \
18648 lt_prog_compiler_pic_RC \
18649 lt_prog_compiler_static_RC \
18650 lt_prog_compiler_no_builtin_flag_RC \
18651 export_dynamic_flag_spec_RC \
18652 thread_safe_flag_spec_RC \
18653 whole_archive_flag_spec_RC \
18654 enable_shared_with_static_runtimes_RC \
18655 old_archive_cmds_RC \
18656 old_archive_from_new_cmds_RC \
18657 predep_objects_RC \
18658 postdep_objects_RC \
18661 compiler_lib_search_path_RC \
18663 archive_expsym_cmds_RC \
18664 postinstall_cmds_RC \
18665 postuninstall_cmds_RC \
18666 old_archive_from_expsyms_cmds_RC \
18667 allow_undefined_flag_RC \
18668 no_undefined_flag_RC \
18669 export_symbols_cmds_RC \
18670 hardcode_libdir_flag_spec_RC \
18671 hardcode_libdir_flag_spec_ld_RC \
18672 hardcode_libdir_separator_RC \
18673 hardcode_automatic_RC \
18675 module_expsym_cmds_RC \
18676 lt_cv_prog_compiler_c_o_RC \
18677 exclude_expsyms_RC \
18678 include_expsyms_RC; do
18681 old_archive_cmds_RC | \
18682 old_archive_from_new_cmds_RC | \
18683 archive_cmds_RC | \
18684 archive_expsym_cmds_RC | \
18686 module_expsym_cmds_RC | \
18687 old_archive_from_expsyms_cmds_RC | \
18688 export_symbols_cmds_RC | \
18689 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18690 postinstall_cmds | postuninstall_cmds | \
18691 old_postinstall_cmds | old_postuninstall_cmds | \
18692 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18693 # Double-quote double-evaled strings.
18694 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18697 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18703 *'\$0 --fallback-echo"')
18704 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18710 cat <<__EOF__ >> "$cfgfile"
18711 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18713 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18715 # Shell to use when invoking shell scripts.
18718 # Whether or not to build shared libraries.
18719 build_libtool_libs=$enable_shared
18721 # Whether or not to build static libraries.
18722 build_old_libs=$enable_static
18724 # Whether or not to add -lc for building shared libraries.
18725 build_libtool_need_lc=$archive_cmds_need_lc_RC
18727 # Whether or not to disallow shared libs when runtime libs are static
18728 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18730 # Whether or not to optimize for fast installation.
18731 fast_install=$enable_fast_install
18734 host_alias=$host_alias
18738 # The build system.
18739 build_alias=$build_alias
18743 # An echo program that does not interpret backslashes.
18748 AR_FLAGS=$lt_AR_FLAGS
18753 # LTCC compiler flags.
18754 LTCFLAGS=$lt_LTCFLAGS
18756 # A language-specific compiler.
18759 # Is the compiler the GNU C compiler?
18765 # The linker used to build libraries.
18768 # Whether we need hard or soft links.
18771 # A BSD-compatible nm program.
18774 # A symbol stripping program
18777 # Used to examine libraries when file_magic_cmd begins "file"
18778 MAGIC_CMD=$MAGIC_CMD
18780 # Used on cygwin: DLL creation program.
18783 # Used on cygwin: object dumper.
18786 # Used on cygwin: assembler.
18789 # The name of the directory that contains temporary libtool files.
18792 # How to create reloadable object files.
18793 reload_flag=$lt_reload_flag
18794 reload_cmds=$lt_reload_cmds
18796 # How to pass a linker flag through the compiler.
18797 wl=$lt_lt_prog_compiler_wl_RC
18799 # Object file suffix (normally "o").
18800 objext="$ac_objext"
18802 # Old archive suffix (normally "a").
18805 # Shared library suffix (normally ".so").
18806 shrext_cmds='$shrext_cmds'
18808 # Executable file suffix (normally "").
18811 # Additional compiler flags for building library objects.
18812 pic_flag=$lt_lt_prog_compiler_pic_RC
18815 # What is the maximum length of a command?
18816 max_cmd_len=$lt_cv_sys_max_cmd_len
18818 # Does compiler simultaneously support -c and -o options?
18819 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18821 # Must we lock files when doing compilation?
18822 need_locks=$lt_need_locks
18824 # Do we need the lib prefix for modules?
18825 need_lib_prefix=$need_lib_prefix
18827 # Do we need a version for libraries?
18828 need_version=$need_version
18830 # Whether dlopen is supported.
18831 dlopen_support=$enable_dlopen
18833 # Whether dlopen of programs is supported.
18834 dlopen_self=$enable_dlopen_self
18836 # Whether dlopen of statically linked programs is supported.
18837 dlopen_self_static=$enable_dlopen_self_static
18839 # Compiler flag to prevent dynamic linking.
18840 link_static_flag=$lt_lt_prog_compiler_static_RC
18842 # Compiler flag to turn off builtin functions.
18843 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18845 # Compiler flag to allow reflexive dlopens.
18846 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18848 # Compiler flag to generate shared objects directly from archives.
18849 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18851 # Compiler flag to generate thread-safe objects.
18852 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18854 # Library versioning type.
18855 version_type=$version_type
18857 # Format of library name prefix.
18858 libname_spec=$lt_libname_spec
18860 # List of archive names. First name is the real one, the rest are links.
18861 # The last name is the one that the linker finds with -lNAME.
18862 library_names_spec=$lt_library_names_spec
18864 # The coded name of the library, if different from the real name.
18865 soname_spec=$lt_soname_spec
18867 # Commands used to build and install an old-style archive.
18869 old_archive_cmds=$lt_old_archive_cmds_RC
18870 old_postinstall_cmds=$lt_old_postinstall_cmds
18871 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18873 # Create an old-style archive from a shared archive.
18874 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18876 # Create a temporary old-style archive to link instead of a shared archive.
18877 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18879 # Commands used to build and install a shared archive.
18880 archive_cmds=$lt_archive_cmds_RC
18881 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18882 postinstall_cmds=$lt_postinstall_cmds
18883 postuninstall_cmds=$lt_postuninstall_cmds
18885 # Commands used to build a loadable module (assumed same as above if empty)
18886 module_cmds=$lt_module_cmds_RC
18887 module_expsym_cmds=$lt_module_expsym_cmds_RC
18889 # Commands to strip libraries.
18890 old_striplib=$lt_old_striplib
18891 striplib=$lt_striplib
18893 # Dependencies to place before the objects being linked to create a
18895 predep_objects=$lt_predep_objects_RC
18897 # Dependencies to place after the objects being linked to create a
18899 postdep_objects=$lt_postdep_objects_RC
18901 # Dependencies to place before the objects being linked to create a
18903 predeps=$lt_predeps_RC
18905 # Dependencies to place after the objects being linked to create a
18907 postdeps=$lt_postdeps_RC
18909 # The library search path used internally by the compiler when linking
18910 # a shared library.
18911 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18913 # Method to check whether dependent libraries are shared objects.
18914 deplibs_check_method=$lt_deplibs_check_method
18916 # Command to use when deplibs_check_method == file_magic.
18917 file_magic_cmd=$lt_file_magic_cmd
18919 # Flag that allows shared libraries with undefined symbols to be built.
18920 allow_undefined_flag=$lt_allow_undefined_flag_RC
18922 # Flag that forces no undefined symbols.
18923 no_undefined_flag=$lt_no_undefined_flag_RC
18925 # Commands used to finish a libtool library installation in a directory.
18926 finish_cmds=$lt_finish_cmds
18928 # Same as above, but a single script fragment to be evaled but not shown.
18929 finish_eval=$lt_finish_eval
18931 # Take the output of nm and produce a listing of raw symbols and C names.
18932 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18934 # Transform the output of nm in a proper C declaration
18935 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18937 # Transform the output of nm in a C name address pair
18938 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18940 # This is the shared library runtime path variable.
18941 runpath_var=$runpath_var
18943 # This is the shared library path variable.
18944 shlibpath_var=$shlibpath_var
18946 # Is shlibpath searched before the hard-coded library search path?
18947 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18949 # How to hardcode a shared library path into an executable.
18950 hardcode_action=$hardcode_action_RC
18952 # Whether we should hardcode library paths into libraries.
18953 hardcode_into_libs=$hardcode_into_libs
18955 # Flag to hardcode \$libdir into a binary during linking.
18956 # This must work even if \$libdir does not exist.
18957 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18959 # If ld is used when linking, flag to hardcode \$libdir into
18960 # a binary during linking. This must work even if \$libdir does
18962 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18964 # Whether we need a single -rpath flag with a separated argument.
18965 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18967 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18968 # resulting binary.
18969 hardcode_direct=$hardcode_direct_RC
18971 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18972 # resulting binary.
18973 hardcode_minus_L=$hardcode_minus_L_RC
18975 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18976 # the resulting binary.
18977 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18979 # Set to yes if building a shared library automatically hardcodes DIR into the library
18980 # and all subsequent libraries and executables linked against it.
18981 hardcode_automatic=$hardcode_automatic_RC
18983 # Variables whose values should be saved in libtool wrapper scripts and
18984 # restored at relink time.
18985 variables_saved_for_relink="$variables_saved_for_relink"
18987 # Whether libtool must link a program against all its dependency libraries.
18988 link_all_deplibs=$link_all_deplibs_RC
18990 # Compile-time system search path for libraries
18991 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18993 # Run-time system search path for libraries
18994 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18996 # Fix the shell variable \$srcfile for the compiler.
18997 fix_srcfile_path="$fix_srcfile_path_RC"
18999 # Set to yes if exported symbols are required.
19000 always_export_symbols=$always_export_symbols_RC
19002 # The commands to list exported symbols.
19003 export_symbols_cmds=$lt_export_symbols_cmds_RC
19005 # The commands to extract the exported symbol list from a shared archive.
19006 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19008 # Symbols that should not be listed in the preloaded symbols.
19009 exclude_expsyms=$lt_exclude_expsyms_RC
19011 # Symbols that must always be exported.
19012 include_expsyms=$lt_include_expsyms_RC
19014 # ### END LIBTOOL TAG CONFIG: $tagname
19020 # If there is no Makefile yet, we rely on a make rule to execute
19021 # `config.status --recheck' to rerun these tests and create the
19022 # libtool script then.
19023 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19024 if test -f "$ltmain_in"; then
19025 test -f Makefile && make "$ltmain"
19031 ac_cpp='$CPP $CPPFLAGS'
19032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19041 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19042 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19043 { (exit 1); exit 1; }; }
19047 # Append the new tag name to the list of available tags.
19048 if test -n "$tagname" ; then
19049 available_tags="$available_tags $tagname"
19055 # Now substitute the updated list of available tags.
19056 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19057 mv "${ofile}T" "$ofile"
19061 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19062 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19063 { (exit 1); exit 1; }; }
19069 # This can be used to rebuild libtool when needed
19070 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19072 # Always use our own libtool.
19073 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19075 # Prevent multiple expansion
19096 # If set to t, that means we are running in a shell under Emacs.
19097 # If you have an Emacs named "t", then use the full path.
19098 test x"$EMACS" = xt && EMACS=
19099 for ac_prog in emacs xemacs
19101 # Extract the first word of "$ac_prog", so it can be a program name with args.
19102 set dummy $ac_prog; ac_word=$2
19103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19105 if test "${ac_cv_prog_EMACS+set}" = set; then
19106 echo $ECHO_N "(cached) $ECHO_C" >&6
19108 if test -n "$EMACS"; then
19109 ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
19111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19112 for as_dir in $PATH
19115 test -z "$as_dir" && as_dir=.
19116 for ac_exec_ext in '' $ac_executable_extensions; do
19117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19118 ac_cv_prog_EMACS="$ac_prog"
19119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19128 EMACS=$ac_cv_prog_EMACS
19129 if test -n "$EMACS"; then
19130 { echo "$as_me:$LINENO: result: $EMACS" >&5
19131 echo "${ECHO_T}$EMACS" >&6; }
19133 { echo "$as_me:$LINENO: result: no" >&5
19134 echo "${ECHO_T}no" >&6; }
19138 test -n "$EMACS" && break
19140 test -n "$EMACS" || EMACS="no"
19145 # Check whether --with-lispdir was given.
19146 if test "${with_lispdir+set}" = set; then
19147 withval=$with_lispdir; lispdir="$withval"
19148 { echo "$as_me:$LINENO: checking where .elc files should go" >&5
19149 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6; }
19150 { echo "$as_me:$LINENO: result: $lispdir" >&5
19151 echo "${ECHO_T}$lispdir" >&6; }
19154 { echo "$as_me:$LINENO: checking where .elc files should go" >&5
19155 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6; }
19156 if test "${am_cv_lispdir+set}" = set; then
19157 echo $ECHO_N "(cached) $ECHO_C" >&6
19160 if test $EMACS != "no"; then
19161 if test x${lispdir+set} != xset; then
19162 # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly
19163 # Some emacsen will start up in interactive mode, requiring C-x C-c to exit,
19164 # which is non-obvious for non-emacs users.
19165 # Redirecting /dev/null should help a bit; pity we can't detect "broken"
19166 # emacsen earlier and avoid running this altogether.
19167 { (echo "$as_me:$LINENO: \$EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) \"\\n\")) (setq load-path (cdr load-path)))' </dev/null >conftest.out") >&5
19168 ($EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' </dev/null >conftest.out) 2>&5
19170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171 (exit $ac_status); }
19172 am_cv_lispdir=`sed -n \
19174 -e '/.*\/lib\/x*emacs\/site-lisp$/{s,.*/lib/\(x*emacs/site-lisp\)$,${libdir}/\1,;p;q;}' \
19175 -e '/.*\/share\/x*emacs\/site-lisp$/{s,.*/share/\(x*emacs/site-lisp\),${datadir}/\1,;p;q;}' \
19180 test -z "$am_cv_lispdir" && am_cv_lispdir='${datadir}/emacs/site-lisp'
19183 { echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5
19184 echo "${ECHO_T}$am_cv_lispdir" >&6; }
19185 lispdir="$am_cv_lispdir"
19194 if test x$lispdir != x; then
19203 test -n "$lispdir" || lispdir="/tmp/"
19205 lispdir="$lispdir/anthy"
19207 test -z "$GCC" || CFLAGS="$CFLAGS -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long"
19209 ac_config_files="$ac_config_files Makefile src-diclib/Makefile src-worddic/Makefile src-splitter/Makefile src-ordering/Makefile src-main/Makefile src-util/Makefile anthy/Makefile depgraph/Makefile mkanthydic/Makefile mkworddic/Makefile mkworddic/dict.args test/Makefile alt-cannadic/Makefile doc/Makefile calctrans/Makefile anthy-conf anthy-test-conf anthy.spec anthy.pc"
19211 cat >confcache <<\_ACEOF
19212 # This file is a shell script that caches the results of configure
19213 # tests run on this system so they can be shared between configure
19214 # scripts and configure runs, see configure's option --config-cache.
19215 # It is not useful on other systems. If it contains results you don't
19216 # want to keep, you may remove or edit it.
19218 # config.status only pays attention to the cache file if you give it
19219 # the --recheck option to rerun configure.
19221 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19222 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19223 # following values.
19227 # The following way of writing the cache mishandles newlines in values,
19228 # but we know of no workaround that is simple, portable, and efficient.
19229 # So, we kill variables containing newlines.
19230 # Ultrix sh set writes to stderr and can't be redirected directly,
19231 # and sets the high bit in the cache file unless we assign to the vars.
19233 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19234 eval ac_val=\$$ac_var
19238 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19239 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
19242 _ | IFS | as_nl) ;; #(
19243 *) $as_unset $ac_var ;;
19249 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19250 *${as_nl}ac_space=\ *)
19251 # `set' does not quote correctly, so add quotes (double-quote
19252 # substitution turns \\\\ into \\, and sed turns \\ into \).
19255 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19258 # `set' quotes correctly as required by POSIX, so do not add quotes.
19259 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19268 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19270 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19272 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19273 if test -w "$cache_file"; then
19274 test "x$cache_file" != "x/dev/null" &&
19275 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
19276 echo "$as_me: updating cache $cache_file" >&6;}
19277 cat confcache >$cache_file
19279 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19280 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19285 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19286 # Let make expand exec_prefix.
19287 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19289 DEFS=-DHAVE_CONFIG_H
19293 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19294 # 1. Remove the extension, and $U if already installed.
19295 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19296 ac_i=`echo "$ac_i" | sed "$ac_script"`
19297 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19298 # will be set to the directory where LIBOBJS objects are built.
19299 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19300 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
19302 LIBOBJS=$ac_libobjs
19304 LTLIBOBJS=$ac_ltlibobjs
19307 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19308 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19309 Usually this means the macro was only invoked conditionally." >&5
19310 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19311 Usually this means the macro was only invoked conditionally." >&2;}
19312 { (exit 1); exit 1; }; }
19314 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19315 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19316 Usually this means the macro was only invoked conditionally." >&5
19317 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19318 Usually this means the macro was only invoked conditionally." >&2;}
19319 { (exit 1); exit 1; }; }
19321 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19322 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19323 Usually this means the macro was only invoked conditionally." >&5
19324 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19325 Usually this means the macro was only invoked conditionally." >&2;}
19326 { (exit 1); exit 1; }; }
19328 if test -z "${ELISP_TRUE}" && test -z "${ELISP_FALSE}"; then
19329 { { echo "$as_me:$LINENO: error: conditional \"ELISP\" was never defined.
19330 Usually this means the macro was only invoked conditionally." >&5
19331 echo "$as_me: error: conditional \"ELISP\" was never defined.
19332 Usually this means the macro was only invoked conditionally." >&2;}
19333 { (exit 1); exit 1; }; }
19336 : ${CONFIG_STATUS=./config.status}
19337 ac_clean_files_save=$ac_clean_files
19338 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19339 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19340 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19341 cat >$CONFIG_STATUS <<_ACEOF
19343 # Generated by $as_me.
19344 # Run this file to recreate the current configuration.
19345 # Compiler output produced by configure, useful for debugging
19346 # configure, is in config.log if it exists.
19349 ac_cs_recheck=false
19351 SHELL=\${CONFIG_SHELL-$SHELL}
19354 cat >>$CONFIG_STATUS <<\_ACEOF
19355 ## --------------------- ##
19356 ## M4sh Initialization. ##
19357 ## --------------------- ##
19359 # Be more Bourne compatible
19360 DUALCASE=1; export DUALCASE # for MKS sh
19361 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19364 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19365 # is contrary to our usage. Disable this feature.
19366 alias -g '${1+"$@"}'='"$@"'
19367 setopt NO_GLOB_SUBST
19369 case `(set -o) 2>/dev/null` in
19370 *posix*) set -o posix ;;
19379 # Avoid depending upon Character Ranges.
19380 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19381 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19382 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19383 as_cr_digits='0123456789'
19384 as_cr_alnum=$as_cr_Letters$as_cr_digits
19386 # The user is always right.
19387 if test "${PATH_SEPARATOR+set}" != set; then
19388 echo "#! /bin/sh" >conf$$.sh
19389 echo "exit 0" >>conf$$.sh
19391 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19399 # Support unset when possible.
19400 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19408 # We need space, tab and new line, in precisely that order. Quoting is
19409 # there to prevent editors from complaining about space-tab.
19410 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19411 # splitting by setting IFS to empty value.)
19416 # Find who we are. Look in the path if we contain no directory separator.
19418 *[\\/]* ) as_myself=$0 ;;
19419 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19420 for as_dir in $PATH
19423 test -z "$as_dir" && as_dir=.
19424 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19430 # We did not find ourselves, most probably we were run as `sh COMMAND'
19431 # in which case we are not to be found in the path.
19432 if test "x$as_myself" = x; then
19435 if test ! -f "$as_myself"; then
19436 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19437 { (exit 1); exit 1; }
19440 # Work around bugs in pre-3.0 UWIN ksh.
19441 for as_var in ENV MAIL MAILPATH
19442 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19450 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19451 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19452 LC_TELEPHONE LC_TIME
19454 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19455 eval $as_var=C; export $as_var
19457 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19461 # Required to use basename.
19462 if expr a : '\(a\)' >/dev/null 2>&1 &&
19463 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19469 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19470 as_basename=basename
19476 # Name of the executable.
19477 as_me=`$as_basename -- "$0" ||
19478 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19479 X"$0" : 'X\(//\)$' \| \
19480 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19482 sed '/^.*\/\([^/][^/]*\)\/*$/{
19501 as_lineno_1=$LINENO
19502 as_lineno_2=$LINENO
19503 test "x$as_lineno_1" != "x$as_lineno_2" &&
19504 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
19506 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19507 # uniformly replaced by the line number. The first 'sed' inserts a
19508 # line-number line after each line using $LINENO; the second 'sed'
19509 # does the real work. The second script uses 'N' to pair each
19510 # line-number line with the line containing $LINENO, and appends
19511 # trailing '-' during substitution so that $LINENO is not a special
19512 # case at line end.
19513 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19514 # scripts with optimization help from Paolo Bonzini. Blame Lee
19515 # E. McMahon (1931-1989) for sed's syntax. :-)
19527 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
19530 ' >$as_me.lineno &&
19531 chmod +x "$as_me.lineno" ||
19532 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
19533 { (exit 1); exit 1; }; }
19535 # Don't try to exec as it changes $[0], causing all sort of problems
19536 # (the dirname of $[0] is not the place where we might find the
19537 # original and so on. Autoconf is especially sensitive to this).
19538 . "./$as_me.lineno"
19539 # Exit status is that of the last command.
19544 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19550 ECHO_C= ECHO_N= ECHO_T=
19551 case `echo -n x` in
19553 case `echo 'x\c'` in
19554 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19561 if expr a : '\(a\)' >/dev/null 2>&1 &&
19562 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19568 rm -f conf$$ conf$$.exe conf$$.file
19569 if test -d conf$$.dir; then
19570 rm -f conf$$.dir/conf$$.file
19576 if ln -s conf$$.file conf$$ 2>/dev/null; then
19578 # ... but there are two gotchas:
19579 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19580 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19581 # In both cases, we have to default to `cp -p'.
19582 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19584 elif ln conf$$.file conf$$ 2>/dev/null; then
19589 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19590 rmdir conf$$.dir 2>/dev/null
19592 if mkdir -p . 2>/dev/null; then
19595 test -d ./-p && rmdir ./-p
19599 if test -x / >/dev/null 2>&1; then
19600 as_test_x='test -x'
19602 if ls -dL / >/dev/null 2>&1; then
19609 if test -d "$1"; then
19615 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
19616 ???[sx]*):;;*)false;;esac;fi
19620 as_executable_p=$as_test_x
19622 # Sed expression to map a string onto a valid CPP name.
19623 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19625 # Sed expression to map a string onto a valid variable name.
19626 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19631 # Save the log message, to keep $[0] and so on meaningful, and to
19632 # report actual input values of CONFIG_FILES etc. instead of their
19633 # values after options handling.
19635 This file was extended by $as_me, which was
19636 generated by GNU Autoconf 2.61. Invocation command line was
19638 CONFIG_FILES = $CONFIG_FILES
19639 CONFIG_HEADERS = $CONFIG_HEADERS
19640 CONFIG_LINKS = $CONFIG_LINKS
19641 CONFIG_COMMANDS = $CONFIG_COMMANDS
19644 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19649 cat >>$CONFIG_STATUS <<_ACEOF
19650 # Files that config.status was made for.
19651 config_files="$ac_config_files"
19652 config_headers="$ac_config_headers"
19653 config_commands="$ac_config_commands"
19657 cat >>$CONFIG_STATUS <<\_ACEOF
19659 \`$as_me' instantiates files from templates according to the
19660 current configuration.
19662 Usage: $0 [OPTIONS] [FILE]...
19664 -h, --help print this help, then exit
19665 -V, --version print version number and configuration settings, then exit
19666 -q, --quiet do not print progress messages
19667 -d, --debug don't remove temporary files
19668 --recheck update $as_me by reconfiguring in the same conditions
19669 --file=FILE[:TEMPLATE]
19670 instantiate the configuration file FILE
19671 --header=FILE[:TEMPLATE]
19672 instantiate the configuration header FILE
19674 Configuration files:
19677 Configuration headers:
19680 Configuration commands:
19683 Report bugs to <bug-autoconf@gnu.org>."
19686 cat >>$CONFIG_STATUS <<_ACEOF
19689 configured by $0, generated by GNU Autoconf 2.61,
19690 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
19692 Copyright (C) 2006 Free Software Foundation, Inc.
19693 This config.status script is free software; the Free Software Foundation
19694 gives unlimited permission to copy, distribute and modify it."
19701 cat >>$CONFIG_STATUS <<\_ACEOF
19702 # If no file are specified by the user, then we need to provide default
19703 # value. By we need to know if files were specified by the user.
19709 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19710 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19721 # Handling of the options.
19722 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19724 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19725 echo "$ac_cs_version"; exit ;;
19726 --debug | --debu | --deb | --de | --d | -d )
19728 --file | --fil | --fi | --f )
19730 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19731 ac_need_defaults=false;;
19732 --header | --heade | --head | --hea )
19734 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19735 ac_need_defaults=false;;
19737 # Conflict between --help and --header
19738 { echo "$as_me: error: ambiguous option: $1
19739 Try \`$0 --help' for more information." >&2
19740 { (exit 1); exit 1; }; };;
19741 --help | --hel | -h )
19742 echo "$ac_cs_usage"; exit ;;
19743 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19744 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19747 # This is an error.
19748 -*) { echo "$as_me: error: unrecognized option: $1
19749 Try \`$0 --help' for more information." >&2
19750 { (exit 1); exit 1; }; } ;;
19752 *) ac_config_targets="$ac_config_targets $1"
19753 ac_need_defaults=false ;;
19759 ac_configure_extra_args=
19761 if $ac_cs_silent; then
19763 ac_configure_extra_args="$ac_configure_extra_args --silent"
19767 cat >>$CONFIG_STATUS <<_ACEOF
19768 if \$ac_cs_recheck; then
19769 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19770 CONFIG_SHELL=$SHELL
19771 export CONFIG_SHELL
19772 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19776 cat >>$CONFIG_STATUS <<\_ACEOF
19780 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19781 ## Running $as_me. ##
19787 cat >>$CONFIG_STATUS <<_ACEOF
19791 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19795 cat >>$CONFIG_STATUS <<\_ACEOF
19797 # Handling of arguments.
19798 for ac_config_target in $ac_config_targets
19800 case $ac_config_target in
19801 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19802 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19803 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19804 "src-diclib/Makefile") CONFIG_FILES="$CONFIG_FILES src-diclib/Makefile" ;;
19805 "src-worddic/Makefile") CONFIG_FILES="$CONFIG_FILES src-worddic/Makefile" ;;
19806 "src-splitter/Makefile") CONFIG_FILES="$CONFIG_FILES src-splitter/Makefile" ;;
19807 "src-ordering/Makefile") CONFIG_FILES="$CONFIG_FILES src-ordering/Makefile" ;;
19808 "src-main/Makefile") CONFIG_FILES="$CONFIG_FILES src-main/Makefile" ;;
19809 "src-util/Makefile") CONFIG_FILES="$CONFIG_FILES src-util/Makefile" ;;
19810 "anthy/Makefile") CONFIG_FILES="$CONFIG_FILES anthy/Makefile" ;;
19811 "depgraph/Makefile") CONFIG_FILES="$CONFIG_FILES depgraph/Makefile" ;;
19812 "mkanthydic/Makefile") CONFIG_FILES="$CONFIG_FILES mkanthydic/Makefile" ;;
19813 "mkworddic/Makefile") CONFIG_FILES="$CONFIG_FILES mkworddic/Makefile" ;;
19814 "mkworddic/dict.args") CONFIG_FILES="$CONFIG_FILES mkworddic/dict.args" ;;
19815 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
19816 "alt-cannadic/Makefile") CONFIG_FILES="$CONFIG_FILES alt-cannadic/Makefile" ;;
19817 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19818 "calctrans/Makefile") CONFIG_FILES="$CONFIG_FILES calctrans/Makefile" ;;
19819 "anthy-conf") CONFIG_FILES="$CONFIG_FILES anthy-conf" ;;
19820 "anthy-test-conf") CONFIG_FILES="$CONFIG_FILES anthy-test-conf" ;;
19821 "anthy.spec") CONFIG_FILES="$CONFIG_FILES anthy.spec" ;;
19822 "anthy.pc") CONFIG_FILES="$CONFIG_FILES anthy.pc" ;;
19824 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19825 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19826 { (exit 1); exit 1; }; };;
19831 # If the user did not use the arguments to specify the items to instantiate,
19832 # then the envvar interface is used. Set only those that are not.
19833 # We use the long form for the default assignment because of an extremely
19834 # bizarre bug on SunOS 4.1.3.
19835 if $ac_need_defaults; then
19836 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19837 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19838 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19841 # Have a temporary directory for convenience. Make it in the build tree
19842 # simply because there is no reason against having it here, and in addition,
19843 # creating and moving files from /tmp can sometimes cause problems.
19844 # Hook for its removal unless debugging.
19845 # Note that there is a small window in which the directory will not be cleaned:
19846 # after its creation but before its name has been assigned to `$tmp'.
19850 trap 'exit_status=$?
19851 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19853 trap '{ (exit 1); exit 1; }' 1 2 13 15
19855 # Create a (secure) tmp directory for tmp files.
19858 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19859 test -n "$tmp" && test -d "$tmp"
19862 tmp=./conf$$-$RANDOM
19863 (umask 077 && mkdir "$tmp")
19866 echo "$me: cannot create a temporary directory in ." >&2
19867 { (exit 1); exit 1; }
19871 # Set up the sed scripts for CONFIG_FILES section.
19874 # No need to generate the scripts if there are no CONFIG_FILES.
19875 # This happens for instance when ./config.status config.h
19876 if test -n "$CONFIG_FILES"; then
19883 for ac_last_try in false false false false false :; do
19884 cat >conf$$subs.sed <<_ACEOF
19885 SHELL!$SHELL$ac_delim
19886 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
19887 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
19888 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
19889 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
19890 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
19891 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
19892 exec_prefix!$exec_prefix$ac_delim
19893 prefix!$prefix$ac_delim
19894 program_transform_name!$program_transform_name$ac_delim
19895 bindir!$bindir$ac_delim
19896 sbindir!$sbindir$ac_delim
19897 libexecdir!$libexecdir$ac_delim
19898 datarootdir!$datarootdir$ac_delim
19899 datadir!$datadir$ac_delim
19900 sysconfdir!$sysconfdir$ac_delim
19901 sharedstatedir!$sharedstatedir$ac_delim
19902 localstatedir!$localstatedir$ac_delim
19903 includedir!$includedir$ac_delim
19904 oldincludedir!$oldincludedir$ac_delim
19905 docdir!$docdir$ac_delim
19906 infodir!$infodir$ac_delim
19907 htmldir!$htmldir$ac_delim
19908 dvidir!$dvidir$ac_delim
19909 pdfdir!$pdfdir$ac_delim
19910 psdir!$psdir$ac_delim
19911 libdir!$libdir$ac_delim
19912 localedir!$localedir$ac_delim
19913 mandir!$mandir$ac_delim
19914 DEFS!$DEFS$ac_delim
19915 ECHO_C!$ECHO_C$ac_delim
19916 ECHO_N!$ECHO_N$ac_delim
19917 ECHO_T!$ECHO_T$ac_delim
19918 LIBS!$LIBS$ac_delim
19919 build_alias!$build_alias$ac_delim
19920 host_alias!$host_alias$ac_delim
19921 target_alias!$target_alias$ac_delim
19922 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
19923 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
19924 INSTALL_DATA!$INSTALL_DATA$ac_delim
19925 CYGPATH_W!$CYGPATH_W$ac_delim
19926 PACKAGE!$PACKAGE$ac_delim
19927 VERSION!$VERSION$ac_delim
19928 ACLOCAL!$ACLOCAL$ac_delim
19929 AUTOCONF!$AUTOCONF$ac_delim
19930 AUTOMAKE!$AUTOMAKE$ac_delim
19931 AUTOHEADER!$AUTOHEADER$ac_delim
19932 MAKEINFO!$MAKEINFO$ac_delim
19933 install_sh!$install_sh$ac_delim
19934 STRIP!$STRIP$ac_delim
19935 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
19936 mkdir_p!$mkdir_p$ac_delim
19938 SET_MAKE!$SET_MAKE$ac_delim
19939 am__leading_dot!$am__leading_dot$ac_delim
19940 AMTAR!$AMTAR$ac_delim
19941 am__tar!$am__tar$ac_delim
19942 am__untar!$am__untar$ac_delim
19944 CFLAGS!$CFLAGS$ac_delim
19945 LDFLAGS!$LDFLAGS$ac_delim
19946 CPPFLAGS!$CPPFLAGS$ac_delim
19947 ac_ct_CC!$ac_ct_CC$ac_delim
19948 EXEEXT!$EXEEXT$ac_delim
19949 OBJEXT!$OBJEXT$ac_delim
19950 DEPDIR!$DEPDIR$ac_delim
19951 am__include!$am__include$ac_delim
19952 am__quote!$am__quote$ac_delim
19953 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
19954 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
19955 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
19956 CCDEPMODE!$CCDEPMODE$ac_delim
19957 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
19958 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
19960 build!$build$ac_delim
19961 build_cpu!$build_cpu$ac_delim
19962 build_vendor!$build_vendor$ac_delim
19963 build_os!$build_os$ac_delim
19964 host!$host$ac_delim
19965 host_cpu!$host_cpu$ac_delim
19966 host_vendor!$host_vendor$ac_delim
19967 host_os!$host_os$ac_delim
19968 GREP!$GREP$ac_delim
19969 EGREP!$EGREP$ac_delim
19970 LN_S!$LN_S$ac_delim
19971 ECHO!$ECHO$ac_delim
19973 RANLIB!$RANLIB$ac_delim
19975 CXXFLAGS!$CXXFLAGS$ac_delim
19976 ac_ct_CXX!$ac_ct_CXX$ac_delim
19977 CXXDEPMODE!$CXXDEPMODE$ac_delim
19978 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
19979 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
19980 CXXCPP!$CXXCPP$ac_delim
19984 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
19986 elif $ac_last_try; then
19987 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19988 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19989 { (exit 1); exit 1; }; }
19991 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19995 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19996 if test -n "$ac_eof"; then
19997 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19998 ac_eof=`expr $ac_eof + 1`
20001 cat >>$CONFIG_STATUS <<_ACEOF
20002 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20003 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20006 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20007 s/^/s,@/; s/!/@,|#_!!_#|/
20010 s/'"$ac_delim"'$/,g/; t
20012 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20013 ' >>$CONFIG_STATUS <conf$$subs.sed
20014 rm -f conf$$subs.sed
20015 cat >>$CONFIG_STATUS <<_ACEOF
20021 for ac_last_try in false false false false false :; do
20022 cat >conf$$subs.sed <<_ACEOF
20023 FFLAGS!$FFLAGS$ac_delim
20024 ac_ct_F77!$ac_ct_F77$ac_delim
20025 LIBTOOL!$LIBTOOL$ac_delim
20026 EMACS!$EMACS$ac_delim
20027 EMACSLOADPATH!$EMACSLOADPATH$ac_delim
20028 lispdir!$lispdir$ac_delim
20029 ELISP_TRUE!$ELISP_TRUE$ac_delim
20030 ELISP_FALSE!$ELISP_FALSE$ac_delim
20031 LIBOBJS!$LIBOBJS$ac_delim
20032 LTLIBOBJS!$LTLIBOBJS$ac_delim
20035 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then
20037 elif $ac_last_try; then
20038 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20039 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20040 { (exit 1); exit 1; }; }
20042 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20046 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20047 if test -n "$ac_eof"; then
20048 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20049 ac_eof=`expr $ac_eof + 1`
20052 cat >>$CONFIG_STATUS <<_ACEOF
20053 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20054 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20057 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20058 s/^/s,@/; s/!/@,|#_!!_#|/
20061 s/'"$ac_delim"'$/,g/; t
20063 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20064 ' >>$CONFIG_STATUS <conf$$subs.sed
20065 rm -f conf$$subs.sed
20066 cat >>$CONFIG_STATUS <<_ACEOF
20073 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20074 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20075 # trailing colons and then remove the whole line if VPATH becomes empty
20076 # (actually we leave an empty line to preserve line numbers).
20077 if test "x$srcdir" = x.; then
20078 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20079 s/:*\$(srcdir):*/:/
20080 s/:*\${srcdir}:*/:/
20082 s/^\([^=]*=[ ]*\):*/\1/
20088 cat >>$CONFIG_STATUS <<\_ACEOF
20089 fi # test -n "$CONFIG_FILES"
20092 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
20095 :[FHLC]) ac_mode=$ac_tag; continue;;
20097 case $ac_mode$ac_tag in
20099 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20100 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20101 { (exit 1); exit 1; }; };;
20102 :[FH]-) ac_tag=-:-;;
20103 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20120 -) ac_f="$tmp/stdin";;
20121 *) # Look for the file first in the build tree, then in the source tree
20122 # (if the path is not absolute). The absolute path cannot be DOS-style,
20123 # because $ac_f cannot contain `:'.
20127 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20129 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20130 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20131 { (exit 1); exit 1; }; };;
20133 ac_file_inputs="$ac_file_inputs $ac_f"
20136 # Let's still pretend it is `configure' which instantiates (i.e., don't
20137 # use $as_me), people would be surprised to read:
20138 # /* config.h. Generated by config.status. */
20139 configure_input="Generated from "`IFS=:
20140 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20141 if test x"$ac_file" != x-; then
20142 configure_input="$ac_file. $configure_input"
20143 { echo "$as_me:$LINENO: creating $ac_file" >&5
20144 echo "$as_me: creating $ac_file" >&6;}
20148 *:-:* | *:-) cat >"$tmp/stdin";;
20153 ac_dir=`$as_dirname -- "$ac_file" ||
20154 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20155 X"$ac_file" : 'X\(//\)[^/]' \| \
20156 X"$ac_file" : 'X\(//\)$' \| \
20157 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20159 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20163 /^X\(\/\/\)[^/].*/{
20178 -*) as_dir=./$as_dir;;
20180 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20184 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20185 *) as_qdir=$as_dir;;
20187 as_dirs="'$as_qdir' $as_dirs"
20188 as_dir=`$as_dirname -- "$as_dir" ||
20189 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20190 X"$as_dir" : 'X\(//\)[^/]' \| \
20191 X"$as_dir" : 'X\(//\)$' \| \
20192 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20198 /^X\(\/\/\)[^/].*/{
20211 test -d "$as_dir" && break
20213 test -z "$as_dirs" || eval "mkdir $as_dirs"
20214 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20215 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20216 { (exit 1); exit 1; }; }; }
20220 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20222 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20223 # A ".." for each directory in $ac_dir_suffix.
20224 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20225 case $ac_top_builddir_sub in
20226 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20227 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20230 ac_abs_top_builddir=$ac_pwd
20231 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20232 # for backward compatibility:
20233 ac_top_builddir=$ac_top_build_prefix
20236 .) # We are building in place.
20238 ac_top_srcdir=$ac_top_builddir_sub
20239 ac_abs_top_srcdir=$ac_pwd ;;
20240 [\\/]* | ?:[\\/]* ) # Absolute name.
20241 ac_srcdir=$srcdir$ac_dir_suffix;
20242 ac_top_srcdir=$srcdir
20243 ac_abs_top_srcdir=$srcdir ;;
20244 *) # Relative name.
20245 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20246 ac_top_srcdir=$ac_top_build_prefix$srcdir
20247 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20249 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20259 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20260 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20264 cat >>$CONFIG_STATUS <<\_ACEOF
20265 # If the template does not know about datarootdir, expand it.
20266 # FIXME: This hack should be removed a few years after 2.60.
20267 ac_datarootdir_hack=; ac_datarootdir_seen=
20269 case `sed -n '/datarootdir/ {
20278 ' $ac_file_inputs` in
20279 *datarootdir*) ac_datarootdir_seen=yes;;
20280 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20281 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20282 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20284 cat >>$CONFIG_STATUS <<_ACEOF
20285 ac_datarootdir_hack='
20286 s&@datadir@&$datadir&g
20287 s&@docdir@&$docdir&g
20288 s&@infodir@&$infodir&g
20289 s&@localedir@&$localedir&g
20290 s&@mandir@&$mandir&g
20291 s&\\\${datarootdir}&$datarootdir&g' ;;
20295 # Neutralize VPATH when `$srcdir' = `.'.
20296 # Shell code in configure.ac might set extrasub.
20297 # FIXME: do we really want to maintain this feature?
20298 cat >>$CONFIG_STATUS <<_ACEOF
20302 cat >>$CONFIG_STATUS <<\_ACEOF
20304 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20305 s&@configure_input@&$configure_input&;t t
20306 s&@top_builddir@&$ac_top_builddir_sub&;t t
20307 s&@srcdir@&$ac_srcdir&;t t
20308 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20309 s&@top_srcdir@&$ac_top_srcdir&;t t
20310 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20311 s&@builddir@&$ac_builddir&;t t
20312 s&@abs_builddir@&$ac_abs_builddir&;t t
20313 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20314 s&@INSTALL@&$ac_INSTALL&;t t
20315 $ac_datarootdir_hack
20316 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
20318 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20319 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20320 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20321 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20322 which seems to be undefined. Please make sure it is defined." >&5
20323 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20324 which seems to be undefined. Please make sure it is defined." >&2;}
20328 -) cat "$tmp/out"; rm -f "$tmp/out";;
20329 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
20338 # Transform confdefs.h into a sed script `conftest.defines', that
20339 # substitutes the proper values into config.h.in to produce config.h.
20340 rm -f conftest.defines conftest.tail
20341 # First, append a space to every undef/define line, to ease matching.
20342 echo 's/$/ /' >conftest.defines
20343 # Then, protect against being on the right side of a sed subst, or in
20344 # an unquoted here document, in config.status. If some macros were
20345 # called several times there might be several #defines for the same
20346 # symbol, which is useless. But do not sort them, since the last
20347 # AC_DEFINE must be honored.
20348 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20349 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
20350 # NAME is the cpp macro being defined, VALUE is the value it is being given.
20351 # PARAMS is the parameter list in the macro definition--in most cases, it's
20352 # just an empty string.
20353 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
20354 ac_dB='\\)[ (].*,\\1define\\2'
20362 s/^[ ]*#[ ]*define[ ][ ]*//
20367 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
20368 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
20369 ' >>conftest.defines
20371 # Remove the space that was appended to ease matching.
20372 # Then replace #undef with comments. This is necessary, for
20373 # example, in the case of _POSIX_SOURCE, which is predefined and required
20374 # on some systems where configure will not decide to define it.
20375 # (The regexp can be short, since the line contains either #define or #undef.)
20377 s,^[ #]*u.*,/* & */,' >>conftest.defines
20379 # Break up conftest.defines:
20380 ac_max_sed_lines=50
20382 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
20383 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
20384 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
20386 ac_in='$ac_file_inputs'
20387 ac_out='"$tmp/out1"'
20388 ac_nxt='"$tmp/out2"'
20392 # Write a here document:
20393 cat >>$CONFIG_STATUS <<_ACEOF
20394 # First, check the format of the line:
20395 cat >"\$tmp/defines.sed" <<\\CEOF
20396 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
20397 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
20401 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
20403 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
20404 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
20405 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
20406 grep . conftest.tail >/dev/null || break
20407 rm -f conftest.defines
20408 mv conftest.tail conftest.defines
20410 rm -f conftest.defines conftest.tail
20412 echo "ac_result=$ac_in" >>$CONFIG_STATUS
20413 cat >>$CONFIG_STATUS <<\_ACEOF
20414 if test x"$ac_file" != x-; then
20415 echo "/* $configure_input */" >"$tmp/config.h"
20416 cat "$ac_result" >>"$tmp/config.h"
20417 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
20418 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20419 echo "$as_me: $ac_file is unchanged" >&6;}
20422 mv "$tmp/config.h" $ac_file
20425 echo "/* $configure_input */"
20429 # Compute $ac_file's index in $config_headers.
20431 for _am_header in $config_headers :; do
20432 case $_am_header in
20433 $ac_file | $ac_file:* )
20436 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20439 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
20440 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20441 X$ac_file : 'X\(//\)[^/]' \| \
20442 X$ac_file : 'X\(//\)$' \| \
20443 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
20445 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20449 /^X\(\/\/\)[^/].*/{
20461 s/.*/./; q'`/stamp-h$_am_stamp_count
20464 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
20465 echo "$as_me: executing $ac_file commands" >&6;}
20470 case $ac_file$ac_mode in
20471 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20472 # Strip MF so we end up with the name of the file.
20473 mf=`echo "$mf" | sed -e 's/:.*$//'`
20474 # Check whether this is an Automake generated Makefile or not.
20475 # We used to match only the files named `Makefile.in', but
20476 # some people rename them; so instead we look at the file content.
20477 # Grep'ing the first line is not enough: some people post-process
20478 # each Makefile.in and add a new line on top of each file to say so.
20479 # So let's grep whole file.
20480 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20481 dirpart=`$as_dirname -- "$mf" ||
20482 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20483 X"$mf" : 'X\(//\)[^/]' \| \
20484 X"$mf" : 'X\(//\)$' \| \
20485 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20491 /^X\(\/\/\)[^/].*/{
20507 # Extract the definition of DEPDIR, am__include, and am__quote
20508 # from the Makefile without running `make'.
20509 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20510 test -z "$DEPDIR" && continue
20511 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20512 test -z "am__include" && continue
20513 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20514 # When using ansi2knr, U may be empty or an underscore; expand it
20515 U=`sed -n 's/^U = //p' < "$mf"`
20516 # Find all dependency output files, they are included files with
20517 # $(DEPDIR) in their names. We invoke sed twice because it is the
20518 # simplest approach to changing $(DEPDIR) to its actual value in the
20520 for file in `sed -n "
20521 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20522 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20523 # Make sure the directory exists.
20524 test -f "$dirpart/$file" && continue
20525 fdir=`$as_dirname -- "$file" ||
20526 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20527 X"$file" : 'X\(//\)[^/]' \| \
20528 X"$file" : 'X\(//\)$' \| \
20529 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20531 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20535 /^X\(\/\/\)[^/].*/{
20548 { as_dir=$dirpart/$fdir
20550 -*) as_dir=./$as_dir;;
20552 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20556 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20557 *) as_qdir=$as_dir;;
20559 as_dirs="'$as_qdir' $as_dirs"
20560 as_dir=`$as_dirname -- "$as_dir" ||
20561 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20562 X"$as_dir" : 'X\(//\)[^/]' \| \
20563 X"$as_dir" : 'X\(//\)$' \| \
20564 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20566 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20570 /^X\(\/\/\)[^/].*/{
20583 test -d "$as_dir" && break
20585 test -z "$as_dirs" || eval "mkdir $as_dirs"
20586 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20587 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20588 { (exit 1); exit 1; }; }; }
20589 # echo "creating $dirpart/$file"
20590 echo '# dummy' > "$dirpart/$file"
20599 { (exit 0); exit 0; }
20601 chmod +x $CONFIG_STATUS
20602 ac_clean_files=$ac_clean_files_save
20605 # configure is writing to config.log, and then calls config.status.
20606 # config.status does its own redirection, appending to config.log.
20607 # Unfortunately, on DOS this fails, as config.log is still kept open
20608 # by configure, so config.status won't be able to write to it; its
20609 # output is simply discarded. So we exec the FD to /dev/null,
20610 # effectively closing config.log, so it can be properly (re)opened and
20611 # appended to by config.status. When coming back to configure, we
20612 # need to make the FD available again.
20613 if test "$no_create" != yes; then
20615 ac_config_status_args=
20616 test "$silent" = yes &&
20617 ac_config_status_args="$ac_config_status_args --quiet"
20619 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20621 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20622 # would make configure fail if this is the last instruction.
20623 $ac_cs_success || { (exit 1); exit 1; }