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 # Factoring default headers for most tests.
734 ac_includes_default="\
736 #ifdef HAVE_SYS_TYPES_H
737 # include <sys/types.h>
739 #ifdef HAVE_SYS_STAT_H
740 # include <sys/stat.h>
746 # ifdef HAVE_STDLIB_H
751 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
756 #ifdef HAVE_STRINGS_H
757 # include <strings.h>
759 #ifdef HAVE_INTTYPES_H
760 # include <inttypes.h>
778 program_transform_name
820 INSTALL_STRIP_PROGRAM
884 ac_precious_vars='build_alias
904 # Initialize some variables set by options.
906 ac_init_version=false
907 # The variables have the same names as the options, with
908 # dashes changed to underlines.
916 program_transform_name=s,x,x,
924 # Installation directory options.
925 # These are left unexpanded so users can "make install exec_prefix=/foo"
926 # and all the variables that are supposed to be based on exec_prefix
927 # by default will actually change.
928 # Use braces instead of parens because sh, perl, etc. also accept them.
929 # (The list follows the same order as the GNU Coding Standards.)
930 bindir='${exec_prefix}/bin'
931 sbindir='${exec_prefix}/sbin'
932 libexecdir='${exec_prefix}/libexec'
933 datarootdir='${prefix}/share'
934 datadir='${datarootdir}'
935 sysconfdir='${prefix}/etc'
936 sharedstatedir='${prefix}/com'
937 localstatedir='${prefix}/var'
938 includedir='${prefix}/include'
939 oldincludedir='/usr/include'
940 docdir='${datarootdir}/doc/${PACKAGE}'
941 infodir='${datarootdir}/info'
946 libdir='${exec_prefix}/lib'
947 localedir='${datarootdir}/locale'
948 mandir='${datarootdir}/man'
954 # If the previous option needs an argument, assign it.
955 if test -n "$ac_prev"; then
956 eval $ac_prev=\$ac_option
962 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
966 # Accept the important Cygnus configure options, so we can diagnose typos.
968 case $ac_dashdash$ac_option in
972 -bindir | --bindir | --bindi | --bind | --bin | --bi)
974 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
977 -build | --build | --buil | --bui | --bu)
978 ac_prev=build_alias ;;
979 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
980 build_alias=$ac_optarg ;;
982 -cache-file | --cache-file | --cache-fil | --cache-fi \
983 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
984 ac_prev=cache_file ;;
985 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
986 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
987 cache_file=$ac_optarg ;;
990 cache_file=config.cache ;;
992 -datadir | --datadir | --datadi | --datad)
994 -datadir=* | --datadir=* | --datadi=* | --datad=*)
995 datadir=$ac_optarg ;;
997 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
998 | --dataroo | --dataro | --datar)
999 ac_prev=datarootdir ;;
1000 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1001 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1002 datarootdir=$ac_optarg ;;
1004 -disable-* | --disable-*)
1005 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1006 # Reject names that are not valid shell variable names.
1007 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1008 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1009 { (exit 1); exit 1; }; }
1010 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1011 eval enable_$ac_feature=no ;;
1013 -docdir | --docdir | --docdi | --doc | --do)
1015 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1016 docdir=$ac_optarg ;;
1018 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1020 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1021 dvidir=$ac_optarg ;;
1023 -enable-* | --enable-*)
1024 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1025 # Reject names that are not valid shell variable names.
1026 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1027 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1028 { (exit 1); exit 1; }; }
1029 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1030 eval enable_$ac_feature=\$ac_optarg ;;
1032 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1033 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1034 | --exec | --exe | --ex)
1035 ac_prev=exec_prefix ;;
1036 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1037 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1038 | --exec=* | --exe=* | --ex=*)
1039 exec_prefix=$ac_optarg ;;
1041 -gas | --gas | --ga | --g)
1042 # Obsolete; use --with-gas.
1045 -help | --help | --hel | --he | -h)
1046 ac_init_help=long ;;
1047 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1048 ac_init_help=recursive ;;
1049 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1050 ac_init_help=short ;;
1052 -host | --host | --hos | --ho)
1053 ac_prev=host_alias ;;
1054 -host=* | --host=* | --hos=* | --ho=*)
1055 host_alias=$ac_optarg ;;
1057 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1059 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1061 htmldir=$ac_optarg ;;
1063 -includedir | --includedir | --includedi | --included | --include \
1064 | --includ | --inclu | --incl | --inc)
1065 ac_prev=includedir ;;
1066 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1067 | --includ=* | --inclu=* | --incl=* | --inc=*)
1068 includedir=$ac_optarg ;;
1070 -infodir | --infodir | --infodi | --infod | --info | --inf)
1072 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1073 infodir=$ac_optarg ;;
1075 -libdir | --libdir | --libdi | --libd)
1077 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1078 libdir=$ac_optarg ;;
1080 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1081 | --libexe | --libex | --libe)
1082 ac_prev=libexecdir ;;
1083 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1084 | --libexe=* | --libex=* | --libe=*)
1085 libexecdir=$ac_optarg ;;
1087 -localedir | --localedir | --localedi | --localed | --locale)
1088 ac_prev=localedir ;;
1089 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1090 localedir=$ac_optarg ;;
1092 -localstatedir | --localstatedir | --localstatedi | --localstated \
1093 | --localstate | --localstat | --localsta | --localst | --locals)
1094 ac_prev=localstatedir ;;
1095 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1096 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1097 localstatedir=$ac_optarg ;;
1099 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1101 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1102 mandir=$ac_optarg ;;
1104 -nfp | --nfp | --nf)
1105 # Obsolete; use --without-fp.
1108 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1109 | --no-cr | --no-c | -n)
1112 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1113 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1116 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1117 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1118 | --oldin | --oldi | --old | --ol | --o)
1119 ac_prev=oldincludedir ;;
1120 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1121 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1122 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1123 oldincludedir=$ac_optarg ;;
1125 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1127 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1128 prefix=$ac_optarg ;;
1130 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1131 | --program-pre | --program-pr | --program-p)
1132 ac_prev=program_prefix ;;
1133 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1134 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1135 program_prefix=$ac_optarg ;;
1137 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1138 | --program-suf | --program-su | --program-s)
1139 ac_prev=program_suffix ;;
1140 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1141 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1142 program_suffix=$ac_optarg ;;
1144 -program-transform-name | --program-transform-name \
1145 | --program-transform-nam | --program-transform-na \
1146 | --program-transform-n | --program-transform- \
1147 | --program-transform | --program-transfor \
1148 | --program-transfo | --program-transf \
1149 | --program-trans | --program-tran \
1150 | --progr-tra | --program-tr | --program-t)
1151 ac_prev=program_transform_name ;;
1152 -program-transform-name=* | --program-transform-name=* \
1153 | --program-transform-nam=* | --program-transform-na=* \
1154 | --program-transform-n=* | --program-transform-=* \
1155 | --program-transform=* | --program-transfor=* \
1156 | --program-transfo=* | --program-transf=* \
1157 | --program-trans=* | --program-tran=* \
1158 | --progr-tra=* | --program-tr=* | --program-t=*)
1159 program_transform_name=$ac_optarg ;;
1161 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1163 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1164 pdfdir=$ac_optarg ;;
1166 -psdir | --psdir | --psdi | --psd | --ps)
1168 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1171 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1172 | -silent | --silent | --silen | --sile | --sil)
1175 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1177 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1179 sbindir=$ac_optarg ;;
1181 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1182 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1183 | --sharedst | --shareds | --shared | --share | --shar \
1185 ac_prev=sharedstatedir ;;
1186 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1187 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1188 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1190 sharedstatedir=$ac_optarg ;;
1192 -site | --site | --sit)
1194 -site=* | --site=* | --sit=*)
1197 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1199 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1200 srcdir=$ac_optarg ;;
1202 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1203 | --syscon | --sysco | --sysc | --sys | --sy)
1204 ac_prev=sysconfdir ;;
1205 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1206 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1207 sysconfdir=$ac_optarg ;;
1209 -target | --target | --targe | --targ | --tar | --ta | --t)
1210 ac_prev=target_alias ;;
1211 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1212 target_alias=$ac_optarg ;;
1214 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1217 -version | --version | --versio | --versi | --vers | -V)
1218 ac_init_version=: ;;
1221 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1222 # Reject names that are not valid shell variable names.
1223 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1224 { echo "$as_me: error: invalid package name: $ac_package" >&2
1225 { (exit 1); exit 1; }; }
1226 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1227 eval with_$ac_package=\$ac_optarg ;;
1229 -without-* | --without-*)
1230 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1231 # Reject names that are not valid shell variable names.
1232 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1233 { echo "$as_me: error: invalid package name: $ac_package" >&2
1234 { (exit 1); exit 1; }; }
1235 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1236 eval with_$ac_package=no ;;
1239 # Obsolete; use --with-x.
1242 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1243 | --x-incl | --x-inc | --x-in | --x-i)
1244 ac_prev=x_includes ;;
1245 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1246 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1247 x_includes=$ac_optarg ;;
1249 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1250 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1251 ac_prev=x_libraries ;;
1252 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1253 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1254 x_libraries=$ac_optarg ;;
1256 -*) { echo "$as_me: error: unrecognized option: $ac_option
1257 Try \`$0 --help' for more information." >&2
1258 { (exit 1); exit 1; }; }
1262 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1263 # Reject names that are not valid shell variable names.
1264 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1265 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1266 { (exit 1); exit 1; }; }
1267 eval $ac_envvar=\$ac_optarg
1268 export $ac_envvar ;;
1271 # FIXME: should be removed in autoconf 3.0.
1272 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1273 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1274 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1275 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1281 if test -n "$ac_prev"; then
1282 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1283 { echo "$as_me: error: missing argument to $ac_option" >&2
1284 { (exit 1); exit 1; }; }
1287 # Be sure to have absolute directory names.
1288 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1289 datadir sysconfdir sharedstatedir localstatedir includedir \
1290 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1291 libdir localedir mandir
1293 eval ac_val=\$$ac_var
1295 [\\/$]* | ?:[\\/]* ) continue;;
1296 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1298 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1299 { (exit 1); exit 1; }; }
1302 # There might be people who depend on the old broken behavior: `$host'
1303 # used to hold the argument of --host etc.
1304 # FIXME: To remove some day.
1307 target=$target_alias
1309 # FIXME: To remove some day.
1310 if test "x$host_alias" != x; then
1311 if test "x$build_alias" = x; then
1312 cross_compiling=maybe
1313 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1314 If a cross compiler is detected then cross compile mode will be used." >&2
1315 elif test "x$build_alias" != "x$host_alias"; then
1321 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1323 test "$silent" = yes && exec 6>/dev/null
1326 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1327 ac_ls_di=`ls -di .` &&
1328 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1329 { echo "$as_me: error: Working directory cannot be determined" >&2
1330 { (exit 1); exit 1; }; }
1331 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1332 { echo "$as_me: error: pwd does not report name of working directory" >&2
1333 { (exit 1); exit 1; }; }
1336 # Find the source files, if location was not specified.
1337 if test -z "$srcdir"; then
1338 ac_srcdir_defaulted=yes
1339 # Try the directory containing this script, then the parent directory.
1340 ac_confdir=`$as_dirname -- "$0" ||
1341 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1342 X"$0" : 'X\(//\)[^/]' \| \
1343 X"$0" : 'X\(//\)$' \| \
1344 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1364 if test ! -r "$srcdir/$ac_unique_file"; then
1368 ac_srcdir_defaulted=no
1370 if test ! -r "$srcdir/$ac_unique_file"; then
1371 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1372 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1373 { (exit 1); exit 1; }; }
1375 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1377 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1378 { (exit 1); exit 1; }; }
1380 # When building in place, set srcdir=.
1381 if test "$ac_abs_confdir" = "$ac_pwd"; then
1384 # Remove unnecessary trailing slashes from srcdir.
1385 # Double slashes in file names in object file debugging info
1386 # mess up M-x gdb in Emacs.
1388 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1390 for ac_var in $ac_precious_vars; do
1391 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1392 eval ac_env_${ac_var}_value=\$${ac_var}
1393 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1394 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1398 # Report the --help message.
1400 if test "$ac_init_help" = "long"; then
1401 # Omit some internal or obsolete options to make the list less imposing.
1402 # This message is too long to be a string in the A/UX 3.1 sh.
1404 \`configure' configures this package to adapt to many kinds of systems.
1406 Usage: $0 [OPTION]... [VAR=VALUE]...
1408 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1409 VAR=VALUE. See below for descriptions of some of the useful variables.
1411 Defaults for the options are specified in brackets.
1414 -h, --help display this help and exit
1415 --help=short display options specific to this package
1416 --help=recursive display the short help of all the included packages
1417 -V, --version display version information and exit
1418 -q, --quiet, --silent do not print \`checking...' messages
1419 --cache-file=FILE cache test results in FILE [disabled]
1420 -C, --config-cache alias for \`--cache-file=config.cache'
1421 -n, --no-create do not create output files
1422 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1424 Installation directories:
1425 --prefix=PREFIX install architecture-independent files in PREFIX
1426 [$ac_default_prefix]
1427 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1430 By default, \`make install' will install all the files in
1431 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1432 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1433 for instance \`--prefix=\$HOME'.
1435 For better control, use the options below.
1437 Fine tuning of the installation directories:
1438 --bindir=DIR user executables [EPREFIX/bin]
1439 --sbindir=DIR system admin executables [EPREFIX/sbin]
1440 --libexecdir=DIR program executables [EPREFIX/libexec]
1441 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1442 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1443 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1444 --libdir=DIR object code libraries [EPREFIX/lib]
1445 --includedir=DIR C header files [PREFIX/include]
1446 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1447 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1448 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1449 --infodir=DIR info documentation [DATAROOTDIR/info]
1450 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1451 --mandir=DIR man documentation [DATAROOTDIR/man]
1452 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/PACKAGE@:>@
1453 --htmldir=DIR html documentation [DOCDIR]
1454 --dvidir=DIR dvi documentation [DOCDIR]
1455 --pdfdir=DIR pdf documentation [DOCDIR]
1456 --psdir=DIR ps documentation [DOCDIR]
1462 --program-prefix=PREFIX prepend PREFIX to installed program names
1463 --program-suffix=SUFFIX append SUFFIX to installed program names
1464 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1467 --build=BUILD configure for building on BUILD [guessed]
1468 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1472 if test -n "$ac_init_help"; then
1477 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1478 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1479 --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=no@:>@
1480 --disable-dependency-tracking speeds up one-time build
1481 --enable-dependency-tracking do not reject slow dependency extractors
1482 --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@
1483 --enable-fast-install@<:@=PKGS@:>@
1484 optimize for fast installation @<:@default=yes@:>@
1485 --disable-libtool-lock avoid locking (might break parallel builds)
1486 --enable-debug compile with debugging support
1487 --enable-static-sipe statically link in Simple Exchange
1490 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1491 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1492 --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
1493 --with-pic try to use only PIC/non-PIC objects @<:@default=use
1495 --with-tags@<:@=TAGS@:>@ include additional configurations @<:@automatic@:>@
1497 Some influential environment variables:
1498 CC C compiler command
1499 CFLAGS C compiler flags
1500 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1501 nonstandard directory <lib dir>
1502 LIBS libraries to pass to the linker, e.g. -l<library>
1503 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1504 you have headers in a nonstandard directory <include dir>
1506 CXX C++ compiler command
1507 CXXFLAGS C++ compiler flags
1508 CXXCPP C++ preprocessor
1509 F77 Fortran 77 compiler command
1510 FFLAGS Fortran 77 compiler flags
1511 PKG_CONFIG path to pkg-config utility
1513 C compiler flags for libpurple, overriding pkg-config
1515 linker flags for libpurple, overriding pkg-config
1517 Use these variables to override the choices made by `configure' or to help
1518 it to find libraries and programs with nonstandard names/locations.
1524 if test "$ac_init_help" = "recursive"; then
1525 # If there are subdirs, report their specific --help.
1526 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1527 test -d "$ac_dir" || continue
1531 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1534 # A ".." for each directory in $ac_dir_suffix.
1535 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1536 case $ac_top_builddir_sub in
1537 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1538 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1541 ac_abs_top_builddir=$ac_pwd
1542 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1543 # for backward compatibility:
1544 ac_top_builddir=$ac_top_build_prefix
1547 .) # We are building in place.
1549 ac_top_srcdir=$ac_top_builddir_sub
1550 ac_abs_top_srcdir=$ac_pwd ;;
1551 [\\/]* | ?:[\\/]* ) # Absolute name.
1552 ac_srcdir=$srcdir$ac_dir_suffix;
1553 ac_top_srcdir=$srcdir
1554 ac_abs_top_srcdir=$srcdir ;;
1556 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1557 ac_top_srcdir=$ac_top_build_prefix$srcdir
1558 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1560 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1562 cd "$ac_dir" || { ac_status=$?; continue; }
1563 # Check for guested configure.
1564 if test -f "$ac_srcdir/configure.gnu"; then
1566 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1567 elif test -f "$ac_srcdir/configure"; then
1569 $SHELL "$ac_srcdir/configure" --help=recursive
1571 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1573 cd "$ac_pwd" || { ac_status=$?; break; }
1577 test -n "$ac_init_help" && exit $ac_status
1578 if $ac_init_version; then
1581 generated by GNU Autoconf 2.61
1583 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1584 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1585 This configure script is free software; the Free Software Foundation
1586 gives unlimited permission to copy, distribute and modify it.
1590 cat >config.log <<_ACEOF
1591 This file contains any messages produced by compilers while
1592 running configure, to aid debugging if configure makes a mistake.
1594 It was created by $as_me, which was
1595 generated by GNU Autoconf 2.61. Invocation command line was
1603 @%:@@%:@ --------- @%:@@%:@
1604 @%:@@%:@ Platform. @%:@@%:@
1605 @%:@@%:@ --------- @%:@@%:@
1607 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1608 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1609 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1610 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1611 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1613 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1614 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1616 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1617 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1618 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1619 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1620 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1621 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1622 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1630 test -z "$as_dir" && as_dir=.
1631 echo "PATH: $as_dir"
1640 @%:@@%:@ ----------- @%:@@%:@
1641 @%:@@%:@ Core tests. @%:@@%:@
1642 @%:@@%:@ ----------- @%:@@%:@
1647 # Keep a trace of the command line.
1648 # Strip out --no-create and --no-recursion so they do not pile up.
1649 # Strip out --silent because we don't want to record it for future runs.
1650 # Also quote any args containing shell meta-characters.
1651 # Make two passes to allow for proper duplicate-argument suppression.
1655 ac_must_keep_next=false
1661 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1662 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1663 | -silent | --silent | --silen | --sile | --sil)
1666 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1669 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1671 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1672 if test $ac_must_keep_next = true; then
1673 ac_must_keep_next=false # Got value, back to normal.
1676 *=* | --config-cache | -C | -disable-* | --disable-* \
1677 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1678 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1679 | -with-* | --with-* | -without-* | --without-* | --x)
1680 case "$ac_configure_args0 " in
1681 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1684 -* ) ac_must_keep_next=true ;;
1687 ac_configure_args="$ac_configure_args '$ac_arg'"
1692 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1693 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1695 # When interrupted or exit'd, cleanup temporary files, and complete
1696 # config.log. We remove comments because anyway the quotes in there
1697 # would cause problems or look ugly.
1698 # WARNING: Use '\'' to represent an apostrophe within the trap.
1699 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1700 trap 'exit_status=$?
1701 # Save into config.log some information that might help in debugging.
1706 @%:@@%:@ ---------------- @%:@@%:@
1707 @%:@@%:@ Cache variables. @%:@@%:@
1708 @%:@@%:@ ---------------- @%:@@%:@
1711 # The following way of writing the cache mishandles newlines in values,
1713 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1714 eval ac_val=\$$ac_var
1718 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1719 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1722 _ | IFS | as_nl) ;; #(
1723 *) $as_unset $ac_var ;;
1728 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1729 *${as_nl}ac_space=\ *)
1731 "s/'\''/'\''\\\\'\'''\''/g;
1732 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1735 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1743 @%:@@%:@ ----------------- @%:@@%:@
1744 @%:@@%:@ Output variables. @%:@@%:@
1745 @%:@@%:@ ----------------- @%:@@%:@
1748 for ac_var in $ac_subst_vars
1750 eval ac_val=\$$ac_var
1752 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1754 echo "$ac_var='\''$ac_val'\''"
1758 if test -n "$ac_subst_files"; then
1760 @%:@@%:@ ------------------- @%:@@%:@
1761 @%:@@%:@ File substitutions. @%:@@%:@
1762 @%:@@%:@ ------------------- @%:@@%:@
1765 for ac_var in $ac_subst_files
1767 eval ac_val=\$$ac_var
1769 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1771 echo "$ac_var='\''$ac_val'\''"
1776 if test -s confdefs.h; then
1778 @%:@@%:@ ----------- @%:@@%:@
1779 @%:@@%:@ confdefs.h. @%:@@%:@
1780 @%:@@%:@ ----------- @%:@@%:@
1786 test "$ac_signal" != 0 &&
1787 echo "$as_me: caught signal $ac_signal"
1788 echo "$as_me: exit $exit_status"
1790 rm -f core *.core core.conftest.* &&
1791 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1794 for ac_signal in 1 2 13 15; do
1795 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1799 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1800 rm -f -r conftest* confdefs.h
1802 # Predefined preprocessor variables.
1804 cat >>confdefs.h <<_ACEOF
1805 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
1809 cat >>confdefs.h <<_ACEOF
1810 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1814 cat >>confdefs.h <<_ACEOF
1815 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1819 cat >>confdefs.h <<_ACEOF
1820 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
1824 cat >>confdefs.h <<_ACEOF
1825 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1829 # Let the site file select an alternate cache file if it wants to.
1830 # Prefer explicitly selected file to automatically selected ones.
1831 if test -n "$CONFIG_SITE"; then
1832 set x "$CONFIG_SITE"
1833 elif test "x$prefix" != xNONE; then
1834 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1836 set x "$ac_default_prefix/share/config.site" \
1837 "$ac_default_prefix/etc/config.site"
1842 if test -r "$ac_site_file"; then
1843 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1844 echo "$as_me: loading site script $ac_site_file" >&6;}
1845 sed 's/^/| /' "$ac_site_file" >&5
1850 if test -r "$cache_file"; then
1851 # Some versions of bash will fail to source /dev/null (special
1852 # files actually), so we avoid doing that.
1853 if test -f "$cache_file"; then
1854 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1855 echo "$as_me: loading cache $cache_file" >&6;}
1857 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1858 *) . "./$cache_file";;
1862 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1863 echo "$as_me: creating cache $cache_file" >&6;}
1867 # Check that the precious variables saved in the cache have kept the same
1869 ac_cache_corrupted=false
1870 for ac_var in $ac_precious_vars; do
1871 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1872 eval ac_new_set=\$ac_env_${ac_var}_set
1873 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1874 eval ac_new_val=\$ac_env_${ac_var}_value
1875 case $ac_old_set,$ac_new_set in
1877 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1878 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1879 ac_cache_corrupted=: ;;
1881 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1882 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1883 ac_cache_corrupted=: ;;
1886 if test "x$ac_old_val" != "x$ac_new_val"; then
1887 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1888 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1889 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1890 echo "$as_me: former value: $ac_old_val" >&2;}
1891 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1892 echo "$as_me: current value: $ac_new_val" >&2;}
1893 ac_cache_corrupted=:
1896 # Pass precious variables to config.status.
1897 if test "$ac_new_set" = set; then
1899 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1900 *) ac_arg=$ac_var=$ac_new_val ;;
1902 case " $ac_configure_args " in
1903 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1904 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1908 if $ac_cache_corrupted; then
1909 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1910 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1911 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1912 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1913 { (exit 1); exit 1; }; }
1933 ac_cpp='$CPP $CPPFLAGS'
1934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1939 am__api_version='1.10'
1942 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1943 if test -f "$ac_dir/install-sh"; then
1945 ac_install_sh="$ac_aux_dir/install-sh -c"
1947 elif test -f "$ac_dir/install.sh"; then
1949 ac_install_sh="$ac_aux_dir/install.sh -c"
1951 elif test -f "$ac_dir/shtool"; then
1953 ac_install_sh="$ac_aux_dir/shtool install -c"
1957 if test -z "$ac_aux_dir"; then
1958 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1959 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1960 { (exit 1); exit 1; }; }
1963 # These three variables are undocumented and unsupported,
1964 # and are intended to be withdrawn in a future Autoconf release.
1965 # They can cause serious problems if a builder's source tree is in a directory
1966 # whose full name contains unusual characters.
1967 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1968 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1969 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1972 # Find a good install program. We prefer a C program (faster),
1973 # so one script is as good as another. But avoid the broken or
1974 # incompatible versions:
1975 # SysV /etc/install, /usr/sbin/install
1976 # SunOS /usr/etc/install
1977 # IRIX /sbin/install
1979 # AmigaOS /C/install, which installs bootblocks on floppy discs
1980 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1981 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1982 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1983 # OS/2's system install, which has a completely different semantic
1984 # ./install, which can be erroneously created by make from ./install.sh.
1985 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1986 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1987 if test -z "$INSTALL"; then
1988 if test "${ac_cv_path_install+set}" = set; then
1989 echo $ECHO_N "(cached) $ECHO_C" >&6
1991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1995 test -z "$as_dir" && as_dir=.
1996 # Account for people who put trailing slashes in PATH elements.
1998 ./ | .// | /cC/* | \
1999 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2000 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2003 # OSF1 and SCO ODT 3.0 have their own names for install.
2004 # Don't use installbsd from OSF since it installs stuff as root
2006 for ac_prog in ginstall scoinst install; do
2007 for ac_exec_ext in '' $ac_executable_extensions; do
2008 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2009 if test $ac_prog = install &&
2010 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2011 # AIX install. It has an incompatible calling convention.
2013 elif test $ac_prog = install &&
2014 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2015 # program-specific install script used by HP pwplus--don't use.
2018 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2031 if test "${ac_cv_path_install+set}" = set; then
2032 INSTALL=$ac_cv_path_install
2034 # As a last resort, use the slow shell script. Don't cache a
2035 # value for INSTALL within a source directory, because that will
2036 # break other packages using the cache if that directory is
2037 # removed, or if the value is a relative name.
2038 INSTALL=$ac_install_sh
2041 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2042 echo "${ECHO_T}$INSTALL" >&6; }
2044 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2045 # It thinks the first close brace ends the variable substitution.
2046 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2048 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2050 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2052 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2053 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2056 echo timestamp > conftest.file
2057 # Do `set' in a subshell so we don't clobber the current shell's
2058 # arguments. Must try -L first in case configure is actually a
2059 # symlink; some systems play weird games with the mod time of symlinks
2060 # (eg FreeBSD returns the mod time of the symlink's containing
2063 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2064 if test "$*" = "X"; then
2066 set X `ls -t $srcdir/configure conftest.file`
2069 if test "$*" != "X $srcdir/configure conftest.file" \
2070 && test "$*" != "X conftest.file $srcdir/configure"; then
2072 # If neither matched, then we have a broken ls. This can happen
2073 # if, for instance, CONFIG_SHELL is bash and it inherits a
2074 # broken ls alias from the environment. This has actually
2075 # happened. Such a system could not be considered "sane".
2076 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2077 alias in your environment" >&5
2078 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2079 alias in your environment" >&2;}
2080 { (exit 1); exit 1; }; }
2083 test "$2" = conftest.file
2089 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2090 Check your system clock" >&5
2091 echo "$as_me: error: newly created file is older than distributed files!
2092 Check your system clock" >&2;}
2093 { (exit 1); exit 1; }; }
2095 { echo "$as_me:$LINENO: result: yes" >&5
2096 echo "${ECHO_T}yes" >&6; }
2097 test "$program_prefix" != NONE &&
2098 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2099 # Use a double $ so make ignores it.
2100 test "$program_suffix" != NONE &&
2101 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2102 # Double any \ or $. echo might interpret backslashes.
2103 # By default was `s,x,x', remove it if useless.
2104 cat <<\_ACEOF >conftest.sed
2105 s/[\\$]/&&/g;s/;s,x,x,$//
2107 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2110 # expand $ac_aux_dir to an absolute path
2111 am_aux_dir=`cd $ac_aux_dir && pwd`
2113 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2114 # Use eval to expand $SHELL
2115 if eval "$MISSING --run true"; then
2116 am_missing_run="$MISSING --run "
2119 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2120 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2123 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2124 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2125 if test -z "$MKDIR_P"; then
2126 if test "${ac_cv_path_mkdir+set}" = set; then
2127 echo $ECHO_N "(cached) $ECHO_C" >&6
2129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2130 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2133 test -z "$as_dir" && as_dir=.
2134 for ac_prog in mkdir gmkdir; do
2135 for ac_exec_ext in '' $ac_executable_extensions; do
2136 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2137 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2138 'mkdir (GNU coreutils) '* | \
2139 'mkdir (coreutils) '* | \
2140 'mkdir (fileutils) '4.1*)
2141 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2151 if test "${ac_cv_path_mkdir+set}" = set; then
2152 MKDIR_P="$ac_cv_path_mkdir -p"
2154 # As a last resort, use the slow shell script. Don't cache a
2155 # value for MKDIR_P within a source directory, because that will
2156 # break other packages using the cache if that directory is
2157 # removed, or if the value is a relative name.
2158 test -d ./--version && rmdir ./--version
2159 MKDIR_P="$ac_install_sh -d"
2162 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2163 echo "${ECHO_T}$MKDIR_P" >&6; }
2167 [\\/$]* | ?:[\\/]*) ;;
2168 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2171 for ac_prog in gawk mawk nawk awk
2173 # Extract the first word of "$ac_prog", so it can be a program name with args.
2174 set dummy $ac_prog; ac_word=$2
2175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2177 if test "${ac_cv_prog_AWK+set}" = set; then
2178 echo $ECHO_N "(cached) $ECHO_C" >&6
2180 if test -n "$AWK"; then
2181 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2187 test -z "$as_dir" && as_dir=.
2188 for ac_exec_ext in '' $ac_executable_extensions; do
2189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2190 ac_cv_prog_AWK="$ac_prog"
2191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2201 if test -n "$AWK"; then
2202 { echo "$as_me:$LINENO: result: $AWK" >&5
2203 echo "${ECHO_T}$AWK" >&6; }
2205 { echo "$as_me:$LINENO: result: no" >&5
2206 echo "${ECHO_T}no" >&6; }
2210 test -n "$AWK" && break
2213 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2214 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2215 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2216 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2217 echo $ECHO_N "(cached) $ECHO_C" >&6
2219 cat >conftest.make <<\_ACEOF
2222 @echo '@@@%%%=$(MAKE)=@@@%%%'
2224 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2225 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2227 eval ac_cv_prog_make_${ac_make}_set=yes;;
2229 eval ac_cv_prog_make_${ac_make}_set=no;;
2233 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2234 { echo "$as_me:$LINENO: result: yes" >&5
2235 echo "${ECHO_T}yes" >&6; }
2238 { echo "$as_me:$LINENO: result: no" >&5
2239 echo "${ECHO_T}no" >&6; }
2240 SET_MAKE="MAKE=${MAKE-make}"
2243 rm -rf .tst 2>/dev/null
2244 mkdir .tst 2>/dev/null
2245 if test -d .tst; then
2250 rmdir .tst 2>/dev/null
2252 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2253 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2254 # is not polluted with repeated "-I."
2255 am__isrc=' -I$(srcdir)'
2256 # test to see if srcdir already configured
2257 if test -f $srcdir/config.status; then
2258 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2259 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2260 { (exit 1); exit 1; }; }
2264 # test whether we have cygpath
2265 if test -z "$CYGPATH_W"; then
2266 if (cygpath --version) >/dev/null 2>/dev/null; then
2267 CYGPATH_W='cygpath -w'
2274 # Define the identity of the package.
2279 cat >>confdefs.h <<_ACEOF
2280 @%:@define PACKAGE "$PACKAGE"
2284 cat >>confdefs.h <<_ACEOF
2285 @%:@define VERSION "$VERSION"
2288 # Some tools Automake needs.
2290 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2293 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2296 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2299 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2302 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2304 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2306 # Installed binaries are usually stripped using `strip' when the user
2307 # run `make install-strip'. However `strip' might not be the right
2308 # tool to use in cross-compilation environments, therefore Automake
2309 # will honor the `STRIP' environment variable to overrule this program.
2310 if test "$cross_compiling" != no; then
2311 if test -n "$ac_tool_prefix"; then
2312 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2313 set dummy ${ac_tool_prefix}strip; ac_word=$2
2314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2316 if test "${ac_cv_prog_STRIP+set}" = set; then
2317 echo $ECHO_N "(cached) $ECHO_C" >&6
2319 if test -n "$STRIP"; then
2320 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2326 test -z "$as_dir" && as_dir=.
2327 for ac_exec_ext in '' $ac_executable_extensions; do
2328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2329 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2339 STRIP=$ac_cv_prog_STRIP
2340 if test -n "$STRIP"; then
2341 { echo "$as_me:$LINENO: result: $STRIP" >&5
2342 echo "${ECHO_T}$STRIP" >&6; }
2344 { echo "$as_me:$LINENO: result: no" >&5
2345 echo "${ECHO_T}no" >&6; }
2350 if test -z "$ac_cv_prog_STRIP"; then
2352 # Extract the first word of "strip", so it can be a program name with args.
2353 set dummy strip; ac_word=$2
2354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2356 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2357 echo $ECHO_N "(cached) $ECHO_C" >&6
2359 if test -n "$ac_ct_STRIP"; then
2360 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2366 test -z "$as_dir" && as_dir=.
2367 for ac_exec_ext in '' $ac_executable_extensions; do
2368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2369 ac_cv_prog_ac_ct_STRIP="strip"
2370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2379 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2380 if test -n "$ac_ct_STRIP"; then
2381 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2382 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2384 { echo "$as_me:$LINENO: result: no" >&5
2385 echo "${ECHO_T}no" >&6; }
2388 if test "x$ac_ct_STRIP" = x; then
2391 case $cross_compiling:$ac_tool_warned in
2393 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2394 whose name does not start with the host triplet. If you think this
2395 configuration is useful to you, please write to autoconf@gnu.org." >&5
2396 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2397 whose name does not start with the host triplet. If you think this
2398 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2399 ac_tool_warned=yes ;;
2404 STRIP="$ac_cv_prog_STRIP"
2408 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2410 # We need awk for the "check" target. The system "awk" is bad on
2412 # Always define AMTAR for backward compatibility.
2414 AMTAR=${AMTAR-"${am_missing_run}tar"}
2416 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2425 # Check whether --enable-static was given.
2426 if test "${enable_static+set}" = set; then
2427 enableval=$enable_static; p=${PACKAGE-default}
2429 yes) enable_static=yes ;;
2430 no) enable_static=no ;;
2433 # Look at the argument we got. We use all the common list separators.
2434 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2435 for pkg in $enableval; do
2437 if test "X$pkg" = "X$p"; then
2452 ac_cpp='$CPP $CPPFLAGS'
2453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2456 if test -n "$ac_tool_prefix"; then
2457 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2458 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2461 if test "${ac_cv_prog_CC+set}" = set; then
2462 echo $ECHO_N "(cached) $ECHO_C" >&6
2464 if test -n "$CC"; then
2465 ac_cv_prog_CC="$CC" # Let the user override the test.
2467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471 test -z "$as_dir" && as_dir=.
2472 for ac_exec_ext in '' $ac_executable_extensions; do
2473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2474 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2485 if test -n "$CC"; then
2486 { echo "$as_me:$LINENO: result: $CC" >&5
2487 echo "${ECHO_T}$CC" >&6; }
2489 { echo "$as_me:$LINENO: result: no" >&5
2490 echo "${ECHO_T}no" >&6; }
2495 if test -z "$ac_cv_prog_CC"; then
2497 # Extract the first word of "gcc", so it can be a program name with args.
2498 set dummy gcc; ac_word=$2
2499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2501 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2502 echo $ECHO_N "(cached) $ECHO_C" >&6
2504 if test -n "$ac_ct_CC"; then
2505 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511 test -z "$as_dir" && as_dir=.
2512 for ac_exec_ext in '' $ac_executable_extensions; do
2513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2514 ac_cv_prog_ac_ct_CC="gcc"
2515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2524 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2525 if test -n "$ac_ct_CC"; then
2526 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2527 echo "${ECHO_T}$ac_ct_CC" >&6; }
2529 { echo "$as_me:$LINENO: result: no" >&5
2530 echo "${ECHO_T}no" >&6; }
2533 if test "x$ac_ct_CC" = x; then
2536 case $cross_compiling:$ac_tool_warned in
2538 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2539 whose name does not start with the host triplet. If you think this
2540 configuration is useful to you, please write to autoconf@gnu.org." >&5
2541 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2542 whose name does not start with the host triplet. If you think this
2543 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2544 ac_tool_warned=yes ;;
2552 if test -z "$CC"; then
2553 if test -n "$ac_tool_prefix"; then
2554 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2555 set dummy ${ac_tool_prefix}cc; ac_word=$2
2556 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2558 if test "${ac_cv_prog_CC+set}" = set; then
2559 echo $ECHO_N "(cached) $ECHO_C" >&6
2561 if test -n "$CC"; then
2562 ac_cv_prog_CC="$CC" # Let the user override the test.
2564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568 test -z "$as_dir" && as_dir=.
2569 for ac_exec_ext in '' $ac_executable_extensions; do
2570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2571 ac_cv_prog_CC="${ac_tool_prefix}cc"
2572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2582 if test -n "$CC"; then
2583 { echo "$as_me:$LINENO: result: $CC" >&5
2584 echo "${ECHO_T}$CC" >&6; }
2586 { echo "$as_me:$LINENO: result: no" >&5
2587 echo "${ECHO_T}no" >&6; }
2593 if test -z "$CC"; then
2594 # Extract the first word of "cc", so it can be a program name with args.
2595 set dummy cc; ac_word=$2
2596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2598 if test "${ac_cv_prog_CC+set}" = set; then
2599 echo $ECHO_N "(cached) $ECHO_C" >&6
2601 if test -n "$CC"; then
2602 ac_cv_prog_CC="$CC" # Let the user override the test.
2605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2609 test -z "$as_dir" && as_dir=.
2610 for ac_exec_ext in '' $ac_executable_extensions; do
2611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2612 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2613 ac_prog_rejected=yes
2617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2624 if test $ac_prog_rejected = yes; then
2625 # We found a bogon in the path, so make sure we never use it.
2626 set dummy $ac_cv_prog_CC
2628 if test $@%:@ != 0; then
2629 # We chose a different compiler from the bogus one.
2630 # However, it has the same basename, so the bogon will be chosen
2631 # first if we set CC to just the basename; use the full file name.
2633 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2639 if test -n "$CC"; then
2640 { echo "$as_me:$LINENO: result: $CC" >&5
2641 echo "${ECHO_T}$CC" >&6; }
2643 { echo "$as_me:$LINENO: result: no" >&5
2644 echo "${ECHO_T}no" >&6; }
2649 if test -z "$CC"; then
2650 if test -n "$ac_tool_prefix"; then
2651 for ac_prog in cl.exe
2653 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2654 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2655 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2657 if test "${ac_cv_prog_CC+set}" = set; then
2658 echo $ECHO_N "(cached) $ECHO_C" >&6
2660 if test -n "$CC"; then
2661 ac_cv_prog_CC="$CC" # Let the user override the test.
2663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2667 test -z "$as_dir" && as_dir=.
2668 for ac_exec_ext in '' $ac_executable_extensions; do
2669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2670 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2681 if test -n "$CC"; then
2682 { echo "$as_me:$LINENO: result: $CC" >&5
2683 echo "${ECHO_T}$CC" >&6; }
2685 { echo "$as_me:$LINENO: result: no" >&5
2686 echo "${ECHO_T}no" >&6; }
2690 test -n "$CC" && break
2693 if test -z "$CC"; then
2695 for ac_prog in cl.exe
2697 # Extract the first word of "$ac_prog", so it can be a program name with args.
2698 set dummy $ac_prog; ac_word=$2
2699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2701 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2702 echo $ECHO_N "(cached) $ECHO_C" >&6
2704 if test -n "$ac_ct_CC"; then
2705 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711 test -z "$as_dir" && as_dir=.
2712 for ac_exec_ext in '' $ac_executable_extensions; do
2713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2714 ac_cv_prog_ac_ct_CC="$ac_prog"
2715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2724 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2725 if test -n "$ac_ct_CC"; then
2726 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2727 echo "${ECHO_T}$ac_ct_CC" >&6; }
2729 { echo "$as_me:$LINENO: result: no" >&5
2730 echo "${ECHO_T}no" >&6; }
2734 test -n "$ac_ct_CC" && break
2737 if test "x$ac_ct_CC" = x; then
2740 case $cross_compiling:$ac_tool_warned in
2742 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2743 whose name does not start with the host triplet. If you think this
2744 configuration is useful to you, please write to autoconf@gnu.org." >&5
2745 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2746 whose name does not start with the host triplet. If you think this
2747 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2748 ac_tool_warned=yes ;;
2757 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2758 See \`config.log' for more details." >&5
2759 echo "$as_me: error: no acceptable C compiler found in \$PATH
2760 See \`config.log' for more details." >&2;}
2761 { (exit 1); exit 1; }; }
2763 # Provide some information about the compiler.
2764 echo "$as_me:$LINENO: checking for C compiler version" >&5
2765 ac_compiler=`set X $ac_compile; echo $2`
2766 { (ac_try="$ac_compiler --version >&5"
2768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2769 *) ac_try_echo=$ac_try;;
2771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2772 (eval "$ac_compiler --version >&5") 2>&5
2774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775 (exit $ac_status); }
2776 { (ac_try="$ac_compiler -v >&5"
2778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2779 *) ac_try_echo=$ac_try;;
2781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2782 (eval "$ac_compiler -v >&5") 2>&5
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); }
2786 { (ac_try="$ac_compiler -V >&5"
2788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2789 *) ac_try_echo=$ac_try;;
2791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2792 (eval "$ac_compiler -V >&5") 2>&5
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); }
2797 cat >conftest.$ac_ext <<_ACEOF
2800 cat confdefs.h >>conftest.$ac_ext
2801 cat >>conftest.$ac_ext <<_ACEOF
2802 /* end confdefs.h. */
2812 ac_clean_files_save=$ac_clean_files
2813 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2814 # Try to create an executable without -o first, disregard a.out.
2815 # It will help us diagnose broken compilers, and finding out an intuition
2817 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2818 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2819 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2821 # List of possible output files, starting from the most likely.
2822 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2823 # only as a last resort. b.out is created by i960 compilers.
2824 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2826 # The IRIX 6 linker writes into existing files which may not be
2827 # executable, retaining their permissions. Remove them first so a
2828 # subsequent execution test works.
2830 for ac_file in $ac_files
2833 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2834 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2839 if { (ac_try="$ac_link_default"
2841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2842 *) ac_try_echo=$ac_try;;
2844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2845 (eval "$ac_link_default") 2>&5
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); }; then
2849 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2850 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2851 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2852 # so that the user can short-circuit this test for compilers unknown to
2854 for ac_file in $ac_files ''
2856 test -f "$ac_file" || continue
2858 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2861 # We found the default executable, but exeext='' is most
2865 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2867 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2869 # We set ac_cv_exeext here because the later test for it is not
2870 # safe: cross compilers may not add the suffix if given an `-o'
2871 # argument, so we may need to know it at that point already.
2872 # Even if this section looks crufty: it has the advantage of
2879 test "$ac_cv_exeext" = no && ac_cv_exeext=
2885 { echo "$as_me:$LINENO: result: $ac_file" >&5
2886 echo "${ECHO_T}$ac_file" >&6; }
2887 if test -z "$ac_file"; then
2888 echo "$as_me: failed program was:" >&5
2889 sed 's/^/| /' conftest.$ac_ext >&5
2891 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2892 See \`config.log' for more details." >&5
2893 echo "$as_me: error: C compiler cannot create executables
2894 See \`config.log' for more details." >&2;}
2895 { (exit 77); exit 77; }; }
2898 ac_exeext=$ac_cv_exeext
2900 # Check that the compiler produces executables we can run. If not, either
2901 # the compiler is broken, or we cross compile.
2902 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2903 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2904 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2905 # If not cross compiling, check that we can run a simple program.
2906 if test "$cross_compiling" != yes; then
2907 if { ac_try='./$ac_file'
2908 { (case "(($ac_try" in
2909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2910 *) ac_try_echo=$ac_try;;
2912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2913 (eval "$ac_try") 2>&5
2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); }; }; then
2919 if test "$cross_compiling" = maybe; then
2922 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2923 If you meant to cross compile, use \`--host'.
2924 See \`config.log' for more details." >&5
2925 echo "$as_me: error: cannot run C compiled programs.
2926 If you meant to cross compile, use \`--host'.
2927 See \`config.log' for more details." >&2;}
2928 { (exit 1); exit 1; }; }
2932 { echo "$as_me:$LINENO: result: yes" >&5
2933 echo "${ECHO_T}yes" >&6; }
2935 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2936 ac_clean_files=$ac_clean_files_save
2937 # Check that the compiler produces executables we can run. If not, either
2938 # the compiler is broken, or we cross compile.
2939 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2940 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2941 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2942 echo "${ECHO_T}$cross_compiling" >&6; }
2944 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2945 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2946 if { (ac_try="$ac_link"
2948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2949 *) ac_try_echo=$ac_try;;
2951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2952 (eval "$ac_link") 2>&5
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); }; then
2956 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2957 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2958 # work properly (i.e., refer to `conftest.exe'), while it won't with
2960 for ac_file in conftest.exe conftest conftest.*; do
2961 test -f "$ac_file" || continue
2963 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2964 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2970 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2971 See \`config.log' for more details." >&5
2972 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2973 See \`config.log' for more details." >&2;}
2974 { (exit 1); exit 1; }; }
2977 rm -f conftest$ac_cv_exeext
2978 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2979 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2981 rm -f conftest.$ac_ext
2982 EXEEXT=$ac_cv_exeext
2984 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2985 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2986 if test "${ac_cv_objext+set}" = set; then
2987 echo $ECHO_N "(cached) $ECHO_C" >&6
2989 cat >conftest.$ac_ext <<_ACEOF
2992 cat confdefs.h >>conftest.$ac_ext
2993 cat >>conftest.$ac_ext <<_ACEOF
2994 /* end confdefs.h. */
3004 rm -f conftest.o conftest.obj
3005 if { (ac_try="$ac_compile"
3007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3008 *) ac_try_echo=$ac_try;;
3010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3011 (eval "$ac_compile") 2>&5
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); }; then
3015 for ac_file in conftest.o conftest.obj conftest.*; do
3016 test -f "$ac_file" || continue;
3018 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3019 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3024 echo "$as_me: failed program was:" >&5
3025 sed 's/^/| /' conftest.$ac_ext >&5
3027 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3028 See \`config.log' for more details." >&5
3029 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3030 See \`config.log' for more details." >&2;}
3031 { (exit 1); exit 1; }; }
3034 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3036 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3037 echo "${ECHO_T}$ac_cv_objext" >&6; }
3038 OBJEXT=$ac_cv_objext
3040 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3041 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3042 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3043 echo $ECHO_N "(cached) $ECHO_C" >&6
3045 cat >conftest.$ac_ext <<_ACEOF
3048 cat confdefs.h >>conftest.$ac_ext
3049 cat >>conftest.$ac_ext <<_ACEOF
3050 /* end confdefs.h. */
3063 rm -f conftest.$ac_objext
3064 if { (ac_try="$ac_compile"
3066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3067 *) ac_try_echo=$ac_try;;
3069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3070 (eval "$ac_compile") 2>conftest.er1
3072 grep -v '^ *+' conftest.er1 >conftest.err
3074 cat conftest.err >&5
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); } && {
3077 test -z "$ac_c_werror_flag" ||
3078 test ! -s conftest.err
3079 } && test -s conftest.$ac_objext; then
3082 echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3089 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3092 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3093 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3094 GCC=`test $ac_compiler_gnu = yes && echo yes`
3095 ac_test_CFLAGS=${CFLAGS+set}
3096 ac_save_CFLAGS=$CFLAGS
3097 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3098 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3099 if test "${ac_cv_prog_cc_g+set}" = set; then
3100 echo $ECHO_N "(cached) $ECHO_C" >&6
3102 ac_save_c_werror_flag=$ac_c_werror_flag
3103 ac_c_werror_flag=yes
3106 cat >conftest.$ac_ext <<_ACEOF
3109 cat confdefs.h >>conftest.$ac_ext
3110 cat >>conftest.$ac_ext <<_ACEOF
3111 /* end confdefs.h. */
3121 rm -f conftest.$ac_objext
3122 if { (ac_try="$ac_compile"
3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125 *) ac_try_echo=$ac_try;;
3127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128 (eval "$ac_compile") 2>conftest.er1
3130 grep -v '^ *+' conftest.er1 >conftest.err
3132 cat conftest.err >&5
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); } && {
3135 test -z "$ac_c_werror_flag" ||
3136 test ! -s conftest.err
3137 } && test -s conftest.$ac_objext; then
3140 echo "$as_me: failed program was:" >&5
3141 sed 's/^/| /' conftest.$ac_ext >&5
3144 cat >conftest.$ac_ext <<_ACEOF
3147 cat confdefs.h >>conftest.$ac_ext
3148 cat >>conftest.$ac_ext <<_ACEOF
3149 /* end confdefs.h. */
3159 rm -f conftest.$ac_objext
3160 if { (ac_try="$ac_compile"
3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163 *) ac_try_echo=$ac_try;;
3165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3166 (eval "$ac_compile") 2>conftest.er1
3168 grep -v '^ *+' conftest.er1 >conftest.err
3170 cat conftest.err >&5
3171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172 (exit $ac_status); } && {
3173 test -z "$ac_c_werror_flag" ||
3174 test ! -s conftest.err
3175 } && test -s conftest.$ac_objext; then
3178 echo "$as_me: failed program was:" >&5
3179 sed 's/^/| /' conftest.$ac_ext >&5
3181 ac_c_werror_flag=$ac_save_c_werror_flag
3183 cat >conftest.$ac_ext <<_ACEOF
3186 cat confdefs.h >>conftest.$ac_ext
3187 cat >>conftest.$ac_ext <<_ACEOF
3188 /* end confdefs.h. */
3198 rm -f conftest.$ac_objext
3199 if { (ac_try="$ac_compile"
3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202 *) ac_try_echo=$ac_try;;
3204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3205 (eval "$ac_compile") 2>conftest.er1
3207 grep -v '^ *+' conftest.er1 >conftest.err
3209 cat conftest.err >&5
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); } && {
3212 test -z "$ac_c_werror_flag" ||
3213 test ! -s conftest.err
3214 } && test -s conftest.$ac_objext; then
3217 echo "$as_me: failed program was:" >&5
3218 sed 's/^/| /' conftest.$ac_ext >&5
3223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3230 ac_c_werror_flag=$ac_save_c_werror_flag
3232 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3233 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3234 if test "$ac_test_CFLAGS" = set; then
3235 CFLAGS=$ac_save_CFLAGS
3236 elif test $ac_cv_prog_cc_g = yes; then
3237 if test "$GCC" = yes; then
3243 if test "$GCC" = yes; then
3249 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3250 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3251 if test "${ac_cv_prog_cc_c89+set}" = set; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3254 ac_cv_prog_cc_c89=no
3256 cat >conftest.$ac_ext <<_ACEOF
3259 cat confdefs.h >>conftest.$ac_ext
3260 cat >>conftest.$ac_ext <<_ACEOF
3261 /* end confdefs.h. */
3264 #include <sys/types.h>
3265 #include <sys/stat.h>
3266 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3267 struct buf { int x; };
3268 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3269 static char *e (p, i)
3275 static char *f (char * (*g) (char **, int), char **p, ...)
3280 s = g (p, va_arg (v,int));
3285 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3286 function prototypes and stuff, but not '\xHH' hex character constants.
3287 These don't provoke an error unfortunately, instead are silently treated
3288 as 'x'. The following induces an error, until -std is added to get
3289 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3290 array size at least. It's necessary to write '\x00'==0 to get something
3291 that's true only with -std. */
3292 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3294 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3295 inside strings and character constants. */
3297 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3299 int test (int i, double x);
3300 struct s1 {int (*f) (int a);};
3301 struct s2 {int (*f) (double a);};
3302 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3308 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3313 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3314 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3316 CC="$ac_save_CC $ac_arg"
3317 rm -f conftest.$ac_objext
3318 if { (ac_try="$ac_compile"
3320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321 *) ac_try_echo=$ac_try;;
3323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3324 (eval "$ac_compile") 2>conftest.er1
3326 grep -v '^ *+' conftest.er1 >conftest.err
3328 cat conftest.err >&5
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); } && {
3331 test -z "$ac_c_werror_flag" ||
3332 test ! -s conftest.err
3333 } && test -s conftest.$ac_objext; then
3334 ac_cv_prog_cc_c89=$ac_arg
3336 echo "$as_me: failed program was:" >&5
3337 sed 's/^/| /' conftest.$ac_ext >&5
3342 rm -f core conftest.err conftest.$ac_objext
3343 test "x$ac_cv_prog_cc_c89" != "xno" && break
3345 rm -f conftest.$ac_ext
3350 case "x$ac_cv_prog_cc_c89" in
3352 { echo "$as_me:$LINENO: result: none needed" >&5
3353 echo "${ECHO_T}none needed" >&6; } ;;
3355 { echo "$as_me:$LINENO: result: unsupported" >&5
3356 echo "${ECHO_T}unsupported" >&6; } ;;
3358 CC="$CC $ac_cv_prog_cc_c89"
3359 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3360 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3365 ac_cpp='$CPP $CPPFLAGS'
3366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3369 DEPDIR="${am__leading_dot}deps"
3371 ac_config_commands="$ac_config_commands depfiles"
3374 am_make=${MAKE-make}
3375 cat > confinc << 'END'
3380 # If we don't find an include directive, just comment out the code.
3381 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3382 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3386 # First try GNU make style include.
3387 echo "include confinc" > confmf
3388 # We grep out `Entering directory' and `Leaving directory'
3389 # messages which can occur if `w' ends up in MAKEFLAGS.
3390 # In particular we don't look at `^make:' because GNU make might
3391 # be invoked under some other name (usually "gmake"), in which
3392 # case it prints its new name instead of `make'.
3393 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3398 # Now try BSD make style include.
3399 if test "$am__include" = "#"; then
3400 echo '.include "confinc"' > confmf
3401 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3402 am__include=.include
3409 { echo "$as_me:$LINENO: result: $_am_result" >&5
3410 echo "${ECHO_T}$_am_result" >&6; }
3411 rm -f confinc confmf
3413 # Check whether --enable-dependency-tracking was given.
3414 if test "${enable_dependency_tracking+set}" = set; then
3415 enableval=$enable_dependency_tracking;
3418 if test "x$enable_dependency_tracking" != xno; then
3419 am_depcomp="$ac_aux_dir/depcomp"
3422 if test "x$enable_dependency_tracking" != xno; then
3432 depcc="$CC" am_compiler_list=
3434 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3435 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3436 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3437 echo $ECHO_N "(cached) $ECHO_C" >&6
3439 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3440 # We make a subdir and do the tests there. Otherwise we can end up
3441 # making bogus files that we don't know about and never remove. For
3442 # instance it was reported that on HP-UX the gcc test will end up
3443 # making a dummy file named `D' -- because `-MD' means `put the output
3446 # Copy depcomp to subdir because otherwise we won't find it if we're
3447 # using a relative directory.
3448 cp "$am_depcomp" conftest.dir
3450 # We will build objects and dependencies in a subdirectory because
3451 # it helps to detect inapplicable dependency modes. For instance
3452 # both Tru64's cc and ICC support -MD to output dependencies as a
3453 # side effect of compilation, but ICC will put the dependencies in
3454 # the current directory while Tru64 will put them in the object
3458 am_cv_CC_dependencies_compiler_type=none
3459 if test "$am_compiler_list" = ""; then
3460 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3462 for depmode in $am_compiler_list; do
3463 # Setup a source with many dependencies, because some compilers
3464 # like to wrap large dependency lists on column 80 (with \), and
3465 # we should not choose a depcomp mode which is confused by this.
3467 # We need to recreate these files for each test, as the compiler may
3468 # overwrite some of them when testing with obscure command lines.
3469 # This happens at least with the AIX C compiler.
3471 for i in 1 2 3 4 5 6; do
3472 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3473 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3474 # Solaris 8's {/usr,}/bin/sh.
3475 touch sub/conftst$i.h
3477 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3481 # after this tag, mechanisms are not by side-effect, so they'll
3482 # only be used when explicitly requested
3483 if test "x$enable_dependency_tracking" = xyes; then
3491 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3492 # mode. It turns out that the SunPro C++ compiler does not properly
3493 # handle `-M -o', and we need to detect this.
3494 if depmode=$depmode \
3495 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3496 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3497 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3498 >/dev/null 2>conftest.err &&
3499 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3500 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3501 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3502 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3503 # icc doesn't choke on unknown options, it will just issue warnings
3504 # or remarks (even with -Werror). So we grep stderr for any message
3505 # that says an option was ignored or not supported.
3506 # When given -MP, icc 7.0 and 7.1 complain thusly:
3507 # icc: Command line warning: ignoring option '-M'; no argument required
3508 # The diagnosis changed in icc 8.0:
3509 # icc: Command line remark: option '-MP' not supported
3510 if (grep 'ignoring option' conftest.err ||
3511 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3512 am_cv_CC_dependencies_compiler_type=$depmode
3521 am_cv_CC_dependencies_compiler_type=none
3525 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3526 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3527 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3530 test "x$enable_dependency_tracking" != xno \
3531 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3533 am__fastdepCC_FALSE='#'
3535 am__fastdepCC_TRUE='#'
3536 am__fastdepCC_FALSE=
3540 # Find a good install program. We prefer a C program (faster),
3541 # so one script is as good as another. But avoid the broken or
3542 # incompatible versions:
3543 # SysV /etc/install, /usr/sbin/install
3544 # SunOS /usr/etc/install
3545 # IRIX /sbin/install
3547 # AmigaOS /C/install, which installs bootblocks on floppy discs
3548 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3549 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3550 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3551 # OS/2's system install, which has a completely different semantic
3552 # ./install, which can be erroneously created by make from ./install.sh.
3553 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3554 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3555 if test -z "$INSTALL"; then
3556 if test "${ac_cv_path_install+set}" = set; then
3557 echo $ECHO_N "(cached) $ECHO_C" >&6
3559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3563 test -z "$as_dir" && as_dir=.
3564 # Account for people who put trailing slashes in PATH elements.
3566 ./ | .// | /cC/* | \
3567 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3568 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3571 # OSF1 and SCO ODT 3.0 have their own names for install.
3572 # Don't use installbsd from OSF since it installs stuff as root
3574 for ac_prog in ginstall scoinst install; do
3575 for ac_exec_ext in '' $ac_executable_extensions; do
3576 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3577 if test $ac_prog = install &&
3578 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3579 # AIX install. It has an incompatible calling convention.
3581 elif test $ac_prog = install &&
3582 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3583 # program-specific install script used by HP pwplus--don't use.
3586 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3599 if test "${ac_cv_path_install+set}" = set; then
3600 INSTALL=$ac_cv_path_install
3602 # As a last resort, use the slow shell script. Don't cache a
3603 # value for INSTALL within a source directory, because that will
3604 # break other packages using the cache if that directory is
3605 # removed, or if the value is a relative name.
3606 INSTALL=$ac_install_sh
3609 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3610 echo "${ECHO_T}$INSTALL" >&6; }
3612 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3613 # It thinks the first close brace ends the variable substitution.
3614 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3616 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3618 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3620 # Check whether --enable-shared was given.
3621 if test "${enable_shared+set}" = set; then
3622 enableval=$enable_shared; p=${PACKAGE-default}
3624 yes) enable_shared=yes ;;
3625 no) enable_shared=no ;;
3628 # Look at the argument we got. We use all the common list separators.
3629 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3630 for pkg in $enableval; do
3632 if test "X$pkg" = "X$p"; then
3644 # Check whether --enable-fast-install was given.
3645 if test "${enable_fast_install+set}" = set; then
3646 enableval=$enable_fast_install; p=${PACKAGE-default}
3648 yes) enable_fast_install=yes ;;
3649 no) enable_fast_install=no ;;
3651 enable_fast_install=no
3652 # Look at the argument we got. We use all the common list separators.
3653 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3654 for pkg in $enableval; do
3656 if test "X$pkg" = "X$p"; then
3657 enable_fast_install=yes
3664 enable_fast_install=yes
3668 # Make sure we can run config.sub.
3669 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3670 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3671 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3672 { (exit 1); exit 1; }; }
3674 { echo "$as_me:$LINENO: checking build system type" >&5
3675 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3676 if test "${ac_cv_build+set}" = set; then
3677 echo $ECHO_N "(cached) $ECHO_C" >&6
3679 ac_build_alias=$build_alias
3680 test "x$ac_build_alias" = x &&
3681 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3682 test "x$ac_build_alias" = x &&
3683 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3684 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3685 { (exit 1); exit 1; }; }
3686 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3687 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3688 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3689 { (exit 1); exit 1; }; }
3692 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3693 echo "${ECHO_T}$ac_cv_build" >&6; }
3694 case $ac_cv_build in
3696 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3697 echo "$as_me: error: invalid value of canonical build" >&2;}
3698 { (exit 1); exit 1; }; };;
3701 ac_save_IFS=$IFS; IFS='-'
3707 # Remember, the first character of IFS is used to create $*,
3708 # except with old shells:
3711 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3714 { echo "$as_me:$LINENO: checking host system type" >&5
3715 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3716 if test "${ac_cv_host+set}" = set; then
3717 echo $ECHO_N "(cached) $ECHO_C" >&6
3719 if test "x$host_alias" = x; then
3720 ac_cv_host=$ac_cv_build
3722 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3723 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3724 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3725 { (exit 1); exit 1; }; }
3729 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3730 echo "${ECHO_T}$ac_cv_host" >&6; }
3733 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3734 echo "$as_me: error: invalid value of canonical host" >&2;}
3735 { (exit 1); exit 1; }; };;
3738 ac_save_IFS=$IFS; IFS='-'
3744 # Remember, the first character of IFS is used to create $*,
3745 # except with old shells:
3748 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3751 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3752 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3753 if test "${lt_cv_path_SED+set}" = set; then
3754 echo $ECHO_N "(cached) $ECHO_C" >&6
3756 # Loop through the user's path and test for sed and gsed.
3757 # Then use that list of sed's as ones to test for truncation.
3758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3762 test -z "$as_dir" && as_dir=.
3763 for lt_ac_prog in sed gsed; do
3764 for ac_exec_ext in '' $ac_executable_extensions; do
3765 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3766 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3774 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3775 # along with /bin/sed that truncates output.
3776 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3777 test ! -f $lt_ac_sed && continue
3778 cat /dev/null > conftest.in
3780 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3781 # Check for GNU sed and select it if it is found.
3782 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3783 lt_cv_path_SED=$lt_ac_sed
3787 cat conftest.in conftest.in >conftest.tmp
3788 mv conftest.tmp conftest.in
3789 cp conftest.in conftest.nl
3791 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3792 cmp -s conftest.out conftest.nl || break
3793 # 10000 chars as input seems more than enough
3794 test $lt_ac_count -gt 10 && break
3795 lt_ac_count=`expr $lt_ac_count + 1`
3796 if test $lt_ac_count -gt $lt_ac_max; then
3797 lt_ac_max=$lt_ac_count
3798 lt_cv_path_SED=$lt_ac_sed
3807 { echo "$as_me:$LINENO: result: $SED" >&5
3808 echo "${ECHO_T}$SED" >&6; }
3810 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3811 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3812 if test "${ac_cv_path_GREP+set}" = set; then
3813 echo $ECHO_N "(cached) $ECHO_C" >&6
3815 # Extract the first word of "grep ggrep" to use in msg output
3816 if test -z "$GREP"; then
3817 set dummy grep ggrep; ac_prog_name=$2
3818 if test "${ac_cv_path_GREP+set}" = set; then
3819 echo $ECHO_N "(cached) $ECHO_C" >&6
3821 ac_path_GREP_found=false
3822 # Loop through the user's path and test for each of PROGNAME-LIST
3823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3824 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3827 test -z "$as_dir" && as_dir=.
3828 for ac_prog in grep ggrep; do
3829 for ac_exec_ext in '' $ac_executable_extensions; do
3830 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3831 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3832 # Check for GNU ac_path_GREP and select it if it is found.
3833 # Check for GNU $ac_path_GREP
3834 case `"$ac_path_GREP" --version 2>&1` in
3836 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3839 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3842 cat "conftest.in" "conftest.in" >"conftest.tmp"
3843 mv "conftest.tmp" "conftest.in"
3844 cp "conftest.in" "conftest.nl"
3845 echo 'GREP' >> "conftest.nl"
3846 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3847 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3848 ac_count=`expr $ac_count + 1`
3849 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3850 # Best one so far, save it but keep looking for a better one
3851 ac_cv_path_GREP="$ac_path_GREP"
3852 ac_path_GREP_max=$ac_count
3854 # 10*(2^10) chars as input seems more than enough
3855 test $ac_count -gt 10 && break
3857 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3861 $ac_path_GREP_found && break 3
3871 GREP="$ac_cv_path_GREP"
3872 if test -z "$GREP"; then
3873 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3874 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3875 { (exit 1); exit 1; }; }
3879 ac_cv_path_GREP=$GREP
3884 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3885 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3886 GREP="$ac_cv_path_GREP"
3889 { echo "$as_me:$LINENO: checking for egrep" >&5
3890 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3891 if test "${ac_cv_path_EGREP+set}" = set; then
3892 echo $ECHO_N "(cached) $ECHO_C" >&6
3894 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3895 then ac_cv_path_EGREP="$GREP -E"
3897 # Extract the first word of "egrep" to use in msg output
3898 if test -z "$EGREP"; then
3899 set dummy egrep; ac_prog_name=$2
3900 if test "${ac_cv_path_EGREP+set}" = set; then
3901 echo $ECHO_N "(cached) $ECHO_C" >&6
3903 ac_path_EGREP_found=false
3904 # Loop through the user's path and test for each of PROGNAME-LIST
3905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3906 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3909 test -z "$as_dir" && as_dir=.
3910 for ac_prog in egrep; do
3911 for ac_exec_ext in '' $ac_executable_extensions; do
3912 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3913 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3914 # Check for GNU ac_path_EGREP and select it if it is found.
3915 # Check for GNU $ac_path_EGREP
3916 case `"$ac_path_EGREP" --version 2>&1` in
3918 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3921 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3924 cat "conftest.in" "conftest.in" >"conftest.tmp"
3925 mv "conftest.tmp" "conftest.in"
3926 cp "conftest.in" "conftest.nl"
3927 echo 'EGREP' >> "conftest.nl"
3928 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3929 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3930 ac_count=`expr $ac_count + 1`
3931 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3932 # Best one so far, save it but keep looking for a better one
3933 ac_cv_path_EGREP="$ac_path_EGREP"
3934 ac_path_EGREP_max=$ac_count
3936 # 10*(2^10) chars as input seems more than enough
3937 test $ac_count -gt 10 && break
3939 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3943 $ac_path_EGREP_found && break 3
3953 EGREP="$ac_cv_path_EGREP"
3954 if test -z "$EGREP"; then
3955 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3956 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3957 { (exit 1); exit 1; }; }
3961 ac_cv_path_EGREP=$EGREP
3967 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3968 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3969 EGREP="$ac_cv_path_EGREP"
3973 # Check whether --with-gnu-ld was given.
3974 if test "${with_gnu_ld+set}" = set; then
3975 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3981 if test "$GCC" = yes; then
3982 # Check if gcc -print-prog-name=ld gives a path.
3983 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3984 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3987 # gcc leaves a trailing carriage return which upsets mingw
3988 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3990 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3993 # Accept absolute paths.
3995 re_direlt='/[^/][^/]*/\.\./'
3996 # Canonicalize the pathname of ld
3997 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3998 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3999 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4001 test -z "$LD" && LD="$ac_prog"
4004 # If it fails, then pretend we aren't using GCC.
4008 # If it is relative, then search for the first ld in PATH.
4012 elif test "$with_gnu_ld" = yes; then
4013 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4014 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4016 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4017 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4019 if test "${lt_cv_path_LD+set}" = set; then
4020 echo $ECHO_N "(cached) $ECHO_C" >&6
4022 if test -z "$LD"; then
4023 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4024 for ac_dir in $PATH; do
4026 test -z "$ac_dir" && ac_dir=.
4027 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4028 lt_cv_path_LD="$ac_dir/$ac_prog"
4029 # Check to see if the program is GNU ld. I'd rather use --version,
4030 # but apparently some variants of GNU ld only accept -v.
4031 # Break only if it was the GNU/non-GNU ld that we prefer.
4032 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4033 *GNU* | *'with BFD'*)
4034 test "$with_gnu_ld" != no && break
4037 test "$with_gnu_ld" != yes && break
4044 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4049 if test -n "$LD"; then
4050 { echo "$as_me:$LINENO: result: $LD" >&5
4051 echo "${ECHO_T}$LD" >&6; }
4053 { echo "$as_me:$LINENO: result: no" >&5
4054 echo "${ECHO_T}no" >&6; }
4056 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4057 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4058 { (exit 1); exit 1; }; }
4059 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4060 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4061 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4062 echo $ECHO_N "(cached) $ECHO_C" >&6
4064 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4065 case `$LD -v 2>&1 </dev/null` in
4066 *GNU* | *'with BFD'*)
4067 lt_cv_prog_gnu_ld=yes
4070 lt_cv_prog_gnu_ld=no
4074 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4075 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4076 with_gnu_ld=$lt_cv_prog_gnu_ld
4079 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4080 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4081 if test "${lt_cv_ld_reload_flag+set}" = set; then
4082 echo $ECHO_N "(cached) $ECHO_C" >&6
4084 lt_cv_ld_reload_flag='-r'
4086 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4087 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4088 reload_flag=$lt_cv_ld_reload_flag
4089 case $reload_flag in
4091 *) reload_flag=" $reload_flag" ;;
4093 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4096 if test "$GCC" = yes; then
4097 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4099 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4104 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4105 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4106 if test "${lt_cv_path_NM+set}" = set; then
4107 echo $ECHO_N "(cached) $ECHO_C" >&6
4109 if test -n "$NM"; then
4110 # Let the user override the test.
4113 lt_nm_to_check="${ac_tool_prefix}nm"
4114 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4115 lt_nm_to_check="$lt_nm_to_check nm"
4117 for lt_tmp_nm in $lt_nm_to_check; do
4118 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4119 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4121 test -z "$ac_dir" && ac_dir=.
4122 tmp_nm="$ac_dir/$lt_tmp_nm"
4123 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4124 # Check to see if the nm accepts a BSD-compat flag.
4125 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4126 # nm: unknown option "B" ignored
4127 # Tru64's nm complains that /dev/null is an invalid object file
4128 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4129 */dev/null* | *'Invalid file or object type'*)
4130 lt_cv_path_NM="$tmp_nm -B"
4134 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4136 lt_cv_path_NM="$tmp_nm -p"
4140 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4141 continue # so that we can try to find one that supports BSD flags
4150 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4153 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4154 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4157 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4158 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4160 if test "$LN_S" = "ln -s"; then
4161 { echo "$as_me:$LINENO: result: yes" >&5
4162 echo "${ECHO_T}yes" >&6; }
4164 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4165 echo "${ECHO_T}no, using $LN_S" >&6; }
4168 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4169 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4170 if test "${lt_cv_deplibs_check_method+set}" = set; then
4171 echo $ECHO_N "(cached) $ECHO_C" >&6
4173 lt_cv_file_magic_cmd='$MAGIC_CMD'
4174 lt_cv_file_magic_test_file=
4175 lt_cv_deplibs_check_method='unknown'
4176 # Need to set the preceding variable on all platforms that support
4177 # interlibrary dependencies.
4178 # 'none' -- dependencies not supported.
4179 # `unknown' -- same as none, but documents that we really don't know.
4180 # 'pass_all' -- all dependencies passed with no checks.
4181 # 'test_compile' -- check by making test program.
4182 # 'file_magic [[regex]]' -- check by looking for files in library path
4183 # which responds to the $file_magic_cmd with a given extended regex.
4184 # If you have `file' or equivalent on your system and you're not sure
4185 # whether `pass_all' will *always* work, you probably want this one.
4189 lt_cv_deplibs_check_method=pass_all
4193 lt_cv_deplibs_check_method=pass_all
4197 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4198 lt_cv_file_magic_cmd='/usr/bin/file -L'
4199 lt_cv_file_magic_test_file=/shlib/libc.so
4203 # func_win32_libid is a shell function defined in ltmain.sh
4204 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4205 lt_cv_file_magic_cmd='func_win32_libid'
4209 # Base MSYS/MinGW do not provide the 'file' command needed by
4210 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4211 # unless we find 'file', for example because we are cross-compiling.
4212 if ( file / ) >/dev/null 2>&1; then
4213 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4214 lt_cv_file_magic_cmd='func_win32_libid'
4216 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4217 lt_cv_file_magic_cmd='$OBJDUMP -f'
4221 darwin* | rhapsody*)
4222 lt_cv_deplibs_check_method=pass_all
4225 freebsd* | dragonfly*)
4226 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4229 # Not sure whether the presence of OpenBSD here was a mistake.
4230 # Let's accept both of them until this is cleared up.
4231 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4232 lt_cv_file_magic_cmd=/usr/bin/file
4233 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4237 lt_cv_deplibs_check_method=pass_all
4242 lt_cv_deplibs_check_method=pass_all
4245 hpux10.20* | hpux11*)
4246 lt_cv_file_magic_cmd=/usr/bin/file
4249 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4250 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4253 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]'
4254 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4257 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4258 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4264 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4265 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4268 irix5* | irix6* | nonstopux*)
4270 *-32|*"-32 ") libmagic=32-bit;;
4271 *-n32|*"-n32 ") libmagic=N32;;
4272 *-64|*"-64 ") libmagic=64-bit;;
4273 *) libmagic=never-match;;
4275 lt_cv_deplibs_check_method=pass_all
4278 # This must be Linux ELF.
4279 linux* | k*bsd*-gnu)
4280 lt_cv_deplibs_check_method=pass_all
4284 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4285 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4287 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4292 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4293 lt_cv_file_magic_cmd=/usr/bin/file
4294 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4298 lt_cv_deplibs_check_method=unknown
4302 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4303 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4305 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4309 osf3* | osf4* | osf5*)
4310 lt_cv_deplibs_check_method=pass_all
4314 lt_cv_deplibs_check_method=pass_all
4318 lt_cv_deplibs_check_method=pass_all
4322 case $host_vendor in
4324 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]'
4325 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4328 lt_cv_deplibs_check_method=pass_all
4331 lt_cv_file_magic_cmd='/bin/file'
4332 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4335 lt_cv_file_magic_cmd='/bin/file'
4336 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4337 lt_cv_file_magic_test_file=/lib/libc.so
4340 lt_cv_deplibs_check_method=pass_all
4343 lt_cv_deplibs_check_method=pass_all
4348 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4349 lt_cv_deplibs_check_method=pass_all
4354 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4355 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4356 file_magic_cmd=$lt_cv_file_magic_cmd
4357 deplibs_check_method=$lt_cv_deplibs_check_method
4358 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4363 # If no C compiler was specified, use CC.
4366 # If no C compiler flags were specified, use CFLAGS.
4367 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4369 # Allow CC to be a program name with arguments.
4373 # Check whether --enable-libtool-lock was given.
4374 if test "${enable_libtool_lock+set}" = set; then
4375 enableval=$enable_libtool_lock;
4378 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4380 # Some flags need to be propagated to the compiler or linker for good
4384 # Find out which ABI we are using.
4385 echo 'int i;' > conftest.$ac_ext
4386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4387 (eval $ac_compile) 2>&5
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); }; then
4391 case `/usr/bin/file conftest.$ac_objext` in
4403 # Find out which ABI we are using.
4404 echo '#line __oline__ "configure"' > conftest.$ac_ext
4405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4406 (eval $ac_compile) 2>&5
4408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409 (exit $ac_status); }; then
4410 if test "$lt_cv_prog_gnu_ld" = yes; then
4411 case `/usr/bin/file conftest.$ac_objext` in
4413 LD="${LD-ld} -melf32bsmip"
4416 LD="${LD-ld} -melf32bmipn32"
4419 LD="${LD-ld} -melf64bmip"
4423 case `/usr/bin/file conftest.$ac_objext` in
4439 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4440 s390*-*linux*|sparc*-*linux*)
4441 # Find out which ABI we are using.
4442 echo 'int i;' > conftest.$ac_ext
4443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4444 (eval $ac_compile) 2>&5
4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); }; then
4448 case `/usr/bin/file conftest.o` in
4451 x86_64-*kfreebsd*-gnu)
4452 LD="${LD-ld} -m elf_i386_fbsd"
4455 LD="${LD-ld} -m elf_i386"
4457 ppc64-*linux*|powerpc64-*linux*)
4458 LD="${LD-ld} -m elf32ppclinux"
4461 LD="${LD-ld} -m elf_s390"
4464 LD="${LD-ld} -m elf32_sparc"
4471 x86_64-*kfreebsd*-gnu)
4472 LD="${LD-ld} -m elf_x86_64_fbsd"
4475 LD="${LD-ld} -m elf_x86_64"
4477 ppc*-*linux*|powerpc*-*linux*)
4478 LD="${LD-ld} -m elf64ppc"
4481 LD="${LD-ld} -m elf64_s390"
4484 LD="${LD-ld} -m elf64_sparc"
4494 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4495 SAVE_CFLAGS="$CFLAGS"
4496 CFLAGS="$CFLAGS -belf"
4497 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4498 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4499 if test "${lt_cv_cc_needs_belf+set}" = set; then
4500 echo $ECHO_N "(cached) $ECHO_C" >&6
4503 ac_cpp='$CPP $CPPFLAGS'
4504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4508 cat >conftest.$ac_ext <<_ACEOF
4511 cat confdefs.h >>conftest.$ac_ext
4512 cat >>conftest.$ac_ext <<_ACEOF
4513 /* end confdefs.h. */
4523 rm -f conftest.$ac_objext conftest$ac_exeext
4524 if { (ac_try="$ac_link"
4526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4527 *) ac_try_echo=$ac_try;;
4529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4530 (eval "$ac_link") 2>conftest.er1
4532 grep -v '^ *+' conftest.er1 >conftest.err
4534 cat conftest.err >&5
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); } && {
4537 test -z "$ac_c_werror_flag" ||
4538 test ! -s conftest.err
4539 } && test -s conftest$ac_exeext &&
4540 $as_test_x conftest$ac_exeext; then
4541 lt_cv_cc_needs_belf=yes
4543 echo "$as_me: failed program was:" >&5
4544 sed 's/^/| /' conftest.$ac_ext >&5
4546 lt_cv_cc_needs_belf=no
4549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4550 conftest$ac_exeext conftest.$ac_ext
4552 ac_cpp='$CPP $CPPFLAGS'
4553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4558 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4559 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4560 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4561 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4562 CFLAGS="$SAVE_CFLAGS"
4566 # Find out which ABI we are using.
4567 echo 'int i;' > conftest.$ac_ext
4568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4569 (eval $ac_compile) 2>&5
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); }; then
4573 case `/usr/bin/file conftest.o` in
4575 case $lt_cv_prog_gnu_ld in
4576 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4577 *) LD="${LD-ld} -64" ;;
4588 need_locks="$enable_libtool_lock"
4592 ac_cpp='$CPP $CPPFLAGS'
4593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4596 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4597 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4598 # On Suns, sometimes $CPP names a directory.
4599 if test -n "$CPP" && test -d "$CPP"; then
4602 if test -z "$CPP"; then
4603 if test "${ac_cv_prog_CPP+set}" = set; then
4604 echo $ECHO_N "(cached) $ECHO_C" >&6
4606 # Double quotes because CPP needs to be expanded
4607 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4610 for ac_c_preproc_warn_flag in '' yes
4612 # Use a header file that comes with gcc, so configuring glibc
4613 # with a fresh cross-compiler works.
4614 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4615 # <limits.h> exists even on freestanding compilers.
4616 # On the NeXT, cc -E runs the code through the compiler's parser,
4617 # not just through cpp. "Syntax error" is here to catch this case.
4618 cat >conftest.$ac_ext <<_ACEOF
4621 cat confdefs.h >>conftest.$ac_ext
4622 cat >>conftest.$ac_ext <<_ACEOF
4623 /* end confdefs.h. */
4625 @%:@ include <limits.h>
4627 @%:@ include <assert.h>
4631 if { (ac_try="$ac_cpp conftest.$ac_ext"
4633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4634 *) ac_try_echo=$ac_try;;
4636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4637 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4639 grep -v '^ *+' conftest.er1 >conftest.err
4641 cat conftest.err >&5
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); } >/dev/null && {
4644 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4645 test ! -s conftest.err
4649 echo "$as_me: failed program was:" >&5
4650 sed 's/^/| /' conftest.$ac_ext >&5
4652 # Broken: fails on valid input.
4656 rm -f conftest.err conftest.$ac_ext
4658 # OK, works on sane cases. Now check whether nonexistent headers
4659 # can be detected and how.
4660 cat >conftest.$ac_ext <<_ACEOF
4663 cat confdefs.h >>conftest.$ac_ext
4664 cat >>conftest.$ac_ext <<_ACEOF
4665 /* end confdefs.h. */
4666 @%:@include <ac_nonexistent.h>
4668 if { (ac_try="$ac_cpp conftest.$ac_ext"
4670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4671 *) ac_try_echo=$ac_try;;
4673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4674 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4676 grep -v '^ *+' conftest.er1 >conftest.err
4678 cat conftest.err >&5
4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); } >/dev/null && {
4681 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4682 test ! -s conftest.err
4684 # Broken: success on invalid input.
4687 echo "$as_me: failed program was:" >&5
4688 sed 's/^/| /' conftest.$ac_ext >&5
4690 # Passes both tests.
4695 rm -f conftest.err conftest.$ac_ext
4698 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4699 rm -f conftest.err conftest.$ac_ext
4700 if $ac_preproc_ok; then
4712 { echo "$as_me:$LINENO: result: $CPP" >&5
4713 echo "${ECHO_T}$CPP" >&6; }
4715 for ac_c_preproc_warn_flag in '' yes
4717 # Use a header file that comes with gcc, so configuring glibc
4718 # with a fresh cross-compiler works.
4719 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4720 # <limits.h> exists even on freestanding compilers.
4721 # On the NeXT, cc -E runs the code through the compiler's parser,
4722 # not just through cpp. "Syntax error" is here to catch this case.
4723 cat >conftest.$ac_ext <<_ACEOF
4726 cat confdefs.h >>conftest.$ac_ext
4727 cat >>conftest.$ac_ext <<_ACEOF
4728 /* end confdefs.h. */
4730 @%:@ include <limits.h>
4732 @%:@ include <assert.h>
4736 if { (ac_try="$ac_cpp conftest.$ac_ext"
4738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4739 *) ac_try_echo=$ac_try;;
4741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4742 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4744 grep -v '^ *+' conftest.er1 >conftest.err
4746 cat conftest.err >&5
4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); } >/dev/null && {
4749 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4750 test ! -s conftest.err
4754 echo "$as_me: failed program was:" >&5
4755 sed 's/^/| /' conftest.$ac_ext >&5
4757 # Broken: fails on valid input.
4761 rm -f conftest.err conftest.$ac_ext
4763 # OK, works on sane cases. Now check whether nonexistent headers
4764 # can be detected and how.
4765 cat >conftest.$ac_ext <<_ACEOF
4768 cat confdefs.h >>conftest.$ac_ext
4769 cat >>conftest.$ac_ext <<_ACEOF
4770 /* end confdefs.h. */
4771 @%:@include <ac_nonexistent.h>
4773 if { (ac_try="$ac_cpp conftest.$ac_ext"
4775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4776 *) ac_try_echo=$ac_try;;
4778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4779 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4781 grep -v '^ *+' conftest.er1 >conftest.err
4783 cat conftest.err >&5
4784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785 (exit $ac_status); } >/dev/null && {
4786 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4787 test ! -s conftest.err
4789 # Broken: success on invalid input.
4792 echo "$as_me: failed program was:" >&5
4793 sed 's/^/| /' conftest.$ac_ext >&5
4795 # Passes both tests.
4800 rm -f conftest.err conftest.$ac_ext
4803 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4804 rm -f conftest.err conftest.$ac_ext
4805 if $ac_preproc_ok; then
4808 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4809 See \`config.log' for more details." >&5
4810 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4811 See \`config.log' for more details." >&2;}
4812 { (exit 1); exit 1; }; }
4816 ac_cpp='$CPP $CPPFLAGS'
4817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4822 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4823 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4824 if test "${ac_cv_header_stdc+set}" = set; then
4825 echo $ECHO_N "(cached) $ECHO_C" >&6
4827 cat >conftest.$ac_ext <<_ACEOF
4830 cat confdefs.h >>conftest.$ac_ext
4831 cat >>conftest.$ac_ext <<_ACEOF
4832 /* end confdefs.h. */
4846 rm -f conftest.$ac_objext
4847 if { (ac_try="$ac_compile"
4849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4850 *) ac_try_echo=$ac_try;;
4852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4853 (eval "$ac_compile") 2>conftest.er1
4855 grep -v '^ *+' conftest.er1 >conftest.err
4857 cat conftest.err >&5
4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859 (exit $ac_status); } && {
4860 test -z "$ac_c_werror_flag" ||
4861 test ! -s conftest.err
4862 } && test -s conftest.$ac_objext; then
4863 ac_cv_header_stdc=yes
4865 echo "$as_me: failed program was:" >&5
4866 sed 's/^/| /' conftest.$ac_ext >&5
4868 ac_cv_header_stdc=no
4871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4873 if test $ac_cv_header_stdc = yes; then
4874 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4875 cat >conftest.$ac_ext <<_ACEOF
4878 cat confdefs.h >>conftest.$ac_ext
4879 cat >>conftest.$ac_ext <<_ACEOF
4880 /* end confdefs.h. */
4884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4885 $EGREP "memchr" >/dev/null 2>&1; then
4888 ac_cv_header_stdc=no
4894 if test $ac_cv_header_stdc = yes; then
4895 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4896 cat >conftest.$ac_ext <<_ACEOF
4899 cat confdefs.h >>conftest.$ac_ext
4900 cat >>conftest.$ac_ext <<_ACEOF
4901 /* end confdefs.h. */
4905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4906 $EGREP "free" >/dev/null 2>&1; then
4909 ac_cv_header_stdc=no
4915 if test $ac_cv_header_stdc = yes; then
4916 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4917 if test "$cross_compiling" = yes; then
4920 cat >conftest.$ac_ext <<_ACEOF
4923 cat confdefs.h >>conftest.$ac_ext
4924 cat >>conftest.$ac_ext <<_ACEOF
4925 /* end confdefs.h. */
4928 #if ((' ' & 0x0FF) == 0x020)
4929 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4930 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4932 # define ISLOWER(c) \
4933 (('a' <= (c) && (c) <= 'i') \
4934 || ('j' <= (c) && (c) <= 'r') \
4935 || ('s' <= (c) && (c) <= 'z'))
4936 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4939 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4944 for (i = 0; i < 256; i++)
4945 if (XOR (islower (i), ISLOWER (i))
4946 || toupper (i) != TOUPPER (i))
4951 rm -f conftest$ac_exeext
4952 if { (ac_try="$ac_link"
4954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4955 *) ac_try_echo=$ac_try;;
4957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4958 (eval "$ac_link") 2>&5
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4962 { (case "(($ac_try" in
4963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4964 *) ac_try_echo=$ac_try;;
4966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4967 (eval "$ac_try") 2>&5
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); }; }; then
4973 echo "$as_me: program exited with status $ac_status" >&5
4974 echo "$as_me: failed program was:" >&5
4975 sed 's/^/| /' conftest.$ac_ext >&5
4978 ac_cv_header_stdc=no
4980 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4986 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4987 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4988 if test $ac_cv_header_stdc = yes; then
4990 cat >>confdefs.h <<\_ACEOF
4991 @%:@define STDC_HEADERS 1
4996 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5006 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5007 inttypes.h stdint.h unistd.h
5009 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5010 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5013 echo $ECHO_N "(cached) $ECHO_C" >&6
5015 cat >conftest.$ac_ext <<_ACEOF
5018 cat confdefs.h >>conftest.$ac_ext
5019 cat >>conftest.$ac_ext <<_ACEOF
5020 /* end confdefs.h. */
5021 $ac_includes_default
5023 @%:@include <$ac_header>
5025 rm -f conftest.$ac_objext
5026 if { (ac_try="$ac_compile"
5028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5029 *) ac_try_echo=$ac_try;;
5031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5032 (eval "$ac_compile") 2>conftest.er1
5034 grep -v '^ *+' conftest.er1 >conftest.err
5036 cat conftest.err >&5
5037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038 (exit $ac_status); } && {
5039 test -z "$ac_c_werror_flag" ||
5040 test ! -s conftest.err
5041 } && test -s conftest.$ac_objext; then
5042 eval "$as_ac_Header=yes"
5044 echo "$as_me: failed program was:" >&5
5045 sed 's/^/| /' conftest.$ac_ext >&5
5047 eval "$as_ac_Header=no"
5050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5052 ac_res=`eval echo '${'$as_ac_Header'}'`
5053 { echo "$as_me:$LINENO: result: $ac_res" >&5
5054 echo "${ECHO_T}$ac_res" >&6; }
5055 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5056 cat >>confdefs.h <<_ACEOF
5057 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5066 for ac_header in dlfcn.h
5068 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5069 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5070 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5072 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5073 echo $ECHO_N "(cached) $ECHO_C" >&6
5075 ac_res=`eval echo '${'$as_ac_Header'}'`
5076 { echo "$as_me:$LINENO: result: $ac_res" >&5
5077 echo "${ECHO_T}$ac_res" >&6; }
5079 # Is the header compilable?
5080 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5081 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5082 cat >conftest.$ac_ext <<_ACEOF
5085 cat confdefs.h >>conftest.$ac_ext
5086 cat >>conftest.$ac_ext <<_ACEOF
5087 /* end confdefs.h. */
5088 $ac_includes_default
5089 @%:@include <$ac_header>
5091 rm -f conftest.$ac_objext
5092 if { (ac_try="$ac_compile"
5094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5095 *) ac_try_echo=$ac_try;;
5097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5098 (eval "$ac_compile") 2>conftest.er1
5100 grep -v '^ *+' conftest.er1 >conftest.err
5102 cat conftest.err >&5
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); } && {
5105 test -z "$ac_c_werror_flag" ||
5106 test ! -s conftest.err
5107 } && test -s conftest.$ac_objext; then
5108 ac_header_compiler=yes
5110 echo "$as_me: failed program was:" >&5
5111 sed 's/^/| /' conftest.$ac_ext >&5
5113 ac_header_compiler=no
5116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5117 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5118 echo "${ECHO_T}$ac_header_compiler" >&6; }
5120 # Is the header present?
5121 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5122 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5123 cat >conftest.$ac_ext <<_ACEOF
5126 cat confdefs.h >>conftest.$ac_ext
5127 cat >>conftest.$ac_ext <<_ACEOF
5128 /* end confdefs.h. */
5129 @%:@include <$ac_header>
5131 if { (ac_try="$ac_cpp conftest.$ac_ext"
5133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5134 *) ac_try_echo=$ac_try;;
5136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5137 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5139 grep -v '^ *+' conftest.er1 >conftest.err
5141 cat conftest.err >&5
5142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143 (exit $ac_status); } >/dev/null && {
5144 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5145 test ! -s conftest.err
5147 ac_header_preproc=yes
5149 echo "$as_me: failed program was:" >&5
5150 sed 's/^/| /' conftest.$ac_ext >&5
5152 ac_header_preproc=no
5155 rm -f conftest.err conftest.$ac_ext
5156 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5157 echo "${ECHO_T}$ac_header_preproc" >&6; }
5159 # So? What about this header?
5160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5162 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5163 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5164 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5165 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5166 ac_header_preproc=yes
5169 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5170 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5171 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5172 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5173 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5174 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5175 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5176 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5178 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5179 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5180 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5184 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5187 echo $ECHO_N "(cached) $ECHO_C" >&6
5189 eval "$as_ac_Header=\$ac_header_preproc"
5191 ac_res=`eval echo '${'$as_ac_Header'}'`
5192 { echo "$as_me:$LINENO: result: $ac_res" >&5
5193 echo "${ECHO_T}$ac_res" >&6; }
5196 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5197 cat >>confdefs.h <<_ACEOF
5198 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5206 ac_cpp='$CXXCPP $CPPFLAGS'
5207 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5208 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5209 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5210 if test -z "$CXX"; then
5211 if test -n "$CCC"; then
5214 if test -n "$ac_tool_prefix"; then
5215 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5217 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5218 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5221 if test "${ac_cv_prog_CXX+set}" = set; then
5222 echo $ECHO_N "(cached) $ECHO_C" >&6
5224 if test -n "$CXX"; then
5225 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231 test -z "$as_dir" && as_dir=.
5232 for ac_exec_ext in '' $ac_executable_extensions; do
5233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5234 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5245 if test -n "$CXX"; then
5246 { echo "$as_me:$LINENO: result: $CXX" >&5
5247 echo "${ECHO_T}$CXX" >&6; }
5249 { echo "$as_me:$LINENO: result: no" >&5
5250 echo "${ECHO_T}no" >&6; }
5254 test -n "$CXX" && break
5257 if test -z "$CXX"; then
5259 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5261 # Extract the first word of "$ac_prog", so it can be a program name with args.
5262 set dummy $ac_prog; ac_word=$2
5263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5265 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5266 echo $ECHO_N "(cached) $ECHO_C" >&6
5268 if test -n "$ac_ct_CXX"; then
5269 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5275 test -z "$as_dir" && as_dir=.
5276 for ac_exec_ext in '' $ac_executable_extensions; do
5277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5278 ac_cv_prog_ac_ct_CXX="$ac_prog"
5279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5288 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5289 if test -n "$ac_ct_CXX"; then
5290 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5291 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5293 { echo "$as_me:$LINENO: result: no" >&5
5294 echo "${ECHO_T}no" >&6; }
5298 test -n "$ac_ct_CXX" && break
5301 if test "x$ac_ct_CXX" = x; then
5304 case $cross_compiling:$ac_tool_warned in
5306 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5307 whose name does not start with the host triplet. If you think this
5308 configuration is useful to you, please write to autoconf@gnu.org." >&5
5309 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5310 whose name does not start with the host triplet. If you think this
5311 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5312 ac_tool_warned=yes ;;
5320 # Provide some information about the compiler.
5321 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5322 ac_compiler=`set X $ac_compile; echo $2`
5323 { (ac_try="$ac_compiler --version >&5"
5325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5326 *) ac_try_echo=$ac_try;;
5328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5329 (eval "$ac_compiler --version >&5") 2>&5
5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332 (exit $ac_status); }
5333 { (ac_try="$ac_compiler -v >&5"
5335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5336 *) ac_try_echo=$ac_try;;
5338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5339 (eval "$ac_compiler -v >&5") 2>&5
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); }
5343 { (ac_try="$ac_compiler -V >&5"
5345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5346 *) ac_try_echo=$ac_try;;
5348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5349 (eval "$ac_compiler -V >&5") 2>&5
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); }
5354 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5355 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5356 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5357 echo $ECHO_N "(cached) $ECHO_C" >&6
5359 cat >conftest.$ac_ext <<_ACEOF
5362 cat confdefs.h >>conftest.$ac_ext
5363 cat >>conftest.$ac_ext <<_ACEOF
5364 /* end confdefs.h. */
5377 rm -f conftest.$ac_objext
5378 if { (ac_try="$ac_compile"
5380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5381 *) ac_try_echo=$ac_try;;
5383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5384 (eval "$ac_compile") 2>conftest.er1
5386 grep -v '^ *+' conftest.er1 >conftest.err
5388 cat conftest.err >&5
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); } && {
5391 test -z "$ac_cxx_werror_flag" ||
5392 test ! -s conftest.err
5393 } && test -s conftest.$ac_objext; then
5396 echo "$as_me: failed program was:" >&5
5397 sed 's/^/| /' conftest.$ac_ext >&5
5402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5403 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5406 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5407 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5408 GXX=`test $ac_compiler_gnu = yes && echo yes`
5409 ac_test_CXXFLAGS=${CXXFLAGS+set}
5410 ac_save_CXXFLAGS=$CXXFLAGS
5411 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5412 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5413 if test "${ac_cv_prog_cxx_g+set}" = set; then
5414 echo $ECHO_N "(cached) $ECHO_C" >&6
5416 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5417 ac_cxx_werror_flag=yes
5420 cat >conftest.$ac_ext <<_ACEOF
5423 cat confdefs.h >>conftest.$ac_ext
5424 cat >>conftest.$ac_ext <<_ACEOF
5425 /* end confdefs.h. */
5435 rm -f conftest.$ac_objext
5436 if { (ac_try="$ac_compile"
5438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5439 *) ac_try_echo=$ac_try;;
5441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5442 (eval "$ac_compile") 2>conftest.er1
5444 grep -v '^ *+' conftest.er1 >conftest.err
5446 cat conftest.err >&5
5447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448 (exit $ac_status); } && {
5449 test -z "$ac_cxx_werror_flag" ||
5450 test ! -s conftest.err
5451 } && test -s conftest.$ac_objext; then
5452 ac_cv_prog_cxx_g=yes
5454 echo "$as_me: failed program was:" >&5
5455 sed 's/^/| /' conftest.$ac_ext >&5
5458 cat >conftest.$ac_ext <<_ACEOF
5461 cat confdefs.h >>conftest.$ac_ext
5462 cat >>conftest.$ac_ext <<_ACEOF
5463 /* end confdefs.h. */
5473 rm -f conftest.$ac_objext
5474 if { (ac_try="$ac_compile"
5476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5477 *) ac_try_echo=$ac_try;;
5479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5480 (eval "$ac_compile") 2>conftest.er1
5482 grep -v '^ *+' conftest.er1 >conftest.err
5484 cat conftest.err >&5
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); } && {
5487 test -z "$ac_cxx_werror_flag" ||
5488 test ! -s conftest.err
5489 } && test -s conftest.$ac_objext; then
5492 echo "$as_me: failed program was:" >&5
5493 sed 's/^/| /' conftest.$ac_ext >&5
5495 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5497 cat >conftest.$ac_ext <<_ACEOF
5500 cat confdefs.h >>conftest.$ac_ext
5501 cat >>conftest.$ac_ext <<_ACEOF
5502 /* end confdefs.h. */
5512 rm -f conftest.$ac_objext
5513 if { (ac_try="$ac_compile"
5515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5516 *) ac_try_echo=$ac_try;;
5518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5519 (eval "$ac_compile") 2>conftest.er1
5521 grep -v '^ *+' conftest.er1 >conftest.err
5523 cat conftest.err >&5
5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525 (exit $ac_status); } && {
5526 test -z "$ac_cxx_werror_flag" ||
5527 test ! -s conftest.err
5528 } && test -s conftest.$ac_objext; then
5529 ac_cv_prog_cxx_g=yes
5531 echo "$as_me: failed program was:" >&5
5532 sed 's/^/| /' conftest.$ac_ext >&5
5537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5544 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5546 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5547 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5548 if test "$ac_test_CXXFLAGS" = set; then
5549 CXXFLAGS=$ac_save_CXXFLAGS
5550 elif test $ac_cv_prog_cxx_g = yes; then
5551 if test "$GXX" = yes; then
5557 if test "$GXX" = yes; then
5564 ac_cpp='$CXXCPP $CPPFLAGS'
5565 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5566 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5567 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5569 depcc="$CXX" am_compiler_list=
5571 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5572 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5573 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5574 echo $ECHO_N "(cached) $ECHO_C" >&6
5576 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5577 # We make a subdir and do the tests there. Otherwise we can end up
5578 # making bogus files that we don't know about and never remove. For
5579 # instance it was reported that on HP-UX the gcc test will end up
5580 # making a dummy file named `D' -- because `-MD' means `put the output
5583 # Copy depcomp to subdir because otherwise we won't find it if we're
5584 # using a relative directory.
5585 cp "$am_depcomp" conftest.dir
5587 # We will build objects and dependencies in a subdirectory because
5588 # it helps to detect inapplicable dependency modes. For instance
5589 # both Tru64's cc and ICC support -MD to output dependencies as a
5590 # side effect of compilation, but ICC will put the dependencies in
5591 # the current directory while Tru64 will put them in the object
5595 am_cv_CXX_dependencies_compiler_type=none
5596 if test "$am_compiler_list" = ""; then
5597 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5599 for depmode in $am_compiler_list; do
5600 # Setup a source with many dependencies, because some compilers
5601 # like to wrap large dependency lists on column 80 (with \), and
5602 # we should not choose a depcomp mode which is confused by this.
5604 # We need to recreate these files for each test, as the compiler may
5605 # overwrite some of them when testing with obscure command lines.
5606 # This happens at least with the AIX C compiler.
5608 for i in 1 2 3 4 5 6; do
5609 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5610 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5611 # Solaris 8's {/usr,}/bin/sh.
5612 touch sub/conftst$i.h
5614 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5618 # after this tag, mechanisms are not by side-effect, so they'll
5619 # only be used when explicitly requested
5620 if test "x$enable_dependency_tracking" = xyes; then
5628 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5629 # mode. It turns out that the SunPro C++ compiler does not properly
5630 # handle `-M -o', and we need to detect this.
5631 if depmode=$depmode \
5632 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5633 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5634 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5635 >/dev/null 2>conftest.err &&
5636 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5637 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5638 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5639 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5640 # icc doesn't choke on unknown options, it will just issue warnings
5641 # or remarks (even with -Werror). So we grep stderr for any message
5642 # that says an option was ignored or not supported.
5643 # When given -MP, icc 7.0 and 7.1 complain thusly:
5644 # icc: Command line warning: ignoring option '-M'; no argument required
5645 # The diagnosis changed in icc 8.0:
5646 # icc: Command line remark: option '-MP' not supported
5647 if (grep 'ignoring option' conftest.err ||
5648 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5649 am_cv_CXX_dependencies_compiler_type=$depmode
5658 am_cv_CXX_dependencies_compiler_type=none
5662 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5663 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5664 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5667 test "x$enable_dependency_tracking" != xno \
5668 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5669 am__fastdepCXX_TRUE=
5670 am__fastdepCXX_FALSE='#'
5672 am__fastdepCXX_TRUE='#'
5673 am__fastdepCXX_FALSE=
5679 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5680 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5681 (test "X$CXX" != "Xg++"))) ; then
5683 ac_cpp='$CXXCPP $CPPFLAGS'
5684 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5685 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5686 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5687 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5688 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5689 if test -z "$CXXCPP"; then
5690 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5691 echo $ECHO_N "(cached) $ECHO_C" >&6
5693 # Double quotes because CXXCPP needs to be expanded
5694 for CXXCPP in "$CXX -E" "/lib/cpp"
5697 for ac_cxx_preproc_warn_flag in '' yes
5699 # Use a header file that comes with gcc, so configuring glibc
5700 # with a fresh cross-compiler works.
5701 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5702 # <limits.h> exists even on freestanding compilers.
5703 # On the NeXT, cc -E runs the code through the compiler's parser,
5704 # not just through cpp. "Syntax error" is here to catch this case.
5705 cat >conftest.$ac_ext <<_ACEOF
5708 cat confdefs.h >>conftest.$ac_ext
5709 cat >>conftest.$ac_ext <<_ACEOF
5710 /* end confdefs.h. */
5712 @%:@ include <limits.h>
5714 @%:@ include <assert.h>
5718 if { (ac_try="$ac_cpp conftest.$ac_ext"
5720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5721 *) ac_try_echo=$ac_try;;
5723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5724 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5726 grep -v '^ *+' conftest.er1 >conftest.err
5728 cat conftest.err >&5
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); } >/dev/null && {
5731 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5732 test ! -s conftest.err
5736 echo "$as_me: failed program was:" >&5
5737 sed 's/^/| /' conftest.$ac_ext >&5
5739 # Broken: fails on valid input.
5743 rm -f conftest.err conftest.$ac_ext
5745 # OK, works on sane cases. Now check whether nonexistent headers
5746 # can be detected and how.
5747 cat >conftest.$ac_ext <<_ACEOF
5750 cat confdefs.h >>conftest.$ac_ext
5751 cat >>conftest.$ac_ext <<_ACEOF
5752 /* end confdefs.h. */
5753 @%:@include <ac_nonexistent.h>
5755 if { (ac_try="$ac_cpp conftest.$ac_ext"
5757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5758 *) ac_try_echo=$ac_try;;
5760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5761 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5763 grep -v '^ *+' conftest.er1 >conftest.err
5765 cat conftest.err >&5
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); } >/dev/null && {
5768 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5769 test ! -s conftest.err
5771 # Broken: success on invalid input.
5774 echo "$as_me: failed program was:" >&5
5775 sed 's/^/| /' conftest.$ac_ext >&5
5777 # Passes both tests.
5782 rm -f conftest.err conftest.$ac_ext
5785 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5786 rm -f conftest.err conftest.$ac_ext
5787 if $ac_preproc_ok; then
5792 ac_cv_prog_CXXCPP=$CXXCPP
5795 CXXCPP=$ac_cv_prog_CXXCPP
5797 ac_cv_prog_CXXCPP=$CXXCPP
5799 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5800 echo "${ECHO_T}$CXXCPP" >&6; }
5802 for ac_cxx_preproc_warn_flag in '' yes
5804 # Use a header file that comes with gcc, so configuring glibc
5805 # with a fresh cross-compiler works.
5806 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5807 # <limits.h> exists even on freestanding compilers.
5808 # On the NeXT, cc -E runs the code through the compiler's parser,
5809 # not just through cpp. "Syntax error" is here to catch this case.
5810 cat >conftest.$ac_ext <<_ACEOF
5813 cat confdefs.h >>conftest.$ac_ext
5814 cat >>conftest.$ac_ext <<_ACEOF
5815 /* end confdefs.h. */
5817 @%:@ include <limits.h>
5819 @%:@ include <assert.h>
5823 if { (ac_try="$ac_cpp conftest.$ac_ext"
5825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5826 *) ac_try_echo=$ac_try;;
5828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5829 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5831 grep -v '^ *+' conftest.er1 >conftest.err
5833 cat conftest.err >&5
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); } >/dev/null && {
5836 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5837 test ! -s conftest.err
5841 echo "$as_me: failed program was:" >&5
5842 sed 's/^/| /' conftest.$ac_ext >&5
5844 # Broken: fails on valid input.
5848 rm -f conftest.err conftest.$ac_ext
5850 # OK, works on sane cases. Now check whether nonexistent headers
5851 # can be detected and how.
5852 cat >conftest.$ac_ext <<_ACEOF
5855 cat confdefs.h >>conftest.$ac_ext
5856 cat >>conftest.$ac_ext <<_ACEOF
5857 /* end confdefs.h. */
5858 @%:@include <ac_nonexistent.h>
5860 if { (ac_try="$ac_cpp conftest.$ac_ext"
5862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5863 *) ac_try_echo=$ac_try;;
5865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5866 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5868 grep -v '^ *+' conftest.er1 >conftest.err
5870 cat conftest.err >&5
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); } >/dev/null && {
5873 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5874 test ! -s conftest.err
5876 # Broken: success on invalid input.
5879 echo "$as_me: failed program was:" >&5
5880 sed 's/^/| /' conftest.$ac_ext >&5
5882 # Passes both tests.
5887 rm -f conftest.err conftest.$ac_ext
5890 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5891 rm -f conftest.err conftest.$ac_ext
5892 if $ac_preproc_ok; then
5895 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5896 See \`config.log' for more details." >&5
5897 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5898 See \`config.log' for more details." >&2;}
5899 { (exit 1); exit 1; }; }
5903 ac_cpp='$CXXCPP $CPPFLAGS'
5904 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5905 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5906 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5912 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5913 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5914 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5915 if test -n "$ac_tool_prefix"; then
5916 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
5918 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5919 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5920 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5922 if test "${ac_cv_prog_F77+set}" = set; then
5923 echo $ECHO_N "(cached) $ECHO_C" >&6
5925 if test -n "$F77"; then
5926 ac_cv_prog_F77="$F77" # Let the user override the test.
5928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5932 test -z "$as_dir" && as_dir=.
5933 for ac_exec_ext in '' $ac_executable_extensions; do
5934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5935 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5946 if test -n "$F77"; then
5947 { echo "$as_me:$LINENO: result: $F77" >&5
5948 echo "${ECHO_T}$F77" >&6; }
5950 { echo "$as_me:$LINENO: result: no" >&5
5951 echo "${ECHO_T}no" >&6; }
5955 test -n "$F77" && break
5958 if test -z "$F77"; then
5960 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
5962 # Extract the first word of "$ac_prog", so it can be a program name with args.
5963 set dummy $ac_prog; ac_word=$2
5964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5966 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5967 echo $ECHO_N "(cached) $ECHO_C" >&6
5969 if test -n "$ac_ct_F77"; then
5970 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5976 test -z "$as_dir" && as_dir=.
5977 for ac_exec_ext in '' $ac_executable_extensions; do
5978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5979 ac_cv_prog_ac_ct_F77="$ac_prog"
5980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5989 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5990 if test -n "$ac_ct_F77"; then
5991 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5992 echo "${ECHO_T}$ac_ct_F77" >&6; }
5994 { echo "$as_me:$LINENO: result: no" >&5
5995 echo "${ECHO_T}no" >&6; }
5999 test -n "$ac_ct_F77" && break
6002 if test "x$ac_ct_F77" = x; then
6005 case $cross_compiling:$ac_tool_warned in
6007 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6008 whose name does not start with the host triplet. If you think this
6009 configuration is useful to you, please write to autoconf@gnu.org." >&5
6010 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6011 whose name does not start with the host triplet. If you think this
6012 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6013 ac_tool_warned=yes ;;
6020 # Provide some information about the compiler.
6021 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6022 ac_compiler=`set X $ac_compile; echo $2`
6023 { (ac_try="$ac_compiler --version >&5"
6025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6026 *) ac_try_echo=$ac_try;;
6028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6029 (eval "$ac_compiler --version >&5") 2>&5
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); }
6033 { (ac_try="$ac_compiler -v >&5"
6035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6036 *) ac_try_echo=$ac_try;;
6038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6039 (eval "$ac_compiler -v >&5") 2>&5
6041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042 (exit $ac_status); }
6043 { (ac_try="$ac_compiler -V >&5"
6045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6046 *) ac_try_echo=$ac_try;;
6048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6049 (eval "$ac_compiler -V >&5") 2>&5
6051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052 (exit $ac_status); }
6055 # If we don't use `.F' as extension, the preprocessor is not run on the
6056 # input file. (Note that this only needs to work for GNU compilers.)
6059 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6060 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6061 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6062 echo $ECHO_N "(cached) $ECHO_C" >&6
6064 cat >conftest.$ac_ext <<_ACEOF
6072 rm -f conftest.$ac_objext
6073 if { (ac_try="$ac_compile"
6075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6076 *) ac_try_echo=$ac_try;;
6078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6079 (eval "$ac_compile") 2>conftest.er1
6081 grep -v '^ *+' conftest.er1 >conftest.err
6083 cat conftest.err >&5
6084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085 (exit $ac_status); } && {
6086 test -z "$ac_f77_werror_flag" ||
6087 test ! -s conftest.err
6088 } && test -s conftest.$ac_objext; then
6091 echo "$as_me: failed program was:" >&5
6092 sed 's/^/| /' conftest.$ac_ext >&5
6097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6098 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6101 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6102 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6104 ac_test_FFLAGS=${FFLAGS+set}
6105 ac_save_FFLAGS=$FFLAGS
6107 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6108 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6109 if test "${ac_cv_prog_f77_g+set}" = set; then
6110 echo $ECHO_N "(cached) $ECHO_C" >&6
6113 cat >conftest.$ac_ext <<_ACEOF
6118 rm -f conftest.$ac_objext
6119 if { (ac_try="$ac_compile"
6121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6122 *) ac_try_echo=$ac_try;;
6124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6125 (eval "$ac_compile") 2>conftest.er1
6127 grep -v '^ *+' conftest.er1 >conftest.err
6129 cat conftest.err >&5
6130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131 (exit $ac_status); } && {
6132 test -z "$ac_f77_werror_flag" ||
6133 test ! -s conftest.err
6134 } && test -s conftest.$ac_objext; then
6135 ac_cv_prog_f77_g=yes
6137 echo "$as_me: failed program was:" >&5
6138 sed 's/^/| /' conftest.$ac_ext >&5
6143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6146 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6147 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6148 if test "$ac_test_FFLAGS" = set; then
6149 FFLAGS=$ac_save_FFLAGS
6150 elif test $ac_cv_prog_f77_g = yes; then
6151 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6157 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6164 G77=`test $ac_compiler_gnu = yes && echo yes`
6166 ac_cpp='$CPP $CPPFLAGS'
6167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6173 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6175 # find the maximum length of command line arguments
6176 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6177 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6178 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6179 echo $ECHO_N "(cached) $ECHO_C" >&6
6186 # On DJGPP, this test can blow up pretty badly due to problems in libc
6187 # (any single argument exceeding 2000 bytes causes a buffer overrun
6188 # during glob expansion). Even if it were fixed, the result of this
6189 # check would be larger than it should be.
6190 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6194 # Under GNU Hurd, this test is not required because there is
6195 # no limit to the length of command line arguments.
6196 # Libtool will interpret -1 as no limit whatsoever
6197 lt_cv_sys_max_cmd_len=-1;
6201 # On Win9x/ME, this test blows up -- it succeeds, but takes
6202 # about 5 minutes as the teststring grows exponentially.
6203 # Worse, since 9x/ME are not pre-emptively multitasking,
6204 # you end up with a "frozen" computer, even though with patience
6205 # the test eventually succeeds (with a max line length of 256k).
6206 # Instead, let's just punt: use the minimum linelength reported by
6207 # all of the supported platforms: 8192 (on NT/2K/XP).
6208 lt_cv_sys_max_cmd_len=8192;
6212 # On AmigaOS with pdksh, this test takes hours, literally.
6213 # So we just punt and use a minimum line length of 8192.
6214 lt_cv_sys_max_cmd_len=8192;
6217 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6218 # This has been around since 386BSD, at least. Likely further.
6219 if test -x /sbin/sysctl; then
6220 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6221 elif test -x /usr/sbin/sysctl; then
6222 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6224 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6226 # And add a safety zone
6227 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6228 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6232 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6233 lt_cv_sys_max_cmd_len=196608
6237 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6238 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6239 # nice to cause kernel panics so lets avoid the loop below.
6240 # First set a reasonable default.
6241 lt_cv_sys_max_cmd_len=16384
6243 if test -x /sbin/sysconfig; then
6244 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6245 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6250 lt_cv_sys_max_cmd_len=102400
6252 sysv5* | sco5v6* | sysv4.2uw2*)
6253 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6254 if test -n "$kargmax"; then
6255 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6257 lt_cv_sys_max_cmd_len=32768
6261 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6262 if test -n "$lt_cv_sys_max_cmd_len"; then
6263 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6264 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6266 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6267 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6268 = "XX$teststring") >/dev/null 2>&1 &&
6269 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6270 lt_cv_sys_max_cmd_len=$new_result &&
6271 test $i != 17 # 1/2 MB should be enough
6274 teststring=$teststring$teststring
6277 # Add a significant safety factor because C++ compilers can tack on massive
6278 # amounts of additional arguments before passing them to the linker.
6279 # It appears as though 1/2 is a usable value.
6280 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6287 if test -n $lt_cv_sys_max_cmd_len ; then
6288 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6289 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6291 { echo "$as_me:$LINENO: result: none" >&5
6292 echo "${ECHO_T}none" >&6; }
6299 # Check for command to grab the raw symbol name followed by C symbol from nm.
6300 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6301 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6302 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6303 echo $ECHO_N "(cached) $ECHO_C" >&6
6306 # These are sane defaults that work on at least a few old systems.
6307 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6309 # Character class describing NM global symbol codes.
6310 symcode='[BCDEGRST]'
6312 # Regexp to match symbols that can be accessed directly from C.
6313 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6315 # Transform an extracted symbol line into a proper C declaration
6316 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6318 # Transform an extracted symbol line into symbol name and symbol address
6319 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'"
6321 # Define system-specific variables.
6326 cygwin* | mingw* | pw32*)
6327 symcode='[ABCDGISTW]'
6329 hpux*) # Its linker distinguishes data from code symbols
6330 if test "$host_cpu" = ia64; then
6331 symcode='[ABCDEGRST]'
6333 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6334 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'"
6336 linux* | k*bsd*-gnu)
6337 if test "$host_cpu" = ia64; then
6338 symcode='[ABCDGIRSTW]'
6339 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6340 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'"
6344 symcode='[BCDEGRST]'
6347 symcode='[BCDEGQRST]'
6358 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6366 # Handle CRLF in mingw tool chain
6370 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6374 # If we're using GNU nm, then use its standard symbol codes.
6375 case `$NM -V 2>&1` in
6376 *GNU* | *'with BFD'*)
6377 symcode='[ABCDGIRSTW]' ;;
6380 # Try without a prefix undercore, then with it.
6381 for ac_symprfx in "" "_"; do
6383 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6384 symxfrm="\\1 $ac_symprfx\\2 \\2"
6386 # Write the raw and C identifiers.
6387 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6389 # Check to see that the pipe works correctly.
6393 cat > conftest.$ac_ext <<EOF
6398 void nm_test_func(){}
6402 int main(){nm_test_var='a';nm_test_func();return(0);}
6405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6406 (eval $ac_compile) 2>&5
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); }; then
6410 # Now try to grab the symbols.
6412 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6413 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); } && test -s "$nlist"; then
6417 # Try sorting and uniquifying the output.
6418 if sort "$nlist" | uniq > "$nlist"T; then
6419 mv -f "$nlist"T "$nlist"
6424 # Make sure that we snagged all the symbols we need.
6425 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6426 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6427 cat <<EOF > conftest.$ac_ext
6433 # Now generate the symbol file.
6434 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6436 cat <<EOF >> conftest.$ac_ext
6437 #if defined (__STDC__) && __STDC__
6438 # define lt_ptr_t void *
6440 # define lt_ptr_t char *
6444 /* The mapping between symbol names and symbols. */
6449 lt_preloaded_symbols[] =
6452 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6453 cat <<\EOF >> conftest.$ac_ext
6461 # Now try linking the two files.
6462 mv conftest.$ac_objext conftstm.$ac_objext
6463 lt_save_LIBS="$LIBS"
6464 lt_save_CFLAGS="$CFLAGS"
6465 LIBS="conftstm.$ac_objext"
6466 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6468 (eval $ac_link) 2>&5
6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6474 LIBS="$lt_save_LIBS"
6475 CFLAGS="$lt_save_CFLAGS"
6477 echo "cannot find nm_test_func in $nlist" >&5
6480 echo "cannot find nm_test_var in $nlist" >&5
6483 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6486 echo "$progname: failed program was:" >&5
6487 cat conftest.$ac_ext >&5
6489 rm -f conftest* conftst*
6491 # Do not use the global_symbol_pipe unless it works.
6492 if test "$pipe_works" = yes; then
6495 lt_cv_sys_global_symbol_pipe=
6501 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6502 lt_cv_sys_global_symbol_to_cdecl=
6504 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6505 { echo "$as_me:$LINENO: result: failed" >&5
6506 echo "${ECHO_T}failed" >&6; }
6508 { echo "$as_me:$LINENO: result: ok" >&5
6509 echo "${ECHO_T}ok" >&6; }
6512 { echo "$as_me:$LINENO: checking for objdir" >&5
6513 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6514 if test "${lt_cv_objdir+set}" = set; then
6515 echo $ECHO_N "(cached) $ECHO_C" >&6
6517 rm -f .libs 2>/dev/null
6518 mkdir .libs 2>/dev/null
6519 if test -d .libs; then
6522 # MS-DOS does not allow filenames that begin with a dot.
6525 rmdir .libs 2>/dev/null
6527 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6528 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6529 objdir=$lt_cv_objdir
6537 # AIX sometimes has problems with the GCC collect2 program. For some
6538 # reason, if we set the COLLECT_NAMES environment variable, the problems
6539 # vanish in a puff of smoke.
6540 if test "X${COLLECT_NAMES+set}" != Xset; then
6542 export COLLECT_NAMES
6547 # Sed substitution that helps us do robust quoting. It backslashifies
6548 # metacharacters that are still active within double-quoted strings.
6549 Xsed='sed -e 1s/^X//'
6550 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6552 # Same as above, but do not quote variable references.
6553 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6555 # Sed substitution to delay expansion of an escaped shell variable in a
6556 # double_quote_subst'ed string.
6557 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6559 # Sed substitution to avoid accidental globbing in evaled expressions
6560 no_glob_subst='s/\*/\\\*/g'
6566 default_ofile=libtool
6567 can_build_shared=yes
6569 # All known linkers require a `.a' archive for static linking (except MSVC,
6570 # which needs '.lib').
6572 ltmain="$ac_aux_dir/ltmain.sh"
6573 ofile="$default_ofile"
6574 with_gnu_ld="$lt_cv_prog_gnu_ld"
6576 if test -n "$ac_tool_prefix"; then
6577 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6578 set dummy ${ac_tool_prefix}ar; ac_word=$2
6579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6581 if test "${ac_cv_prog_AR+set}" = set; then
6582 echo $ECHO_N "(cached) $ECHO_C" >&6
6584 if test -n "$AR"; then
6585 ac_cv_prog_AR="$AR" # Let the user override the test.
6587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6591 test -z "$as_dir" && as_dir=.
6592 for ac_exec_ext in '' $ac_executable_extensions; do
6593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6594 ac_cv_prog_AR="${ac_tool_prefix}ar"
6595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6605 if test -n "$AR"; then
6606 { echo "$as_me:$LINENO: result: $AR" >&5
6607 echo "${ECHO_T}$AR" >&6; }
6609 { echo "$as_me:$LINENO: result: no" >&5
6610 echo "${ECHO_T}no" >&6; }
6615 if test -z "$ac_cv_prog_AR"; then
6617 # Extract the first word of "ar", so it can be a program name with args.
6618 set dummy ar; ac_word=$2
6619 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6621 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6622 echo $ECHO_N "(cached) $ECHO_C" >&6
6624 if test -n "$ac_ct_AR"; then
6625 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6631 test -z "$as_dir" && as_dir=.
6632 for ac_exec_ext in '' $ac_executable_extensions; do
6633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6634 ac_cv_prog_ac_ct_AR="ar"
6635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6644 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6645 if test -n "$ac_ct_AR"; then
6646 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6647 echo "${ECHO_T}$ac_ct_AR" >&6; }
6649 { echo "$as_me:$LINENO: result: no" >&5
6650 echo "${ECHO_T}no" >&6; }
6653 if test "x$ac_ct_AR" = x; then
6656 case $cross_compiling:$ac_tool_warned in
6658 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6659 whose name does not start with the host triplet. If you think this
6660 configuration is useful to you, please write to autoconf@gnu.org." >&5
6661 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6662 whose name does not start with the host triplet. If you think this
6663 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6664 ac_tool_warned=yes ;;
6672 if test -n "$ac_tool_prefix"; then
6673 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6674 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6677 if test "${ac_cv_prog_RANLIB+set}" = set; then
6678 echo $ECHO_N "(cached) $ECHO_C" >&6
6680 if test -n "$RANLIB"; then
6681 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687 test -z "$as_dir" && as_dir=.
6688 for ac_exec_ext in '' $ac_executable_extensions; do
6689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6690 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6700 RANLIB=$ac_cv_prog_RANLIB
6701 if test -n "$RANLIB"; then
6702 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6703 echo "${ECHO_T}$RANLIB" >&6; }
6705 { echo "$as_me:$LINENO: result: no" >&5
6706 echo "${ECHO_T}no" >&6; }
6711 if test -z "$ac_cv_prog_RANLIB"; then
6712 ac_ct_RANLIB=$RANLIB
6713 # Extract the first word of "ranlib", so it can be a program name with args.
6714 set dummy ranlib; ac_word=$2
6715 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6717 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6718 echo $ECHO_N "(cached) $ECHO_C" >&6
6720 if test -n "$ac_ct_RANLIB"; then
6721 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727 test -z "$as_dir" && as_dir=.
6728 for ac_exec_ext in '' $ac_executable_extensions; do
6729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6730 ac_cv_prog_ac_ct_RANLIB="ranlib"
6731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6740 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6741 if test -n "$ac_ct_RANLIB"; then
6742 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6743 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6745 { echo "$as_me:$LINENO: result: no" >&5
6746 echo "${ECHO_T}no" >&6; }
6749 if test "x$ac_ct_RANLIB" = x; then
6752 case $cross_compiling:$ac_tool_warned in
6754 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6755 whose name does not start with the host triplet. If you think this
6756 configuration is useful to you, please write to autoconf@gnu.org." >&5
6757 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6758 whose name does not start with the host triplet. If you think this
6759 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6760 ac_tool_warned=yes ;;
6762 RANLIB=$ac_ct_RANLIB
6765 RANLIB="$ac_cv_prog_RANLIB"
6768 if test -n "$ac_tool_prefix"; then
6769 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6770 set dummy ${ac_tool_prefix}strip; ac_word=$2
6771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6773 if test "${ac_cv_prog_STRIP+set}" = set; then
6774 echo $ECHO_N "(cached) $ECHO_C" >&6
6776 if test -n "$STRIP"; then
6777 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783 test -z "$as_dir" && as_dir=.
6784 for ac_exec_ext in '' $ac_executable_extensions; do
6785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6786 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6796 STRIP=$ac_cv_prog_STRIP
6797 if test -n "$STRIP"; then
6798 { echo "$as_me:$LINENO: result: $STRIP" >&5
6799 echo "${ECHO_T}$STRIP" >&6; }
6801 { echo "$as_me:$LINENO: result: no" >&5
6802 echo "${ECHO_T}no" >&6; }
6807 if test -z "$ac_cv_prog_STRIP"; then
6809 # Extract the first word of "strip", so it can be a program name with args.
6810 set dummy strip; ac_word=$2
6811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6813 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6814 echo $ECHO_N "(cached) $ECHO_C" >&6
6816 if test -n "$ac_ct_STRIP"; then
6817 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823 test -z "$as_dir" && as_dir=.
6824 for ac_exec_ext in '' $ac_executable_extensions; do
6825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6826 ac_cv_prog_ac_ct_STRIP="strip"
6827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6836 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6837 if test -n "$ac_ct_STRIP"; then
6838 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6839 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6841 { echo "$as_me:$LINENO: result: no" >&5
6842 echo "${ECHO_T}no" >&6; }
6845 if test "x$ac_ct_STRIP" = x; then
6848 case $cross_compiling:$ac_tool_warned in
6850 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6851 whose name does not start with the host triplet. If you think this
6852 configuration is useful to you, please write to autoconf@gnu.org." >&5
6853 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6854 whose name does not start with the host triplet. If you think this
6855 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6856 ac_tool_warned=yes ;;
6861 STRIP="$ac_cv_prog_STRIP"
6866 old_CFLAGS="$CFLAGS"
6868 # Set sane defaults for various variables
6869 test -z "$AR" && AR=ar
6870 test -z "$AR_FLAGS" && AR_FLAGS=cru
6871 test -z "$AS" && AS=as
6872 test -z "$CC" && CC=cc
6873 test -z "$LTCC" && LTCC=$CC
6874 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6875 test -z "$DLLTOOL" && DLLTOOL=dlltool
6876 test -z "$LD" && LD=ld
6877 test -z "$LN_S" && LN_S="ln -s"
6878 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6879 test -z "$NM" && NM=nm
6880 test -z "$SED" && SED=sed
6881 test -z "$OBJDUMP" && OBJDUMP=objdump
6882 test -z "$RANLIB" && RANLIB=:
6883 test -z "$STRIP" && STRIP=:
6884 test -z "$ac_objext" && ac_objext=o
6886 # Determine commands to create old-style static archives.
6887 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6888 old_postinstall_cmds='chmod 644 $oldlib'
6889 old_postuninstall_cmds=
6891 if test -n "$RANLIB"; then
6894 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6897 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6900 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6903 for cc_temp in $compiler""; do
6905 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6906 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6911 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6914 # Only perform the check for file, if the check method requires it
6915 case $deplibs_check_method in
6917 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6918 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6919 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6920 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6921 echo $ECHO_N "(cached) $ECHO_C" >&6
6925 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6928 lt_save_MAGIC_CMD="$MAGIC_CMD"
6929 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6930 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6931 for ac_dir in $ac_dummy; do
6933 test -z "$ac_dir" && ac_dir=.
6934 if test -f $ac_dir/${ac_tool_prefix}file; then
6935 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6936 if test -n "$file_magic_test_file"; then
6937 case $deplibs_check_method in
6939 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6940 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6941 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6942 $EGREP "$file_magic_regex" > /dev/null; then
6947 *** Warning: the command libtool uses to detect shared libraries,
6948 *** $file_magic_cmd, produces output that libtool cannot recognize.
6949 *** The result is that libtool may fail to recognize shared libraries
6950 *** as such. This will affect the creation of libtool libraries that
6951 *** depend on shared libraries, but programs linked with such libtool
6952 *** libraries will work regardless of this problem. Nevertheless, you
6953 *** may want to report the problem to your system manager and/or to
6954 *** bug-libtool@gnu.org
6964 MAGIC_CMD="$lt_save_MAGIC_CMD"
6969 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6970 if test -n "$MAGIC_CMD"; then
6971 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6972 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6974 { echo "$as_me:$LINENO: result: no" >&5
6975 echo "${ECHO_T}no" >&6; }
6978 if test -z "$lt_cv_path_MAGIC_CMD"; then
6979 if test -n "$ac_tool_prefix"; then
6980 { echo "$as_me:$LINENO: checking for file" >&5
6981 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6982 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6983 echo $ECHO_N "(cached) $ECHO_C" >&6
6987 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6990 lt_save_MAGIC_CMD="$MAGIC_CMD"
6991 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6992 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6993 for ac_dir in $ac_dummy; do
6995 test -z "$ac_dir" && ac_dir=.
6996 if test -f $ac_dir/file; then
6997 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6998 if test -n "$file_magic_test_file"; then
6999 case $deplibs_check_method in
7001 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7002 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7003 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7004 $EGREP "$file_magic_regex" > /dev/null; then
7009 *** Warning: the command libtool uses to detect shared libraries,
7010 *** $file_magic_cmd, produces output that libtool cannot recognize.
7011 *** The result is that libtool may fail to recognize shared libraries
7012 *** as such. This will affect the creation of libtool libraries that
7013 *** depend on shared libraries, but programs linked with such libtool
7014 *** libraries will work regardless of this problem. Nevertheless, you
7015 *** may want to report the problem to your system manager and/or to
7016 *** bug-libtool@gnu.org
7026 MAGIC_CMD="$lt_save_MAGIC_CMD"
7031 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7032 if test -n "$MAGIC_CMD"; then
7033 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7034 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7036 { echo "$as_me:$LINENO: result: no" >&5
7037 echo "${ECHO_T}no" >&6; }
7052 # Check whether --enable-libtool-lock was given.
7053 if test "${enable_libtool_lock+set}" = set; then
7054 enableval=$enable_libtool_lock;
7057 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7060 # Check whether --with-pic was given.
7061 if test "${with_pic+set}" = set; then
7062 withval=$with_pic; pic_mode="$withval"
7067 test -z "$pic_mode" && pic_mode=default
7069 # Use C for the default configuration in the libtool script
7073 ac_cpp='$CPP $CPPFLAGS'
7074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7079 # Source file extension for C test sources.
7082 # Object file extension for compiled C test sources.
7086 # Code to be used in simple compile tests
7087 lt_simple_compile_test_code="int some_variable = 0;"
7089 # Code to be used in simple link tests
7090 lt_simple_link_test_code='int main(){return(0);}'
7093 # If no C compiler was specified, use CC.
7096 # If no C compiler flags were specified, use CFLAGS.
7097 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7099 # Allow CC to be a program name with arguments.
7103 # save warnings/boilerplate of simple test code
7104 ac_outfile=conftest.$ac_objext
7105 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7106 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7107 _lt_compiler_boilerplate=`cat conftest.err`
7110 ac_outfile=conftest.$ac_objext
7111 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7112 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7113 _lt_linker_boilerplate=`cat conftest.err`
7118 ## There is no encapsulation within the following macros, do not change
7119 ## the running order or otherwise move them around unless you know exactly
7120 ## what you are doing...
7122 lt_prog_compiler_no_builtin_flag=
7124 if test "$GCC" = yes; then
7125 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7128 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7129 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7130 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7131 echo $ECHO_N "(cached) $ECHO_C" >&6
7133 lt_cv_prog_compiler_rtti_exceptions=no
7134 ac_outfile=conftest.$ac_objext
7135 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7136 lt_compiler_flag="-fno-rtti -fno-exceptions"
7137 # Insert the option either (1) after the last *FLAGS variable, or
7138 # (2) before a word containing "conftest.", or (3) at the end.
7139 # Note that $ac_compile itself does not contain backslashes and begins
7140 # with a dollar sign (not a hyphen), so the echo should work correctly.
7141 # The option is referenced via a variable to avoid confusing sed.
7142 lt_compile=`echo "$ac_compile" | $SED \
7143 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7144 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7145 -e 's:$: $lt_compiler_flag:'`
7146 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7147 (eval "$lt_compile" 2>conftest.err)
7149 cat conftest.err >&5
7150 echo "$as_me:__oline__: \$? = $ac_status" >&5
7151 if (exit $ac_status) && test -s "$ac_outfile"; then
7152 # The compiler can only warn and ignore the option if not recognized
7153 # So say no if there are warnings other than the usual output.
7154 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7155 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7156 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7157 lt_cv_prog_compiler_rtti_exceptions=yes
7163 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7164 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7166 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7167 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7174 lt_prog_compiler_wl=
7175 lt_prog_compiler_pic=
7176 lt_prog_compiler_static=
7178 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7179 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7181 if test "$GCC" = yes; then
7182 lt_prog_compiler_wl='-Wl,'
7183 lt_prog_compiler_static='-static'
7187 # All AIX code is PIC.
7188 if test "$host_cpu" = ia64; then
7189 # AIX 5 now supports IA64 processor
7190 lt_prog_compiler_static='-Bstatic'
7195 # FIXME: we need at least 68020 code to build shared libraries, but
7196 # adding the `-m68020' flag to GCC prevents building anything better,
7198 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7201 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7202 # PIC is the default for these OSes.
7205 mingw* | cygwin* | pw32* | os2*)
7206 # This hack is so that the source file can tell whether it is being
7207 # built for inclusion in a dll (and should export symbols for example).
7208 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7209 # (--disable-auto-import) libraries
7210 lt_prog_compiler_pic='-DDLL_EXPORT'
7213 darwin* | rhapsody*)
7214 # PIC is the default on this platform
7215 # Common symbols not allowed in MH_DYLIB files
7216 lt_prog_compiler_pic='-fno-common'
7220 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7221 # Instead, we relocate shared libraries at runtime.
7225 # Just because we use GCC doesn't mean we suddenly get shared libraries
7226 # on systems that don't support them.
7227 lt_prog_compiler_can_build_shared=no
7232 if test -d /usr/nec; then
7233 lt_prog_compiler_pic=-Kconform_pic
7238 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7245 lt_prog_compiler_pic='-fPIC'
7251 lt_prog_compiler_pic='-fPIC'
7255 # PORTME Check for flag to pass linker flags through the system compiler.
7258 lt_prog_compiler_wl='-Wl,'
7259 if test "$host_cpu" = ia64; then
7260 # AIX 5 now supports IA64 processor
7261 lt_prog_compiler_static='-Bstatic'
7263 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7267 # PIC is the default on this platform
7268 # Common symbols not allowed in MH_DYLIB files
7269 case $cc_basename in
7271 lt_prog_compiler_pic='-qnocommon'
7272 lt_prog_compiler_wl='-Wl,'
7277 mingw* | cygwin* | pw32* | os2*)
7278 # This hack is so that the source file can tell whether it is being
7279 # built for inclusion in a dll (and should export symbols for example).
7280 lt_prog_compiler_pic='-DDLL_EXPORT'
7283 hpux9* | hpux10* | hpux11*)
7284 lt_prog_compiler_wl='-Wl,'
7285 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7292 lt_prog_compiler_pic='+Z'
7295 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7296 lt_prog_compiler_static='${wl}-a ${wl}archive'
7299 irix5* | irix6* | nonstopux*)
7300 lt_prog_compiler_wl='-Wl,'
7301 # PIC (with -KPIC) is the default.
7302 lt_prog_compiler_static='-non_shared'
7306 lt_prog_compiler_pic='-KPIC'
7307 lt_prog_compiler_static='-Bstatic'
7310 linux* | k*bsd*-gnu)
7311 case $cc_basename in
7313 lt_prog_compiler_wl='-Wl,'
7314 lt_prog_compiler_pic='-KPIC'
7315 lt_prog_compiler_static='-static'
7317 pgcc* | pgf77* | pgf90* | pgf95*)
7318 # Portland Group compilers (*not* the Pentium gcc compiler,
7319 # which looks to be a dead project)
7320 lt_prog_compiler_wl='-Wl,'
7321 lt_prog_compiler_pic='-fpic'
7322 lt_prog_compiler_static='-Bstatic'
7325 lt_prog_compiler_wl='-Wl,'
7326 # All Alpha code is PIC.
7327 lt_prog_compiler_static='-non_shared'
7330 case `$CC -V 2>&1 | sed 5q` in
7333 lt_prog_compiler_pic='-KPIC'
7334 lt_prog_compiler_static='-Bstatic'
7335 lt_prog_compiler_wl='-Wl,'
7338 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7339 lt_prog_compiler_pic='-KPIC'
7340 lt_prog_compiler_static='-Bstatic'
7341 lt_prog_compiler_wl=''
7348 osf3* | osf4* | osf5*)
7349 lt_prog_compiler_wl='-Wl,'
7350 # All OSF/1 code is PIC.
7351 lt_prog_compiler_static='-non_shared'
7355 lt_prog_compiler_static='-non_shared'
7359 lt_prog_compiler_pic='-KPIC'
7360 lt_prog_compiler_static='-Bstatic'
7361 case $cc_basename in
7363 lt_prog_compiler_wl='-Qoption ld ';;
7365 lt_prog_compiler_wl='-Wl,';;
7370 lt_prog_compiler_wl='-Qoption ld '
7371 lt_prog_compiler_pic='-PIC'
7372 lt_prog_compiler_static='-Bstatic'
7375 sysv4 | sysv4.2uw2* | sysv4.3*)
7376 lt_prog_compiler_wl='-Wl,'
7377 lt_prog_compiler_pic='-KPIC'
7378 lt_prog_compiler_static='-Bstatic'
7382 if test -d /usr/nec ;then
7383 lt_prog_compiler_pic='-Kconform_pic'
7384 lt_prog_compiler_static='-Bstatic'
7388 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7389 lt_prog_compiler_wl='-Wl,'
7390 lt_prog_compiler_pic='-KPIC'
7391 lt_prog_compiler_static='-Bstatic'
7395 lt_prog_compiler_wl='-Wl,'
7396 lt_prog_compiler_can_build_shared=no
7400 lt_prog_compiler_pic='-pic'
7401 lt_prog_compiler_static='-Bstatic'
7405 lt_prog_compiler_can_build_shared=no
7410 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7411 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7414 # Check to make sure the PIC flag actually works.
7416 if test -n "$lt_prog_compiler_pic"; then
7418 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7419 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7420 if test "${lt_prog_compiler_pic_works+set}" = set; then
7421 echo $ECHO_N "(cached) $ECHO_C" >&6
7423 lt_prog_compiler_pic_works=no
7424 ac_outfile=conftest.$ac_objext
7425 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7426 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7427 # Insert the option either (1) after the last *FLAGS variable, or
7428 # (2) before a word containing "conftest.", or (3) at the end.
7429 # Note that $ac_compile itself does not contain backslashes and begins
7430 # with a dollar sign (not a hyphen), so the echo should work correctly.
7431 # The option is referenced via a variable to avoid confusing sed.
7432 lt_compile=`echo "$ac_compile" | $SED \
7433 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7434 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7435 -e 's:$: $lt_compiler_flag:'`
7436 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7437 (eval "$lt_compile" 2>conftest.err)
7439 cat conftest.err >&5
7440 echo "$as_me:__oline__: \$? = $ac_status" >&5
7441 if (exit $ac_status) && test -s "$ac_outfile"; then
7442 # The compiler can only warn and ignore the option if not recognized
7443 # So say no if there are warnings other than the usual output.
7444 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7445 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7446 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7447 lt_prog_compiler_pic_works=yes
7453 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7454 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7456 if test x"$lt_prog_compiler_pic_works" = xyes; then
7457 case $lt_prog_compiler_pic in
7459 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7462 lt_prog_compiler_pic=
7463 lt_prog_compiler_can_build_shared=no
7468 # For platforms which do not support PIC, -DPIC is meaningless:
7470 lt_prog_compiler_pic=
7473 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7478 # Check to make sure the static flag actually works.
7480 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7481 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7482 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7483 if test "${lt_prog_compiler_static_works+set}" = set; then
7484 echo $ECHO_N "(cached) $ECHO_C" >&6
7486 lt_prog_compiler_static_works=no
7487 save_LDFLAGS="$LDFLAGS"
7488 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7489 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7490 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7491 # The linker can only warn and ignore the option if not recognized
7492 # So say no if there are warnings
7493 if test -s conftest.err; then
7494 # Append any errors to the config.log.
7495 cat conftest.err 1>&5
7496 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7497 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7498 if diff conftest.exp conftest.er2 >/dev/null; then
7499 lt_prog_compiler_static_works=yes
7502 lt_prog_compiler_static_works=yes
7506 LDFLAGS="$save_LDFLAGS"
7509 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7510 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7512 if test x"$lt_prog_compiler_static_works" = xyes; then
7515 lt_prog_compiler_static=
7519 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7520 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7521 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7522 echo $ECHO_N "(cached) $ECHO_C" >&6
7524 lt_cv_prog_compiler_c_o=no
7525 $rm -r conftest 2>/dev/null
7529 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7531 lt_compiler_flag="-o out/conftest2.$ac_objext"
7532 # Insert the option either (1) after the last *FLAGS variable, or
7533 # (2) before a word containing "conftest.", or (3) at the end.
7534 # Note that $ac_compile itself does not contain backslashes and begins
7535 # with a dollar sign (not a hyphen), so the echo should work correctly.
7536 lt_compile=`echo "$ac_compile" | $SED \
7537 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7538 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7539 -e 's:$: $lt_compiler_flag:'`
7540 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7541 (eval "$lt_compile" 2>out/conftest.err)
7543 cat out/conftest.err >&5
7544 echo "$as_me:__oline__: \$? = $ac_status" >&5
7545 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7547 # The compiler can only warn and ignore the option if not recognized
7548 # So say no if there are warnings
7549 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7550 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7551 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7552 lt_cv_prog_compiler_c_o=yes
7557 # SGI C++ compiler will create directory out/ii_files/ for
7558 # template instantiation
7559 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7560 $rm out/* && rmdir out
7566 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7567 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7570 hard_links="nottested"
7571 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7572 # do not overwrite the value of need_locks provided by the user
7573 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7574 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7577 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7579 ln conftest.a conftest.b 2>&5 || hard_links=no
7580 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7581 { echo "$as_me:$LINENO: result: $hard_links" >&5
7582 echo "${ECHO_T}$hard_links" >&6; }
7583 if test "$hard_links" = no; then
7584 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7585 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7592 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7593 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7596 allow_undefined_flag=
7597 enable_shared_with_static_runtimes=no
7599 archive_expsym_cmds=
7600 old_archive_From_new_cmds=
7601 old_archive_from_expsyms_cmds=
7602 export_dynamic_flag_spec=
7603 whole_archive_flag_spec=
7604 thread_safe_flag_spec=
7605 hardcode_libdir_flag_spec=
7606 hardcode_libdir_flag_spec_ld=
7607 hardcode_libdir_separator=
7610 hardcode_shlibpath_var=unsupported
7611 link_all_deplibs=unknown
7612 hardcode_automatic=no
7615 always_export_symbols=no
7616 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7617 # include_expsyms should be a list of space-separated symbols to be *always*
7618 # included in the symbol list
7620 # exclude_expsyms can be an extended regexp of symbols to exclude
7621 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7622 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7623 # as well as any symbol that contains `d'.
7624 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7625 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7626 # platforms (ab)use it in PIC code, but their linkers get confused if
7627 # the symbol is explicitly referenced. Since portable code cannot
7628 # rely on this symbol name, it's probably fine to never include it in
7629 # preloaded symbol tables.
7630 extract_expsyms_cmds=
7631 # Just being paranoid about ensuring that cc_basename is set.
7632 for cc_temp in $compiler""; do
7634 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7635 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7640 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7643 cygwin* | mingw* | pw32*)
7644 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7645 # When not using gcc, we currently assume that we are using
7646 # Microsoft Visual C++.
7647 if test "$GCC" != yes; then
7652 # we just hope/assume this is gcc and not c89 (= MSVC++)
7661 if test "$with_gnu_ld" = yes; then
7662 # If archive_cmds runs LD, not CC, wlarc should be empty
7665 # Set some defaults for GNU ld with shared library support. These
7666 # are reset later if shared libraries are not supported. Putting them
7667 # here allows them to be overridden if necessary.
7668 runpath_var=LD_RUN_PATH
7669 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7670 export_dynamic_flag_spec='${wl}--export-dynamic'
7671 # ancient GNU ld didn't support --whole-archive et. al.
7672 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7673 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7675 whole_archive_flag_spec=
7677 supports_anon_versioning=no
7678 case `$LD -v 2>/dev/null` in
7679 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7680 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7681 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7682 *\ 2.11.*) ;; # other 2.11 versions
7683 *) supports_anon_versioning=yes ;;
7686 # See if GNU ld supports shared libraries.
7688 aix3* | aix4* | aix5*)
7689 # On AIX/PPC, the GNU linker is very broken
7690 if test "$host_cpu" != ia64; then
7694 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7695 *** to be unable to reliably create shared libraries on AIX.
7696 *** Therefore, libtool is disabling shared libraries support. If you
7697 *** really care for shared libraries, you may want to modify your PATH
7698 *** so that a non-GNU linker is found, and then restart.
7705 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)'
7706 hardcode_libdir_flag_spec='-L$libdir'
7707 hardcode_minus_L=yes
7709 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7710 # that the semantics of dynamic libraries on AmigaOS, at least up
7711 # to version 4, is to share data among multiple programs linked
7712 # with the same dynamic library. Since this doesn't match the
7713 # behavior of shared libraries on other platforms, we can't use
7719 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7720 allow_undefined_flag=unsupported
7721 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7722 # support --undefined. This deserves some investigation. FIXME
7723 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7729 cygwin* | mingw* | pw32*)
7730 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7731 # as there is no search path for DLLs.
7732 hardcode_libdir_flag_spec='-L$libdir'
7733 allow_undefined_flag=unsupported
7734 always_export_symbols=no
7735 enable_shared_with_static_runtimes=yes
7736 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7738 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7739 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7740 # If the export-symbols file already is a .def file (1st line
7741 # is EXPORTS), use it as is; otherwise, prepend...
7742 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7743 cp $export_symbols $output_objdir/$soname.def;
7745 echo EXPORTS > $output_objdir/$soname.def;
7746 cat $export_symbols >> $output_objdir/$soname.def;
7748 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7756 hardcode_shlibpath_var=no
7757 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7758 export_dynamic_flag_spec='${wl}-E'
7759 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7760 # Instead, shared libraries are loaded at an image base (0x10000000 by
7761 # default) and relocated if they conflict, which is a slow very memory
7762 # consuming and fragmenting process. To avoid this, we pick a random,
7763 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7764 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7765 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7766 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'
7769 gnu* | linux* | k*bsd*-gnu)
7770 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7772 case $cc_basename,$host_cpu in
7773 pgcc*) # Portland Group C compiler
7774 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'
7775 tmp_addflag=' $pic_flag'
7777 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7778 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'
7779 tmp_addflag=' $pic_flag -Mnomain' ;;
7780 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7781 tmp_addflag=' -i_dynamic' ;;
7782 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7783 tmp_addflag=' -i_dynamic -nofor_main' ;;
7784 ifc* | ifort*) # Intel Fortran compiler
7785 tmp_addflag=' -nofor_main' ;;
7787 case `$CC -V 2>&1 | sed 5q` in
7788 *Sun\ C*) # Sun C 5.9
7789 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7790 tmp_sharedflag='-G' ;;
7791 *Sun\ F*) # Sun Fortran 8.3
7792 tmp_sharedflag='-G' ;;
7794 tmp_sharedflag='-shared' ;;
7796 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7798 if test $supports_anon_versioning = yes; then
7799 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7800 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7801 $echo "local: *; };" >> $output_objdir/$libname.ver~
7802 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7810 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7811 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7814 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7815 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7820 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7824 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7825 *** create shared libraries on Solaris systems. Therefore, libtool
7826 *** is disabling shared libraries support. We urge you to upgrade GNU
7827 *** binutils to release 2.9.1 or newer. Another option is to modify
7828 *** your PATH or compiler configuration so that the native linker is
7829 *** used, and then restart.
7832 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7833 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7834 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7840 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7841 case `$LD -v 2>&1` in
7842 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7846 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7847 *** reliably create shared libraries on SCO systems. Therefore, libtool
7848 *** is disabling shared libraries support. We urge you to upgrade GNU
7849 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7850 *** your PATH or compiler configuration so that the native linker is
7851 *** used, and then restart.
7856 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7857 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7858 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7859 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7868 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7871 hardcode_shlibpath_var=no
7875 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7876 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7877 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7884 if test "$ld_shlibs" = no; then
7886 hardcode_libdir_flag_spec=
7887 export_dynamic_flag_spec=
7888 whole_archive_flag_spec=
7891 # PORTME fill in a description of your system's linker (not GNU ld)
7894 allow_undefined_flag=unsupported
7895 always_export_symbols=yes
7896 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'
7897 # Note: this linker hardcodes the directories in LIBPATH if there
7898 # are no directories specified by -L.
7899 hardcode_minus_L=yes
7900 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7901 # Neither direct hardcoding nor static linking is supported with a
7903 hardcode_direct=unsupported
7908 if test "$host_cpu" = ia64; then
7909 # On IA64, the linker does run time linking by default, so we don't
7910 # have to do anything special.
7911 aix_use_runtimelinking=no
7912 exp_sym_flag='-Bexport'
7915 # If we're using GNU nm, then we don't want the "-C" option.
7916 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7917 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7918 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'
7920 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'
7922 aix_use_runtimelinking=no
7924 # Test if we are trying to use run time linking or normal
7925 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7926 # need to do runtime linking.
7927 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7928 for ld_flag in $LDFLAGS; do
7929 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7930 aix_use_runtimelinking=yes
7937 exp_sym_flag='-bexport'
7938 no_entry_flag='-bnoentry'
7941 # When large executables or shared objects are built, AIX ld can
7942 # have problems creating the table of contents. If linking a library
7943 # or program results in "error TOC overflow" add -mminimal-toc to
7944 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7945 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7949 hardcode_libdir_separator=':'
7950 link_all_deplibs=yes
7952 if test "$GCC" = yes; then
7953 case $host_os in aix4.[012]|aix4.[012].*)
7954 # We only want to do this on AIX 4.2 and lower, the check
7955 # below for broken collect2 doesn't work under 4.3+
7956 collect2name=`${CC} -print-prog-name=collect2`
7957 if test -f "$collect2name" && \
7958 strings "$collect2name" | grep resolve_lib_name >/dev/null
7960 # We have reworked collect2
7963 # We have old collect2
7964 hardcode_direct=unsupported
7965 # It fails to find uninstalled libraries when the uninstalled
7966 # path is not listed in the libpath. Setting hardcode_minus_L
7967 # to unsupported forces relinking
7968 hardcode_minus_L=yes
7969 hardcode_libdir_flag_spec='-L$libdir'
7970 hardcode_libdir_separator=
7974 shared_flag='-shared'
7975 if test "$aix_use_runtimelinking" = yes; then
7976 shared_flag="$shared_flag "'${wl}-G'
7980 if test "$host_cpu" = ia64; then
7981 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7982 # chokes on -Wl,-G. The following line is correct:
7985 if test "$aix_use_runtimelinking" = yes; then
7986 shared_flag='${wl}-G'
7988 shared_flag='${wl}-bM:SRE'
7993 # It seems that -bexpall does not export symbols beginning with
7994 # underscore (_), so it is better to generate a list of symbols to export.
7995 always_export_symbols=yes
7996 if test "$aix_use_runtimelinking" = yes; then
7997 # Warning - without using the other runtime loading flags (-brtl),
7998 # -berok will link without error, but may produce a broken library.
7999 allow_undefined_flag='-berok'
8000 # Determine the default libpath from the value encoded in an empty executable.
8001 cat >conftest.$ac_ext <<_ACEOF
8004 cat confdefs.h >>conftest.$ac_ext
8005 cat >>conftest.$ac_ext <<_ACEOF
8006 /* end confdefs.h. */
8016 rm -f conftest.$ac_objext conftest$ac_exeext
8017 if { (ac_try="$ac_link"
8019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8020 *) ac_try_echo=$ac_try;;
8022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8023 (eval "$ac_link") 2>conftest.er1
8025 grep -v '^ *+' conftest.er1 >conftest.err
8027 cat conftest.err >&5
8028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8029 (exit $ac_status); } && {
8030 test -z "$ac_c_werror_flag" ||
8031 test ! -s conftest.err
8032 } && test -s conftest$ac_exeext &&
8033 $as_test_x conftest$ac_exeext; then
8035 lt_aix_libpath_sed='
8036 /Import File Strings/,/^$/ {
8042 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8043 # Check for a 64-bit object if we didn't find anything.
8044 if test -z "$aix_libpath"; then
8045 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8048 echo "$as_me: failed program was:" >&5
8049 sed 's/^/| /' conftest.$ac_ext >&5
8054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8055 conftest$ac_exeext conftest.$ac_ext
8056 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8058 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8059 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"
8061 if test "$host_cpu" = ia64; then
8062 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8063 allow_undefined_flag="-z nodefs"
8064 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"
8066 # Determine the default libpath from the value encoded in an empty executable.
8067 cat >conftest.$ac_ext <<_ACEOF
8070 cat confdefs.h >>conftest.$ac_ext
8071 cat >>conftest.$ac_ext <<_ACEOF
8072 /* end confdefs.h. */
8082 rm -f conftest.$ac_objext conftest$ac_exeext
8083 if { (ac_try="$ac_link"
8085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8086 *) ac_try_echo=$ac_try;;
8088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8089 (eval "$ac_link") 2>conftest.er1
8091 grep -v '^ *+' conftest.er1 >conftest.err
8093 cat conftest.err >&5
8094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095 (exit $ac_status); } && {
8096 test -z "$ac_c_werror_flag" ||
8097 test ! -s conftest.err
8098 } && test -s conftest$ac_exeext &&
8099 $as_test_x conftest$ac_exeext; then
8101 lt_aix_libpath_sed='
8102 /Import File Strings/,/^$/ {
8108 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8109 # Check for a 64-bit object if we didn't find anything.
8110 if test -z "$aix_libpath"; then
8111 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8114 echo "$as_me: failed program was:" >&5
8115 sed 's/^/| /' conftest.$ac_ext >&5
8120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8121 conftest$ac_exeext conftest.$ac_ext
8122 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8124 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8125 # Warning - without using the other run time loading flags,
8126 # -berok will link without error, but may produce a broken library.
8127 no_undefined_flag=' ${wl}-bernotok'
8128 allow_undefined_flag=' ${wl}-berok'
8129 # Exported symbols can be pulled into shared objects from archives
8130 whole_archive_flag_spec='$convenience'
8131 archive_cmds_need_lc=yes
8132 # This is similar to how AIX traditionally builds its shared libraries.
8133 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'
8139 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)'
8140 hardcode_libdir_flag_spec='-L$libdir'
8141 hardcode_minus_L=yes
8142 # see comment about different semantics on the GNU ld section
8147 export_dynamic_flag_spec=-rdynamic
8150 cygwin* | mingw* | pw32*)
8151 # When not using gcc, we currently assume that we are using
8152 # Microsoft Visual C++.
8153 # hardcode_libdir_flag_spec is actually meaningless, as there is
8154 # no search path for DLLs.
8155 hardcode_libdir_flag_spec=' '
8156 allow_undefined_flag=unsupported
8157 # Tell ltmain to make .lib files, not .a files.
8159 # Tell ltmain to make .dll files, not .so files.
8161 # FIXME: Setting linknames here is a bad hack.
8162 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8163 # The linker will automatically build a .lib file if we build a DLL.
8164 old_archive_From_new_cmds='true'
8165 # FIXME: Should let the user specify the lib program.
8166 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8167 fix_srcfile_path='`cygpath -w "$srcfile"`'
8168 enable_shared_with_static_runtimes=yes
8171 darwin* | rhapsody*)
8173 rhapsody* | darwin1.[012])
8174 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8177 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8178 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8180 case ${MACOSX_DEPLOYMENT_TARGET} in
8182 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8185 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8191 archive_cmds_need_lc=no
8193 hardcode_automatic=yes
8194 hardcode_shlibpath_var=unsupported
8195 whole_archive_flag_spec=''
8196 link_all_deplibs=yes
8197 if test "$GCC" = yes ; then
8198 output_verbose_link_cmd='echo'
8199 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8200 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8201 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8202 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}'
8203 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}'
8205 case $cc_basename in
8207 output_verbose_link_cmd='echo'
8208 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8209 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8210 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8211 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8212 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}'
8222 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8223 hardcode_libdir_flag_spec='-L$libdir'
8224 hardcode_shlibpath_var=no
8231 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8232 # support. Future versions do this automatically, but an explicit c++rt0.o
8233 # does not break anything, and helps significantly (at the cost of a little
8236 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8237 hardcode_libdir_flag_spec='-R$libdir'
8239 hardcode_shlibpath_var=no
8242 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8244 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8246 hardcode_minus_L=yes
8247 hardcode_shlibpath_var=no
8250 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8251 freebsd* | dragonfly*)
8252 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8253 hardcode_libdir_flag_spec='-R$libdir'
8255 hardcode_shlibpath_var=no
8259 if test "$GCC" = yes; then
8260 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'
8262 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'
8264 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8265 hardcode_libdir_separator=:
8268 # hardcode_minus_L: Not really in the search PATH,
8269 # but as the default location of the library.
8270 hardcode_minus_L=yes
8271 export_dynamic_flag_spec='${wl}-E'
8275 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8276 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8278 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8280 if test "$with_gnu_ld" = no; then
8281 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8282 hardcode_libdir_separator=:
8285 export_dynamic_flag_spec='${wl}-E'
8287 # hardcode_minus_L: Not really in the search PATH,
8288 # but as the default location of the library.
8289 hardcode_minus_L=yes
8294 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8297 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8300 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8303 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8309 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8312 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8315 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8319 if test "$with_gnu_ld" = no; then
8320 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8321 hardcode_libdir_separator=:
8325 hardcode_libdir_flag_spec_ld='+b $libdir'
8327 hardcode_shlibpath_var=no
8331 export_dynamic_flag_spec='${wl}-E'
8333 # hardcode_minus_L: Not really in the search PATH,
8334 # but as the default location of the library.
8335 hardcode_minus_L=yes
8341 irix5* | irix6* | nonstopux*)
8342 if test "$GCC" = yes; then
8343 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'
8345 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'
8346 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8348 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8349 hardcode_libdir_separator=:
8350 link_all_deplibs=yes
8354 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8355 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8357 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8359 hardcode_libdir_flag_spec='-R$libdir'
8361 hardcode_shlibpath_var=no
8365 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8367 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8368 hardcode_libdir_separator=:
8369 hardcode_shlibpath_var=no
8373 if test -f /usr/libexec/ld.so; then
8375 hardcode_shlibpath_var=no
8376 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8377 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8378 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8379 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8380 export_dynamic_flag_spec='${wl}-E'
8383 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8384 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8385 hardcode_libdir_flag_spec='-R$libdir'
8388 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8389 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8399 hardcode_libdir_flag_spec='-L$libdir'
8400 hardcode_minus_L=yes
8401 allow_undefined_flag=unsupported
8402 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'
8403 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8407 if test "$GCC" = yes; then
8408 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8409 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'
8411 allow_undefined_flag=' -expect_unresolved \*'
8412 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'
8414 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8415 hardcode_libdir_separator=:
8418 osf4* | osf5*) # as osf3* with the addition of -msym flag
8419 if test "$GCC" = yes; then
8420 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8421 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'
8422 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8424 allow_undefined_flag=' -expect_unresolved \*'
8425 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'
8426 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8427 $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'
8429 # Both c and cxx compiler support -rpath directly
8430 hardcode_libdir_flag_spec='-rpath $libdir'
8432 hardcode_libdir_separator=:
8436 no_undefined_flag=' -z text'
8437 if test "$GCC" = yes; then
8439 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8440 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8441 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8444 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8445 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8446 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8448 hardcode_libdir_flag_spec='-R$libdir'
8449 hardcode_shlibpath_var=no
8451 solaris2.[0-5] | solaris2.[0-5].*) ;;
8453 # The compiler driver will combine and reorder linker options,
8454 # but understands `-z linker_flag'. GCC discards it without `$wl',
8455 # but is careful enough not to reorder.
8456 # Supported since Solaris 2.6 (maybe 2.5.1?)
8457 if test "$GCC" = yes; then
8458 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8460 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8464 link_all_deplibs=yes
8468 if test "x$host_vendor" = xsequent; then
8469 # Use $CC to link under sequent, because it throws in some extra .o
8470 # files that make .init and .fini sections work.
8471 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8473 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8475 hardcode_libdir_flag_spec='-L$libdir'
8477 hardcode_minus_L=yes
8478 hardcode_shlibpath_var=no
8482 case $host_vendor in
8484 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8485 hardcode_direct=yes # is this really true???
8488 ## LD is ld it makes a PLAMLIB
8489 ## CC just makes a GrossModule.
8490 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8491 reload_cmds='$CC -r -o $output$reload_objs'
8495 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8496 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8499 runpath_var='LD_RUN_PATH'
8500 hardcode_shlibpath_var=no
8504 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8505 hardcode_shlibpath_var=no
8506 export_dynamic_flag_spec='-Bexport'
8510 if test -d /usr/nec; then
8511 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8512 hardcode_shlibpath_var=no
8513 runpath_var=LD_RUN_PATH
8514 hardcode_runpath_var=yes
8519 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8520 no_undefined_flag='${wl}-z,text'
8521 archive_cmds_need_lc=no
8522 hardcode_shlibpath_var=no
8523 runpath_var='LD_RUN_PATH'
8525 if test "$GCC" = yes; then
8526 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8527 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8529 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8530 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8534 sysv5* | sco3.2v5* | sco5v6*)
8535 # Note: We can NOT use -z defs as we might desire, because we do not
8536 # link with -lc, and that would cause any symbols used from libc to
8537 # always be unresolved, which means just about no library would
8538 # ever link correctly. If we're not using GNU ld we use -z text
8539 # though, which does catch some bad symbols but isn't as heavy-handed
8541 no_undefined_flag='${wl}-z,text'
8542 allow_undefined_flag='${wl}-z,nodefs'
8543 archive_cmds_need_lc=no
8544 hardcode_shlibpath_var=no
8545 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8546 hardcode_libdir_separator=':'
8547 link_all_deplibs=yes
8548 export_dynamic_flag_spec='${wl}-Bexport'
8549 runpath_var='LD_RUN_PATH'
8551 if test "$GCC" = yes; then
8552 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8553 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8555 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8556 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8561 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8562 hardcode_libdir_flag_spec='-L$libdir'
8563 hardcode_shlibpath_var=no
8572 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8573 echo "${ECHO_T}$ld_shlibs" >&6; }
8574 test "$ld_shlibs" = no && can_build_shared=no
8577 # Do we need to explicitly link libc?
8579 case "x$archive_cmds_need_lc" in
8581 # Assume -lc should be added
8582 archive_cmds_need_lc=yes
8584 if test "$enable_shared" = yes && test "$GCC" = yes; then
8585 case $archive_cmds in
8587 # FIXME: we may have to deal with multi-command sequences.
8590 # Test whether the compiler implicitly links with -lc since on some
8591 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8592 # to ld, don't add -lc before -lgcc.
8593 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8594 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8596 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8599 (eval $ac_compile) 2>&5
8601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602 (exit $ac_status); } 2>conftest.err; then
8605 libobjs=conftest.$ac_objext
8607 wl=$lt_prog_compiler_wl
8608 pic_flag=$lt_prog_compiler_pic
8614 lt_save_allow_undefined_flag=$allow_undefined_flag
8615 allow_undefined_flag=
8616 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8617 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); }
8622 archive_cmds_need_lc=no
8624 archive_cmds_need_lc=yes
8626 allow_undefined_flag=$lt_save_allow_undefined_flag
8628 cat conftest.err 1>&5
8631 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8632 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8639 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8640 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8642 libname_spec='lib$name'
8650 shlibpath_overrides_runpath=unknown
8652 dynamic_linker="$host_os ld.so"
8653 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8655 if test "$GCC" = yes; then
8657 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8658 *) lt_awk_arg="/^libraries:/" ;;
8660 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8661 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8662 # if the path contains ";" then we assume it to be the separator
8663 # otherwise default to the standard path separator (i.e. ":") - it is
8664 # assumed that no part of a normal pathname contains ";" but that should
8665 # okay in the real world where ";" in dirpaths is itself problematic.
8666 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8668 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8670 # Ok, now we have the path, separated by spaces, we can step through it
8671 # and add multilib dir if necessary.
8672 lt_tmp_lt_search_path_spec=
8673 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8674 for lt_sys_path in $lt_search_path_spec; do
8675 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8676 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8678 test -d "$lt_sys_path" && \
8679 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8682 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8683 BEGIN {RS=" "; FS="/|\n";} {
8686 for (lt_i = NF; lt_i > 0; lt_i--) {
8687 if ($lt_i != "" && $lt_i != ".") {
8688 if ($lt_i == "..") {
8691 if (lt_count == 0) {
8692 lt_foo="/" $lt_i lt_foo;
8699 if (lt_foo != "") { lt_freq[lt_foo]++; }
8700 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8702 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8704 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8706 need_lib_prefix=unknown
8707 hardcode_into_libs=no
8709 # when you set need_version to no, make sure it does not cause -set_version
8710 # flags to be left without arguments
8711 need_version=unknown
8716 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8717 shlibpath_var=LIBPATH
8719 # AIX 3 has no versioning support, so we append a major version to the name.
8720 soname_spec='${libname}${release}${shared_ext}$major'
8727 hardcode_into_libs=yes
8728 if test "$host_cpu" = ia64; then
8729 # AIX 5 supports IA64
8730 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8731 shlibpath_var=LD_LIBRARY_PATH
8733 # With GCC up to 2.95.x, collect2 would create an import file
8734 # for dependence libraries. The import file would start with
8735 # the line `#! .'. This would cause the generated library to
8736 # depend on `.', always an invalid library. This was fixed in
8737 # development snapshots of GCC prior to 3.0.
8739 aix4 | aix4.[01] | aix4.[01].*)
8740 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8742 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8749 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8750 # soname into executable. Probably we can add versioning support to
8751 # collect2, so additional links can be useful in future.
8752 if test "$aix_use_runtimelinking" = yes; then
8753 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8754 # instead of lib<name>.a to let people know that these are not
8755 # typical AIX shared libraries.
8756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8758 # We preserve .a as extension for shared libraries through AIX4.2
8759 # and later when we are not doing run time linking.
8760 library_names_spec='${libname}${release}.a $libname.a'
8761 soname_spec='${libname}${release}${shared_ext}$major'
8763 shlibpath_var=LIBPATH
8768 library_names_spec='$libname.ixlibrary $libname.a'
8769 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8770 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'
8774 library_names_spec='${libname}${shared_ext}'
8775 dynamic_linker="$host_os ld.so"
8776 shlibpath_var=LIBRARY_PATH
8782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8783 soname_spec='${libname}${release}${shared_ext}$major'
8784 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8785 shlibpath_var=LD_LIBRARY_PATH
8786 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8787 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8788 # the default ld.so.conf also contains /usr/contrib/lib and
8789 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8790 # libtool to hard-code these into programs
8793 cygwin* | mingw* | pw32*)
8794 version_type=windows
8799 case $GCC,$host_os in
8800 yes,cygwin* | yes,mingw* | yes,pw32*)
8801 library_names_spec='$libname.dll.a'
8802 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8803 postinstall_cmds='base_file=`basename \${file}`~
8804 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8805 dldir=$destdir/`dirname \$dlpath`~
8806 test -d \$dldir || mkdir -p \$dldir~
8807 $install_prog $dir/$dlname \$dldir/$dlname~
8808 chmod a+x \$dldir/$dlname'
8809 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8810 dlpath=$dir/\$dldll~
8812 shlibpath_overrides_runpath=yes
8816 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8817 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8818 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8821 # MinGW DLLs use traditional 'lib' prefix
8822 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8823 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8824 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8825 # It is most probably a Windows format PATH printed by
8826 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8827 # path with ; separators, and with drive letters. We can handle the
8828 # drive letters (cygwin fileutils understands them), so leave them,
8829 # especially as we might pass files found there to a mingw objdump,
8830 # which wouldn't understand a cygwinified path. Ahh.
8831 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8833 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8837 # pw32 DLLs use 'pw' prefix rather than 'lib'
8838 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8844 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8847 dynamic_linker='Win32 ld.exe'
8848 # FIXME: first we should search . and the directory the executable is in
8852 darwin* | rhapsody*)
8853 dynamic_linker="$host_os dyld"
8857 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8858 soname_spec='${libname}${release}${major}$shared_ext'
8859 shlibpath_overrides_runpath=yes
8860 shlibpath_var=DYLD_LIBRARY_PATH
8861 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8863 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8864 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8872 soname_spec='${libname}${release}${shared_ext}$major'
8873 shlibpath_var=LD_LIBRARY_PATH
8880 freebsd* | dragonfly*)
8881 # DragonFly does not have aout. When/if they implement a new
8882 # versioning mechanism, adjust this.
8883 if test -x /usr/bin/objformat; then
8884 objformat=`/usr/bin/objformat`
8887 freebsd[123]*) objformat=aout ;;
8891 version_type=freebsd-$objformat
8892 case $version_type in
8894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8899 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8903 shlibpath_var=LD_LIBRARY_PATH
8906 shlibpath_overrides_runpath=yes
8908 freebsd3.[01]* | freebsdelf3.[01]*)
8909 shlibpath_overrides_runpath=yes
8910 hardcode_into_libs=yes
8912 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8913 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8914 shlibpath_overrides_runpath=no
8915 hardcode_into_libs=yes
8917 *) # from 4.6 on, and DragonFly
8918 shlibpath_overrides_runpath=yes
8919 hardcode_into_libs=yes
8928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8929 soname_spec='${libname}${release}${shared_ext}$major'
8930 shlibpath_var=LD_LIBRARY_PATH
8931 hardcode_into_libs=yes
8934 hpux9* | hpux10* | hpux11*)
8935 # Give a soname corresponding to the major version so that dld.sl refuses to
8936 # link against other versions.
8943 hardcode_into_libs=yes
8944 dynamic_linker="$host_os dld.so"
8945 shlibpath_var=LD_LIBRARY_PATH
8946 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8948 soname_spec='${libname}${release}${shared_ext}$major'
8949 if test "X$HPUX_IA64_MODE" = X32; then
8950 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8952 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8954 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8958 hardcode_into_libs=yes
8959 dynamic_linker="$host_os dld.sl"
8960 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8961 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8963 soname_spec='${libname}${release}${shared_ext}$major'
8964 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8965 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8969 dynamic_linker="$host_os dld.sl"
8970 shlibpath_var=SHLIB_PATH
8971 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8973 soname_spec='${libname}${release}${shared_ext}$major'
8976 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8977 postinstall_cmds='chmod 555 $lib'
8984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8985 soname_spec='${libname}${release}${shared_ext}$major'
8986 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8987 shlibpath_var=LD_LIBRARY_PATH
8988 shlibpath_overrides_runpath=no
8989 hardcode_into_libs=yes
8992 irix5* | irix6* | nonstopux*)
8994 nonstopux*) version_type=nonstopux ;;
8996 if test "$lt_cv_prog_gnu_ld" = yes; then
9004 soname_spec='${libname}${release}${shared_ext}$major'
9005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9007 irix5* | nonstopux*)
9011 case $LD in # libtool.m4 will add one of these switches to LD
9012 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9013 libsuff= shlibsuff= libmagic=32-bit;;
9014 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9015 libsuff=32 shlibsuff=N32 libmagic=N32;;
9016 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9017 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9018 *) libsuff= shlibsuff= libmagic=never-match;;
9022 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9023 shlibpath_overrides_runpath=no
9024 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9025 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9026 hardcode_into_libs=yes
9029 # No shared lib support for Linux oldld, aout, or coff.
9030 linux*oldld* | linux*aout* | linux*coff*)
9034 # This must be Linux ELF.
9035 linux* | k*bsd*-gnu)
9039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9040 soname_spec='${libname}${release}${shared_ext}$major'
9041 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9042 shlibpath_var=LD_LIBRARY_PATH
9043 shlibpath_overrides_runpath=no
9044 # This implies no fast_install, which is unacceptable.
9045 # Some rework will be needed to allow for fast_install
9046 # before this can be enabled.
9047 hardcode_into_libs=yes
9048 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9049 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9051 # Append ld.so.conf contents to the search path
9052 if test -f /etc/ld.so.conf; then
9053 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9054 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9057 # We used to test for /lib/ld.so.1 and disable shared libraries on
9058 # powerpc, because MkLinux only supported shared libraries with the
9059 # GNU dynamic linker. Since this was broken with cross compilers,
9060 # most powerpc-linux boxes support dynamic linking these days and
9061 # people can always --disable-shared, the test was removed, and we
9062 # assume the GNU/Linux dynamic linker is in use.
9063 dynamic_linker='GNU/Linux ld.so'
9070 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9072 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9073 dynamic_linker='NetBSD (a.out) ld.so'
9075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9076 soname_spec='${libname}${release}${shared_ext}$major'
9077 dynamic_linker='NetBSD ld.elf_so'
9079 shlibpath_var=LD_LIBRARY_PATH
9080 shlibpath_overrides_runpath=yes
9081 hardcode_into_libs=yes
9086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9087 shlibpath_var=LD_LIBRARY_PATH
9088 shlibpath_overrides_runpath=yes
9095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9096 soname_spec='${libname}${release}${shared_ext}$major'
9097 shlibpath_var=LD_LIBRARY_PATH
9098 shlibpath_overrides_runpath=yes
9103 sys_lib_dlsearch_path_spec="/usr/lib"
9105 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9107 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9108 *) need_version=no ;;
9110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9111 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9112 shlibpath_var=LD_LIBRARY_PATH
9113 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9115 openbsd2.[89] | openbsd2.[89].*)
9116 shlibpath_overrides_runpath=no
9119 shlibpath_overrides_runpath=yes
9123 shlibpath_overrides_runpath=yes
9128 libname_spec='$name'
9131 library_names_spec='$libname${shared_ext} $libname.a'
9132 dynamic_linker='OS/2 ld.exe'
9133 shlibpath_var=LIBPATH
9136 osf3* | osf4* | osf5*)
9140 soname_spec='${libname}${release}${shared_ext}$major'
9141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9142 shlibpath_var=LD_LIBRARY_PATH
9143 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9144 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9156 soname_spec='${libname}${release}${shared_ext}$major'
9157 shlibpath_var=LD_LIBRARY_PATH
9158 shlibpath_overrides_runpath=yes
9159 hardcode_into_libs=yes
9160 # ldd complains unless libraries are executable
9161 postinstall_cmds='chmod +x $lib'
9166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9167 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9168 shlibpath_var=LD_LIBRARY_PATH
9169 shlibpath_overrides_runpath=yes
9170 if test "$with_gnu_ld" = yes; then
9178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9179 soname_spec='${libname}${release}${shared_ext}$major'
9180 shlibpath_var=LD_LIBRARY_PATH
9181 case $host_vendor in
9183 shlibpath_overrides_runpath=no
9185 export_dynamic_flag_spec='${wl}-Blargedynsym'
9186 runpath_var=LD_RUN_PATH
9194 shlibpath_overrides_runpath=no
9195 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9201 if test -d /usr/nec ;then
9203 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9204 soname_spec='$libname${shared_ext}.$major'
9205 shlibpath_var=LD_LIBRARY_PATH
9209 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9210 version_type=freebsd-elf
9213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9214 soname_spec='${libname}${release}${shared_ext}$major'
9215 shlibpath_var=LD_LIBRARY_PATH
9216 hardcode_into_libs=yes
9217 if test "$with_gnu_ld" = yes; then
9218 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9219 shlibpath_overrides_runpath=no
9221 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9222 shlibpath_overrides_runpath=yes
9225 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9229 sys_lib_dlsearch_path_spec='/usr/lib'
9234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9235 soname_spec='${libname}${release}${shared_ext}$major'
9236 shlibpath_var=LD_LIBRARY_PATH
9243 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9244 echo "${ECHO_T}$dynamic_linker" >&6; }
9245 test "$dynamic_linker" = no && can_build_shared=no
9247 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9248 if test "$GCC" = yes; then
9249 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9252 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9253 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9255 if test -n "$hardcode_libdir_flag_spec" || \
9256 test -n "$runpath_var" || \
9257 test "X$hardcode_automatic" = "Xyes" ; then
9259 # We can hardcode non-existant directories.
9260 if test "$hardcode_direct" != no &&
9261 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9262 # have to relink, otherwise we might link with an installed library
9263 # when we should be linking with a yet-to-be-installed one
9264 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9265 test "$hardcode_minus_L" != no; then
9266 # Linking always hardcodes the temporary library directory.
9267 hardcode_action=relink
9269 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9270 hardcode_action=immediate
9273 # We cannot hardcode anything, or else we can only hardcode existing
9275 hardcode_action=unsupported
9277 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9278 echo "${ECHO_T}$hardcode_action" >&6; }
9280 if test "$hardcode_action" = relink; then
9281 # Fast installation is not supported
9282 enable_fast_install=no
9283 elif test "$shlibpath_overrides_runpath" = yes ||
9284 test "$enable_shared" = no; then
9285 # Fast installation is not necessary
9286 enable_fast_install=needless
9291 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9292 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9293 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9294 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9295 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9296 { echo "$as_me:$LINENO: result: yes" >&5
9297 echo "${ECHO_T}yes" >&6; }
9299 # FIXME - insert some real tests, host_os isn't really good enough
9302 if test -n "$STRIP" ; then
9303 striplib="$STRIP -x"
9304 old_striplib="$STRIP -S"
9305 { echo "$as_me:$LINENO: result: yes" >&5
9306 echo "${ECHO_T}yes" >&6; }
9308 { echo "$as_me:$LINENO: result: no" >&5
9309 echo "${ECHO_T}no" >&6; }
9313 { echo "$as_me:$LINENO: result: no" >&5
9314 echo "${ECHO_T}no" >&6; }
9319 if test "x$enable_dlopen" != xyes; then
9320 enable_dlopen=unknown
9321 enable_dlopen_self=unknown
9322 enable_dlopen_self_static=unknown
9329 lt_cv_dlopen="load_add_on"
9331 lt_cv_dlopen_self=yes
9335 lt_cv_dlopen="LoadLibrary"
9340 lt_cv_dlopen="dlopen"
9345 # if libdl is installed we need to link against it
9346 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9347 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9348 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9349 echo $ECHO_N "(cached) $ECHO_C" >&6
9351 ac_check_lib_save_LIBS=$LIBS
9353 cat >conftest.$ac_ext <<_ACEOF
9356 cat confdefs.h >>conftest.$ac_ext
9357 cat >>conftest.$ac_ext <<_ACEOF
9358 /* end confdefs.h. */
9360 /* Override any GCC internal prototype to avoid an error.
9361 Use char because int might match the return type of a GCC
9362 builtin and then its argument prototype would still apply. */
9375 rm -f conftest.$ac_objext conftest$ac_exeext
9376 if { (ac_try="$ac_link"
9378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9379 *) ac_try_echo=$ac_try;;
9381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9382 (eval "$ac_link") 2>conftest.er1
9384 grep -v '^ *+' conftest.er1 >conftest.err
9386 cat conftest.err >&5
9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388 (exit $ac_status); } && {
9389 test -z "$ac_c_werror_flag" ||
9390 test ! -s conftest.err
9391 } && test -s conftest$ac_exeext &&
9392 $as_test_x conftest$ac_exeext; then
9393 ac_cv_lib_dl_dlopen=yes
9395 echo "$as_me: failed program was:" >&5
9396 sed 's/^/| /' conftest.$ac_ext >&5
9398 ac_cv_lib_dl_dlopen=no
9401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9402 conftest$ac_exeext conftest.$ac_ext
9403 LIBS=$ac_check_lib_save_LIBS
9405 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9406 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9407 if test $ac_cv_lib_dl_dlopen = yes; then
9408 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9413 lt_cv_dlopen_self=yes
9420 { echo "$as_me:$LINENO: checking for shl_load" >&5
9421 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9422 if test "${ac_cv_func_shl_load+set}" = set; then
9423 echo $ECHO_N "(cached) $ECHO_C" >&6
9425 cat >conftest.$ac_ext <<_ACEOF
9428 cat confdefs.h >>conftest.$ac_ext
9429 cat >>conftest.$ac_ext <<_ACEOF
9430 /* end confdefs.h. */
9431 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9433 #define shl_load innocuous_shl_load
9435 /* System header to define __stub macros and hopefully few prototypes,
9436 which can conflict with char shl_load (); below.
9437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9438 <limits.h> exists even on freestanding compilers. */
9441 # include <limits.h>
9443 # include <assert.h>
9448 /* Override any GCC internal prototype to avoid an error.
9449 Use char because int might match the return type of a GCC
9450 builtin and then its argument prototype would still apply. */
9455 /* The GNU C library defines this for functions which it implements
9456 to always fail with ENOSYS. Some functions are actually named
9457 something starting with __ and the normal name is an alias. */
9458 #if defined __stub_shl_load || defined __stub___shl_load
9470 rm -f conftest.$ac_objext conftest$ac_exeext
9471 if { (ac_try="$ac_link"
9473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9474 *) ac_try_echo=$ac_try;;
9476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9477 (eval "$ac_link") 2>conftest.er1
9479 grep -v '^ *+' conftest.er1 >conftest.err
9481 cat conftest.err >&5
9482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483 (exit $ac_status); } && {
9484 test -z "$ac_c_werror_flag" ||
9485 test ! -s conftest.err
9486 } && test -s conftest$ac_exeext &&
9487 $as_test_x conftest$ac_exeext; then
9488 ac_cv_func_shl_load=yes
9490 echo "$as_me: failed program was:" >&5
9491 sed 's/^/| /' conftest.$ac_ext >&5
9493 ac_cv_func_shl_load=no
9496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9497 conftest$ac_exeext conftest.$ac_ext
9499 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9500 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9501 if test $ac_cv_func_shl_load = yes; then
9502 lt_cv_dlopen="shl_load"
9504 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9505 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9506 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9507 echo $ECHO_N "(cached) $ECHO_C" >&6
9509 ac_check_lib_save_LIBS=$LIBS
9511 cat >conftest.$ac_ext <<_ACEOF
9514 cat confdefs.h >>conftest.$ac_ext
9515 cat >>conftest.$ac_ext <<_ACEOF
9516 /* end confdefs.h. */
9518 /* Override any GCC internal prototype to avoid an error.
9519 Use char because int might match the return type of a GCC
9520 builtin and then its argument prototype would still apply. */
9533 rm -f conftest.$ac_objext conftest$ac_exeext
9534 if { (ac_try="$ac_link"
9536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9537 *) ac_try_echo=$ac_try;;
9539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9540 (eval "$ac_link") 2>conftest.er1
9542 grep -v '^ *+' conftest.er1 >conftest.err
9544 cat conftest.err >&5
9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); } && {
9547 test -z "$ac_c_werror_flag" ||
9548 test ! -s conftest.err
9549 } && test -s conftest$ac_exeext &&
9550 $as_test_x conftest$ac_exeext; then
9551 ac_cv_lib_dld_shl_load=yes
9553 echo "$as_me: failed program was:" >&5
9554 sed 's/^/| /' conftest.$ac_ext >&5
9556 ac_cv_lib_dld_shl_load=no
9559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9560 conftest$ac_exeext conftest.$ac_ext
9561 LIBS=$ac_check_lib_save_LIBS
9563 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9564 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9565 if test $ac_cv_lib_dld_shl_load = yes; then
9566 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9568 { echo "$as_me:$LINENO: checking for dlopen" >&5
9569 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9570 if test "${ac_cv_func_dlopen+set}" = set; then
9571 echo $ECHO_N "(cached) $ECHO_C" >&6
9573 cat >conftest.$ac_ext <<_ACEOF
9576 cat confdefs.h >>conftest.$ac_ext
9577 cat >>conftest.$ac_ext <<_ACEOF
9578 /* end confdefs.h. */
9579 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9580 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9581 #define dlopen innocuous_dlopen
9583 /* System header to define __stub macros and hopefully few prototypes,
9584 which can conflict with char dlopen (); below.
9585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9586 <limits.h> exists even on freestanding compilers. */
9589 # include <limits.h>
9591 # include <assert.h>
9596 /* Override any GCC internal prototype to avoid an error.
9597 Use char because int might match the return type of a GCC
9598 builtin and then its argument prototype would still apply. */
9603 /* The GNU C library defines this for functions which it implements
9604 to always fail with ENOSYS. Some functions are actually named
9605 something starting with __ and the normal name is an alias. */
9606 #if defined __stub_dlopen || defined __stub___dlopen
9618 rm -f conftest.$ac_objext conftest$ac_exeext
9619 if { (ac_try="$ac_link"
9621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9622 *) ac_try_echo=$ac_try;;
9624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9625 (eval "$ac_link") 2>conftest.er1
9627 grep -v '^ *+' conftest.er1 >conftest.err
9629 cat conftest.err >&5
9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631 (exit $ac_status); } && {
9632 test -z "$ac_c_werror_flag" ||
9633 test ! -s conftest.err
9634 } && test -s conftest$ac_exeext &&
9635 $as_test_x conftest$ac_exeext; then
9636 ac_cv_func_dlopen=yes
9638 echo "$as_me: failed program was:" >&5
9639 sed 's/^/| /' conftest.$ac_ext >&5
9641 ac_cv_func_dlopen=no
9644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9645 conftest$ac_exeext conftest.$ac_ext
9647 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9648 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9649 if test $ac_cv_func_dlopen = yes; then
9650 lt_cv_dlopen="dlopen"
9652 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9653 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9654 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9655 echo $ECHO_N "(cached) $ECHO_C" >&6
9657 ac_check_lib_save_LIBS=$LIBS
9659 cat >conftest.$ac_ext <<_ACEOF
9662 cat confdefs.h >>conftest.$ac_ext
9663 cat >>conftest.$ac_ext <<_ACEOF
9664 /* end confdefs.h. */
9666 /* Override any GCC internal prototype to avoid an error.
9667 Use char because int might match the return type of a GCC
9668 builtin and then its argument prototype would still apply. */
9681 rm -f conftest.$ac_objext conftest$ac_exeext
9682 if { (ac_try="$ac_link"
9684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9685 *) ac_try_echo=$ac_try;;
9687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9688 (eval "$ac_link") 2>conftest.er1
9690 grep -v '^ *+' conftest.er1 >conftest.err
9692 cat conftest.err >&5
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); } && {
9695 test -z "$ac_c_werror_flag" ||
9696 test ! -s conftest.err
9697 } && test -s conftest$ac_exeext &&
9698 $as_test_x conftest$ac_exeext; then
9699 ac_cv_lib_dl_dlopen=yes
9701 echo "$as_me: failed program was:" >&5
9702 sed 's/^/| /' conftest.$ac_ext >&5
9704 ac_cv_lib_dl_dlopen=no
9707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9708 conftest$ac_exeext conftest.$ac_ext
9709 LIBS=$ac_check_lib_save_LIBS
9711 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9712 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9713 if test $ac_cv_lib_dl_dlopen = yes; then
9714 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9716 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9717 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9718 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9719 echo $ECHO_N "(cached) $ECHO_C" >&6
9721 ac_check_lib_save_LIBS=$LIBS
9723 cat >conftest.$ac_ext <<_ACEOF
9726 cat confdefs.h >>conftest.$ac_ext
9727 cat >>conftest.$ac_ext <<_ACEOF
9728 /* end confdefs.h. */
9730 /* Override any GCC internal prototype to avoid an error.
9731 Use char because int might match the return type of a GCC
9732 builtin and then its argument prototype would still apply. */
9745 rm -f conftest.$ac_objext conftest$ac_exeext
9746 if { (ac_try="$ac_link"
9748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9749 *) ac_try_echo=$ac_try;;
9751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9752 (eval "$ac_link") 2>conftest.er1
9754 grep -v '^ *+' conftest.er1 >conftest.err
9756 cat conftest.err >&5
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); } && {
9759 test -z "$ac_c_werror_flag" ||
9760 test ! -s conftest.err
9761 } && test -s conftest$ac_exeext &&
9762 $as_test_x conftest$ac_exeext; then
9763 ac_cv_lib_svld_dlopen=yes
9765 echo "$as_me: failed program was:" >&5
9766 sed 's/^/| /' conftest.$ac_ext >&5
9768 ac_cv_lib_svld_dlopen=no
9771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9772 conftest$ac_exeext conftest.$ac_ext
9773 LIBS=$ac_check_lib_save_LIBS
9775 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9776 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9777 if test $ac_cv_lib_svld_dlopen = yes; then
9778 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9780 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9781 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9782 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9783 echo $ECHO_N "(cached) $ECHO_C" >&6
9785 ac_check_lib_save_LIBS=$LIBS
9787 cat >conftest.$ac_ext <<_ACEOF
9790 cat confdefs.h >>conftest.$ac_ext
9791 cat >>conftest.$ac_ext <<_ACEOF
9792 /* end confdefs.h. */
9794 /* Override any GCC internal prototype to avoid an error.
9795 Use char because int might match the return type of a GCC
9796 builtin and then its argument prototype would still apply. */
9809 rm -f conftest.$ac_objext conftest$ac_exeext
9810 if { (ac_try="$ac_link"
9812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9813 *) ac_try_echo=$ac_try;;
9815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9816 (eval "$ac_link") 2>conftest.er1
9818 grep -v '^ *+' conftest.er1 >conftest.err
9820 cat conftest.err >&5
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); } && {
9823 test -z "$ac_c_werror_flag" ||
9824 test ! -s conftest.err
9825 } && test -s conftest$ac_exeext &&
9826 $as_test_x conftest$ac_exeext; then
9827 ac_cv_lib_dld_dld_link=yes
9829 echo "$as_me: failed program was:" >&5
9830 sed 's/^/| /' conftest.$ac_ext >&5
9832 ac_cv_lib_dld_dld_link=no
9835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9836 conftest$ac_exeext conftest.$ac_ext
9837 LIBS=$ac_check_lib_save_LIBS
9839 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9840 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9841 if test $ac_cv_lib_dld_dld_link = yes; then
9842 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9863 if test "x$lt_cv_dlopen" != xno; then
9869 case $lt_cv_dlopen in
9871 save_CPPFLAGS="$CPPFLAGS"
9872 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9874 save_LDFLAGS="$LDFLAGS"
9875 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9878 LIBS="$lt_cv_dlopen_libs $LIBS"
9880 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9881 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9882 if test "${lt_cv_dlopen_self+set}" = set; then
9883 echo $ECHO_N "(cached) $ECHO_C" >&6
9885 if test "$cross_compiling" = yes; then :
9886 lt_cv_dlopen_self=cross
9888 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9889 lt_status=$lt_dlunknown
9890 cat > conftest.$ac_ext <<EOF
9891 #line __oline__ "configure"
9892 #include "confdefs.h"
9901 # define LT_DLGLOBAL RTLD_GLOBAL
9904 # define LT_DLGLOBAL DL_GLOBAL
9906 # define LT_DLGLOBAL 0
9910 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9911 find out it does not work in some platform. */
9912 #ifndef LT_DLLAZY_OR_NOW
9914 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9917 # define LT_DLLAZY_OR_NOW DL_LAZY
9920 # define LT_DLLAZY_OR_NOW RTLD_NOW
9923 # define LT_DLLAZY_OR_NOW DL_NOW
9925 # define LT_DLLAZY_OR_NOW 0
9933 extern "C" void exit (int);
9936 void fnord() { int i=42;}
9939 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9940 int status = $lt_dlunknown;
9944 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9945 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9946 /* dlclose (self); */
9954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9955 (eval $ac_link) 2>&5
9957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9959 (./conftest; exit; ) >&5 2>/dev/null
9962 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9963 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9964 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9967 # compilation failed
9968 lt_cv_dlopen_self=no
9975 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9976 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9978 if test "x$lt_cv_dlopen_self" = xyes; then
9979 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9980 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9981 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9982 if test "${lt_cv_dlopen_self_static+set}" = set; then
9983 echo $ECHO_N "(cached) $ECHO_C" >&6
9985 if test "$cross_compiling" = yes; then :
9986 lt_cv_dlopen_self_static=cross
9988 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9989 lt_status=$lt_dlunknown
9990 cat > conftest.$ac_ext <<EOF
9991 #line __oline__ "configure"
9992 #include "confdefs.h"
10001 # define LT_DLGLOBAL RTLD_GLOBAL
10004 # define LT_DLGLOBAL DL_GLOBAL
10006 # define LT_DLGLOBAL 0
10010 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10011 find out it does not work in some platform. */
10012 #ifndef LT_DLLAZY_OR_NOW
10014 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10017 # define LT_DLLAZY_OR_NOW DL_LAZY
10020 # define LT_DLLAZY_OR_NOW RTLD_NOW
10023 # define LT_DLLAZY_OR_NOW DL_NOW
10025 # define LT_DLLAZY_OR_NOW 0
10033 extern "C" void exit (int);
10036 void fnord() { int i=42;}
10039 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10040 int status = $lt_dlunknown;
10044 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10045 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10046 /* dlclose (self); */
10054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10055 (eval $ac_link) 2>&5
10057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10059 (./conftest; exit; ) >&5 2>/dev/null
10061 case x$lt_status in
10062 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10063 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10064 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10067 # compilation failed
10068 lt_cv_dlopen_self_static=no
10075 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10076 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10079 CPPFLAGS="$save_CPPFLAGS"
10080 LDFLAGS="$save_LDFLAGS"
10085 case $lt_cv_dlopen_self in
10086 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10087 *) enable_dlopen_self=unknown ;;
10090 case $lt_cv_dlopen_self_static in
10091 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10092 *) enable_dlopen_self_static=unknown ;;
10097 # Report which library types will actually be built
10098 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10099 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10100 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10101 echo "${ECHO_T}$can_build_shared" >&6; }
10103 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10104 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10105 test "$can_build_shared" = "no" && enable_shared=no
10107 # On AIX, shared libraries and static libraries use the same namespace, and
10108 # are all built from PIC.
10111 test "$enable_shared" = yes && enable_static=no
10112 if test -n "$RANLIB"; then
10113 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10114 postinstall_cmds='$RANLIB $lib'
10119 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10120 test "$enable_shared" = yes && enable_static=no
10124 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10125 echo "${ECHO_T}$enable_shared" >&6; }
10127 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10128 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10129 # Make sure either enable_shared or enable_static is yes.
10130 test "$enable_shared" = yes || enable_static=yes
10131 { echo "$as_me:$LINENO: result: $enable_static" >&5
10132 echo "${ECHO_T}$enable_static" >&6; }
10134 # The else clause should only fire when bootstrapping the
10135 # libtool distribution, otherwise you forgot to ship ltmain.sh
10136 # with your package, and you will get complaints that there are
10137 # no rules to generate ltmain.sh.
10138 if test -f "$ltmain"; then
10139 # See if we are running on zsh, and set the options which allow our commands through
10140 # without removal of \ escapes.
10141 if test -n "${ZSH_VERSION+set}" ; then
10142 setopt NO_GLOB_SUBST
10144 # Now quote all the things that may contain metacharacters while being
10145 # careful not to overquote the AC_SUBSTed values. We take copies of the
10146 # variables and quote the copies for generation of the libtool script.
10147 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10149 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10150 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10151 deplibs_check_method reload_flag reload_cmds need_locks \
10152 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10153 lt_cv_sys_global_symbol_to_c_name_address \
10154 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10155 old_postinstall_cmds old_postuninstall_cmds \
10159 lt_prog_compiler_wl \
10160 lt_prog_compiler_pic \
10161 lt_prog_compiler_static \
10162 lt_prog_compiler_no_builtin_flag \
10163 export_dynamic_flag_spec \
10164 thread_safe_flag_spec \
10165 whole_archive_flag_spec \
10166 enable_shared_with_static_runtimes \
10168 old_archive_from_new_cmds \
10173 compiler_lib_search_path \
10175 archive_expsym_cmds \
10177 postuninstall_cmds \
10178 old_archive_from_expsyms_cmds \
10179 allow_undefined_flag \
10180 no_undefined_flag \
10181 export_symbols_cmds \
10182 hardcode_libdir_flag_spec \
10183 hardcode_libdir_flag_spec_ld \
10184 hardcode_libdir_separator \
10185 hardcode_automatic \
10187 module_expsym_cmds \
10188 lt_cv_prog_compiler_c_o \
10191 include_expsyms; do
10194 old_archive_cmds | \
10195 old_archive_from_new_cmds | \
10197 archive_expsym_cmds | \
10199 module_expsym_cmds | \
10200 old_archive_from_expsyms_cmds | \
10201 export_symbols_cmds | \
10202 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10203 postinstall_cmds | postuninstall_cmds | \
10204 old_postinstall_cmds | old_postuninstall_cmds | \
10205 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10206 # Double-quote double-evaled strings.
10207 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10210 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10216 *'\$0 --fallback-echo"')
10217 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10221 cfgfile="${ofile}T"
10222 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10224 { echo "$as_me:$LINENO: creating $ofile" >&5
10225 echo "$as_me: creating $ofile" >&6;}
10227 cat <<__EOF__ >> "$cfgfile"
10230 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10231 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10232 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10234 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10235 # Free Software Foundation, Inc.
10237 # This file is part of GNU Libtool:
10238 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10240 # This program is free software; you can redistribute it and/or modify
10241 # it under the terms of the GNU General Public License as published by
10242 # the Free Software Foundation; either version 2 of the License, or
10243 # (at your option) any later version.
10245 # This program is distributed in the hope that it will be useful, but
10246 # WITHOUT ANY WARRANTY; without even the implied warranty of
10247 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10248 # General Public License for more details.
10250 # You should have received a copy of the GNU General Public License
10251 # along with this program; if not, write to the Free Software
10252 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10254 # As a special exception to the GNU General Public License, if you
10255 # distribute this file as part of a program that contains a
10256 # configuration script generated by Autoconf, you may include it under
10257 # the same distribution terms that you use for the rest of that program.
10259 # A sed program that does not truncate output.
10262 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10263 Xsed="$SED -e 1s/^X//"
10265 # The HP-UX ksh and POSIX shell print the target directory to stdout
10266 # if CDPATH is set.
10267 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10269 # The names of the tagged configurations supported by this script.
10272 # ### BEGIN LIBTOOL CONFIG
10274 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10276 # Shell to use when invoking shell scripts.
10279 # Whether or not to build shared libraries.
10280 build_libtool_libs=$enable_shared
10282 # Whether or not to build static libraries.
10283 build_old_libs=$enable_static
10285 # Whether or not to add -lc for building shared libraries.
10286 build_libtool_need_lc=$archive_cmds_need_lc
10288 # Whether or not to disallow shared libs when runtime libs are static
10289 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10291 # Whether or not to optimize for fast installation.
10292 fast_install=$enable_fast_install
10295 host_alias=$host_alias
10299 # The build system.
10300 build_alias=$build_alias
10304 # An echo program that does not interpret backslashes.
10309 AR_FLAGS=$lt_AR_FLAGS
10314 # LTCC compiler flags.
10315 LTCFLAGS=$lt_LTCFLAGS
10317 # A language-specific compiler.
10320 # Is the compiler the GNU C compiler?
10326 # The linker used to build libraries.
10329 # Whether we need hard or soft links.
10332 # A BSD-compatible nm program.
10335 # A symbol stripping program
10338 # Used to examine libraries when file_magic_cmd begins "file"
10339 MAGIC_CMD=$MAGIC_CMD
10341 # Used on cygwin: DLL creation program.
10344 # Used on cygwin: object dumper.
10347 # Used on cygwin: assembler.
10350 # The name of the directory that contains temporary libtool files.
10353 # How to create reloadable object files.
10354 reload_flag=$lt_reload_flag
10355 reload_cmds=$lt_reload_cmds
10357 # How to pass a linker flag through the compiler.
10358 wl=$lt_lt_prog_compiler_wl
10360 # Object file suffix (normally "o").
10361 objext="$ac_objext"
10363 # Old archive suffix (normally "a").
10366 # Shared library suffix (normally ".so").
10367 shrext_cmds='$shrext_cmds'
10369 # Executable file suffix (normally "").
10372 # Additional compiler flags for building library objects.
10373 pic_flag=$lt_lt_prog_compiler_pic
10376 # What is the maximum length of a command?
10377 max_cmd_len=$lt_cv_sys_max_cmd_len
10379 # Does compiler simultaneously support -c and -o options?
10380 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10382 # Must we lock files when doing compilation?
10383 need_locks=$lt_need_locks
10385 # Do we need the lib prefix for modules?
10386 need_lib_prefix=$need_lib_prefix
10388 # Do we need a version for libraries?
10389 need_version=$need_version
10391 # Whether dlopen is supported.
10392 dlopen_support=$enable_dlopen
10394 # Whether dlopen of programs is supported.
10395 dlopen_self=$enable_dlopen_self
10397 # Whether dlopen of statically linked programs is supported.
10398 dlopen_self_static=$enable_dlopen_self_static
10400 # Compiler flag to prevent dynamic linking.
10401 link_static_flag=$lt_lt_prog_compiler_static
10403 # Compiler flag to turn off builtin functions.
10404 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10406 # Compiler flag to allow reflexive dlopens.
10407 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10409 # Compiler flag to generate shared objects directly from archives.
10410 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10412 # Compiler flag to generate thread-safe objects.
10413 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10415 # Library versioning type.
10416 version_type=$version_type
10418 # Format of library name prefix.
10419 libname_spec=$lt_libname_spec
10421 # List of archive names. First name is the real one, the rest are links.
10422 # The last name is the one that the linker finds with -lNAME.
10423 library_names_spec=$lt_library_names_spec
10425 # The coded name of the library, if different from the real name.
10426 soname_spec=$lt_soname_spec
10428 # Commands used to build and install an old-style archive.
10430 old_archive_cmds=$lt_old_archive_cmds
10431 old_postinstall_cmds=$lt_old_postinstall_cmds
10432 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10434 # Create an old-style archive from a shared archive.
10435 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10437 # Create a temporary old-style archive to link instead of a shared archive.
10438 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10440 # Commands used to build and install a shared archive.
10441 archive_cmds=$lt_archive_cmds
10442 archive_expsym_cmds=$lt_archive_expsym_cmds
10443 postinstall_cmds=$lt_postinstall_cmds
10444 postuninstall_cmds=$lt_postuninstall_cmds
10446 # Commands used to build a loadable module (assumed same as above if empty)
10447 module_cmds=$lt_module_cmds
10448 module_expsym_cmds=$lt_module_expsym_cmds
10450 # Commands to strip libraries.
10451 old_striplib=$lt_old_striplib
10452 striplib=$lt_striplib
10454 # Dependencies to place before the objects being linked to create a
10456 predep_objects=$lt_predep_objects
10458 # Dependencies to place after the objects being linked to create a
10460 postdep_objects=$lt_postdep_objects
10462 # Dependencies to place before the objects being linked to create a
10464 predeps=$lt_predeps
10466 # Dependencies to place after the objects being linked to create a
10468 postdeps=$lt_postdeps
10470 # The library search path used internally by the compiler when linking
10471 # a shared library.
10472 compiler_lib_search_path=$lt_compiler_lib_search_path
10474 # Method to check whether dependent libraries are shared objects.
10475 deplibs_check_method=$lt_deplibs_check_method
10477 # Command to use when deplibs_check_method == file_magic.
10478 file_magic_cmd=$lt_file_magic_cmd
10480 # Flag that allows shared libraries with undefined symbols to be built.
10481 allow_undefined_flag=$lt_allow_undefined_flag
10483 # Flag that forces no undefined symbols.
10484 no_undefined_flag=$lt_no_undefined_flag
10486 # Commands used to finish a libtool library installation in a directory.
10487 finish_cmds=$lt_finish_cmds
10489 # Same as above, but a single script fragment to be evaled but not shown.
10490 finish_eval=$lt_finish_eval
10492 # Take the output of nm and produce a listing of raw symbols and C names.
10493 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10495 # Transform the output of nm in a proper C declaration
10496 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10498 # Transform the output of nm in a C name address pair
10499 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10501 # This is the shared library runtime path variable.
10502 runpath_var=$runpath_var
10504 # This is the shared library path variable.
10505 shlibpath_var=$shlibpath_var
10507 # Is shlibpath searched before the hard-coded library search path?
10508 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10510 # How to hardcode a shared library path into an executable.
10511 hardcode_action=$hardcode_action
10513 # Whether we should hardcode library paths into libraries.
10514 hardcode_into_libs=$hardcode_into_libs
10516 # Flag to hardcode \$libdir into a binary during linking.
10517 # This must work even if \$libdir does not exist.
10518 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10520 # If ld is used when linking, flag to hardcode \$libdir into
10521 # a binary during linking. This must work even if \$libdir does
10523 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10525 # Whether we need a single -rpath flag with a separated argument.
10526 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10528 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10529 # resulting binary.
10530 hardcode_direct=$hardcode_direct
10532 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10533 # resulting binary.
10534 hardcode_minus_L=$hardcode_minus_L
10536 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10537 # the resulting binary.
10538 hardcode_shlibpath_var=$hardcode_shlibpath_var
10540 # Set to yes if building a shared library automatically hardcodes DIR into the library
10541 # and all subsequent libraries and executables linked against it.
10542 hardcode_automatic=$hardcode_automatic
10544 # Variables whose values should be saved in libtool wrapper scripts and
10545 # restored at relink time.
10546 variables_saved_for_relink="$variables_saved_for_relink"
10548 # Whether libtool must link a program against all its dependency libraries.
10549 link_all_deplibs=$link_all_deplibs
10551 # Compile-time system search path for libraries
10552 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10554 # Run-time system search path for libraries
10555 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10557 # Fix the shell variable \$srcfile for the compiler.
10558 fix_srcfile_path=$lt_fix_srcfile_path
10560 # Set to yes if exported symbols are required.
10561 always_export_symbols=$always_export_symbols
10563 # The commands to list exported symbols.
10564 export_symbols_cmds=$lt_export_symbols_cmds
10566 # The commands to extract the exported symbol list from a shared archive.
10567 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10569 # Symbols that should not be listed in the preloaded symbols.
10570 exclude_expsyms=$lt_exclude_expsyms
10572 # Symbols that must always be exported.
10573 include_expsyms=$lt_include_expsyms
10575 # ### END LIBTOOL CONFIG
10582 cat <<\EOF >> "$cfgfile"
10584 # AIX sometimes has problems with the GCC collect2 program. For some
10585 # reason, if we set the COLLECT_NAMES environment variable, the problems
10586 # vanish in a puff of smoke.
10587 if test "X${COLLECT_NAMES+set}" != Xset; then
10589 export COLLECT_NAMES
10595 # We use sed instead of cat because bash on DJGPP gets confused if
10596 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10597 # text mode, it properly converts lines to CR/LF. This bash problem
10598 # is reportedly fixed, but why not run on old versions too?
10599 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10601 mv -f "$cfgfile" "$ofile" || \
10602 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10606 # If there is no Makefile yet, we rely on a make rule to execute
10607 # `config.status --recheck' to rerun these tests and create the
10608 # libtool script then.
10609 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10610 if test -f "$ltmain_in"; then
10611 test -f Makefile && make "$ltmain"
10617 ac_cpp='$CPP $CPPFLAGS'
10618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10625 # Check whether --with-tags was given.
10626 if test "${with_tags+set}" = set; then
10627 withval=$with_tags; tagnames="$withval"
10631 if test -f "$ltmain" && test -n "$tagnames"; then
10632 if test ! -f "${ofile}"; then
10633 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10634 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10637 if test -z "$LTCC"; then
10638 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10639 if test -z "$LTCC"; then
10640 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10641 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10643 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10644 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10647 if test -z "$LTCFLAGS"; then
10648 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10651 # Extract list of available tagged configurations in $ofile.
10652 # Note that this assumes the entire list is on one line.
10653 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10655 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10656 for tagname in $tagnames; do
10658 # Check whether tagname contains only valid characters
10659 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10661 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10662 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10663 { (exit 1); exit 1; }; }
10667 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10669 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10670 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10671 { (exit 1); exit 1; }; }
10674 # Update the list of available tags.
10675 if test -n "$tagname"; then
10676 echo appending configuration tag \"$tagname\" to $ofile
10680 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10681 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10682 (test "X$CXX" != "Xg++"))) ; then
10684 ac_cpp='$CXXCPP $CPPFLAGS'
10685 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10686 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10687 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10692 archive_cmds_need_lc_CXX=no
10693 allow_undefined_flag_CXX=
10694 always_export_symbols_CXX=no
10695 archive_expsym_cmds_CXX=
10696 export_dynamic_flag_spec_CXX=
10697 hardcode_direct_CXX=no
10698 hardcode_libdir_flag_spec_CXX=
10699 hardcode_libdir_flag_spec_ld_CXX=
10700 hardcode_libdir_separator_CXX=
10701 hardcode_minus_L_CXX=no
10702 hardcode_shlibpath_var_CXX=unsupported
10703 hardcode_automatic_CXX=no
10705 module_expsym_cmds_CXX=
10706 link_all_deplibs_CXX=unknown
10707 old_archive_cmds_CXX=$old_archive_cmds
10708 no_undefined_flag_CXX=
10709 whole_archive_flag_spec_CXX=
10710 enable_shared_with_static_runtimes_CXX=no
10712 # Dependencies to place before and after the object being linked:
10713 predep_objects_CXX=
10714 postdep_objects_CXX=
10717 compiler_lib_search_path_CXX=
10719 # Source file extension for C++ test sources.
10722 # Object file extension for compiled C++ test sources.
10726 # Code to be used in simple compile tests
10727 lt_simple_compile_test_code="int some_variable = 0;"
10729 # Code to be used in simple link tests
10730 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10732 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10734 # If no C compiler was specified, use CC.
10737 # If no C compiler flags were specified, use CFLAGS.
10738 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10740 # Allow CC to be a program name with arguments.
10744 # save warnings/boilerplate of simple test code
10745 ac_outfile=conftest.$ac_objext
10746 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10747 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10748 _lt_compiler_boilerplate=`cat conftest.err`
10751 ac_outfile=conftest.$ac_objext
10752 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10753 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10754 _lt_linker_boilerplate=`cat conftest.err`
10758 # Allow CC to be a program name with arguments.
10763 lt_save_with_gnu_ld=$with_gnu_ld
10764 lt_save_path_LD=$lt_cv_path_LD
10765 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10766 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10768 $as_unset lt_cv_prog_gnu_ld
10770 if test -n "${lt_cv_path_LDCXX+set}"; then
10771 lt_cv_path_LD=$lt_cv_path_LDCXX
10773 $as_unset lt_cv_path_LD
10775 test -z "${LDCXX+set}" || LD=$LDCXX
10779 for cc_temp in $compiler""; do
10781 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10782 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10787 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10790 # We don't want -fno-exception wen compiling C++ code, so set the
10791 # no_builtin_flag separately
10792 if test "$GXX" = yes; then
10793 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10795 lt_prog_compiler_no_builtin_flag_CXX=
10798 if test "$GXX" = yes; then
10799 # Set up default GNU C++ configuration
10802 # Check whether --with-gnu-ld was given.
10803 if test "${with_gnu_ld+set}" = set; then
10804 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10810 if test "$GCC" = yes; then
10811 # Check if gcc -print-prog-name=ld gives a path.
10812 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10813 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10816 # gcc leaves a trailing carriage return which upsets mingw
10817 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10819 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10822 # Accept absolute paths.
10824 re_direlt='/[^/][^/]*/\.\./'
10825 # Canonicalize the pathname of ld
10826 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10827 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10828 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10830 test -z "$LD" && LD="$ac_prog"
10833 # If it fails, then pretend we aren't using GCC.
10837 # If it is relative, then search for the first ld in PATH.
10838 with_gnu_ld=unknown
10841 elif test "$with_gnu_ld" = yes; then
10842 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10843 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10845 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10846 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10848 if test "${lt_cv_path_LD+set}" = set; then
10849 echo $ECHO_N "(cached) $ECHO_C" >&6
10851 if test -z "$LD"; then
10852 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10853 for ac_dir in $PATH; do
10855 test -z "$ac_dir" && ac_dir=.
10856 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10857 lt_cv_path_LD="$ac_dir/$ac_prog"
10858 # Check to see if the program is GNU ld. I'd rather use --version,
10859 # but apparently some variants of GNU ld only accept -v.
10860 # Break only if it was the GNU/non-GNU ld that we prefer.
10861 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10862 *GNU* | *'with BFD'*)
10863 test "$with_gnu_ld" != no && break
10866 test "$with_gnu_ld" != yes && break
10873 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10877 LD="$lt_cv_path_LD"
10878 if test -n "$LD"; then
10879 { echo "$as_me:$LINENO: result: $LD" >&5
10880 echo "${ECHO_T}$LD" >&6; }
10882 { echo "$as_me:$LINENO: result: no" >&5
10883 echo "${ECHO_T}no" >&6; }
10885 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10886 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10887 { (exit 1); exit 1; }; }
10888 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10889 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10890 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10891 echo $ECHO_N "(cached) $ECHO_C" >&6
10893 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10894 case `$LD -v 2>&1 </dev/null` in
10895 *GNU* | *'with BFD'*)
10896 lt_cv_prog_gnu_ld=yes
10899 lt_cv_prog_gnu_ld=no
10903 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10904 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10905 with_gnu_ld=$lt_cv_prog_gnu_ld
10909 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10910 # archiving commands below assume that GNU ld is being used.
10911 if test "$with_gnu_ld" = yes; then
10912 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10913 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'
10915 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10916 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10918 # If archive_cmds runs LD, not CC, wlarc should be empty
10919 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10920 # investigate it a little bit more. (MM)
10923 # ancient GNU ld didn't support --whole-archive et. al.
10924 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10925 grep 'no-whole-archive' > /dev/null; then
10926 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10928 whole_archive_flag_spec_CXX=
10934 # A generic and very simple default shared library creation
10935 # command for GNU C++ for the case where it uses the native
10936 # linker, instead of GNU ld. If possible, this setting should
10937 # overridden to take advantage of the native linker features on
10938 # the platform it is being used on.
10939 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10942 # Commands to make compiler produce verbose output that lists
10943 # what "hidden" libraries, object files and flags are used when
10944 # linking a shared library.
10945 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10953 # PORTME: fill in a description of your system's C++ link characteristics
10954 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10955 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10959 # FIXME: insert proper C++ library support
10963 if test "$host_cpu" = ia64; then
10964 # On IA64, the linker does run time linking by default, so we don't
10965 # have to do anything special.
10966 aix_use_runtimelinking=no
10967 exp_sym_flag='-Bexport'
10970 aix_use_runtimelinking=no
10972 # Test if we are trying to use run time linking or normal
10973 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10974 # need to do runtime linking.
10975 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10976 for ld_flag in $LDFLAGS; do
10979 aix_use_runtimelinking=yes
10987 exp_sym_flag='-bexport'
10988 no_entry_flag='-bnoentry'
10991 # When large executables or shared objects are built, AIX ld can
10992 # have problems creating the table of contents. If linking a library
10993 # or program results in "error TOC overflow" add -mminimal-toc to
10994 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10995 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10997 archive_cmds_CXX=''
10998 hardcode_direct_CXX=yes
10999 hardcode_libdir_separator_CXX=':'
11000 link_all_deplibs_CXX=yes
11002 if test "$GXX" = yes; then
11003 case $host_os in aix4.[012]|aix4.[012].*)
11004 # We only want to do this on AIX 4.2 and lower, the check
11005 # below for broken collect2 doesn't work under 4.3+
11006 collect2name=`${CC} -print-prog-name=collect2`
11007 if test -f "$collect2name" && \
11008 strings "$collect2name" | grep resolve_lib_name >/dev/null
11010 # We have reworked collect2
11013 # We have old collect2
11014 hardcode_direct_CXX=unsupported
11015 # It fails to find uninstalled libraries when the uninstalled
11016 # path is not listed in the libpath. Setting hardcode_minus_L
11017 # to unsupported forces relinking
11018 hardcode_minus_L_CXX=yes
11019 hardcode_libdir_flag_spec_CXX='-L$libdir'
11020 hardcode_libdir_separator_CXX=
11024 shared_flag='-shared'
11025 if test "$aix_use_runtimelinking" = yes; then
11026 shared_flag="$shared_flag "'${wl}-G'
11030 if test "$host_cpu" = ia64; then
11031 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11032 # chokes on -Wl,-G. The following line is correct:
11035 if test "$aix_use_runtimelinking" = yes; then
11036 shared_flag='${wl}-G'
11038 shared_flag='${wl}-bM:SRE'
11043 # It seems that -bexpall does not export symbols beginning with
11044 # underscore (_), so it is better to generate a list of symbols to export.
11045 always_export_symbols_CXX=yes
11046 if test "$aix_use_runtimelinking" = yes; then
11047 # Warning - without using the other runtime loading flags (-brtl),
11048 # -berok will link without error, but may produce a broken library.
11049 allow_undefined_flag_CXX='-berok'
11050 # Determine the default libpath from the value encoded in an empty executable.
11051 cat >conftest.$ac_ext <<_ACEOF
11054 cat confdefs.h >>conftest.$ac_ext
11055 cat >>conftest.$ac_ext <<_ACEOF
11056 /* end confdefs.h. */
11066 rm -f conftest.$ac_objext conftest$ac_exeext
11067 if { (ac_try="$ac_link"
11068 case "(($ac_try" in
11069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11070 *) ac_try_echo=$ac_try;;
11072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11073 (eval "$ac_link") 2>conftest.er1
11075 grep -v '^ *+' conftest.er1 >conftest.err
11077 cat conftest.err >&5
11078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079 (exit $ac_status); } && {
11080 test -z "$ac_cxx_werror_flag" ||
11081 test ! -s conftest.err
11082 } && test -s conftest$ac_exeext &&
11083 $as_test_x conftest$ac_exeext; then
11085 lt_aix_libpath_sed='
11086 /Import File Strings/,/^$/ {
11092 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11093 # Check for a 64-bit object if we didn't find anything.
11094 if test -z "$aix_libpath"; then
11095 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11098 echo "$as_me: failed program was:" >&5
11099 sed 's/^/| /' conftest.$ac_ext >&5
11104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11105 conftest$ac_exeext conftest.$ac_ext
11106 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11108 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11110 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"
11112 if test "$host_cpu" = ia64; then
11113 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11114 allow_undefined_flag_CXX="-z nodefs"
11115 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"
11117 # Determine the default libpath from the value encoded in an empty executable.
11118 cat >conftest.$ac_ext <<_ACEOF
11121 cat confdefs.h >>conftest.$ac_ext
11122 cat >>conftest.$ac_ext <<_ACEOF
11123 /* end confdefs.h. */
11133 rm -f conftest.$ac_objext conftest$ac_exeext
11134 if { (ac_try="$ac_link"
11135 case "(($ac_try" in
11136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11137 *) ac_try_echo=$ac_try;;
11139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11140 (eval "$ac_link") 2>conftest.er1
11142 grep -v '^ *+' conftest.er1 >conftest.err
11144 cat conftest.err >&5
11145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146 (exit $ac_status); } && {
11147 test -z "$ac_cxx_werror_flag" ||
11148 test ! -s conftest.err
11149 } && test -s conftest$ac_exeext &&
11150 $as_test_x conftest$ac_exeext; then
11152 lt_aix_libpath_sed='
11153 /Import File Strings/,/^$/ {
11159 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11160 # Check for a 64-bit object if we didn't find anything.
11161 if test -z "$aix_libpath"; then
11162 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11165 echo "$as_me: failed program was:" >&5
11166 sed 's/^/| /' conftest.$ac_ext >&5
11171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11172 conftest$ac_exeext conftest.$ac_ext
11173 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11175 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11176 # Warning - without using the other run time loading flags,
11177 # -berok will link without error, but may produce a broken library.
11178 no_undefined_flag_CXX=' ${wl}-bernotok'
11179 allow_undefined_flag_CXX=' ${wl}-berok'
11180 # Exported symbols can be pulled into shared objects from archives
11181 whole_archive_flag_spec_CXX='$convenience'
11182 archive_cmds_need_lc_CXX=yes
11183 # This is similar to how AIX traditionally builds its shared libraries.
11184 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'
11190 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11191 allow_undefined_flag_CXX=unsupported
11192 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11193 # support --undefined. This deserves some investigation. FIXME
11194 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11201 case $cc_basename in
11203 # FIXME: insert proper C++ library support
11209 cygwin* | mingw* | pw32*)
11210 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11211 # as there is no search path for DLLs.
11212 hardcode_libdir_flag_spec_CXX='-L$libdir'
11213 allow_undefined_flag_CXX=unsupported
11214 always_export_symbols_CXX=no
11215 enable_shared_with_static_runtimes_CXX=yes
11217 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11218 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'
11219 # If the export-symbols file already is a .def file (1st line
11220 # is EXPORTS), use it as is; otherwise, prepend...
11221 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11222 cp $export_symbols $output_objdir/$soname.def;
11224 echo EXPORTS > $output_objdir/$soname.def;
11225 cat $export_symbols >> $output_objdir/$soname.def;
11227 $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'
11232 darwin* | rhapsody*)
11234 rhapsody* | darwin1.[012])
11235 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11238 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11239 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11241 case ${MACOSX_DEPLOYMENT_TARGET} in
11243 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11246 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11252 archive_cmds_need_lc_CXX=no
11253 hardcode_direct_CXX=no
11254 hardcode_automatic_CXX=yes
11255 hardcode_shlibpath_var_CXX=unsupported
11256 whole_archive_flag_spec_CXX=''
11257 link_all_deplibs_CXX=yes
11259 if test "$GXX" = yes ; then
11260 lt_int_apple_cc_single_mod=no
11261 output_verbose_link_cmd='echo'
11262 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11263 lt_int_apple_cc_single_mod=yes
11265 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11266 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11268 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'
11270 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11271 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11272 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11273 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}'
11275 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}'
11277 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}'
11279 case $cc_basename in
11281 output_verbose_link_cmd='echo'
11282 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11283 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11284 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11285 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11286 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}'
11296 case $cc_basename in
11298 # FIXME: insert proper C++ library support
11302 # Green Hills C++ Compiler
11303 # FIXME: insert proper C++ library support
11307 # FIXME: insert proper C++ library support
11313 # C++ shared libraries reported to be fairly broken before switch to ELF
11317 archive_cmds_need_lc_CXX=no
11319 freebsd* | dragonfly*)
11320 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11327 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11328 hardcode_libdir_separator_CXX=:
11329 export_dynamic_flag_spec_CXX='${wl}-E'
11330 hardcode_direct_CXX=yes
11331 hardcode_minus_L_CXX=yes # Not in the search PATH,
11332 # but as the default
11333 # location of the library.
11335 case $cc_basename in
11337 # FIXME: insert proper C++ library support
11341 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'
11342 # Commands to make compiler produce verbose output that lists
11343 # what "hidden" libraries, object files and flags are used when
11344 # linking a shared library.
11346 # There doesn't appear to be a way to prevent this compiler from
11347 # explicitly linking system object files so we need to strip them
11348 # from the output so that they don't get included in the library
11350 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'
11353 if test "$GXX" = yes; then
11354 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'
11356 # FIXME: insert proper C++ library support
11363 if test $with_gnu_ld = no; then
11364 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11365 hardcode_libdir_separator_CXX=:
11370 export_dynamic_flag_spec_CXX='${wl}-E'
11376 hardcode_direct_CXX=no
11377 hardcode_shlibpath_var_CXX=no
11380 hardcode_direct_CXX=yes
11381 hardcode_minus_L_CXX=yes # Not in the search PATH,
11382 # but as the default
11383 # location of the library.
11387 case $cc_basename in
11389 # FIXME: insert proper C++ library support
11395 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11398 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11401 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11404 # Commands to make compiler produce verbose output that lists
11405 # what "hidden" libraries, object files and flags are used when
11406 # linking a shared library.
11408 # There doesn't appear to be a way to prevent this compiler from
11409 # explicitly linking system object files so we need to strip them
11410 # from the output so that they don't get included in the library
11412 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'
11415 if test "$GXX" = yes; then
11416 if test $with_gnu_ld = no; then
11419 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11422 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11425 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'
11430 # FIXME: insert proper C++ library support
11437 hardcode_direct_CXX=no
11438 hardcode_shlibpath_var_CXX=no
11439 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11440 export_dynamic_flag_spec_CXX='${wl}-E'
11441 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11442 # Instead, shared libraries are loaded at an image base (0x10000000 by
11443 # default) and relocated if they conflict, which is a slow very memory
11444 # consuming and fragmenting process. To avoid this, we pick a random,
11445 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11446 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11447 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'
11448 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'
11451 case $cc_basename in
11454 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'
11456 # Archives containing C++ object files must be created using
11457 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11458 # necessary to make sure instantiated templates are included
11460 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11463 if test "$GXX" = yes; then
11464 if test "$with_gnu_ld" = no; then
11465 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'
11467 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'
11470 link_all_deplibs_CXX=yes
11473 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11474 hardcode_libdir_separator_CXX=:
11476 linux* | k*bsd*-gnu)
11477 case $cc_basename in
11479 # Kuck and Associates, Inc. (KAI) C++ Compiler
11481 # KCC will only create a shared library if the output file
11482 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11483 # to its proper name (with version) after linking.
11484 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'
11485 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'
11486 # Commands to make compiler produce verbose output that lists
11487 # what "hidden" libraries, object files and flags are used when
11488 # linking a shared library.
11490 # There doesn't appear to be a way to prevent this compiler from
11491 # explicitly linking system object files so we need to strip them
11492 # from the output so that they don't get included in the library
11494 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'
11496 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11497 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11499 # Archives containing C++ object files must be created using
11500 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11501 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11506 # version 8.0 and above of icpc choke on multiply defined symbols
11507 # if we add $predep_objects and $postdep_objects, however 7.1 and
11508 # earlier do not add the objects themselves.
11509 case `$CC -V 2>&1` in
11511 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11512 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'
11514 *) # Version 8.0 or newer
11517 ia64*) tmp_idyn=' -i_dynamic';;
11519 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11520 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'
11523 archive_cmds_need_lc_CXX=no
11524 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11525 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11526 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11529 # Portland Group C++ compiler
11530 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11531 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'
11533 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11534 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11535 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'
11539 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11540 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'
11542 runpath_var=LD_RUN_PATH
11543 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11544 hardcode_libdir_separator_CXX=:
11546 # Commands to make compiler produce verbose output that lists
11547 # what "hidden" libraries, object files and flags are used when
11548 # linking a shared library.
11550 # There doesn't appear to be a way to prevent this compiler from
11551 # explicitly linking system object files so we need to strip them
11552 # from the output so that they don't get included in the library
11554 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'
11557 case `$CC -V 2>&1 | sed 5q` in
11560 no_undefined_flag_CXX=' -zdefs'
11561 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11562 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11563 hardcode_libdir_flag_spec_CXX='-R$libdir'
11564 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11566 # Not sure whether something based on
11567 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11569 output_verbose_link_cmd='echo'
11571 # Archives containing C++ object files must be created using
11572 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11573 # necessary to make sure instantiated templates are included
11575 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11582 # FIXME: insert proper C++ library support
11586 # FIXME: insert proper C++ library support
11590 case $cc_basename in
11592 # FIXME: insert proper C++ library support
11596 # FIXME: insert proper C++ library support
11602 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11603 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11605 hardcode_libdir_flag_spec_CXX='-R$libdir'
11606 hardcode_direct_CXX=yes
11607 hardcode_shlibpath_var_CXX=no
11609 # Workaround some broken pre-1.5 toolchains
11610 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11613 # C++ shared libraries are fairly broken
11617 if test -f /usr/libexec/ld.so; then
11618 hardcode_direct_CXX=yes
11619 hardcode_shlibpath_var_CXX=no
11620 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11621 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11622 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11623 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11624 export_dynamic_flag_spec_CXX='${wl}-E'
11625 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11627 output_verbose_link_cmd='echo'
11633 case $cc_basename in
11635 # Kuck and Associates, Inc. (KAI) C++ Compiler
11637 # KCC will only create a shared library if the output file
11638 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11639 # to its proper name (with version) after linking.
11640 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'
11642 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11643 hardcode_libdir_separator_CXX=:
11645 # Archives containing C++ object files must be created using
11646 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11647 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11651 # Rational C++ 2.4.1
11652 # FIXME: insert proper C++ library support
11656 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11657 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'
11659 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11660 hardcode_libdir_separator_CXX=:
11662 # Commands to make compiler produce verbose output that lists
11663 # what "hidden" libraries, object files and flags are used when
11664 # linking a shared library.
11666 # There doesn't appear to be a way to prevent this compiler from
11667 # explicitly linking system object files so we need to strip them
11668 # from the output so that they don't get included in the library
11670 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'
11673 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11674 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11675 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'
11677 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11678 hardcode_libdir_separator_CXX=:
11680 # Commands to make compiler produce verbose output that lists
11681 # what "hidden" libraries, object files and flags are used when
11682 # linking a shared library.
11683 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11686 # FIXME: insert proper C++ library support
11693 case $cc_basename in
11695 # Kuck and Associates, Inc. (KAI) C++ Compiler
11697 # KCC will only create a shared library if the output file
11698 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11699 # to its proper name (with version) after linking.
11700 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'
11702 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11703 hardcode_libdir_separator_CXX=:
11705 # Archives containing C++ object files must be created using
11706 # the KAI C++ compiler.
11707 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11710 # Rational C++ 2.4.1
11711 # FIXME: insert proper C++ library support
11715 allow_undefined_flag_CXX=' -expect_unresolved \*'
11716 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'
11717 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11718 echo "-hidden">> $lib.exp~
11719 $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~
11722 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11723 hardcode_libdir_separator_CXX=:
11725 # Commands to make compiler produce verbose output that lists
11726 # what "hidden" libraries, object files and flags are used when
11727 # linking a shared library.
11729 # There doesn't appear to be a way to prevent this compiler from
11730 # explicitly linking system object files so we need to strip them
11731 # from the output so that they don't get included in the library
11733 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11736 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11737 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11738 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11740 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11741 hardcode_libdir_separator_CXX=:
11743 # Commands to make compiler produce verbose output that lists
11744 # what "hidden" libraries, object files and flags are used when
11745 # linking a shared library.
11746 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11749 # FIXME: insert proper C++ library support
11756 # FIXME: insert proper C++ library support
11760 case $cc_basename in
11763 # FIXME: insert proper C++ library support
11768 # FIXME: insert proper C++ library support
11772 # FIXME: insert proper C++ library support
11778 case $cc_basename in
11780 # Sun C++ 4.2, 5.x and Centerline C++
11781 archive_cmds_need_lc_CXX=yes
11782 no_undefined_flag_CXX=' -zdefs'
11783 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11784 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11785 $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'
11787 hardcode_libdir_flag_spec_CXX='-R$libdir'
11788 hardcode_shlibpath_var_CXX=no
11790 solaris2.[0-5] | solaris2.[0-5].*) ;;
11792 # The compiler driver will combine and reorder linker options,
11793 # but understands `-z linker_flag'.
11794 # Supported since Solaris 2.6 (maybe 2.5.1?)
11795 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11798 link_all_deplibs_CXX=yes
11800 output_verbose_link_cmd='echo'
11802 # Archives containing C++ object files must be created using
11803 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11804 # necessary to make sure instantiated templates are included
11806 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11809 # Green Hills C++ Compiler
11810 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11812 # The C++ compiler must be used to create the archive.
11813 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11816 # GNU C++ compiler with Solaris linker
11817 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11818 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11819 if $CC --version | grep -v '^2\.7' > /dev/null; then
11820 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11821 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11822 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11824 # Commands to make compiler produce verbose output that lists
11825 # what "hidden" libraries, object files and flags are used when
11826 # linking a shared library.
11827 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11829 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11831 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11832 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11833 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11835 # Commands to make compiler produce verbose output that lists
11836 # what "hidden" libraries, object files and flags are used when
11837 # linking a shared library.
11838 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11841 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11843 solaris2.[0-5] | solaris2.[0-5].*) ;;
11845 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11852 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11853 no_undefined_flag_CXX='${wl}-z,text'
11854 archive_cmds_need_lc_CXX=no
11855 hardcode_shlibpath_var_CXX=no
11856 runpath_var='LD_RUN_PATH'
11858 case $cc_basename in
11860 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11861 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11864 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11865 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11869 sysv5* | sco3.2v5* | sco5v6*)
11870 # Note: We can NOT use -z defs as we might desire, because we do not
11871 # link with -lc, and that would cause any symbols used from libc to
11872 # always be unresolved, which means just about no library would
11873 # ever link correctly. If we're not using GNU ld we use -z text
11874 # though, which does catch some bad symbols but isn't as heavy-handed
11876 # For security reasons, it is highly recommended that you always
11877 # use absolute paths for naming shared libraries, and exclude the
11878 # DT_RUNPATH tag from executables and libraries. But doing so
11879 # requires that you compile everything twice, which is a pain.
11880 # So that behaviour is only enabled if SCOABSPATH is set to a
11881 # non-empty value in the environment. Most likely only useful for
11882 # creating official distributions of packages.
11883 # This is a hack until libtool officially supports absolute path
11884 # names for shared libraries.
11885 no_undefined_flag_CXX='${wl}-z,text'
11886 allow_undefined_flag_CXX='${wl}-z,nodefs'
11887 archive_cmds_need_lc_CXX=no
11888 hardcode_shlibpath_var_CXX=no
11889 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11890 hardcode_libdir_separator_CXX=':'
11891 link_all_deplibs_CXX=yes
11892 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11893 runpath_var='LD_RUN_PATH'
11895 case $cc_basename in
11897 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11898 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11901 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11902 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11907 case $cc_basename in
11909 # NonStop-UX NCC 3.20
11910 # FIXME: insert proper C++ library support
11914 # FIXME: insert proper C++ library support
11920 # FIXME: insert proper C++ library support
11924 # FIXME: insert proper C++ library support
11928 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11929 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11930 test "$ld_shlibs_CXX" = no && can_build_shared=no
11936 ## There is no encapsulation within the following macros, do not change
11937 ## the running order or otherwise move them around unless you know exactly
11938 ## what you are doing...
11940 cat > conftest.$ac_ext <<EOF
11944 Foo (void) { a = 0; }
11950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11951 (eval $ac_compile) 2>&5
11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); }; then
11955 # Parse the compiler output and extract the necessary
11956 # objects, libraries and library flags.
11958 # Sentinel used to keep track of whether or not we are before
11959 # the conftest object file.
11960 pre_test_object_deps_done=no
11962 # The `*' in the case matches for architectures that use `case' in
11963 # $output_verbose_cmd can trigger glob expansion during the loop
11964 # eval without this substitution.
11965 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11967 for p in `eval $output_verbose_link_cmd`; do
11971 # Some compilers place space between "-{L,R}" and the path.
11972 # Remove the space.
11973 if test $p = "-L" \
11974 || test $p = "-R"; then
11981 if test "$pre_test_object_deps_done" = no; then
11984 # Internal compiler library paths should come after those
11985 # provided the user. The postdeps already come after the
11986 # user supplied libs so there is no need to process them.
11987 if test -z "$compiler_lib_search_path_CXX"; then
11988 compiler_lib_search_path_CXX="${prev}${p}"
11990 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11993 # The "-l" case would never come before the object being
11994 # linked, so don't bother handling this case.
11997 if test -z "$postdeps_CXX"; then
11998 postdeps_CXX="${prev}${p}"
12000 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12006 # This assumes that the test object file only shows up
12007 # once in the compiler output.
12008 if test "$p" = "conftest.$objext"; then
12009 pre_test_object_deps_done=yes
12013 if test "$pre_test_object_deps_done" = no; then
12014 if test -z "$predep_objects_CXX"; then
12015 predep_objects_CXX="$p"
12017 predep_objects_CXX="$predep_objects_CXX $p"
12020 if test -z "$postdep_objects_CXX"; then
12021 postdep_objects_CXX="$p"
12023 postdep_objects_CXX="$postdep_objects_CXX $p"
12028 *) ;; # Ignore the rest.
12036 echo "libtool.m4: error: problem compiling CXX test program"
12039 $rm -f confest.$objext
12041 # PORTME: override above test on systems where it is broken
12044 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12045 # hack all around it, let's just trust "g++" to DTRT.
12046 predep_objects_CXX=
12047 postdep_objects_CXX=
12052 case `$CC -V 2>&1 | sed 5q` in
12056 # The more standards-conforming stlport4 library is
12057 # incompatible with the Cstd library. Avoid specifying
12058 # it if it's in CXXFLAGS. Ignore libCrun as
12059 # -library=stlport4 depends on it.
12060 case " $CXX $CXXFLAGS " in
12061 *" -library=stlport4 "*)
12062 solaris_use_stlport4=yes
12065 if test "$solaris_use_stlport4" != yes; then
12066 postdeps_CXX='-library=Cstd -library=Crun'
12073 case $cc_basename in
12075 # The more standards-conforming stlport4 library is
12076 # incompatible with the Cstd library. Avoid specifying
12077 # it if it's in CXXFLAGS. Ignore libCrun as
12078 # -library=stlport4 depends on it.
12079 case " $CXX $CXXFLAGS " in
12080 *" -library=stlport4 "*)
12081 solaris_use_stlport4=yes
12085 # Adding this requires a known-good setup of shared libraries for
12086 # Sun compiler versions before 5.6, else PIC objects from an old
12087 # archive will be linked into the output, leading to subtle bugs.
12088 if test "$solaris_use_stlport4" != yes; then
12089 postdeps_CXX='-library=Cstd -library=Crun'
12097 case " $postdeps_CXX " in
12098 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12101 lt_prog_compiler_wl_CXX=
12102 lt_prog_compiler_pic_CXX=
12103 lt_prog_compiler_static_CXX=
12105 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12106 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12108 # C++ specific cases for pic, static, wl, etc.
12109 if test "$GXX" = yes; then
12110 lt_prog_compiler_wl_CXX='-Wl,'
12111 lt_prog_compiler_static_CXX='-static'
12115 # All AIX code is PIC.
12116 if test "$host_cpu" = ia64; then
12117 # AIX 5 now supports IA64 processor
12118 lt_prog_compiler_static_CXX='-Bstatic'
12122 # FIXME: we need at least 68020 code to build shared libraries, but
12123 # adding the `-m68020' flag to GCC prevents building anything better,
12125 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12127 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12128 # PIC is the default for these OSes.
12130 mingw* | cygwin* | os2* | pw32*)
12131 # This hack is so that the source file can tell whether it is being
12132 # built for inclusion in a dll (and should export symbols for example).
12133 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12134 # (--disable-auto-import) libraries
12135 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12137 darwin* | rhapsody*)
12138 # PIC is the default on this platform
12139 # Common symbols not allowed in MH_DYLIB files
12140 lt_prog_compiler_pic_CXX='-fno-common'
12143 # DJGPP does not support shared libraries at all
12144 lt_prog_compiler_pic_CXX=
12147 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12148 # Instead, we relocate shared libraries at runtime.
12151 if test -d /usr/nec; then
12152 lt_prog_compiler_pic_CXX=-Kconform_pic
12156 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12157 # not for PA HP-UX.
12162 lt_prog_compiler_pic_CXX='-fPIC'
12167 lt_prog_compiler_pic_CXX='-fPIC'
12173 # All AIX code is PIC.
12174 if test "$host_cpu" = ia64; then
12175 # AIX 5 now supports IA64 processor
12176 lt_prog_compiler_static_CXX='-Bstatic'
12178 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12182 case $cc_basename in
12184 # Green Hills C++ Compiler
12185 # _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"
12190 # PIC is the default on this platform
12191 # Common symbols not allowed in MH_DYLIB files
12192 case $cc_basename in
12194 lt_prog_compiler_pic_CXX='-qnocommon'
12195 lt_prog_compiler_wl_CXX='-Wl,'
12200 case $cc_basename in
12202 lt_prog_compiler_pic_CXX='-KPIC'
12205 # Green Hills C++ Compiler
12206 lt_prog_compiler_pic_CXX='-pic'
12212 freebsd* | dragonfly*)
12213 # FreeBSD uses GNU C++
12215 hpux9* | hpux10* | hpux11*)
12216 case $cc_basename in
12218 lt_prog_compiler_wl_CXX='-Wl,'
12219 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12220 if test "$host_cpu" != ia64; then
12221 lt_prog_compiler_pic_CXX='+Z'
12225 lt_prog_compiler_wl_CXX='-Wl,'
12226 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12232 lt_prog_compiler_pic_CXX='+Z'
12241 # This is c89, which is MS Visual C++ (no shared libs)
12242 # Anyone wants to do a port?
12244 irix5* | irix6* | nonstopux*)
12245 case $cc_basename in
12247 lt_prog_compiler_wl_CXX='-Wl,'
12248 lt_prog_compiler_static_CXX='-non_shared'
12249 # CC pic flag -KPIC is the default.
12255 linux* | k*bsd*-gnu)
12256 case $cc_basename in
12259 lt_prog_compiler_wl_CXX='--backend -Wl,'
12260 lt_prog_compiler_pic_CXX='-fPIC'
12264 lt_prog_compiler_wl_CXX='-Wl,'
12265 lt_prog_compiler_pic_CXX='-KPIC'
12266 lt_prog_compiler_static_CXX='-static'
12269 # Portland Group C++ compiler.
12270 lt_prog_compiler_wl_CXX='-Wl,'
12271 lt_prog_compiler_pic_CXX='-fpic'
12272 lt_prog_compiler_static_CXX='-Bstatic'
12276 # Make sure the PIC flag is empty. It appears that all Alpha
12277 # Linux and Compaq Tru64 Unix objects are PIC.
12278 lt_prog_compiler_pic_CXX=
12279 lt_prog_compiler_static_CXX='-non_shared'
12282 case `$CC -V 2>&1 | sed 5q` in
12285 lt_prog_compiler_pic_CXX='-KPIC'
12286 lt_prog_compiler_static_CXX='-Bstatic'
12287 lt_prog_compiler_wl_CXX='-Qoption ld '
12298 case $cc_basename in
12300 lt_prog_compiler_pic_CXX='-W c,exportall'
12308 osf3* | osf4* | osf5*)
12309 case $cc_basename in
12311 lt_prog_compiler_wl_CXX='--backend -Wl,'
12314 # Rational C++ 2.4.1
12315 lt_prog_compiler_pic_CXX='-pic'
12318 # Digital/Compaq C++
12319 lt_prog_compiler_wl_CXX='-Wl,'
12320 # Make sure the PIC flag is empty. It appears that all Alpha
12321 # Linux and Compaq Tru64 Unix objects are PIC.
12322 lt_prog_compiler_pic_CXX=
12323 lt_prog_compiler_static_CXX='-non_shared'
12332 case $cc_basename in
12334 # Sun C++ 4.2, 5.x and Centerline C++
12335 lt_prog_compiler_pic_CXX='-KPIC'
12336 lt_prog_compiler_static_CXX='-Bstatic'
12337 lt_prog_compiler_wl_CXX='-Qoption ld '
12340 # Green Hills C++ Compiler
12341 lt_prog_compiler_pic_CXX='-PIC'
12348 case $cc_basename in
12351 lt_prog_compiler_pic_CXX='-pic'
12352 lt_prog_compiler_static_CXX='-Bstatic'
12356 lt_prog_compiler_pic_CXX='-pic'
12363 case $cc_basename in
12365 # NonStop-UX NCC 3.20
12366 lt_prog_compiler_pic_CXX='-KPIC'
12372 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12373 case $cc_basename in
12375 lt_prog_compiler_wl_CXX='-Wl,'
12376 lt_prog_compiler_pic_CXX='-KPIC'
12377 lt_prog_compiler_static_CXX='-Bstatic'
12384 lt_prog_compiler_can_build_shared_CXX=no
12389 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12390 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12393 # Check to make sure the PIC flag actually works.
12395 if test -n "$lt_prog_compiler_pic_CXX"; then
12397 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12398 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12399 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12400 echo $ECHO_N "(cached) $ECHO_C" >&6
12402 lt_prog_compiler_pic_works_CXX=no
12403 ac_outfile=conftest.$ac_objext
12404 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12405 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12406 # Insert the option either (1) after the last *FLAGS variable, or
12407 # (2) before a word containing "conftest.", or (3) at the end.
12408 # Note that $ac_compile itself does not contain backslashes and begins
12409 # with a dollar sign (not a hyphen), so the echo should work correctly.
12410 # The option is referenced via a variable to avoid confusing sed.
12411 lt_compile=`echo "$ac_compile" | $SED \
12412 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12413 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12414 -e 's:$: $lt_compiler_flag:'`
12415 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
12416 (eval "$lt_compile" 2>conftest.err)
12418 cat conftest.err >&5
12419 echo "$as_me:__oline__: \$? = $ac_status" >&5
12420 if (exit $ac_status) && test -s "$ac_outfile"; then
12421 # The compiler can only warn and ignore the option if not recognized
12422 # So say no if there are warnings other than the usual output.
12423 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12424 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12425 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12426 lt_prog_compiler_pic_works_CXX=yes
12432 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12433 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12435 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12436 case $lt_prog_compiler_pic_CXX in
12438 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12441 lt_prog_compiler_pic_CXX=
12442 lt_prog_compiler_can_build_shared_CXX=no
12447 # For platforms which do not support PIC, -DPIC is meaningless:
12449 lt_prog_compiler_pic_CXX=
12452 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12457 # Check to make sure the static flag actually works.
12459 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12460 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12461 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12462 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12463 echo $ECHO_N "(cached) $ECHO_C" >&6
12465 lt_prog_compiler_static_works_CXX=no
12466 save_LDFLAGS="$LDFLAGS"
12467 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12468 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12469 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12470 # The linker can only warn and ignore the option if not recognized
12471 # So say no if there are warnings
12472 if test -s conftest.err; then
12473 # Append any errors to the config.log.
12474 cat conftest.err 1>&5
12475 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12476 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12477 if diff conftest.exp conftest.er2 >/dev/null; then
12478 lt_prog_compiler_static_works_CXX=yes
12481 lt_prog_compiler_static_works_CXX=yes
12485 LDFLAGS="$save_LDFLAGS"
12488 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12489 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12491 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12494 lt_prog_compiler_static_CXX=
12498 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12499 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12500 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12501 echo $ECHO_N "(cached) $ECHO_C" >&6
12503 lt_cv_prog_compiler_c_o_CXX=no
12504 $rm -r conftest 2>/dev/null
12508 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12510 lt_compiler_flag="-o out/conftest2.$ac_objext"
12511 # Insert the option either (1) after the last *FLAGS variable, or
12512 # (2) before a word containing "conftest.", or (3) at the end.
12513 # Note that $ac_compile itself does not contain backslashes and begins
12514 # with a dollar sign (not a hyphen), so the echo should work correctly.
12515 lt_compile=`echo "$ac_compile" | $SED \
12516 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12517 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12518 -e 's:$: $lt_compiler_flag:'`
12519 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
12520 (eval "$lt_compile" 2>out/conftest.err)
12522 cat out/conftest.err >&5
12523 echo "$as_me:__oline__: \$? = $ac_status" >&5
12524 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12526 # The compiler can only warn and ignore the option if not recognized
12527 # So say no if there are warnings
12528 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12529 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12530 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12531 lt_cv_prog_compiler_c_o_CXX=yes
12536 # SGI C++ compiler will create directory out/ii_files/ for
12537 # template instantiation
12538 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12539 $rm out/* && rmdir out
12545 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12546 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12549 hard_links="nottested"
12550 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12551 # do not overwrite the value of need_locks provided by the user
12552 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12553 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12556 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12558 ln conftest.a conftest.b 2>&5 || hard_links=no
12559 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12560 { echo "$as_me:$LINENO: result: $hard_links" >&5
12561 echo "${ECHO_T}$hard_links" >&6; }
12562 if test "$hard_links" = no; then
12563 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12564 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12571 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12572 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12574 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12577 # If we're using GNU nm, then we don't want the "-C" option.
12578 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12579 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12580 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'
12582 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'
12586 export_symbols_cmds_CXX="$ltdll_cmds"
12589 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'
12592 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12596 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12597 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12598 test "$ld_shlibs_CXX" = no && can_build_shared=no
12601 # Do we need to explicitly link libc?
12603 case "x$archive_cmds_need_lc_CXX" in
12605 # Assume -lc should be added
12606 archive_cmds_need_lc_CXX=yes
12608 if test "$enable_shared" = yes && test "$GCC" = yes; then
12609 case $archive_cmds_CXX in
12611 # FIXME: we may have to deal with multi-command sequences.
12614 # Test whether the compiler implicitly links with -lc since on some
12615 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12616 # to ld, don't add -lc before -lgcc.
12617 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12618 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12620 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12623 (eval $ac_compile) 2>&5
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); } 2>conftest.err; then
12629 libobjs=conftest.$ac_objext
12631 wl=$lt_prog_compiler_wl_CXX
12632 pic_flag=$lt_prog_compiler_pic_CXX
12638 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12639 allow_undefined_flag_CXX=
12640 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12641 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); }
12646 archive_cmds_need_lc_CXX=no
12648 archive_cmds_need_lc_CXX=yes
12650 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12652 cat conftest.err 1>&5
12655 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12656 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12663 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12664 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12665 library_names_spec=
12666 libname_spec='lib$name'
12670 postuninstall_cmds=
12674 shlibpath_overrides_runpath=unknown
12676 dynamic_linker="$host_os ld.so"
12677 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12679 need_lib_prefix=unknown
12680 hardcode_into_libs=no
12682 # when you set need_version to no, make sure it does not cause -set_version
12683 # flags to be left without arguments
12684 need_version=unknown
12689 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12690 shlibpath_var=LIBPATH
12692 # AIX 3 has no versioning support, so we append a major version to the name.
12693 soname_spec='${libname}${release}${shared_ext}$major'
12700 hardcode_into_libs=yes
12701 if test "$host_cpu" = ia64; then
12702 # AIX 5 supports IA64
12703 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12704 shlibpath_var=LD_LIBRARY_PATH
12706 # With GCC up to 2.95.x, collect2 would create an import file
12707 # for dependence libraries. The import file would start with
12708 # the line `#! .'. This would cause the generated library to
12709 # depend on `.', always an invalid library. This was fixed in
12710 # development snapshots of GCC prior to 3.0.
12712 aix4 | aix4.[01] | aix4.[01].*)
12713 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12715 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12718 can_build_shared=no
12722 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12723 # soname into executable. Probably we can add versioning support to
12724 # collect2, so additional links can be useful in future.
12725 if test "$aix_use_runtimelinking" = yes; then
12726 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12727 # instead of lib<name>.a to let people know that these are not
12728 # typical AIX shared libraries.
12729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12731 # We preserve .a as extension for shared libraries through AIX4.2
12732 # and later when we are not doing run time linking.
12733 library_names_spec='${libname}${release}.a $libname.a'
12734 soname_spec='${libname}${release}${shared_ext}$major'
12736 shlibpath_var=LIBPATH
12741 library_names_spec='$libname.ixlibrary $libname.a'
12742 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12743 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'
12747 library_names_spec='${libname}${shared_ext}'
12748 dynamic_linker="$host_os ld.so"
12749 shlibpath_var=LIBRARY_PATH
12755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12756 soname_spec='${libname}${release}${shared_ext}$major'
12757 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12758 shlibpath_var=LD_LIBRARY_PATH
12759 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12760 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12761 # the default ld.so.conf also contains /usr/contrib/lib and
12762 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12763 # libtool to hard-code these into programs
12766 cygwin* | mingw* | pw32*)
12767 version_type=windows
12772 case $GCC,$host_os in
12773 yes,cygwin* | yes,mingw* | yes,pw32*)
12774 library_names_spec='$libname.dll.a'
12775 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12776 postinstall_cmds='base_file=`basename \${file}`~
12777 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12778 dldir=$destdir/`dirname \$dlpath`~
12779 test -d \$dldir || mkdir -p \$dldir~
12780 $install_prog $dir/$dlname \$dldir/$dlname~
12781 chmod a+x \$dldir/$dlname'
12782 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12783 dlpath=$dir/\$dldll~
12785 shlibpath_overrides_runpath=yes
12789 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12790 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12791 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12794 # MinGW DLLs use traditional 'lib' prefix
12795 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12796 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12797 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12798 # It is most probably a Windows format PATH printed by
12799 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12800 # path with ; separators, and with drive letters. We can handle the
12801 # drive letters (cygwin fileutils understands them), so leave them,
12802 # especially as we might pass files found there to a mingw objdump,
12803 # which wouldn't understand a cygwinified path. Ahh.
12804 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12806 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12810 # pw32 DLLs use 'pw' prefix rather than 'lib'
12811 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12817 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12820 dynamic_linker='Win32 ld.exe'
12821 # FIXME: first we should search . and the directory the executable is in
12825 darwin* | rhapsody*)
12826 dynamic_linker="$host_os dyld"
12827 version_type=darwin
12830 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12831 soname_spec='${libname}${release}${major}$shared_ext'
12832 shlibpath_overrides_runpath=yes
12833 shlibpath_var=DYLD_LIBRARY_PATH
12834 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12836 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12844 soname_spec='${libname}${release}${shared_ext}$major'
12845 shlibpath_var=LD_LIBRARY_PATH
12852 freebsd* | dragonfly*)
12853 # DragonFly does not have aout. When/if they implement a new
12854 # versioning mechanism, adjust this.
12855 if test -x /usr/bin/objformat; then
12856 objformat=`/usr/bin/objformat`
12859 freebsd[123]*) objformat=aout ;;
12860 *) objformat=elf ;;
12863 version_type=freebsd-$objformat
12864 case $version_type in
12866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12871 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12875 shlibpath_var=LD_LIBRARY_PATH
12878 shlibpath_overrides_runpath=yes
12880 freebsd3.[01]* | freebsdelf3.[01]*)
12881 shlibpath_overrides_runpath=yes
12882 hardcode_into_libs=yes
12884 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12885 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12886 shlibpath_overrides_runpath=no
12887 hardcode_into_libs=yes
12889 *) # from 4.6 on, and DragonFly
12890 shlibpath_overrides_runpath=yes
12891 hardcode_into_libs=yes
12900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12901 soname_spec='${libname}${release}${shared_ext}$major'
12902 shlibpath_var=LD_LIBRARY_PATH
12903 hardcode_into_libs=yes
12906 hpux9* | hpux10* | hpux11*)
12907 # Give a soname corresponding to the major version so that dld.sl refuses to
12908 # link against other versions.
12915 hardcode_into_libs=yes
12916 dynamic_linker="$host_os dld.so"
12917 shlibpath_var=LD_LIBRARY_PATH
12918 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12920 soname_spec='${libname}${release}${shared_ext}$major'
12921 if test "X$HPUX_IA64_MODE" = X32; then
12922 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12924 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12926 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12930 hardcode_into_libs=yes
12931 dynamic_linker="$host_os dld.sl"
12932 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12933 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12935 soname_spec='${libname}${release}${shared_ext}$major'
12936 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12937 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12941 dynamic_linker="$host_os dld.sl"
12942 shlibpath_var=SHLIB_PATH
12943 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12945 soname_spec='${libname}${release}${shared_ext}$major'
12948 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12949 postinstall_cmds='chmod 555 $lib'
12956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12957 soname_spec='${libname}${release}${shared_ext}$major'
12958 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12959 shlibpath_var=LD_LIBRARY_PATH
12960 shlibpath_overrides_runpath=no
12961 hardcode_into_libs=yes
12964 irix5* | irix6* | nonstopux*)
12966 nonstopux*) version_type=nonstopux ;;
12968 if test "$lt_cv_prog_gnu_ld" = yes; then
12976 soname_spec='${libname}${release}${shared_ext}$major'
12977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12979 irix5* | nonstopux*)
12980 libsuff= shlibsuff=
12983 case $LD in # libtool.m4 will add one of these switches to LD
12984 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12985 libsuff= shlibsuff= libmagic=32-bit;;
12986 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12987 libsuff=32 shlibsuff=N32 libmagic=N32;;
12988 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12989 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12990 *) libsuff= shlibsuff= libmagic=never-match;;
12994 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12995 shlibpath_overrides_runpath=no
12996 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12997 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12998 hardcode_into_libs=yes
13001 # No shared lib support for Linux oldld, aout, or coff.
13002 linux*oldld* | linux*aout* | linux*coff*)
13006 # This must be Linux ELF.
13007 linux* | k*bsd*-gnu)
13011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13012 soname_spec='${libname}${release}${shared_ext}$major'
13013 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13014 shlibpath_var=LD_LIBRARY_PATH
13015 shlibpath_overrides_runpath=no
13016 # This implies no fast_install, which is unacceptable.
13017 # Some rework will be needed to allow for fast_install
13018 # before this can be enabled.
13019 hardcode_into_libs=yes
13020 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13021 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13023 # Append ld.so.conf contents to the search path
13024 if test -f /etc/ld.so.conf; then
13025 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13026 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13029 # We used to test for /lib/ld.so.1 and disable shared libraries on
13030 # powerpc, because MkLinux only supported shared libraries with the
13031 # GNU dynamic linker. Since this was broken with cross compilers,
13032 # most powerpc-linux boxes support dynamic linking these days and
13033 # people can always --disable-shared, the test was removed, and we
13034 # assume the GNU/Linux dynamic linker is in use.
13035 dynamic_linker='GNU/Linux ld.so'
13042 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13044 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13045 dynamic_linker='NetBSD (a.out) ld.so'
13047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13048 soname_spec='${libname}${release}${shared_ext}$major'
13049 dynamic_linker='NetBSD ld.elf_so'
13051 shlibpath_var=LD_LIBRARY_PATH
13052 shlibpath_overrides_runpath=yes
13053 hardcode_into_libs=yes
13058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13059 shlibpath_var=LD_LIBRARY_PATH
13060 shlibpath_overrides_runpath=yes
13067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13068 soname_spec='${libname}${release}${shared_ext}$major'
13069 shlibpath_var=LD_LIBRARY_PATH
13070 shlibpath_overrides_runpath=yes
13075 sys_lib_dlsearch_path_spec="/usr/lib"
13077 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13079 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13080 *) need_version=no ;;
13082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13083 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13084 shlibpath_var=LD_LIBRARY_PATH
13085 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13087 openbsd2.[89] | openbsd2.[89].*)
13088 shlibpath_overrides_runpath=no
13091 shlibpath_overrides_runpath=yes
13095 shlibpath_overrides_runpath=yes
13100 libname_spec='$name'
13103 library_names_spec='$libname${shared_ext} $libname.a'
13104 dynamic_linker='OS/2 ld.exe'
13105 shlibpath_var=LIBPATH
13108 osf3* | osf4* | osf5*)
13112 soname_spec='${libname}${release}${shared_ext}$major'
13113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13114 shlibpath_var=LD_LIBRARY_PATH
13115 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13116 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13128 soname_spec='${libname}${release}${shared_ext}$major'
13129 shlibpath_var=LD_LIBRARY_PATH
13130 shlibpath_overrides_runpath=yes
13131 hardcode_into_libs=yes
13132 # ldd complains unless libraries are executable
13133 postinstall_cmds='chmod +x $lib'
13138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13139 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13140 shlibpath_var=LD_LIBRARY_PATH
13141 shlibpath_overrides_runpath=yes
13142 if test "$with_gnu_ld" = yes; then
13150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13151 soname_spec='${libname}${release}${shared_ext}$major'
13152 shlibpath_var=LD_LIBRARY_PATH
13153 case $host_vendor in
13155 shlibpath_overrides_runpath=no
13157 export_dynamic_flag_spec='${wl}-Blargedynsym'
13158 runpath_var=LD_RUN_PATH
13166 shlibpath_overrides_runpath=no
13167 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13173 if test -d /usr/nec ;then
13175 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13176 soname_spec='$libname${shared_ext}.$major'
13177 shlibpath_var=LD_LIBRARY_PATH
13181 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13182 version_type=freebsd-elf
13185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13186 soname_spec='${libname}${release}${shared_ext}$major'
13187 shlibpath_var=LD_LIBRARY_PATH
13188 hardcode_into_libs=yes
13189 if test "$with_gnu_ld" = yes; then
13190 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13191 shlibpath_overrides_runpath=no
13193 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13194 shlibpath_overrides_runpath=yes
13197 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13201 sys_lib_dlsearch_path_spec='/usr/lib'
13206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13207 soname_spec='${libname}${release}${shared_ext}$major'
13208 shlibpath_var=LD_LIBRARY_PATH
13215 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13216 echo "${ECHO_T}$dynamic_linker" >&6; }
13217 test "$dynamic_linker" = no && can_build_shared=no
13219 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13220 if test "$GCC" = yes; then
13221 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13224 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13225 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13226 hardcode_action_CXX=
13227 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13228 test -n "$runpath_var_CXX" || \
13229 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13231 # We can hardcode non-existant directories.
13232 if test "$hardcode_direct_CXX" != no &&
13233 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13234 # have to relink, otherwise we might link with an installed library
13235 # when we should be linking with a yet-to-be-installed one
13236 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13237 test "$hardcode_minus_L_CXX" != no; then
13238 # Linking always hardcodes the temporary library directory.
13239 hardcode_action_CXX=relink
13241 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13242 hardcode_action_CXX=immediate
13245 # We cannot hardcode anything, or else we can only hardcode existing
13247 hardcode_action_CXX=unsupported
13249 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13250 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13252 if test "$hardcode_action_CXX" = relink; then
13253 # Fast installation is not supported
13254 enable_fast_install=no
13255 elif test "$shlibpath_overrides_runpath" = yes ||
13256 test "$enable_shared" = no; then
13257 # Fast installation is not necessary
13258 enable_fast_install=needless
13262 # The else clause should only fire when bootstrapping the
13263 # libtool distribution, otherwise you forgot to ship ltmain.sh
13264 # with your package, and you will get complaints that there are
13265 # no rules to generate ltmain.sh.
13266 if test -f "$ltmain"; then
13267 # See if we are running on zsh, and set the options which allow our commands through
13268 # without removal of \ escapes.
13269 if test -n "${ZSH_VERSION+set}" ; then
13270 setopt NO_GLOB_SUBST
13272 # Now quote all the things that may contain metacharacters while being
13273 # careful not to overquote the AC_SUBSTed values. We take copies of the
13274 # variables and quote the copies for generation of the libtool script.
13275 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13277 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13278 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13279 deplibs_check_method reload_flag reload_cmds need_locks \
13280 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13281 lt_cv_sys_global_symbol_to_c_name_address \
13282 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13283 old_postinstall_cmds old_postuninstall_cmds \
13287 lt_prog_compiler_wl_CXX \
13288 lt_prog_compiler_pic_CXX \
13289 lt_prog_compiler_static_CXX \
13290 lt_prog_compiler_no_builtin_flag_CXX \
13291 export_dynamic_flag_spec_CXX \
13292 thread_safe_flag_spec_CXX \
13293 whole_archive_flag_spec_CXX \
13294 enable_shared_with_static_runtimes_CXX \
13295 old_archive_cmds_CXX \
13296 old_archive_from_new_cmds_CXX \
13297 predep_objects_CXX \
13298 postdep_objects_CXX \
13301 compiler_lib_search_path_CXX \
13303 archive_expsym_cmds_CXX \
13304 postinstall_cmds_CXX \
13305 postuninstall_cmds_CXX \
13306 old_archive_from_expsyms_cmds_CXX \
13307 allow_undefined_flag_CXX \
13308 no_undefined_flag_CXX \
13309 export_symbols_cmds_CXX \
13310 hardcode_libdir_flag_spec_CXX \
13311 hardcode_libdir_flag_spec_ld_CXX \
13312 hardcode_libdir_separator_CXX \
13313 hardcode_automatic_CXX \
13315 module_expsym_cmds_CXX \
13316 lt_cv_prog_compiler_c_o_CXX \
13317 fix_srcfile_path_CXX \
13318 exclude_expsyms_CXX \
13319 include_expsyms_CXX; do
13322 old_archive_cmds_CXX | \
13323 old_archive_from_new_cmds_CXX | \
13324 archive_cmds_CXX | \
13325 archive_expsym_cmds_CXX | \
13326 module_cmds_CXX | \
13327 module_expsym_cmds_CXX | \
13328 old_archive_from_expsyms_cmds_CXX | \
13329 export_symbols_cmds_CXX | \
13330 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13331 postinstall_cmds | postuninstall_cmds | \
13332 old_postinstall_cmds | old_postuninstall_cmds | \
13333 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13334 # Double-quote double-evaled strings.
13335 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13338 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13344 *'\$0 --fallback-echo"')
13345 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13351 cat <<__EOF__ >> "$cfgfile"
13352 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13354 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13356 # Shell to use when invoking shell scripts.
13359 # Whether or not to build shared libraries.
13360 build_libtool_libs=$enable_shared
13362 # Whether or not to build static libraries.
13363 build_old_libs=$enable_static
13365 # Whether or not to add -lc for building shared libraries.
13366 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13368 # Whether or not to disallow shared libs when runtime libs are static
13369 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13371 # Whether or not to optimize for fast installation.
13372 fast_install=$enable_fast_install
13375 host_alias=$host_alias
13379 # The build system.
13380 build_alias=$build_alias
13384 # An echo program that does not interpret backslashes.
13389 AR_FLAGS=$lt_AR_FLAGS
13394 # LTCC compiler flags.
13395 LTCFLAGS=$lt_LTCFLAGS
13397 # A language-specific compiler.
13398 CC=$lt_compiler_CXX
13400 # Is the compiler the GNU C compiler?
13406 # The linker used to build libraries.
13409 # Whether we need hard or soft links.
13412 # A BSD-compatible nm program.
13415 # A symbol stripping program
13418 # Used to examine libraries when file_magic_cmd begins "file"
13419 MAGIC_CMD=$MAGIC_CMD
13421 # Used on cygwin: DLL creation program.
13424 # Used on cygwin: object dumper.
13427 # Used on cygwin: assembler.
13430 # The name of the directory that contains temporary libtool files.
13433 # How to create reloadable object files.
13434 reload_flag=$lt_reload_flag
13435 reload_cmds=$lt_reload_cmds
13437 # How to pass a linker flag through the compiler.
13438 wl=$lt_lt_prog_compiler_wl_CXX
13440 # Object file suffix (normally "o").
13441 objext="$ac_objext"
13443 # Old archive suffix (normally "a").
13446 # Shared library suffix (normally ".so").
13447 shrext_cmds='$shrext_cmds'
13449 # Executable file suffix (normally "").
13452 # Additional compiler flags for building library objects.
13453 pic_flag=$lt_lt_prog_compiler_pic_CXX
13456 # What is the maximum length of a command?
13457 max_cmd_len=$lt_cv_sys_max_cmd_len
13459 # Does compiler simultaneously support -c and -o options?
13460 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13462 # Must we lock files when doing compilation?
13463 need_locks=$lt_need_locks
13465 # Do we need the lib prefix for modules?
13466 need_lib_prefix=$need_lib_prefix
13468 # Do we need a version for libraries?
13469 need_version=$need_version
13471 # Whether dlopen is supported.
13472 dlopen_support=$enable_dlopen
13474 # Whether dlopen of programs is supported.
13475 dlopen_self=$enable_dlopen_self
13477 # Whether dlopen of statically linked programs is supported.
13478 dlopen_self_static=$enable_dlopen_self_static
13480 # Compiler flag to prevent dynamic linking.
13481 link_static_flag=$lt_lt_prog_compiler_static_CXX
13483 # Compiler flag to turn off builtin functions.
13484 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13486 # Compiler flag to allow reflexive dlopens.
13487 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13489 # Compiler flag to generate shared objects directly from archives.
13490 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13492 # Compiler flag to generate thread-safe objects.
13493 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13495 # Library versioning type.
13496 version_type=$version_type
13498 # Format of library name prefix.
13499 libname_spec=$lt_libname_spec
13501 # List of archive names. First name is the real one, the rest are links.
13502 # The last name is the one that the linker finds with -lNAME.
13503 library_names_spec=$lt_library_names_spec
13505 # The coded name of the library, if different from the real name.
13506 soname_spec=$lt_soname_spec
13508 # Commands used to build and install an old-style archive.
13510 old_archive_cmds=$lt_old_archive_cmds_CXX
13511 old_postinstall_cmds=$lt_old_postinstall_cmds
13512 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13514 # Create an old-style archive from a shared archive.
13515 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13517 # Create a temporary old-style archive to link instead of a shared archive.
13518 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13520 # Commands used to build and install a shared archive.
13521 archive_cmds=$lt_archive_cmds_CXX
13522 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13523 postinstall_cmds=$lt_postinstall_cmds
13524 postuninstall_cmds=$lt_postuninstall_cmds
13526 # Commands used to build a loadable module (assumed same as above if empty)
13527 module_cmds=$lt_module_cmds_CXX
13528 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13530 # Commands to strip libraries.
13531 old_striplib=$lt_old_striplib
13532 striplib=$lt_striplib
13534 # Dependencies to place before the objects being linked to create a
13536 predep_objects=$lt_predep_objects_CXX
13538 # Dependencies to place after the objects being linked to create a
13540 postdep_objects=$lt_postdep_objects_CXX
13542 # Dependencies to place before the objects being linked to create a
13544 predeps=$lt_predeps_CXX
13546 # Dependencies to place after the objects being linked to create a
13548 postdeps=$lt_postdeps_CXX
13550 # The library search path used internally by the compiler when linking
13551 # a shared library.
13552 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13554 # Method to check whether dependent libraries are shared objects.
13555 deplibs_check_method=$lt_deplibs_check_method
13557 # Command to use when deplibs_check_method == file_magic.
13558 file_magic_cmd=$lt_file_magic_cmd
13560 # Flag that allows shared libraries with undefined symbols to be built.
13561 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13563 # Flag that forces no undefined symbols.
13564 no_undefined_flag=$lt_no_undefined_flag_CXX
13566 # Commands used to finish a libtool library installation in a directory.
13567 finish_cmds=$lt_finish_cmds
13569 # Same as above, but a single script fragment to be evaled but not shown.
13570 finish_eval=$lt_finish_eval
13572 # Take the output of nm and produce a listing of raw symbols and C names.
13573 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13575 # Transform the output of nm in a proper C declaration
13576 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13578 # Transform the output of nm in a C name address pair
13579 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13581 # This is the shared library runtime path variable.
13582 runpath_var=$runpath_var
13584 # This is the shared library path variable.
13585 shlibpath_var=$shlibpath_var
13587 # Is shlibpath searched before the hard-coded library search path?
13588 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13590 # How to hardcode a shared library path into an executable.
13591 hardcode_action=$hardcode_action_CXX
13593 # Whether we should hardcode library paths into libraries.
13594 hardcode_into_libs=$hardcode_into_libs
13596 # Flag to hardcode \$libdir into a binary during linking.
13597 # This must work even if \$libdir does not exist.
13598 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13600 # If ld is used when linking, flag to hardcode \$libdir into
13601 # a binary during linking. This must work even if \$libdir does
13603 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13605 # Whether we need a single -rpath flag with a separated argument.
13606 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13608 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13609 # resulting binary.
13610 hardcode_direct=$hardcode_direct_CXX
13612 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13613 # resulting binary.
13614 hardcode_minus_L=$hardcode_minus_L_CXX
13616 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13617 # the resulting binary.
13618 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13620 # Set to yes if building a shared library automatically hardcodes DIR into the library
13621 # and all subsequent libraries and executables linked against it.
13622 hardcode_automatic=$hardcode_automatic_CXX
13624 # Variables whose values should be saved in libtool wrapper scripts and
13625 # restored at relink time.
13626 variables_saved_for_relink="$variables_saved_for_relink"
13628 # Whether libtool must link a program against all its dependency libraries.
13629 link_all_deplibs=$link_all_deplibs_CXX
13631 # Compile-time system search path for libraries
13632 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13634 # Run-time system search path for libraries
13635 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13637 # Fix the shell variable \$srcfile for the compiler.
13638 fix_srcfile_path=$lt_fix_srcfile_path
13640 # Set to yes if exported symbols are required.
13641 always_export_symbols=$always_export_symbols_CXX
13643 # The commands to list exported symbols.
13644 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13646 # The commands to extract the exported symbol list from a shared archive.
13647 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13649 # Symbols that should not be listed in the preloaded symbols.
13650 exclude_expsyms=$lt_exclude_expsyms_CXX
13652 # Symbols that must always be exported.
13653 include_expsyms=$lt_include_expsyms_CXX
13655 # ### END LIBTOOL TAG CONFIG: $tagname
13661 # If there is no Makefile yet, we rely on a make rule to execute
13662 # `config.status --recheck' to rerun these tests and create the
13663 # libtool script then.
13664 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13665 if test -f "$ltmain_in"; then
13666 test -f Makefile && make "$ltmain"
13672 ac_cpp='$CPP $CPPFLAGS'
13673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13681 with_gnu_ldcxx=$with_gnu_ld
13682 with_gnu_ld=$lt_save_with_gnu_ld
13683 lt_cv_path_LDCXX=$lt_cv_path_LD
13684 lt_cv_path_LD=$lt_save_path_LD
13685 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13686 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13694 if test -n "$F77" && test "X$F77" != "Xno"; then
13697 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13698 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13699 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13702 archive_cmds_need_lc_F77=no
13703 allow_undefined_flag_F77=
13704 always_export_symbols_F77=no
13705 archive_expsym_cmds_F77=
13706 export_dynamic_flag_spec_F77=
13707 hardcode_direct_F77=no
13708 hardcode_libdir_flag_spec_F77=
13709 hardcode_libdir_flag_spec_ld_F77=
13710 hardcode_libdir_separator_F77=
13711 hardcode_minus_L_F77=no
13712 hardcode_automatic_F77=no
13714 module_expsym_cmds_F77=
13715 link_all_deplibs_F77=unknown
13716 old_archive_cmds_F77=$old_archive_cmds
13717 no_undefined_flag_F77=
13718 whole_archive_flag_spec_F77=
13719 enable_shared_with_static_runtimes_F77=no
13721 # Source file extension for f77 test sources.
13724 # Object file extension for compiled f77 test sources.
13728 # Code to be used in simple compile tests
13729 lt_simple_compile_test_code="\
13735 # Code to be used in simple link tests
13736 lt_simple_link_test_code="\
13741 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13743 # If no C compiler was specified, use CC.
13746 # If no C compiler flags were specified, use CFLAGS.
13747 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13749 # Allow CC to be a program name with arguments.
13753 # save warnings/boilerplate of simple test code
13754 ac_outfile=conftest.$ac_objext
13755 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13756 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13757 _lt_compiler_boilerplate=`cat conftest.err`
13760 ac_outfile=conftest.$ac_objext
13761 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13762 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13763 _lt_linker_boilerplate=`cat conftest.err`
13767 # Allow CC to be a program name with arguments.
13772 for cc_temp in $compiler""; do
13774 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13775 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13780 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13783 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13784 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13785 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13786 echo "${ECHO_T}$can_build_shared" >&6; }
13788 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13789 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13790 test "$can_build_shared" = "no" && enable_shared=no
13792 # On AIX, shared libraries and static libraries use the same namespace, and
13793 # are all built from PIC.
13796 test "$enable_shared" = yes && enable_static=no
13797 if test -n "$RANLIB"; then
13798 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13799 postinstall_cmds='$RANLIB $lib'
13803 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13804 test "$enable_shared" = yes && enable_static=no
13808 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13809 echo "${ECHO_T}$enable_shared" >&6; }
13811 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13812 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13813 # Make sure either enable_shared or enable_static is yes.
13814 test "$enable_shared" = yes || enable_static=yes
13815 { echo "$as_me:$LINENO: result: $enable_static" >&5
13816 echo "${ECHO_T}$enable_static" >&6; }
13821 lt_prog_compiler_wl_F77=
13822 lt_prog_compiler_pic_F77=
13823 lt_prog_compiler_static_F77=
13825 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13826 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13828 if test "$GCC" = yes; then
13829 lt_prog_compiler_wl_F77='-Wl,'
13830 lt_prog_compiler_static_F77='-static'
13834 # All AIX code is PIC.
13835 if test "$host_cpu" = ia64; then
13836 # AIX 5 now supports IA64 processor
13837 lt_prog_compiler_static_F77='-Bstatic'
13842 # FIXME: we need at least 68020 code to build shared libraries, but
13843 # adding the `-m68020' flag to GCC prevents building anything better,
13845 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13848 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13849 # PIC is the default for these OSes.
13852 mingw* | cygwin* | pw32* | os2*)
13853 # This hack is so that the source file can tell whether it is being
13854 # built for inclusion in a dll (and should export symbols for example).
13855 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13856 # (--disable-auto-import) libraries
13857 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13860 darwin* | rhapsody*)
13861 # PIC is the default on this platform
13862 # Common symbols not allowed in MH_DYLIB files
13863 lt_prog_compiler_pic_F77='-fno-common'
13867 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13868 # Instead, we relocate shared libraries at runtime.
13872 # Just because we use GCC doesn't mean we suddenly get shared libraries
13873 # on systems that don't support them.
13874 lt_prog_compiler_can_build_shared_F77=no
13879 if test -d /usr/nec; then
13880 lt_prog_compiler_pic_F77=-Kconform_pic
13885 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13886 # not for PA HP-UX.
13892 lt_prog_compiler_pic_F77='-fPIC'
13898 lt_prog_compiler_pic_F77='-fPIC'
13902 # PORTME Check for flag to pass linker flags through the system compiler.
13905 lt_prog_compiler_wl_F77='-Wl,'
13906 if test "$host_cpu" = ia64; then
13907 # AIX 5 now supports IA64 processor
13908 lt_prog_compiler_static_F77='-Bstatic'
13910 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13914 # PIC is the default on this platform
13915 # Common symbols not allowed in MH_DYLIB files
13916 case $cc_basename in
13918 lt_prog_compiler_pic_F77='-qnocommon'
13919 lt_prog_compiler_wl_F77='-Wl,'
13924 mingw* | cygwin* | pw32* | os2*)
13925 # This hack is so that the source file can tell whether it is being
13926 # built for inclusion in a dll (and should export symbols for example).
13927 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13930 hpux9* | hpux10* | hpux11*)
13931 lt_prog_compiler_wl_F77='-Wl,'
13932 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13933 # not for PA HP-UX.
13939 lt_prog_compiler_pic_F77='+Z'
13942 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13943 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13946 irix5* | irix6* | nonstopux*)
13947 lt_prog_compiler_wl_F77='-Wl,'
13948 # PIC (with -KPIC) is the default.
13949 lt_prog_compiler_static_F77='-non_shared'
13953 lt_prog_compiler_pic_F77='-KPIC'
13954 lt_prog_compiler_static_F77='-Bstatic'
13957 linux* | k*bsd*-gnu)
13958 case $cc_basename in
13960 lt_prog_compiler_wl_F77='-Wl,'
13961 lt_prog_compiler_pic_F77='-KPIC'
13962 lt_prog_compiler_static_F77='-static'
13964 pgcc* | pgf77* | pgf90* | pgf95*)
13965 # Portland Group compilers (*not* the Pentium gcc compiler,
13966 # which looks to be a dead project)
13967 lt_prog_compiler_wl_F77='-Wl,'
13968 lt_prog_compiler_pic_F77='-fpic'
13969 lt_prog_compiler_static_F77='-Bstatic'
13972 lt_prog_compiler_wl_F77='-Wl,'
13973 # All Alpha code is PIC.
13974 lt_prog_compiler_static_F77='-non_shared'
13977 case `$CC -V 2>&1 | sed 5q` in
13980 lt_prog_compiler_pic_F77='-KPIC'
13981 lt_prog_compiler_static_F77='-Bstatic'
13982 lt_prog_compiler_wl_F77='-Wl,'
13985 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13986 lt_prog_compiler_pic_F77='-KPIC'
13987 lt_prog_compiler_static_F77='-Bstatic'
13988 lt_prog_compiler_wl_F77=''
13995 osf3* | osf4* | osf5*)
13996 lt_prog_compiler_wl_F77='-Wl,'
13997 # All OSF/1 code is PIC.
13998 lt_prog_compiler_static_F77='-non_shared'
14002 lt_prog_compiler_static_F77='-non_shared'
14006 lt_prog_compiler_pic_F77='-KPIC'
14007 lt_prog_compiler_static_F77='-Bstatic'
14008 case $cc_basename in
14009 f77* | f90* | f95*)
14010 lt_prog_compiler_wl_F77='-Qoption ld ';;
14012 lt_prog_compiler_wl_F77='-Wl,';;
14017 lt_prog_compiler_wl_F77='-Qoption ld '
14018 lt_prog_compiler_pic_F77='-PIC'
14019 lt_prog_compiler_static_F77='-Bstatic'
14022 sysv4 | sysv4.2uw2* | sysv4.3*)
14023 lt_prog_compiler_wl_F77='-Wl,'
14024 lt_prog_compiler_pic_F77='-KPIC'
14025 lt_prog_compiler_static_F77='-Bstatic'
14029 if test -d /usr/nec ;then
14030 lt_prog_compiler_pic_F77='-Kconform_pic'
14031 lt_prog_compiler_static_F77='-Bstatic'
14035 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14036 lt_prog_compiler_wl_F77='-Wl,'
14037 lt_prog_compiler_pic_F77='-KPIC'
14038 lt_prog_compiler_static_F77='-Bstatic'
14042 lt_prog_compiler_wl_F77='-Wl,'
14043 lt_prog_compiler_can_build_shared_F77=no
14047 lt_prog_compiler_pic_F77='-pic'
14048 lt_prog_compiler_static_F77='-Bstatic'
14052 lt_prog_compiler_can_build_shared_F77=no
14057 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14058 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14061 # Check to make sure the PIC flag actually works.
14063 if test -n "$lt_prog_compiler_pic_F77"; then
14065 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14066 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14067 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14068 echo $ECHO_N "(cached) $ECHO_C" >&6
14070 lt_prog_compiler_pic_works_F77=no
14071 ac_outfile=conftest.$ac_objext
14072 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14073 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14074 # Insert the option either (1) after the last *FLAGS variable, or
14075 # (2) before a word containing "conftest.", or (3) at the end.
14076 # Note that $ac_compile itself does not contain backslashes and begins
14077 # with a dollar sign (not a hyphen), so the echo should work correctly.
14078 # The option is referenced via a variable to avoid confusing sed.
14079 lt_compile=`echo "$ac_compile" | $SED \
14080 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14081 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14082 -e 's:$: $lt_compiler_flag:'`
14083 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14084 (eval "$lt_compile" 2>conftest.err)
14086 cat conftest.err >&5
14087 echo "$as_me:__oline__: \$? = $ac_status" >&5
14088 if (exit $ac_status) && test -s "$ac_outfile"; then
14089 # The compiler can only warn and ignore the option if not recognized
14090 # So say no if there are warnings other than the usual output.
14091 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14092 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14093 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14094 lt_prog_compiler_pic_works_F77=yes
14100 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14101 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14103 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14104 case $lt_prog_compiler_pic_F77 in
14106 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14109 lt_prog_compiler_pic_F77=
14110 lt_prog_compiler_can_build_shared_F77=no
14115 # For platforms which do not support PIC, -DPIC is meaningless:
14117 lt_prog_compiler_pic_F77=
14120 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14125 # Check to make sure the static flag actually works.
14127 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14128 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14129 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14130 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14131 echo $ECHO_N "(cached) $ECHO_C" >&6
14133 lt_prog_compiler_static_works_F77=no
14134 save_LDFLAGS="$LDFLAGS"
14135 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14136 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14137 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14138 # The linker can only warn and ignore the option if not recognized
14139 # So say no if there are warnings
14140 if test -s conftest.err; then
14141 # Append any errors to the config.log.
14142 cat conftest.err 1>&5
14143 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14144 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14145 if diff conftest.exp conftest.er2 >/dev/null; then
14146 lt_prog_compiler_static_works_F77=yes
14149 lt_prog_compiler_static_works_F77=yes
14153 LDFLAGS="$save_LDFLAGS"
14156 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14157 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14159 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14162 lt_prog_compiler_static_F77=
14166 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14167 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14168 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14169 echo $ECHO_N "(cached) $ECHO_C" >&6
14171 lt_cv_prog_compiler_c_o_F77=no
14172 $rm -r conftest 2>/dev/null
14176 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14178 lt_compiler_flag="-o out/conftest2.$ac_objext"
14179 # Insert the option either (1) after the last *FLAGS variable, or
14180 # (2) before a word containing "conftest.", or (3) at the end.
14181 # Note that $ac_compile itself does not contain backslashes and begins
14182 # with a dollar sign (not a hyphen), so the echo should work correctly.
14183 lt_compile=`echo "$ac_compile" | $SED \
14184 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14185 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14186 -e 's:$: $lt_compiler_flag:'`
14187 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14188 (eval "$lt_compile" 2>out/conftest.err)
14190 cat out/conftest.err >&5
14191 echo "$as_me:__oline__: \$? = $ac_status" >&5
14192 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14194 # The compiler can only warn and ignore the option if not recognized
14195 # So say no if there are warnings
14196 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14197 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14198 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14199 lt_cv_prog_compiler_c_o_F77=yes
14204 # SGI C++ compiler will create directory out/ii_files/ for
14205 # template instantiation
14206 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14207 $rm out/* && rmdir out
14213 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14214 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14217 hard_links="nottested"
14218 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14219 # do not overwrite the value of need_locks provided by the user
14220 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14221 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14224 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14226 ln conftest.a conftest.b 2>&5 || hard_links=no
14227 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14228 { echo "$as_me:$LINENO: result: $hard_links" >&5
14229 echo "${ECHO_T}$hard_links" >&6; }
14230 if test "$hard_links" = no; then
14231 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14232 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14239 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14240 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14243 allow_undefined_flag_F77=
14244 enable_shared_with_static_runtimes_F77=no
14246 archive_expsym_cmds_F77=
14247 old_archive_From_new_cmds_F77=
14248 old_archive_from_expsyms_cmds_F77=
14249 export_dynamic_flag_spec_F77=
14250 whole_archive_flag_spec_F77=
14251 thread_safe_flag_spec_F77=
14252 hardcode_libdir_flag_spec_F77=
14253 hardcode_libdir_flag_spec_ld_F77=
14254 hardcode_libdir_separator_F77=
14255 hardcode_direct_F77=no
14256 hardcode_minus_L_F77=no
14257 hardcode_shlibpath_var_F77=unsupported
14258 link_all_deplibs_F77=unknown
14259 hardcode_automatic_F77=no
14261 module_expsym_cmds_F77=
14262 always_export_symbols_F77=no
14263 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14264 # include_expsyms should be a list of space-separated symbols to be *always*
14265 # included in the symbol list
14266 include_expsyms_F77=
14267 # exclude_expsyms can be an extended regexp of symbols to exclude
14268 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14269 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14270 # as well as any symbol that contains `d'.
14271 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14272 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14273 # platforms (ab)use it in PIC code, but their linkers get confused if
14274 # the symbol is explicitly referenced. Since portable code cannot
14275 # rely on this symbol name, it's probably fine to never include it in
14276 # preloaded symbol tables.
14277 extract_expsyms_cmds=
14278 # Just being paranoid about ensuring that cc_basename is set.
14279 for cc_temp in $compiler""; do
14281 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14282 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14287 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14290 cygwin* | mingw* | pw32*)
14291 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14292 # When not using gcc, we currently assume that we are using
14293 # Microsoft Visual C++.
14294 if test "$GCC" != yes; then
14299 # we just hope/assume this is gcc and not c89 (= MSVC++)
14308 if test "$with_gnu_ld" = yes; then
14309 # If archive_cmds runs LD, not CC, wlarc should be empty
14312 # Set some defaults for GNU ld with shared library support. These
14313 # are reset later if shared libraries are not supported. Putting them
14314 # here allows them to be overridden if necessary.
14315 runpath_var=LD_RUN_PATH
14316 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14317 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14318 # ancient GNU ld didn't support --whole-archive et. al.
14319 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14320 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14322 whole_archive_flag_spec_F77=
14324 supports_anon_versioning=no
14325 case `$LD -v 2>/dev/null` in
14326 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14327 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14328 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14329 *\ 2.11.*) ;; # other 2.11 versions
14330 *) supports_anon_versioning=yes ;;
14333 # See if GNU ld supports shared libraries.
14335 aix3* | aix4* | aix5*)
14336 # On AIX/PPC, the GNU linker is very broken
14337 if test "$host_cpu" != ia64; then
14341 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14342 *** to be unable to reliably create shared libraries on AIX.
14343 *** Therefore, libtool is disabling shared libraries support. If you
14344 *** really care for shared libraries, you may want to modify your PATH
14345 *** so that a non-GNU linker is found, and then restart.
14352 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)'
14353 hardcode_libdir_flag_spec_F77='-L$libdir'
14354 hardcode_minus_L_F77=yes
14356 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14357 # that the semantics of dynamic libraries on AmigaOS, at least up
14358 # to version 4, is to share data among multiple programs linked
14359 # with the same dynamic library. Since this doesn't match the
14360 # behavior of shared libraries on other platforms, we can't use
14366 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14367 allow_undefined_flag_F77=unsupported
14368 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14369 # support --undefined. This deserves some investigation. FIXME
14370 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14376 cygwin* | mingw* | pw32*)
14377 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14378 # as there is no search path for DLLs.
14379 hardcode_libdir_flag_spec_F77='-L$libdir'
14380 allow_undefined_flag_F77=unsupported
14381 always_export_symbols_F77=no
14382 enable_shared_with_static_runtimes_F77=yes
14383 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14385 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14386 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14387 # If the export-symbols file already is a .def file (1st line
14388 # is EXPORTS), use it as is; otherwise, prepend...
14389 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14390 cp $export_symbols $output_objdir/$soname.def;
14392 echo EXPORTS > $output_objdir/$soname.def;
14393 cat $export_symbols >> $output_objdir/$soname.def;
14395 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14402 hardcode_direct_F77=no
14403 hardcode_shlibpath_var_F77=no
14404 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14405 export_dynamic_flag_spec_F77='${wl}-E'
14406 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14407 # Instead, shared libraries are loaded at an image base (0x10000000 by
14408 # default) and relocated if they conflict, which is a slow very memory
14409 # consuming and fragmenting process. To avoid this, we pick a random,
14410 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14411 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14412 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'
14413 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'
14416 gnu* | linux* | k*bsd*-gnu)
14417 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14419 case $cc_basename,$host_cpu in
14420 pgcc*) # Portland Group C compiler
14421 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'
14422 tmp_addflag=' $pic_flag'
14424 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14425 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'
14426 tmp_addflag=' $pic_flag -Mnomain' ;;
14427 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14428 tmp_addflag=' -i_dynamic' ;;
14429 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14430 tmp_addflag=' -i_dynamic -nofor_main' ;;
14431 ifc* | ifort*) # Intel Fortran compiler
14432 tmp_addflag=' -nofor_main' ;;
14434 case `$CC -V 2>&1 | sed 5q` in
14435 *Sun\ C*) # Sun C 5.9
14436 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14437 tmp_sharedflag='-G' ;;
14438 *Sun\ F*) # Sun Fortran 8.3
14439 tmp_sharedflag='-G' ;;
14441 tmp_sharedflag='-shared' ;;
14443 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14445 if test $supports_anon_versioning = yes; then
14446 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14447 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14448 $echo "local: *; };" >> $output_objdir/$libname.ver~
14449 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14457 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14458 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14461 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14462 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14467 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14471 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14472 *** create shared libraries on Solaris systems. Therefore, libtool
14473 *** is disabling shared libraries support. We urge you to upgrade GNU
14474 *** binutils to release 2.9.1 or newer. Another option is to modify
14475 *** your PATH or compiler configuration so that the native linker is
14476 *** used, and then restart.
14479 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14480 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14481 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14487 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14488 case `$LD -v 2>&1` in
14489 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14493 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14494 *** reliably create shared libraries on SCO systems. Therefore, libtool
14495 *** is disabling shared libraries support. We urge you to upgrade GNU
14496 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14497 *** your PATH or compiler configuration so that the native linker is
14498 *** used, and then restart.
14503 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14504 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14505 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14506 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14515 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14517 hardcode_direct_F77=yes
14518 hardcode_shlibpath_var_F77=no
14522 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14523 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14524 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14531 if test "$ld_shlibs_F77" = no; then
14533 hardcode_libdir_flag_spec_F77=
14534 export_dynamic_flag_spec_F77=
14535 whole_archive_flag_spec_F77=
14538 # PORTME fill in a description of your system's linker (not GNU ld)
14541 allow_undefined_flag_F77=unsupported
14542 always_export_symbols_F77=yes
14543 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'
14544 # Note: this linker hardcodes the directories in LIBPATH if there
14545 # are no directories specified by -L.
14546 hardcode_minus_L_F77=yes
14547 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14548 # Neither direct hardcoding nor static linking is supported with a
14550 hardcode_direct_F77=unsupported
14555 if test "$host_cpu" = ia64; then
14556 # On IA64, the linker does run time linking by default, so we don't
14557 # have to do anything special.
14558 aix_use_runtimelinking=no
14559 exp_sym_flag='-Bexport'
14562 # If we're using GNU nm, then we don't want the "-C" option.
14563 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14564 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14565 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'
14567 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'
14569 aix_use_runtimelinking=no
14571 # Test if we are trying to use run time linking or normal
14572 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14573 # need to do runtime linking.
14574 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14575 for ld_flag in $LDFLAGS; do
14576 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14577 aix_use_runtimelinking=yes
14584 exp_sym_flag='-bexport'
14585 no_entry_flag='-bnoentry'
14588 # When large executables or shared objects are built, AIX ld can
14589 # have problems creating the table of contents. If linking a library
14590 # or program results in "error TOC overflow" add -mminimal-toc to
14591 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14592 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14594 archive_cmds_F77=''
14595 hardcode_direct_F77=yes
14596 hardcode_libdir_separator_F77=':'
14597 link_all_deplibs_F77=yes
14599 if test "$GCC" = yes; then
14600 case $host_os in aix4.[012]|aix4.[012].*)
14601 # We only want to do this on AIX 4.2 and lower, the check
14602 # below for broken collect2 doesn't work under 4.3+
14603 collect2name=`${CC} -print-prog-name=collect2`
14604 if test -f "$collect2name" && \
14605 strings "$collect2name" | grep resolve_lib_name >/dev/null
14607 # We have reworked collect2
14610 # We have old collect2
14611 hardcode_direct_F77=unsupported
14612 # It fails to find uninstalled libraries when the uninstalled
14613 # path is not listed in the libpath. Setting hardcode_minus_L
14614 # to unsupported forces relinking
14615 hardcode_minus_L_F77=yes
14616 hardcode_libdir_flag_spec_F77='-L$libdir'
14617 hardcode_libdir_separator_F77=
14621 shared_flag='-shared'
14622 if test "$aix_use_runtimelinking" = yes; then
14623 shared_flag="$shared_flag "'${wl}-G'
14627 if test "$host_cpu" = ia64; then
14628 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14629 # chokes on -Wl,-G. The following line is correct:
14632 if test "$aix_use_runtimelinking" = yes; then
14633 shared_flag='${wl}-G'
14635 shared_flag='${wl}-bM:SRE'
14640 # It seems that -bexpall does not export symbols beginning with
14641 # underscore (_), so it is better to generate a list of symbols to export.
14642 always_export_symbols_F77=yes
14643 if test "$aix_use_runtimelinking" = yes; then
14644 # Warning - without using the other runtime loading flags (-brtl),
14645 # -berok will link without error, but may produce a broken library.
14646 allow_undefined_flag_F77='-berok'
14647 # Determine the default libpath from the value encoded in an empty executable.
14648 cat >conftest.$ac_ext <<_ACEOF
14653 rm -f conftest.$ac_objext conftest$ac_exeext
14654 if { (ac_try="$ac_link"
14655 case "(($ac_try" in
14656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14657 *) ac_try_echo=$ac_try;;
14659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14660 (eval "$ac_link") 2>conftest.er1
14662 grep -v '^ *+' conftest.er1 >conftest.err
14664 cat conftest.err >&5
14665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666 (exit $ac_status); } && {
14667 test -z "$ac_f77_werror_flag" ||
14668 test ! -s conftest.err
14669 } && test -s conftest$ac_exeext &&
14670 $as_test_x conftest$ac_exeext; then
14672 lt_aix_libpath_sed='
14673 /Import File Strings/,/^$/ {
14679 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14680 # Check for a 64-bit object if we didn't find anything.
14681 if test -z "$aix_libpath"; then
14682 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14685 echo "$as_me: failed program was:" >&5
14686 sed 's/^/| /' conftest.$ac_ext >&5
14691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14692 conftest$ac_exeext conftest.$ac_ext
14693 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14695 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14696 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"
14698 if test "$host_cpu" = ia64; then
14699 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14700 allow_undefined_flag_F77="-z nodefs"
14701 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"
14703 # Determine the default libpath from the value encoded in an empty executable.
14704 cat >conftest.$ac_ext <<_ACEOF
14709 rm -f conftest.$ac_objext conftest$ac_exeext
14710 if { (ac_try="$ac_link"
14711 case "(($ac_try" in
14712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14713 *) ac_try_echo=$ac_try;;
14715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14716 (eval "$ac_link") 2>conftest.er1
14718 grep -v '^ *+' conftest.er1 >conftest.err
14720 cat conftest.err >&5
14721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722 (exit $ac_status); } && {
14723 test -z "$ac_f77_werror_flag" ||
14724 test ! -s conftest.err
14725 } && test -s conftest$ac_exeext &&
14726 $as_test_x conftest$ac_exeext; then
14728 lt_aix_libpath_sed='
14729 /Import File Strings/,/^$/ {
14735 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14736 # Check for a 64-bit object if we didn't find anything.
14737 if test -z "$aix_libpath"; then
14738 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14741 echo "$as_me: failed program was:" >&5
14742 sed 's/^/| /' conftest.$ac_ext >&5
14747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14748 conftest$ac_exeext conftest.$ac_ext
14749 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14751 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14752 # Warning - without using the other run time loading flags,
14753 # -berok will link without error, but may produce a broken library.
14754 no_undefined_flag_F77=' ${wl}-bernotok'
14755 allow_undefined_flag_F77=' ${wl}-berok'
14756 # Exported symbols can be pulled into shared objects from archives
14757 whole_archive_flag_spec_F77='$convenience'
14758 archive_cmds_need_lc_F77=yes
14759 # This is similar to how AIX traditionally builds its shared libraries.
14760 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'
14766 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)'
14767 hardcode_libdir_flag_spec_F77='-L$libdir'
14768 hardcode_minus_L_F77=yes
14769 # see comment about different semantics on the GNU ld section
14774 export_dynamic_flag_spec_F77=-rdynamic
14777 cygwin* | mingw* | pw32*)
14778 # When not using gcc, we currently assume that we are using
14779 # Microsoft Visual C++.
14780 # hardcode_libdir_flag_spec is actually meaningless, as there is
14781 # no search path for DLLs.
14782 hardcode_libdir_flag_spec_F77=' '
14783 allow_undefined_flag_F77=unsupported
14784 # Tell ltmain to make .lib files, not .a files.
14786 # Tell ltmain to make .dll files, not .so files.
14788 # FIXME: Setting linknames here is a bad hack.
14789 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14790 # The linker will automatically build a .lib file if we build a DLL.
14791 old_archive_From_new_cmds_F77='true'
14792 # FIXME: Should let the user specify the lib program.
14793 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14794 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14795 enable_shared_with_static_runtimes_F77=yes
14798 darwin* | rhapsody*)
14800 rhapsody* | darwin1.[012])
14801 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14804 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14805 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14807 case ${MACOSX_DEPLOYMENT_TARGET} in
14809 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14812 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14818 archive_cmds_need_lc_F77=no
14819 hardcode_direct_F77=no
14820 hardcode_automatic_F77=yes
14821 hardcode_shlibpath_var_F77=unsupported
14822 whole_archive_flag_spec_F77=''
14823 link_all_deplibs_F77=yes
14824 if test "$GCC" = yes ; then
14825 output_verbose_link_cmd='echo'
14826 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14827 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14828 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14829 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}'
14830 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}'
14832 case $cc_basename in
14834 output_verbose_link_cmd='echo'
14835 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14836 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14837 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14838 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14839 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}'
14849 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14850 hardcode_libdir_flag_spec_F77='-L$libdir'
14851 hardcode_shlibpath_var_F77=no
14858 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14859 # support. Future versions do this automatically, but an explicit c++rt0.o
14860 # does not break anything, and helps significantly (at the cost of a little
14863 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14864 hardcode_libdir_flag_spec_F77='-R$libdir'
14865 hardcode_direct_F77=yes
14866 hardcode_shlibpath_var_F77=no
14869 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14871 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14872 hardcode_direct_F77=yes
14873 hardcode_minus_L_F77=yes
14874 hardcode_shlibpath_var_F77=no
14877 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14878 freebsd* | dragonfly*)
14879 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14880 hardcode_libdir_flag_spec_F77='-R$libdir'
14881 hardcode_direct_F77=yes
14882 hardcode_shlibpath_var_F77=no
14886 if test "$GCC" = yes; then
14887 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'
14889 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'
14891 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14892 hardcode_libdir_separator_F77=:
14893 hardcode_direct_F77=yes
14895 # hardcode_minus_L: Not really in the search PATH,
14896 # but as the default location of the library.
14897 hardcode_minus_L_F77=yes
14898 export_dynamic_flag_spec_F77='${wl}-E'
14902 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14903 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14905 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14907 if test "$with_gnu_ld" = no; then
14908 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14909 hardcode_libdir_separator_F77=:
14911 hardcode_direct_F77=yes
14912 export_dynamic_flag_spec_F77='${wl}-E'
14914 # hardcode_minus_L: Not really in the search PATH,
14915 # but as the default location of the library.
14916 hardcode_minus_L_F77=yes
14921 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14924 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14927 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14930 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14936 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14939 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14942 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14946 if test "$with_gnu_ld" = no; then
14947 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14948 hardcode_libdir_separator_F77=:
14952 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14953 hardcode_direct_F77=no
14954 hardcode_shlibpath_var_F77=no
14957 hardcode_direct_F77=yes
14958 export_dynamic_flag_spec_F77='${wl}-E'
14960 # hardcode_minus_L: Not really in the search PATH,
14961 # but as the default location of the library.
14962 hardcode_minus_L_F77=yes
14968 irix5* | irix6* | nonstopux*)
14969 if test "$GCC" = yes; then
14970 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'
14972 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'
14973 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14975 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14976 hardcode_libdir_separator_F77=:
14977 link_all_deplibs_F77=yes
14981 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14982 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14984 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14986 hardcode_libdir_flag_spec_F77='-R$libdir'
14987 hardcode_direct_F77=yes
14988 hardcode_shlibpath_var_F77=no
14992 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14993 hardcode_direct_F77=yes
14994 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14995 hardcode_libdir_separator_F77=:
14996 hardcode_shlibpath_var_F77=no
15000 if test -f /usr/libexec/ld.so; then
15001 hardcode_direct_F77=yes
15002 hardcode_shlibpath_var_F77=no
15003 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15004 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15005 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15006 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15007 export_dynamic_flag_spec_F77='${wl}-E'
15010 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15011 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15012 hardcode_libdir_flag_spec_F77='-R$libdir'
15015 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15016 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15026 hardcode_libdir_flag_spec_F77='-L$libdir'
15027 hardcode_minus_L_F77=yes
15028 allow_undefined_flag_F77=unsupported
15029 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'
15030 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15034 if test "$GCC" = yes; then
15035 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15036 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'
15038 allow_undefined_flag_F77=' -expect_unresolved \*'
15039 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'
15041 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15042 hardcode_libdir_separator_F77=:
15045 osf4* | osf5*) # as osf3* with the addition of -msym flag
15046 if test "$GCC" = yes; then
15047 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15048 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'
15049 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15051 allow_undefined_flag_F77=' -expect_unresolved \*'
15052 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'
15053 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~
15054 $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'
15056 # Both c and cxx compiler support -rpath directly
15057 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15059 hardcode_libdir_separator_F77=:
15063 no_undefined_flag_F77=' -z text'
15064 if test "$GCC" = yes; then
15066 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15067 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15068 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15071 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15072 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15073 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15075 hardcode_libdir_flag_spec_F77='-R$libdir'
15076 hardcode_shlibpath_var_F77=no
15078 solaris2.[0-5] | solaris2.[0-5].*) ;;
15080 # The compiler driver will combine and reorder linker options,
15081 # but understands `-z linker_flag'. GCC discards it without `$wl',
15082 # but is careful enough not to reorder.
15083 # Supported since Solaris 2.6 (maybe 2.5.1?)
15084 if test "$GCC" = yes; then
15085 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15087 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15091 link_all_deplibs_F77=yes
15095 if test "x$host_vendor" = xsequent; then
15096 # Use $CC to link under sequent, because it throws in some extra .o
15097 # files that make .init and .fini sections work.
15098 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15100 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15102 hardcode_libdir_flag_spec_F77='-L$libdir'
15103 hardcode_direct_F77=yes
15104 hardcode_minus_L_F77=yes
15105 hardcode_shlibpath_var_F77=no
15109 case $host_vendor in
15111 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15112 hardcode_direct_F77=yes # is this really true???
15115 ## LD is ld it makes a PLAMLIB
15116 ## CC just makes a GrossModule.
15117 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15118 reload_cmds_F77='$CC -r -o $output$reload_objs'
15119 hardcode_direct_F77=no
15122 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15123 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15126 runpath_var='LD_RUN_PATH'
15127 hardcode_shlibpath_var_F77=no
15131 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15132 hardcode_shlibpath_var_F77=no
15133 export_dynamic_flag_spec_F77='-Bexport'
15137 if test -d /usr/nec; then
15138 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15139 hardcode_shlibpath_var_F77=no
15140 runpath_var=LD_RUN_PATH
15141 hardcode_runpath_var=yes
15146 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15147 no_undefined_flag_F77='${wl}-z,text'
15148 archive_cmds_need_lc_F77=no
15149 hardcode_shlibpath_var_F77=no
15150 runpath_var='LD_RUN_PATH'
15152 if test "$GCC" = yes; then
15153 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15154 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15156 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15157 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15161 sysv5* | sco3.2v5* | sco5v6*)
15162 # Note: We can NOT use -z defs as we might desire, because we do not
15163 # link with -lc, and that would cause any symbols used from libc to
15164 # always be unresolved, which means just about no library would
15165 # ever link correctly. If we're not using GNU ld we use -z text
15166 # though, which does catch some bad symbols but isn't as heavy-handed
15168 no_undefined_flag_F77='${wl}-z,text'
15169 allow_undefined_flag_F77='${wl}-z,nodefs'
15170 archive_cmds_need_lc_F77=no
15171 hardcode_shlibpath_var_F77=no
15172 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15173 hardcode_libdir_separator_F77=':'
15174 link_all_deplibs_F77=yes
15175 export_dynamic_flag_spec_F77='${wl}-Bexport'
15176 runpath_var='LD_RUN_PATH'
15178 if test "$GCC" = yes; then
15179 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15180 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15182 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15183 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15188 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15189 hardcode_libdir_flag_spec_F77='-L$libdir'
15190 hardcode_shlibpath_var_F77=no
15199 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15200 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15201 test "$ld_shlibs_F77" = no && can_build_shared=no
15204 # Do we need to explicitly link libc?
15206 case "x$archive_cmds_need_lc_F77" in
15208 # Assume -lc should be added
15209 archive_cmds_need_lc_F77=yes
15211 if test "$enable_shared" = yes && test "$GCC" = yes; then
15212 case $archive_cmds_F77 in
15214 # FIXME: we may have to deal with multi-command sequences.
15217 # Test whether the compiler implicitly links with -lc since on some
15218 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15219 # to ld, don't add -lc before -lgcc.
15220 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15221 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15223 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15226 (eval $ac_compile) 2>&5
15228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229 (exit $ac_status); } 2>conftest.err; then
15232 libobjs=conftest.$ac_objext
15234 wl=$lt_prog_compiler_wl_F77
15235 pic_flag=$lt_prog_compiler_pic_F77
15241 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15242 allow_undefined_flag_F77=
15243 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15244 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247 (exit $ac_status); }
15249 archive_cmds_need_lc_F77=no
15251 archive_cmds_need_lc_F77=yes
15253 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15255 cat conftest.err 1>&5
15258 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15259 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15266 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15267 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15268 library_names_spec=
15269 libname_spec='lib$name'
15273 postuninstall_cmds=
15277 shlibpath_overrides_runpath=unknown
15279 dynamic_linker="$host_os ld.so"
15280 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15282 need_lib_prefix=unknown
15283 hardcode_into_libs=no
15285 # when you set need_version to no, make sure it does not cause -set_version
15286 # flags to be left without arguments
15287 need_version=unknown
15292 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15293 shlibpath_var=LIBPATH
15295 # AIX 3 has no versioning support, so we append a major version to the name.
15296 soname_spec='${libname}${release}${shared_ext}$major'
15303 hardcode_into_libs=yes
15304 if test "$host_cpu" = ia64; then
15305 # AIX 5 supports IA64
15306 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15307 shlibpath_var=LD_LIBRARY_PATH
15309 # With GCC up to 2.95.x, collect2 would create an import file
15310 # for dependence libraries. The import file would start with
15311 # the line `#! .'. This would cause the generated library to
15312 # depend on `.', always an invalid library. This was fixed in
15313 # development snapshots of GCC prior to 3.0.
15315 aix4 | aix4.[01] | aix4.[01].*)
15316 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15318 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15321 can_build_shared=no
15325 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15326 # soname into executable. Probably we can add versioning support to
15327 # collect2, so additional links can be useful in future.
15328 if test "$aix_use_runtimelinking" = yes; then
15329 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15330 # instead of lib<name>.a to let people know that these are not
15331 # typical AIX shared libraries.
15332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15334 # We preserve .a as extension for shared libraries through AIX4.2
15335 # and later when we are not doing run time linking.
15336 library_names_spec='${libname}${release}.a $libname.a'
15337 soname_spec='${libname}${release}${shared_ext}$major'
15339 shlibpath_var=LIBPATH
15344 library_names_spec='$libname.ixlibrary $libname.a'
15345 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15346 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'
15350 library_names_spec='${libname}${shared_ext}'
15351 dynamic_linker="$host_os ld.so"
15352 shlibpath_var=LIBRARY_PATH
15358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15359 soname_spec='${libname}${release}${shared_ext}$major'
15360 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15361 shlibpath_var=LD_LIBRARY_PATH
15362 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15363 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15364 # the default ld.so.conf also contains /usr/contrib/lib and
15365 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15366 # libtool to hard-code these into programs
15369 cygwin* | mingw* | pw32*)
15370 version_type=windows
15375 case $GCC,$host_os in
15376 yes,cygwin* | yes,mingw* | yes,pw32*)
15377 library_names_spec='$libname.dll.a'
15378 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15379 postinstall_cmds='base_file=`basename \${file}`~
15380 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15381 dldir=$destdir/`dirname \$dlpath`~
15382 test -d \$dldir || mkdir -p \$dldir~
15383 $install_prog $dir/$dlname \$dldir/$dlname~
15384 chmod a+x \$dldir/$dlname'
15385 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15386 dlpath=$dir/\$dldll~
15388 shlibpath_overrides_runpath=yes
15392 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15393 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15394 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15397 # MinGW DLLs use traditional 'lib' prefix
15398 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15399 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15400 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15401 # It is most probably a Windows format PATH printed by
15402 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15403 # path with ; separators, and with drive letters. We can handle the
15404 # drive letters (cygwin fileutils understands them), so leave them,
15405 # especially as we might pass files found there to a mingw objdump,
15406 # which wouldn't understand a cygwinified path. Ahh.
15407 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15409 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15413 # pw32 DLLs use 'pw' prefix rather than 'lib'
15414 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15420 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15423 dynamic_linker='Win32 ld.exe'
15424 # FIXME: first we should search . and the directory the executable is in
15428 darwin* | rhapsody*)
15429 dynamic_linker="$host_os dyld"
15430 version_type=darwin
15433 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15434 soname_spec='${libname}${release}${major}$shared_ext'
15435 shlibpath_overrides_runpath=yes
15436 shlibpath_var=DYLD_LIBRARY_PATH
15437 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15439 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15447 soname_spec='${libname}${release}${shared_ext}$major'
15448 shlibpath_var=LD_LIBRARY_PATH
15455 freebsd* | dragonfly*)
15456 # DragonFly does not have aout. When/if they implement a new
15457 # versioning mechanism, adjust this.
15458 if test -x /usr/bin/objformat; then
15459 objformat=`/usr/bin/objformat`
15462 freebsd[123]*) objformat=aout ;;
15463 *) objformat=elf ;;
15466 version_type=freebsd-$objformat
15467 case $version_type in
15469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15474 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15478 shlibpath_var=LD_LIBRARY_PATH
15481 shlibpath_overrides_runpath=yes
15483 freebsd3.[01]* | freebsdelf3.[01]*)
15484 shlibpath_overrides_runpath=yes
15485 hardcode_into_libs=yes
15487 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15488 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15489 shlibpath_overrides_runpath=no
15490 hardcode_into_libs=yes
15492 *) # from 4.6 on, and DragonFly
15493 shlibpath_overrides_runpath=yes
15494 hardcode_into_libs=yes
15503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15504 soname_spec='${libname}${release}${shared_ext}$major'
15505 shlibpath_var=LD_LIBRARY_PATH
15506 hardcode_into_libs=yes
15509 hpux9* | hpux10* | hpux11*)
15510 # Give a soname corresponding to the major version so that dld.sl refuses to
15511 # link against other versions.
15518 hardcode_into_libs=yes
15519 dynamic_linker="$host_os dld.so"
15520 shlibpath_var=LD_LIBRARY_PATH
15521 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15523 soname_spec='${libname}${release}${shared_ext}$major'
15524 if test "X$HPUX_IA64_MODE" = X32; then
15525 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15527 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15529 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15533 hardcode_into_libs=yes
15534 dynamic_linker="$host_os dld.sl"
15535 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15536 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15538 soname_spec='${libname}${release}${shared_ext}$major'
15539 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15540 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15544 dynamic_linker="$host_os dld.sl"
15545 shlibpath_var=SHLIB_PATH
15546 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15548 soname_spec='${libname}${release}${shared_ext}$major'
15551 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15552 postinstall_cmds='chmod 555 $lib'
15559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15560 soname_spec='${libname}${release}${shared_ext}$major'
15561 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15562 shlibpath_var=LD_LIBRARY_PATH
15563 shlibpath_overrides_runpath=no
15564 hardcode_into_libs=yes
15567 irix5* | irix6* | nonstopux*)
15569 nonstopux*) version_type=nonstopux ;;
15571 if test "$lt_cv_prog_gnu_ld" = yes; then
15579 soname_spec='${libname}${release}${shared_ext}$major'
15580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15582 irix5* | nonstopux*)
15583 libsuff= shlibsuff=
15586 case $LD in # libtool.m4 will add one of these switches to LD
15587 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15588 libsuff= shlibsuff= libmagic=32-bit;;
15589 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15590 libsuff=32 shlibsuff=N32 libmagic=N32;;
15591 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15592 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15593 *) libsuff= shlibsuff= libmagic=never-match;;
15597 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15598 shlibpath_overrides_runpath=no
15599 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15600 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15601 hardcode_into_libs=yes
15604 # No shared lib support for Linux oldld, aout, or coff.
15605 linux*oldld* | linux*aout* | linux*coff*)
15609 # This must be Linux ELF.
15610 linux* | k*bsd*-gnu)
15614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15615 soname_spec='${libname}${release}${shared_ext}$major'
15616 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15617 shlibpath_var=LD_LIBRARY_PATH
15618 shlibpath_overrides_runpath=no
15619 # This implies no fast_install, which is unacceptable.
15620 # Some rework will be needed to allow for fast_install
15621 # before this can be enabled.
15622 hardcode_into_libs=yes
15623 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15624 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15626 # Append ld.so.conf contents to the search path
15627 if test -f /etc/ld.so.conf; then
15628 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15629 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15632 # We used to test for /lib/ld.so.1 and disable shared libraries on
15633 # powerpc, because MkLinux only supported shared libraries with the
15634 # GNU dynamic linker. Since this was broken with cross compilers,
15635 # most powerpc-linux boxes support dynamic linking these days and
15636 # people can always --disable-shared, the test was removed, and we
15637 # assume the GNU/Linux dynamic linker is in use.
15638 dynamic_linker='GNU/Linux ld.so'
15645 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15647 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15648 dynamic_linker='NetBSD (a.out) ld.so'
15650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15651 soname_spec='${libname}${release}${shared_ext}$major'
15652 dynamic_linker='NetBSD ld.elf_so'
15654 shlibpath_var=LD_LIBRARY_PATH
15655 shlibpath_overrides_runpath=yes
15656 hardcode_into_libs=yes
15661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15662 shlibpath_var=LD_LIBRARY_PATH
15663 shlibpath_overrides_runpath=yes
15670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15671 soname_spec='${libname}${release}${shared_ext}$major'
15672 shlibpath_var=LD_LIBRARY_PATH
15673 shlibpath_overrides_runpath=yes
15678 sys_lib_dlsearch_path_spec="/usr/lib"
15680 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15682 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15683 *) need_version=no ;;
15685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15686 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15687 shlibpath_var=LD_LIBRARY_PATH
15688 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15690 openbsd2.[89] | openbsd2.[89].*)
15691 shlibpath_overrides_runpath=no
15694 shlibpath_overrides_runpath=yes
15698 shlibpath_overrides_runpath=yes
15703 libname_spec='$name'
15706 library_names_spec='$libname${shared_ext} $libname.a'
15707 dynamic_linker='OS/2 ld.exe'
15708 shlibpath_var=LIBPATH
15711 osf3* | osf4* | osf5*)
15715 soname_spec='${libname}${release}${shared_ext}$major'
15716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15717 shlibpath_var=LD_LIBRARY_PATH
15718 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15719 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15731 soname_spec='${libname}${release}${shared_ext}$major'
15732 shlibpath_var=LD_LIBRARY_PATH
15733 shlibpath_overrides_runpath=yes
15734 hardcode_into_libs=yes
15735 # ldd complains unless libraries are executable
15736 postinstall_cmds='chmod +x $lib'
15741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15742 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15743 shlibpath_var=LD_LIBRARY_PATH
15744 shlibpath_overrides_runpath=yes
15745 if test "$with_gnu_ld" = yes; then
15753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15754 soname_spec='${libname}${release}${shared_ext}$major'
15755 shlibpath_var=LD_LIBRARY_PATH
15756 case $host_vendor in
15758 shlibpath_overrides_runpath=no
15760 export_dynamic_flag_spec='${wl}-Blargedynsym'
15761 runpath_var=LD_RUN_PATH
15769 shlibpath_overrides_runpath=no
15770 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15776 if test -d /usr/nec ;then
15778 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15779 soname_spec='$libname${shared_ext}.$major'
15780 shlibpath_var=LD_LIBRARY_PATH
15784 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15785 version_type=freebsd-elf
15788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15789 soname_spec='${libname}${release}${shared_ext}$major'
15790 shlibpath_var=LD_LIBRARY_PATH
15791 hardcode_into_libs=yes
15792 if test "$with_gnu_ld" = yes; then
15793 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15794 shlibpath_overrides_runpath=no
15796 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15797 shlibpath_overrides_runpath=yes
15800 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15804 sys_lib_dlsearch_path_spec='/usr/lib'
15809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15810 soname_spec='${libname}${release}${shared_ext}$major'
15811 shlibpath_var=LD_LIBRARY_PATH
15818 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15819 echo "${ECHO_T}$dynamic_linker" >&6; }
15820 test "$dynamic_linker" = no && can_build_shared=no
15822 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15823 if test "$GCC" = yes; then
15824 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15827 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15828 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15829 hardcode_action_F77=
15830 if test -n "$hardcode_libdir_flag_spec_F77" || \
15831 test -n "$runpath_var_F77" || \
15832 test "X$hardcode_automatic_F77" = "Xyes" ; then
15834 # We can hardcode non-existant directories.
15835 if test "$hardcode_direct_F77" != no &&
15836 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15837 # have to relink, otherwise we might link with an installed library
15838 # when we should be linking with a yet-to-be-installed one
15839 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15840 test "$hardcode_minus_L_F77" != no; then
15841 # Linking always hardcodes the temporary library directory.
15842 hardcode_action_F77=relink
15844 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15845 hardcode_action_F77=immediate
15848 # We cannot hardcode anything, or else we can only hardcode existing
15850 hardcode_action_F77=unsupported
15852 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15853 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15855 if test "$hardcode_action_F77" = relink; then
15856 # Fast installation is not supported
15857 enable_fast_install=no
15858 elif test "$shlibpath_overrides_runpath" = yes ||
15859 test "$enable_shared" = no; then
15860 # Fast installation is not necessary
15861 enable_fast_install=needless
15865 # The else clause should only fire when bootstrapping the
15866 # libtool distribution, otherwise you forgot to ship ltmain.sh
15867 # with your package, and you will get complaints that there are
15868 # no rules to generate ltmain.sh.
15869 if test -f "$ltmain"; then
15870 # See if we are running on zsh, and set the options which allow our commands through
15871 # without removal of \ escapes.
15872 if test -n "${ZSH_VERSION+set}" ; then
15873 setopt NO_GLOB_SUBST
15875 # Now quote all the things that may contain metacharacters while being
15876 # careful not to overquote the AC_SUBSTed values. We take copies of the
15877 # variables and quote the copies for generation of the libtool script.
15878 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15880 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15881 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15882 deplibs_check_method reload_flag reload_cmds need_locks \
15883 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15884 lt_cv_sys_global_symbol_to_c_name_address \
15885 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15886 old_postinstall_cmds old_postuninstall_cmds \
15890 lt_prog_compiler_wl_F77 \
15891 lt_prog_compiler_pic_F77 \
15892 lt_prog_compiler_static_F77 \
15893 lt_prog_compiler_no_builtin_flag_F77 \
15894 export_dynamic_flag_spec_F77 \
15895 thread_safe_flag_spec_F77 \
15896 whole_archive_flag_spec_F77 \
15897 enable_shared_with_static_runtimes_F77 \
15898 old_archive_cmds_F77 \
15899 old_archive_from_new_cmds_F77 \
15900 predep_objects_F77 \
15901 postdep_objects_F77 \
15904 compiler_lib_search_path_F77 \
15906 archive_expsym_cmds_F77 \
15907 postinstall_cmds_F77 \
15908 postuninstall_cmds_F77 \
15909 old_archive_from_expsyms_cmds_F77 \
15910 allow_undefined_flag_F77 \
15911 no_undefined_flag_F77 \
15912 export_symbols_cmds_F77 \
15913 hardcode_libdir_flag_spec_F77 \
15914 hardcode_libdir_flag_spec_ld_F77 \
15915 hardcode_libdir_separator_F77 \
15916 hardcode_automatic_F77 \
15918 module_expsym_cmds_F77 \
15919 lt_cv_prog_compiler_c_o_F77 \
15920 fix_srcfile_path_F77 \
15921 exclude_expsyms_F77 \
15922 include_expsyms_F77; do
15925 old_archive_cmds_F77 | \
15926 old_archive_from_new_cmds_F77 | \
15927 archive_cmds_F77 | \
15928 archive_expsym_cmds_F77 | \
15929 module_cmds_F77 | \
15930 module_expsym_cmds_F77 | \
15931 old_archive_from_expsyms_cmds_F77 | \
15932 export_symbols_cmds_F77 | \
15933 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15934 postinstall_cmds | postuninstall_cmds | \
15935 old_postinstall_cmds | old_postuninstall_cmds | \
15936 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15937 # Double-quote double-evaled strings.
15938 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15941 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15947 *'\$0 --fallback-echo"')
15948 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15954 cat <<__EOF__ >> "$cfgfile"
15955 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15957 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15959 # Shell to use when invoking shell scripts.
15962 # Whether or not to build shared libraries.
15963 build_libtool_libs=$enable_shared
15965 # Whether or not to build static libraries.
15966 build_old_libs=$enable_static
15968 # Whether or not to add -lc for building shared libraries.
15969 build_libtool_need_lc=$archive_cmds_need_lc_F77
15971 # Whether or not to disallow shared libs when runtime libs are static
15972 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15974 # Whether or not to optimize for fast installation.
15975 fast_install=$enable_fast_install
15978 host_alias=$host_alias
15982 # The build system.
15983 build_alias=$build_alias
15987 # An echo program that does not interpret backslashes.
15992 AR_FLAGS=$lt_AR_FLAGS
15997 # LTCC compiler flags.
15998 LTCFLAGS=$lt_LTCFLAGS
16000 # A language-specific compiler.
16001 CC=$lt_compiler_F77
16003 # Is the compiler the GNU C compiler?
16009 # The linker used to build libraries.
16012 # Whether we need hard or soft links.
16015 # A BSD-compatible nm program.
16018 # A symbol stripping program
16021 # Used to examine libraries when file_magic_cmd begins "file"
16022 MAGIC_CMD=$MAGIC_CMD
16024 # Used on cygwin: DLL creation program.
16027 # Used on cygwin: object dumper.
16030 # Used on cygwin: assembler.
16033 # The name of the directory that contains temporary libtool files.
16036 # How to create reloadable object files.
16037 reload_flag=$lt_reload_flag
16038 reload_cmds=$lt_reload_cmds
16040 # How to pass a linker flag through the compiler.
16041 wl=$lt_lt_prog_compiler_wl_F77
16043 # Object file suffix (normally "o").
16044 objext="$ac_objext"
16046 # Old archive suffix (normally "a").
16049 # Shared library suffix (normally ".so").
16050 shrext_cmds='$shrext_cmds'
16052 # Executable file suffix (normally "").
16055 # Additional compiler flags for building library objects.
16056 pic_flag=$lt_lt_prog_compiler_pic_F77
16059 # What is the maximum length of a command?
16060 max_cmd_len=$lt_cv_sys_max_cmd_len
16062 # Does compiler simultaneously support -c and -o options?
16063 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16065 # Must we lock files when doing compilation?
16066 need_locks=$lt_need_locks
16068 # Do we need the lib prefix for modules?
16069 need_lib_prefix=$need_lib_prefix
16071 # Do we need a version for libraries?
16072 need_version=$need_version
16074 # Whether dlopen is supported.
16075 dlopen_support=$enable_dlopen
16077 # Whether dlopen of programs is supported.
16078 dlopen_self=$enable_dlopen_self
16080 # Whether dlopen of statically linked programs is supported.
16081 dlopen_self_static=$enable_dlopen_self_static
16083 # Compiler flag to prevent dynamic linking.
16084 link_static_flag=$lt_lt_prog_compiler_static_F77
16086 # Compiler flag to turn off builtin functions.
16087 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16089 # Compiler flag to allow reflexive dlopens.
16090 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16092 # Compiler flag to generate shared objects directly from archives.
16093 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16095 # Compiler flag to generate thread-safe objects.
16096 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16098 # Library versioning type.
16099 version_type=$version_type
16101 # Format of library name prefix.
16102 libname_spec=$lt_libname_spec
16104 # List of archive names. First name is the real one, the rest are links.
16105 # The last name is the one that the linker finds with -lNAME.
16106 library_names_spec=$lt_library_names_spec
16108 # The coded name of the library, if different from the real name.
16109 soname_spec=$lt_soname_spec
16111 # Commands used to build and install an old-style archive.
16113 old_archive_cmds=$lt_old_archive_cmds_F77
16114 old_postinstall_cmds=$lt_old_postinstall_cmds
16115 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16117 # Create an old-style archive from a shared archive.
16118 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16120 # Create a temporary old-style archive to link instead of a shared archive.
16121 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16123 # Commands used to build and install a shared archive.
16124 archive_cmds=$lt_archive_cmds_F77
16125 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16126 postinstall_cmds=$lt_postinstall_cmds
16127 postuninstall_cmds=$lt_postuninstall_cmds
16129 # Commands used to build a loadable module (assumed same as above if empty)
16130 module_cmds=$lt_module_cmds_F77
16131 module_expsym_cmds=$lt_module_expsym_cmds_F77
16133 # Commands to strip libraries.
16134 old_striplib=$lt_old_striplib
16135 striplib=$lt_striplib
16137 # Dependencies to place before the objects being linked to create a
16139 predep_objects=$lt_predep_objects_F77
16141 # Dependencies to place after the objects being linked to create a
16143 postdep_objects=$lt_postdep_objects_F77
16145 # Dependencies to place before the objects being linked to create a
16147 predeps=$lt_predeps_F77
16149 # Dependencies to place after the objects being linked to create a
16151 postdeps=$lt_postdeps_F77
16153 # The library search path used internally by the compiler when linking
16154 # a shared library.
16155 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16157 # Method to check whether dependent libraries are shared objects.
16158 deplibs_check_method=$lt_deplibs_check_method
16160 # Command to use when deplibs_check_method == file_magic.
16161 file_magic_cmd=$lt_file_magic_cmd
16163 # Flag that allows shared libraries with undefined symbols to be built.
16164 allow_undefined_flag=$lt_allow_undefined_flag_F77
16166 # Flag that forces no undefined symbols.
16167 no_undefined_flag=$lt_no_undefined_flag_F77
16169 # Commands used to finish a libtool library installation in a directory.
16170 finish_cmds=$lt_finish_cmds
16172 # Same as above, but a single script fragment to be evaled but not shown.
16173 finish_eval=$lt_finish_eval
16175 # Take the output of nm and produce a listing of raw symbols and C names.
16176 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16178 # Transform the output of nm in a proper C declaration
16179 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16181 # Transform the output of nm in a C name address pair
16182 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16184 # This is the shared library runtime path variable.
16185 runpath_var=$runpath_var
16187 # This is the shared library path variable.
16188 shlibpath_var=$shlibpath_var
16190 # Is shlibpath searched before the hard-coded library search path?
16191 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16193 # How to hardcode a shared library path into an executable.
16194 hardcode_action=$hardcode_action_F77
16196 # Whether we should hardcode library paths into libraries.
16197 hardcode_into_libs=$hardcode_into_libs
16199 # Flag to hardcode \$libdir into a binary during linking.
16200 # This must work even if \$libdir does not exist.
16201 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16203 # If ld is used when linking, flag to hardcode \$libdir into
16204 # a binary during linking. This must work even if \$libdir does
16206 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16208 # Whether we need a single -rpath flag with a separated argument.
16209 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16211 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16212 # resulting binary.
16213 hardcode_direct=$hardcode_direct_F77
16215 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16216 # resulting binary.
16217 hardcode_minus_L=$hardcode_minus_L_F77
16219 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16220 # the resulting binary.
16221 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16223 # Set to yes if building a shared library automatically hardcodes DIR into the library
16224 # and all subsequent libraries and executables linked against it.
16225 hardcode_automatic=$hardcode_automatic_F77
16227 # Variables whose values should be saved in libtool wrapper scripts and
16228 # restored at relink time.
16229 variables_saved_for_relink="$variables_saved_for_relink"
16231 # Whether libtool must link a program against all its dependency libraries.
16232 link_all_deplibs=$link_all_deplibs_F77
16234 # Compile-time system search path for libraries
16235 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16237 # Run-time system search path for libraries
16238 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16240 # Fix the shell variable \$srcfile for the compiler.
16241 fix_srcfile_path=$lt_fix_srcfile_path
16243 # Set to yes if exported symbols are required.
16244 always_export_symbols=$always_export_symbols_F77
16246 # The commands to list exported symbols.
16247 export_symbols_cmds=$lt_export_symbols_cmds_F77
16249 # The commands to extract the exported symbol list from a shared archive.
16250 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16252 # Symbols that should not be listed in the preloaded symbols.
16253 exclude_expsyms=$lt_exclude_expsyms_F77
16255 # Symbols that must always be exported.
16256 include_expsyms=$lt_include_expsyms_F77
16258 # ### END LIBTOOL TAG CONFIG: $tagname
16264 # If there is no Makefile yet, we rely on a make rule to execute
16265 # `config.status --recheck' to rerun these tests and create the
16266 # libtool script then.
16267 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16268 if test -f "$ltmain_in"; then
16269 test -f Makefile && make "$ltmain"
16275 ac_cpp='$CPP $CPPFLAGS'
16276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16288 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16291 # Source file extension for Java test sources.
16294 # Object file extension for compiled Java test sources.
16298 # Code to be used in simple compile tests
16299 lt_simple_compile_test_code="class foo {}"
16301 # Code to be used in simple link tests
16302 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16304 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16306 # If no C compiler was specified, use CC.
16309 # If no C compiler flags were specified, use CFLAGS.
16310 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16312 # Allow CC to be a program name with arguments.
16316 # save warnings/boilerplate of simple test code
16317 ac_outfile=conftest.$ac_objext
16318 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16319 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16320 _lt_compiler_boilerplate=`cat conftest.err`
16323 ac_outfile=conftest.$ac_objext
16324 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16325 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16326 _lt_linker_boilerplate=`cat conftest.err`
16330 # Allow CC to be a program name with arguments.
16335 for cc_temp in $compiler""; do
16337 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16338 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16343 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16346 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16347 archive_cmds_need_lc_GCJ=no
16349 old_archive_cmds_GCJ=$old_archive_cmds
16352 ## There is no encapsulation within the following macros, do not change
16353 ## the running order or otherwise move them around unless you know exactly
16354 ## what you are doing...
16356 lt_prog_compiler_no_builtin_flag_GCJ=
16358 if test "$GCC" = yes; then
16359 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16362 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16363 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16364 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16365 echo $ECHO_N "(cached) $ECHO_C" >&6
16367 lt_cv_prog_compiler_rtti_exceptions=no
16368 ac_outfile=conftest.$ac_objext
16369 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16370 lt_compiler_flag="-fno-rtti -fno-exceptions"
16371 # Insert the option either (1) after the last *FLAGS variable, or
16372 # (2) before a word containing "conftest.", or (3) at the end.
16373 # Note that $ac_compile itself does not contain backslashes and begins
16374 # with a dollar sign (not a hyphen), so the echo should work correctly.
16375 # The option is referenced via a variable to avoid confusing sed.
16376 lt_compile=`echo "$ac_compile" | $SED \
16377 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16378 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16379 -e 's:$: $lt_compiler_flag:'`
16380 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16381 (eval "$lt_compile" 2>conftest.err)
16383 cat conftest.err >&5
16384 echo "$as_me:__oline__: \$? = $ac_status" >&5
16385 if (exit $ac_status) && test -s "$ac_outfile"; then
16386 # The compiler can only warn and ignore the option if not recognized
16387 # So say no if there are warnings other than the usual output.
16388 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16389 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16390 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16391 lt_cv_prog_compiler_rtti_exceptions=yes
16397 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16398 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16400 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16401 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16408 lt_prog_compiler_wl_GCJ=
16409 lt_prog_compiler_pic_GCJ=
16410 lt_prog_compiler_static_GCJ=
16412 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16413 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16415 if test "$GCC" = yes; then
16416 lt_prog_compiler_wl_GCJ='-Wl,'
16417 lt_prog_compiler_static_GCJ='-static'
16421 # All AIX code is PIC.
16422 if test "$host_cpu" = ia64; then
16423 # AIX 5 now supports IA64 processor
16424 lt_prog_compiler_static_GCJ='-Bstatic'
16429 # FIXME: we need at least 68020 code to build shared libraries, but
16430 # adding the `-m68020' flag to GCC prevents building anything better,
16432 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16435 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16436 # PIC is the default for these OSes.
16439 mingw* | cygwin* | pw32* | os2*)
16440 # This hack is so that the source file can tell whether it is being
16441 # built for inclusion in a dll (and should export symbols for example).
16442 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16443 # (--disable-auto-import) libraries
16444 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16447 darwin* | rhapsody*)
16448 # PIC is the default on this platform
16449 # Common symbols not allowed in MH_DYLIB files
16450 lt_prog_compiler_pic_GCJ='-fno-common'
16454 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16455 # Instead, we relocate shared libraries at runtime.
16459 # Just because we use GCC doesn't mean we suddenly get shared libraries
16460 # on systems that don't support them.
16461 lt_prog_compiler_can_build_shared_GCJ=no
16466 if test -d /usr/nec; then
16467 lt_prog_compiler_pic_GCJ=-Kconform_pic
16472 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16473 # not for PA HP-UX.
16479 lt_prog_compiler_pic_GCJ='-fPIC'
16485 lt_prog_compiler_pic_GCJ='-fPIC'
16489 # PORTME Check for flag to pass linker flags through the system compiler.
16492 lt_prog_compiler_wl_GCJ='-Wl,'
16493 if test "$host_cpu" = ia64; then
16494 # AIX 5 now supports IA64 processor
16495 lt_prog_compiler_static_GCJ='-Bstatic'
16497 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16501 # PIC is the default on this platform
16502 # Common symbols not allowed in MH_DYLIB files
16503 case $cc_basename in
16505 lt_prog_compiler_pic_GCJ='-qnocommon'
16506 lt_prog_compiler_wl_GCJ='-Wl,'
16511 mingw* | cygwin* | pw32* | os2*)
16512 # This hack is so that the source file can tell whether it is being
16513 # built for inclusion in a dll (and should export symbols for example).
16514 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16517 hpux9* | hpux10* | hpux11*)
16518 lt_prog_compiler_wl_GCJ='-Wl,'
16519 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16520 # not for PA HP-UX.
16526 lt_prog_compiler_pic_GCJ='+Z'
16529 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16530 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16533 irix5* | irix6* | nonstopux*)
16534 lt_prog_compiler_wl_GCJ='-Wl,'
16535 # PIC (with -KPIC) is the default.
16536 lt_prog_compiler_static_GCJ='-non_shared'
16540 lt_prog_compiler_pic_GCJ='-KPIC'
16541 lt_prog_compiler_static_GCJ='-Bstatic'
16544 linux* | k*bsd*-gnu)
16545 case $cc_basename in
16547 lt_prog_compiler_wl_GCJ='-Wl,'
16548 lt_prog_compiler_pic_GCJ='-KPIC'
16549 lt_prog_compiler_static_GCJ='-static'
16551 pgcc* | pgf77* | pgf90* | pgf95*)
16552 # Portland Group compilers (*not* the Pentium gcc compiler,
16553 # which looks to be a dead project)
16554 lt_prog_compiler_wl_GCJ='-Wl,'
16555 lt_prog_compiler_pic_GCJ='-fpic'
16556 lt_prog_compiler_static_GCJ='-Bstatic'
16559 lt_prog_compiler_wl_GCJ='-Wl,'
16560 # All Alpha code is PIC.
16561 lt_prog_compiler_static_GCJ='-non_shared'
16564 case `$CC -V 2>&1 | sed 5q` in
16567 lt_prog_compiler_pic_GCJ='-KPIC'
16568 lt_prog_compiler_static_GCJ='-Bstatic'
16569 lt_prog_compiler_wl_GCJ='-Wl,'
16572 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16573 lt_prog_compiler_pic_GCJ='-KPIC'
16574 lt_prog_compiler_static_GCJ='-Bstatic'
16575 lt_prog_compiler_wl_GCJ=''
16582 osf3* | osf4* | osf5*)
16583 lt_prog_compiler_wl_GCJ='-Wl,'
16584 # All OSF/1 code is PIC.
16585 lt_prog_compiler_static_GCJ='-non_shared'
16589 lt_prog_compiler_static_GCJ='-non_shared'
16593 lt_prog_compiler_pic_GCJ='-KPIC'
16594 lt_prog_compiler_static_GCJ='-Bstatic'
16595 case $cc_basename in
16596 f77* | f90* | f95*)
16597 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16599 lt_prog_compiler_wl_GCJ='-Wl,';;
16604 lt_prog_compiler_wl_GCJ='-Qoption ld '
16605 lt_prog_compiler_pic_GCJ='-PIC'
16606 lt_prog_compiler_static_GCJ='-Bstatic'
16609 sysv4 | sysv4.2uw2* | sysv4.3*)
16610 lt_prog_compiler_wl_GCJ='-Wl,'
16611 lt_prog_compiler_pic_GCJ='-KPIC'
16612 lt_prog_compiler_static_GCJ='-Bstatic'
16616 if test -d /usr/nec ;then
16617 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16618 lt_prog_compiler_static_GCJ='-Bstatic'
16622 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16623 lt_prog_compiler_wl_GCJ='-Wl,'
16624 lt_prog_compiler_pic_GCJ='-KPIC'
16625 lt_prog_compiler_static_GCJ='-Bstatic'
16629 lt_prog_compiler_wl_GCJ='-Wl,'
16630 lt_prog_compiler_can_build_shared_GCJ=no
16634 lt_prog_compiler_pic_GCJ='-pic'
16635 lt_prog_compiler_static_GCJ='-Bstatic'
16639 lt_prog_compiler_can_build_shared_GCJ=no
16644 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16645 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16648 # Check to make sure the PIC flag actually works.
16650 if test -n "$lt_prog_compiler_pic_GCJ"; then
16652 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16653 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16654 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16655 echo $ECHO_N "(cached) $ECHO_C" >&6
16657 lt_prog_compiler_pic_works_GCJ=no
16658 ac_outfile=conftest.$ac_objext
16659 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16660 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16661 # Insert the option either (1) after the last *FLAGS variable, or
16662 # (2) before a word containing "conftest.", or (3) at the end.
16663 # Note that $ac_compile itself does not contain backslashes and begins
16664 # with a dollar sign (not a hyphen), so the echo should work correctly.
16665 # The option is referenced via a variable to avoid confusing sed.
16666 lt_compile=`echo "$ac_compile" | $SED \
16667 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16668 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16669 -e 's:$: $lt_compiler_flag:'`
16670 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16671 (eval "$lt_compile" 2>conftest.err)
16673 cat conftest.err >&5
16674 echo "$as_me:__oline__: \$? = $ac_status" >&5
16675 if (exit $ac_status) && test -s "$ac_outfile"; then
16676 # The compiler can only warn and ignore the option if not recognized
16677 # So say no if there are warnings other than the usual output.
16678 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16679 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16680 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16681 lt_prog_compiler_pic_works_GCJ=yes
16687 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16688 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16690 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16691 case $lt_prog_compiler_pic_GCJ in
16693 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16696 lt_prog_compiler_pic_GCJ=
16697 lt_prog_compiler_can_build_shared_GCJ=no
16702 # For platforms which do not support PIC, -DPIC is meaningless:
16704 lt_prog_compiler_pic_GCJ=
16707 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16712 # Check to make sure the static flag actually works.
16714 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16715 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16716 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16717 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16718 echo $ECHO_N "(cached) $ECHO_C" >&6
16720 lt_prog_compiler_static_works_GCJ=no
16721 save_LDFLAGS="$LDFLAGS"
16722 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16723 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16724 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16725 # The linker can only warn and ignore the option if not recognized
16726 # So say no if there are warnings
16727 if test -s conftest.err; then
16728 # Append any errors to the config.log.
16729 cat conftest.err 1>&5
16730 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16731 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16732 if diff conftest.exp conftest.er2 >/dev/null; then
16733 lt_prog_compiler_static_works_GCJ=yes
16736 lt_prog_compiler_static_works_GCJ=yes
16740 LDFLAGS="$save_LDFLAGS"
16743 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16744 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16746 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16749 lt_prog_compiler_static_GCJ=
16753 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16754 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16755 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16756 echo $ECHO_N "(cached) $ECHO_C" >&6
16758 lt_cv_prog_compiler_c_o_GCJ=no
16759 $rm -r conftest 2>/dev/null
16763 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16765 lt_compiler_flag="-o out/conftest2.$ac_objext"
16766 # Insert the option either (1) after the last *FLAGS variable, or
16767 # (2) before a word containing "conftest.", or (3) at the end.
16768 # Note that $ac_compile itself does not contain backslashes and begins
16769 # with a dollar sign (not a hyphen), so the echo should work correctly.
16770 lt_compile=`echo "$ac_compile" | $SED \
16771 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16772 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16773 -e 's:$: $lt_compiler_flag:'`
16774 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16775 (eval "$lt_compile" 2>out/conftest.err)
16777 cat out/conftest.err >&5
16778 echo "$as_me:__oline__: \$? = $ac_status" >&5
16779 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16781 # The compiler can only warn and ignore the option if not recognized
16782 # So say no if there are warnings
16783 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16784 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16785 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16786 lt_cv_prog_compiler_c_o_GCJ=yes
16791 # SGI C++ compiler will create directory out/ii_files/ for
16792 # template instantiation
16793 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16794 $rm out/* && rmdir out
16800 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16801 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16804 hard_links="nottested"
16805 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16806 # do not overwrite the value of need_locks provided by the user
16807 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16808 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16811 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16813 ln conftest.a conftest.b 2>&5 || hard_links=no
16814 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16815 { echo "$as_me:$LINENO: result: $hard_links" >&5
16816 echo "${ECHO_T}$hard_links" >&6; }
16817 if test "$hard_links" = no; then
16818 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16819 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16826 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16827 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16830 allow_undefined_flag_GCJ=
16831 enable_shared_with_static_runtimes_GCJ=no
16833 archive_expsym_cmds_GCJ=
16834 old_archive_From_new_cmds_GCJ=
16835 old_archive_from_expsyms_cmds_GCJ=
16836 export_dynamic_flag_spec_GCJ=
16837 whole_archive_flag_spec_GCJ=
16838 thread_safe_flag_spec_GCJ=
16839 hardcode_libdir_flag_spec_GCJ=
16840 hardcode_libdir_flag_spec_ld_GCJ=
16841 hardcode_libdir_separator_GCJ=
16842 hardcode_direct_GCJ=no
16843 hardcode_minus_L_GCJ=no
16844 hardcode_shlibpath_var_GCJ=unsupported
16845 link_all_deplibs_GCJ=unknown
16846 hardcode_automatic_GCJ=no
16848 module_expsym_cmds_GCJ=
16849 always_export_symbols_GCJ=no
16850 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16851 # include_expsyms should be a list of space-separated symbols to be *always*
16852 # included in the symbol list
16853 include_expsyms_GCJ=
16854 # exclude_expsyms can be an extended regexp of symbols to exclude
16855 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16856 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16857 # as well as any symbol that contains `d'.
16858 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16859 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16860 # platforms (ab)use it in PIC code, but their linkers get confused if
16861 # the symbol is explicitly referenced. Since portable code cannot
16862 # rely on this symbol name, it's probably fine to never include it in
16863 # preloaded symbol tables.
16864 extract_expsyms_cmds=
16865 # Just being paranoid about ensuring that cc_basename is set.
16866 for cc_temp in $compiler""; do
16868 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16869 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16874 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16877 cygwin* | mingw* | pw32*)
16878 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16879 # When not using gcc, we currently assume that we are using
16880 # Microsoft Visual C++.
16881 if test "$GCC" != yes; then
16886 # we just hope/assume this is gcc and not c89 (= MSVC++)
16895 if test "$with_gnu_ld" = yes; then
16896 # If archive_cmds runs LD, not CC, wlarc should be empty
16899 # Set some defaults for GNU ld with shared library support. These
16900 # are reset later if shared libraries are not supported. Putting them
16901 # here allows them to be overridden if necessary.
16902 runpath_var=LD_RUN_PATH
16903 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16904 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16905 # ancient GNU ld didn't support --whole-archive et. al.
16906 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16907 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16909 whole_archive_flag_spec_GCJ=
16911 supports_anon_versioning=no
16912 case `$LD -v 2>/dev/null` in
16913 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16914 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16915 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16916 *\ 2.11.*) ;; # other 2.11 versions
16917 *) supports_anon_versioning=yes ;;
16920 # See if GNU ld supports shared libraries.
16922 aix3* | aix4* | aix5*)
16923 # On AIX/PPC, the GNU linker is very broken
16924 if test "$host_cpu" != ia64; then
16928 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16929 *** to be unable to reliably create shared libraries on AIX.
16930 *** Therefore, libtool is disabling shared libraries support. If you
16931 *** really care for shared libraries, you may want to modify your PATH
16932 *** so that a non-GNU linker is found, and then restart.
16939 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)'
16940 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16941 hardcode_minus_L_GCJ=yes
16943 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16944 # that the semantics of dynamic libraries on AmigaOS, at least up
16945 # to version 4, is to share data among multiple programs linked
16946 # with the same dynamic library. Since this doesn't match the
16947 # behavior of shared libraries on other platforms, we can't use
16953 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16954 allow_undefined_flag_GCJ=unsupported
16955 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16956 # support --undefined. This deserves some investigation. FIXME
16957 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16963 cygwin* | mingw* | pw32*)
16964 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16965 # as there is no search path for DLLs.
16966 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16967 allow_undefined_flag_GCJ=unsupported
16968 always_export_symbols_GCJ=no
16969 enable_shared_with_static_runtimes_GCJ=yes
16970 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16972 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16973 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16974 # If the export-symbols file already is a .def file (1st line
16975 # is EXPORTS), use it as is; otherwise, prepend...
16976 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16977 cp $export_symbols $output_objdir/$soname.def;
16979 echo EXPORTS > $output_objdir/$soname.def;
16980 cat $export_symbols >> $output_objdir/$soname.def;
16982 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16989 hardcode_direct_GCJ=no
16990 hardcode_shlibpath_var_GCJ=no
16991 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16992 export_dynamic_flag_spec_GCJ='${wl}-E'
16993 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16994 # Instead, shared libraries are loaded at an image base (0x10000000 by
16995 # default) and relocated if they conflict, which is a slow very memory
16996 # consuming and fragmenting process. To avoid this, we pick a random,
16997 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16998 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16999 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'
17000 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'
17003 gnu* | linux* | k*bsd*-gnu)
17004 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17006 case $cc_basename,$host_cpu in
17007 pgcc*) # Portland Group C compiler
17008 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'
17009 tmp_addflag=' $pic_flag'
17011 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17012 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'
17013 tmp_addflag=' $pic_flag -Mnomain' ;;
17014 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17015 tmp_addflag=' -i_dynamic' ;;
17016 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17017 tmp_addflag=' -i_dynamic -nofor_main' ;;
17018 ifc* | ifort*) # Intel Fortran compiler
17019 tmp_addflag=' -nofor_main' ;;
17021 case `$CC -V 2>&1 | sed 5q` in
17022 *Sun\ C*) # Sun C 5.9
17023 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17024 tmp_sharedflag='-G' ;;
17025 *Sun\ F*) # Sun Fortran 8.3
17026 tmp_sharedflag='-G' ;;
17028 tmp_sharedflag='-shared' ;;
17030 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17032 if test $supports_anon_versioning = yes; then
17033 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17034 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17035 $echo "local: *; };" >> $output_objdir/$libname.ver~
17036 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17044 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17045 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17048 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17049 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17054 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17058 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17059 *** create shared libraries on Solaris systems. Therefore, libtool
17060 *** is disabling shared libraries support. We urge you to upgrade GNU
17061 *** binutils to release 2.9.1 or newer. Another option is to modify
17062 *** your PATH or compiler configuration so that the native linker is
17063 *** used, and then restart.
17066 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17067 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17068 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17074 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17075 case `$LD -v 2>&1` in
17076 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17080 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17081 *** reliably create shared libraries on SCO systems. Therefore, libtool
17082 *** is disabling shared libraries support. We urge you to upgrade GNU
17083 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17084 *** your PATH or compiler configuration so that the native linker is
17085 *** used, and then restart.
17090 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17091 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17092 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17093 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17102 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17104 hardcode_direct_GCJ=yes
17105 hardcode_shlibpath_var_GCJ=no
17109 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17110 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17111 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17118 if test "$ld_shlibs_GCJ" = no; then
17120 hardcode_libdir_flag_spec_GCJ=
17121 export_dynamic_flag_spec_GCJ=
17122 whole_archive_flag_spec_GCJ=
17125 # PORTME fill in a description of your system's linker (not GNU ld)
17128 allow_undefined_flag_GCJ=unsupported
17129 always_export_symbols_GCJ=yes
17130 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'
17131 # Note: this linker hardcodes the directories in LIBPATH if there
17132 # are no directories specified by -L.
17133 hardcode_minus_L_GCJ=yes
17134 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17135 # Neither direct hardcoding nor static linking is supported with a
17137 hardcode_direct_GCJ=unsupported
17142 if test "$host_cpu" = ia64; then
17143 # On IA64, the linker does run time linking by default, so we don't
17144 # have to do anything special.
17145 aix_use_runtimelinking=no
17146 exp_sym_flag='-Bexport'
17149 # If we're using GNU nm, then we don't want the "-C" option.
17150 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17151 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17152 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'
17154 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'
17156 aix_use_runtimelinking=no
17158 # Test if we are trying to use run time linking or normal
17159 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17160 # need to do runtime linking.
17161 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17162 for ld_flag in $LDFLAGS; do
17163 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17164 aix_use_runtimelinking=yes
17171 exp_sym_flag='-bexport'
17172 no_entry_flag='-bnoentry'
17175 # When large executables or shared objects are built, AIX ld can
17176 # have problems creating the table of contents. If linking a library
17177 # or program results in "error TOC overflow" add -mminimal-toc to
17178 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17179 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17181 archive_cmds_GCJ=''
17182 hardcode_direct_GCJ=yes
17183 hardcode_libdir_separator_GCJ=':'
17184 link_all_deplibs_GCJ=yes
17186 if test "$GCC" = yes; then
17187 case $host_os in aix4.[012]|aix4.[012].*)
17188 # We only want to do this on AIX 4.2 and lower, the check
17189 # below for broken collect2 doesn't work under 4.3+
17190 collect2name=`${CC} -print-prog-name=collect2`
17191 if test -f "$collect2name" && \
17192 strings "$collect2name" | grep resolve_lib_name >/dev/null
17194 # We have reworked collect2
17197 # We have old collect2
17198 hardcode_direct_GCJ=unsupported
17199 # It fails to find uninstalled libraries when the uninstalled
17200 # path is not listed in the libpath. Setting hardcode_minus_L
17201 # to unsupported forces relinking
17202 hardcode_minus_L_GCJ=yes
17203 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17204 hardcode_libdir_separator_GCJ=
17208 shared_flag='-shared'
17209 if test "$aix_use_runtimelinking" = yes; then
17210 shared_flag="$shared_flag "'${wl}-G'
17214 if test "$host_cpu" = ia64; then
17215 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17216 # chokes on -Wl,-G. The following line is correct:
17219 if test "$aix_use_runtimelinking" = yes; then
17220 shared_flag='${wl}-G'
17222 shared_flag='${wl}-bM:SRE'
17227 # It seems that -bexpall does not export symbols beginning with
17228 # underscore (_), so it is better to generate a list of symbols to export.
17229 always_export_symbols_GCJ=yes
17230 if test "$aix_use_runtimelinking" = yes; then
17231 # Warning - without using the other runtime loading flags (-brtl),
17232 # -berok will link without error, but may produce a broken library.
17233 allow_undefined_flag_GCJ='-berok'
17234 # Determine the default libpath from the value encoded in an empty executable.
17235 cat >conftest.$ac_ext <<_ACEOF
17238 cat confdefs.h >>conftest.$ac_ext
17239 cat >>conftest.$ac_ext <<_ACEOF
17240 /* end confdefs.h. */
17250 rm -f conftest.$ac_objext conftest$ac_exeext
17251 if { (ac_try="$ac_link"
17252 case "(($ac_try" in
17253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17254 *) ac_try_echo=$ac_try;;
17256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17257 (eval "$ac_link") 2>conftest.er1
17259 grep -v '^ *+' conftest.er1 >conftest.err
17261 cat conftest.err >&5
17262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263 (exit $ac_status); } && {
17264 test -z "$ac_c_werror_flag" ||
17265 test ! -s conftest.err
17266 } && test -s conftest$ac_exeext &&
17267 $as_test_x conftest$ac_exeext; then
17269 lt_aix_libpath_sed='
17270 /Import File Strings/,/^$/ {
17276 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17277 # Check for a 64-bit object if we didn't find anything.
17278 if test -z "$aix_libpath"; then
17279 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17282 echo "$as_me: failed program was:" >&5
17283 sed 's/^/| /' conftest.$ac_ext >&5
17288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17289 conftest$ac_exeext conftest.$ac_ext
17290 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17292 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17293 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"
17295 if test "$host_cpu" = ia64; then
17296 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17297 allow_undefined_flag_GCJ="-z nodefs"
17298 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"
17300 # Determine the default libpath from the value encoded in an empty executable.
17301 cat >conftest.$ac_ext <<_ACEOF
17304 cat confdefs.h >>conftest.$ac_ext
17305 cat >>conftest.$ac_ext <<_ACEOF
17306 /* end confdefs.h. */
17316 rm -f conftest.$ac_objext conftest$ac_exeext
17317 if { (ac_try="$ac_link"
17318 case "(($ac_try" in
17319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17320 *) ac_try_echo=$ac_try;;
17322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17323 (eval "$ac_link") 2>conftest.er1
17325 grep -v '^ *+' conftest.er1 >conftest.err
17327 cat conftest.err >&5
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); } && {
17330 test -z "$ac_c_werror_flag" ||
17331 test ! -s conftest.err
17332 } && test -s conftest$ac_exeext &&
17333 $as_test_x conftest$ac_exeext; then
17335 lt_aix_libpath_sed='
17336 /Import File Strings/,/^$/ {
17342 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17343 # Check for a 64-bit object if we didn't find anything.
17344 if test -z "$aix_libpath"; then
17345 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17348 echo "$as_me: failed program was:" >&5
17349 sed 's/^/| /' conftest.$ac_ext >&5
17354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17355 conftest$ac_exeext conftest.$ac_ext
17356 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17358 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17359 # Warning - without using the other run time loading flags,
17360 # -berok will link without error, but may produce a broken library.
17361 no_undefined_flag_GCJ=' ${wl}-bernotok'
17362 allow_undefined_flag_GCJ=' ${wl}-berok'
17363 # Exported symbols can be pulled into shared objects from archives
17364 whole_archive_flag_spec_GCJ='$convenience'
17365 archive_cmds_need_lc_GCJ=yes
17366 # This is similar to how AIX traditionally builds its shared libraries.
17367 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'
17373 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)'
17374 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17375 hardcode_minus_L_GCJ=yes
17376 # see comment about different semantics on the GNU ld section
17381 export_dynamic_flag_spec_GCJ=-rdynamic
17384 cygwin* | mingw* | pw32*)
17385 # When not using gcc, we currently assume that we are using
17386 # Microsoft Visual C++.
17387 # hardcode_libdir_flag_spec is actually meaningless, as there is
17388 # no search path for DLLs.
17389 hardcode_libdir_flag_spec_GCJ=' '
17390 allow_undefined_flag_GCJ=unsupported
17391 # Tell ltmain to make .lib files, not .a files.
17393 # Tell ltmain to make .dll files, not .so files.
17395 # FIXME: Setting linknames here is a bad hack.
17396 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17397 # The linker will automatically build a .lib file if we build a DLL.
17398 old_archive_From_new_cmds_GCJ='true'
17399 # FIXME: Should let the user specify the lib program.
17400 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17401 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17402 enable_shared_with_static_runtimes_GCJ=yes
17405 darwin* | rhapsody*)
17407 rhapsody* | darwin1.[012])
17408 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17411 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17412 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17414 case ${MACOSX_DEPLOYMENT_TARGET} in
17416 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17419 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17425 archive_cmds_need_lc_GCJ=no
17426 hardcode_direct_GCJ=no
17427 hardcode_automatic_GCJ=yes
17428 hardcode_shlibpath_var_GCJ=unsupported
17429 whole_archive_flag_spec_GCJ=''
17430 link_all_deplibs_GCJ=yes
17431 if test "$GCC" = yes ; then
17432 output_verbose_link_cmd='echo'
17433 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17434 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17435 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17436 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}'
17437 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}'
17439 case $cc_basename in
17441 output_verbose_link_cmd='echo'
17442 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17443 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17444 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17445 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17446 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}'
17456 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17457 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17458 hardcode_shlibpath_var_GCJ=no
17465 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17466 # support. Future versions do this automatically, but an explicit c++rt0.o
17467 # does not break anything, and helps significantly (at the cost of a little
17470 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17471 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17472 hardcode_direct_GCJ=yes
17473 hardcode_shlibpath_var_GCJ=no
17476 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17478 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17479 hardcode_direct_GCJ=yes
17480 hardcode_minus_L_GCJ=yes
17481 hardcode_shlibpath_var_GCJ=no
17484 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17485 freebsd* | dragonfly*)
17486 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17487 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17488 hardcode_direct_GCJ=yes
17489 hardcode_shlibpath_var_GCJ=no
17493 if test "$GCC" = yes; then
17494 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'
17496 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'
17498 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17499 hardcode_libdir_separator_GCJ=:
17500 hardcode_direct_GCJ=yes
17502 # hardcode_minus_L: Not really in the search PATH,
17503 # but as the default location of the library.
17504 hardcode_minus_L_GCJ=yes
17505 export_dynamic_flag_spec_GCJ='${wl}-E'
17509 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17510 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17512 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17514 if test "$with_gnu_ld" = no; then
17515 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17516 hardcode_libdir_separator_GCJ=:
17518 hardcode_direct_GCJ=yes
17519 export_dynamic_flag_spec_GCJ='${wl}-E'
17521 # hardcode_minus_L: Not really in the search PATH,
17522 # but as the default location of the library.
17523 hardcode_minus_L_GCJ=yes
17528 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17531 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17534 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17537 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17543 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17546 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17549 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17553 if test "$with_gnu_ld" = no; then
17554 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17555 hardcode_libdir_separator_GCJ=:
17559 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17560 hardcode_direct_GCJ=no
17561 hardcode_shlibpath_var_GCJ=no
17564 hardcode_direct_GCJ=yes
17565 export_dynamic_flag_spec_GCJ='${wl}-E'
17567 # hardcode_minus_L: Not really in the search PATH,
17568 # but as the default location of the library.
17569 hardcode_minus_L_GCJ=yes
17575 irix5* | irix6* | nonstopux*)
17576 if test "$GCC" = yes; then
17577 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'
17579 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'
17580 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17582 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17583 hardcode_libdir_separator_GCJ=:
17584 link_all_deplibs_GCJ=yes
17588 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17589 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17591 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17593 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17594 hardcode_direct_GCJ=yes
17595 hardcode_shlibpath_var_GCJ=no
17599 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17600 hardcode_direct_GCJ=yes
17601 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17602 hardcode_libdir_separator_GCJ=:
17603 hardcode_shlibpath_var_GCJ=no
17607 if test -f /usr/libexec/ld.so; then
17608 hardcode_direct_GCJ=yes
17609 hardcode_shlibpath_var_GCJ=no
17610 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17611 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17612 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17613 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17614 export_dynamic_flag_spec_GCJ='${wl}-E'
17617 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17618 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17619 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17622 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17623 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17633 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17634 hardcode_minus_L_GCJ=yes
17635 allow_undefined_flag_GCJ=unsupported
17636 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'
17637 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17641 if test "$GCC" = yes; then
17642 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17643 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'
17645 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17646 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'
17648 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17649 hardcode_libdir_separator_GCJ=:
17652 osf4* | osf5*) # as osf3* with the addition of -msym flag
17653 if test "$GCC" = yes; then
17654 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17655 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'
17656 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17658 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17659 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'
17660 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~
17661 $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'
17663 # Both c and cxx compiler support -rpath directly
17664 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17666 hardcode_libdir_separator_GCJ=:
17670 no_undefined_flag_GCJ=' -z text'
17671 if test "$GCC" = yes; then
17673 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17674 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17675 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17678 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17679 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17680 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17682 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17683 hardcode_shlibpath_var_GCJ=no
17685 solaris2.[0-5] | solaris2.[0-5].*) ;;
17687 # The compiler driver will combine and reorder linker options,
17688 # but understands `-z linker_flag'. GCC discards it without `$wl',
17689 # but is careful enough not to reorder.
17690 # Supported since Solaris 2.6 (maybe 2.5.1?)
17691 if test "$GCC" = yes; then
17692 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17694 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17698 link_all_deplibs_GCJ=yes
17702 if test "x$host_vendor" = xsequent; then
17703 # Use $CC to link under sequent, because it throws in some extra .o
17704 # files that make .init and .fini sections work.
17705 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17707 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17709 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17710 hardcode_direct_GCJ=yes
17711 hardcode_minus_L_GCJ=yes
17712 hardcode_shlibpath_var_GCJ=no
17716 case $host_vendor in
17718 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17719 hardcode_direct_GCJ=yes # is this really true???
17722 ## LD is ld it makes a PLAMLIB
17723 ## CC just makes a GrossModule.
17724 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17725 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17726 hardcode_direct_GCJ=no
17729 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17730 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17733 runpath_var='LD_RUN_PATH'
17734 hardcode_shlibpath_var_GCJ=no
17738 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17739 hardcode_shlibpath_var_GCJ=no
17740 export_dynamic_flag_spec_GCJ='-Bexport'
17744 if test -d /usr/nec; then
17745 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17746 hardcode_shlibpath_var_GCJ=no
17747 runpath_var=LD_RUN_PATH
17748 hardcode_runpath_var=yes
17753 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17754 no_undefined_flag_GCJ='${wl}-z,text'
17755 archive_cmds_need_lc_GCJ=no
17756 hardcode_shlibpath_var_GCJ=no
17757 runpath_var='LD_RUN_PATH'
17759 if test "$GCC" = yes; then
17760 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17761 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17763 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17764 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17768 sysv5* | sco3.2v5* | sco5v6*)
17769 # Note: We can NOT use -z defs as we might desire, because we do not
17770 # link with -lc, and that would cause any symbols used from libc to
17771 # always be unresolved, which means just about no library would
17772 # ever link correctly. If we're not using GNU ld we use -z text
17773 # though, which does catch some bad symbols but isn't as heavy-handed
17775 no_undefined_flag_GCJ='${wl}-z,text'
17776 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17777 archive_cmds_need_lc_GCJ=no
17778 hardcode_shlibpath_var_GCJ=no
17779 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17780 hardcode_libdir_separator_GCJ=':'
17781 link_all_deplibs_GCJ=yes
17782 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17783 runpath_var='LD_RUN_PATH'
17785 if test "$GCC" = yes; then
17786 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17787 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17789 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17790 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17795 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17796 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17797 hardcode_shlibpath_var_GCJ=no
17806 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17807 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17808 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17811 # Do we need to explicitly link libc?
17813 case "x$archive_cmds_need_lc_GCJ" in
17815 # Assume -lc should be added
17816 archive_cmds_need_lc_GCJ=yes
17818 if test "$enable_shared" = yes && test "$GCC" = yes; then
17819 case $archive_cmds_GCJ in
17821 # FIXME: we may have to deal with multi-command sequences.
17824 # Test whether the compiler implicitly links with -lc since on some
17825 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17826 # to ld, don't add -lc before -lgcc.
17827 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17828 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17830 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17833 (eval $ac_compile) 2>&5
17835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836 (exit $ac_status); } 2>conftest.err; then
17839 libobjs=conftest.$ac_objext
17841 wl=$lt_prog_compiler_wl_GCJ
17842 pic_flag=$lt_prog_compiler_pic_GCJ
17848 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17849 allow_undefined_flag_GCJ=
17850 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17851 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); }
17856 archive_cmds_need_lc_GCJ=no
17858 archive_cmds_need_lc_GCJ=yes
17860 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17862 cat conftest.err 1>&5
17865 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17866 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17873 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17874 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17875 library_names_spec=
17876 libname_spec='lib$name'
17880 postuninstall_cmds=
17884 shlibpath_overrides_runpath=unknown
17886 dynamic_linker="$host_os ld.so"
17887 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17889 need_lib_prefix=unknown
17890 hardcode_into_libs=no
17892 # when you set need_version to no, make sure it does not cause -set_version
17893 # flags to be left without arguments
17894 need_version=unknown
17899 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17900 shlibpath_var=LIBPATH
17902 # AIX 3 has no versioning support, so we append a major version to the name.
17903 soname_spec='${libname}${release}${shared_ext}$major'
17910 hardcode_into_libs=yes
17911 if test "$host_cpu" = ia64; then
17912 # AIX 5 supports IA64
17913 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17914 shlibpath_var=LD_LIBRARY_PATH
17916 # With GCC up to 2.95.x, collect2 would create an import file
17917 # for dependence libraries. The import file would start with
17918 # the line `#! .'. This would cause the generated library to
17919 # depend on `.', always an invalid library. This was fixed in
17920 # development snapshots of GCC prior to 3.0.
17922 aix4 | aix4.[01] | aix4.[01].*)
17923 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17925 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17928 can_build_shared=no
17932 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17933 # soname into executable. Probably we can add versioning support to
17934 # collect2, so additional links can be useful in future.
17935 if test "$aix_use_runtimelinking" = yes; then
17936 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17937 # instead of lib<name>.a to let people know that these are not
17938 # typical AIX shared libraries.
17939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17941 # We preserve .a as extension for shared libraries through AIX4.2
17942 # and later when we are not doing run time linking.
17943 library_names_spec='${libname}${release}.a $libname.a'
17944 soname_spec='${libname}${release}${shared_ext}$major'
17946 shlibpath_var=LIBPATH
17951 library_names_spec='$libname.ixlibrary $libname.a'
17952 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17953 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'
17957 library_names_spec='${libname}${shared_ext}'
17958 dynamic_linker="$host_os ld.so"
17959 shlibpath_var=LIBRARY_PATH
17965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17966 soname_spec='${libname}${release}${shared_ext}$major'
17967 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17968 shlibpath_var=LD_LIBRARY_PATH
17969 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17970 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17971 # the default ld.so.conf also contains /usr/contrib/lib and
17972 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17973 # libtool to hard-code these into programs
17976 cygwin* | mingw* | pw32*)
17977 version_type=windows
17982 case $GCC,$host_os in
17983 yes,cygwin* | yes,mingw* | yes,pw32*)
17984 library_names_spec='$libname.dll.a'
17985 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17986 postinstall_cmds='base_file=`basename \${file}`~
17987 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17988 dldir=$destdir/`dirname \$dlpath`~
17989 test -d \$dldir || mkdir -p \$dldir~
17990 $install_prog $dir/$dlname \$dldir/$dlname~
17991 chmod a+x \$dldir/$dlname'
17992 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17993 dlpath=$dir/\$dldll~
17995 shlibpath_overrides_runpath=yes
17999 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18000 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18001 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18004 # MinGW DLLs use traditional 'lib' prefix
18005 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18006 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18007 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18008 # It is most probably a Windows format PATH printed by
18009 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18010 # path with ; separators, and with drive letters. We can handle the
18011 # drive letters (cygwin fileutils understands them), so leave them,
18012 # especially as we might pass files found there to a mingw objdump,
18013 # which wouldn't understand a cygwinified path. Ahh.
18014 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18016 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18020 # pw32 DLLs use 'pw' prefix rather than 'lib'
18021 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18027 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18030 dynamic_linker='Win32 ld.exe'
18031 # FIXME: first we should search . and the directory the executable is in
18035 darwin* | rhapsody*)
18036 dynamic_linker="$host_os dyld"
18037 version_type=darwin
18040 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18041 soname_spec='${libname}${release}${major}$shared_ext'
18042 shlibpath_overrides_runpath=yes
18043 shlibpath_var=DYLD_LIBRARY_PATH
18044 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18046 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18054 soname_spec='${libname}${release}${shared_ext}$major'
18055 shlibpath_var=LD_LIBRARY_PATH
18062 freebsd* | dragonfly*)
18063 # DragonFly does not have aout. When/if they implement a new
18064 # versioning mechanism, adjust this.
18065 if test -x /usr/bin/objformat; then
18066 objformat=`/usr/bin/objformat`
18069 freebsd[123]*) objformat=aout ;;
18070 *) objformat=elf ;;
18073 version_type=freebsd-$objformat
18074 case $version_type in
18076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18081 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18085 shlibpath_var=LD_LIBRARY_PATH
18088 shlibpath_overrides_runpath=yes
18090 freebsd3.[01]* | freebsdelf3.[01]*)
18091 shlibpath_overrides_runpath=yes
18092 hardcode_into_libs=yes
18094 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18095 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18096 shlibpath_overrides_runpath=no
18097 hardcode_into_libs=yes
18099 *) # from 4.6 on, and DragonFly
18100 shlibpath_overrides_runpath=yes
18101 hardcode_into_libs=yes
18110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18111 soname_spec='${libname}${release}${shared_ext}$major'
18112 shlibpath_var=LD_LIBRARY_PATH
18113 hardcode_into_libs=yes
18116 hpux9* | hpux10* | hpux11*)
18117 # Give a soname corresponding to the major version so that dld.sl refuses to
18118 # link against other versions.
18125 hardcode_into_libs=yes
18126 dynamic_linker="$host_os dld.so"
18127 shlibpath_var=LD_LIBRARY_PATH
18128 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18130 soname_spec='${libname}${release}${shared_ext}$major'
18131 if test "X$HPUX_IA64_MODE" = X32; then
18132 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18134 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18136 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18140 hardcode_into_libs=yes
18141 dynamic_linker="$host_os dld.sl"
18142 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18143 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18145 soname_spec='${libname}${release}${shared_ext}$major'
18146 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18147 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18151 dynamic_linker="$host_os dld.sl"
18152 shlibpath_var=SHLIB_PATH
18153 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18155 soname_spec='${libname}${release}${shared_ext}$major'
18158 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18159 postinstall_cmds='chmod 555 $lib'
18166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18167 soname_spec='${libname}${release}${shared_ext}$major'
18168 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18169 shlibpath_var=LD_LIBRARY_PATH
18170 shlibpath_overrides_runpath=no
18171 hardcode_into_libs=yes
18174 irix5* | irix6* | nonstopux*)
18176 nonstopux*) version_type=nonstopux ;;
18178 if test "$lt_cv_prog_gnu_ld" = yes; then
18186 soname_spec='${libname}${release}${shared_ext}$major'
18187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18189 irix5* | nonstopux*)
18190 libsuff= shlibsuff=
18193 case $LD in # libtool.m4 will add one of these switches to LD
18194 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18195 libsuff= shlibsuff= libmagic=32-bit;;
18196 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18197 libsuff=32 shlibsuff=N32 libmagic=N32;;
18198 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18199 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18200 *) libsuff= shlibsuff= libmagic=never-match;;
18204 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18205 shlibpath_overrides_runpath=no
18206 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18207 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18208 hardcode_into_libs=yes
18211 # No shared lib support for Linux oldld, aout, or coff.
18212 linux*oldld* | linux*aout* | linux*coff*)
18216 # This must be Linux ELF.
18217 linux* | k*bsd*-gnu)
18221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18222 soname_spec='${libname}${release}${shared_ext}$major'
18223 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18224 shlibpath_var=LD_LIBRARY_PATH
18225 shlibpath_overrides_runpath=no
18226 # This implies no fast_install, which is unacceptable.
18227 # Some rework will be needed to allow for fast_install
18228 # before this can be enabled.
18229 hardcode_into_libs=yes
18230 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18231 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18233 # Append ld.so.conf contents to the search path
18234 if test -f /etc/ld.so.conf; then
18235 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18236 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18239 # We used to test for /lib/ld.so.1 and disable shared libraries on
18240 # powerpc, because MkLinux only supported shared libraries with the
18241 # GNU dynamic linker. Since this was broken with cross compilers,
18242 # most powerpc-linux boxes support dynamic linking these days and
18243 # people can always --disable-shared, the test was removed, and we
18244 # assume the GNU/Linux dynamic linker is in use.
18245 dynamic_linker='GNU/Linux ld.so'
18252 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18254 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18255 dynamic_linker='NetBSD (a.out) ld.so'
18257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18258 soname_spec='${libname}${release}${shared_ext}$major'
18259 dynamic_linker='NetBSD ld.elf_so'
18261 shlibpath_var=LD_LIBRARY_PATH
18262 shlibpath_overrides_runpath=yes
18263 hardcode_into_libs=yes
18268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18269 shlibpath_var=LD_LIBRARY_PATH
18270 shlibpath_overrides_runpath=yes
18277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18278 soname_spec='${libname}${release}${shared_ext}$major'
18279 shlibpath_var=LD_LIBRARY_PATH
18280 shlibpath_overrides_runpath=yes
18285 sys_lib_dlsearch_path_spec="/usr/lib"
18287 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18289 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18290 *) need_version=no ;;
18292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18293 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18294 shlibpath_var=LD_LIBRARY_PATH
18295 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18297 openbsd2.[89] | openbsd2.[89].*)
18298 shlibpath_overrides_runpath=no
18301 shlibpath_overrides_runpath=yes
18305 shlibpath_overrides_runpath=yes
18310 libname_spec='$name'
18313 library_names_spec='$libname${shared_ext} $libname.a'
18314 dynamic_linker='OS/2 ld.exe'
18315 shlibpath_var=LIBPATH
18318 osf3* | osf4* | osf5*)
18322 soname_spec='${libname}${release}${shared_ext}$major'
18323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18324 shlibpath_var=LD_LIBRARY_PATH
18325 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18326 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18338 soname_spec='${libname}${release}${shared_ext}$major'
18339 shlibpath_var=LD_LIBRARY_PATH
18340 shlibpath_overrides_runpath=yes
18341 hardcode_into_libs=yes
18342 # ldd complains unless libraries are executable
18343 postinstall_cmds='chmod +x $lib'
18348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18349 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18350 shlibpath_var=LD_LIBRARY_PATH
18351 shlibpath_overrides_runpath=yes
18352 if test "$with_gnu_ld" = yes; then
18360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18361 soname_spec='${libname}${release}${shared_ext}$major'
18362 shlibpath_var=LD_LIBRARY_PATH
18363 case $host_vendor in
18365 shlibpath_overrides_runpath=no
18367 export_dynamic_flag_spec='${wl}-Blargedynsym'
18368 runpath_var=LD_RUN_PATH
18376 shlibpath_overrides_runpath=no
18377 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18383 if test -d /usr/nec ;then
18385 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18386 soname_spec='$libname${shared_ext}.$major'
18387 shlibpath_var=LD_LIBRARY_PATH
18391 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18392 version_type=freebsd-elf
18395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18396 soname_spec='${libname}${release}${shared_ext}$major'
18397 shlibpath_var=LD_LIBRARY_PATH
18398 hardcode_into_libs=yes
18399 if test "$with_gnu_ld" = yes; then
18400 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18401 shlibpath_overrides_runpath=no
18403 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18404 shlibpath_overrides_runpath=yes
18407 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18411 sys_lib_dlsearch_path_spec='/usr/lib'
18416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18417 soname_spec='${libname}${release}${shared_ext}$major'
18418 shlibpath_var=LD_LIBRARY_PATH
18425 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18426 echo "${ECHO_T}$dynamic_linker" >&6; }
18427 test "$dynamic_linker" = no && can_build_shared=no
18429 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18430 if test "$GCC" = yes; then
18431 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18434 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18435 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18436 hardcode_action_GCJ=
18437 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18438 test -n "$runpath_var_GCJ" || \
18439 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18441 # We can hardcode non-existant directories.
18442 if test "$hardcode_direct_GCJ" != no &&
18443 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18444 # have to relink, otherwise we might link with an installed library
18445 # when we should be linking with a yet-to-be-installed one
18446 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18447 test "$hardcode_minus_L_GCJ" != no; then
18448 # Linking always hardcodes the temporary library directory.
18449 hardcode_action_GCJ=relink
18451 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18452 hardcode_action_GCJ=immediate
18455 # We cannot hardcode anything, or else we can only hardcode existing
18457 hardcode_action_GCJ=unsupported
18459 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18460 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18462 if test "$hardcode_action_GCJ" = relink; then
18463 # Fast installation is not supported
18464 enable_fast_install=no
18465 elif test "$shlibpath_overrides_runpath" = yes ||
18466 test "$enable_shared" = no; then
18467 # Fast installation is not necessary
18468 enable_fast_install=needless
18472 # The else clause should only fire when bootstrapping the
18473 # libtool distribution, otherwise you forgot to ship ltmain.sh
18474 # with your package, and you will get complaints that there are
18475 # no rules to generate ltmain.sh.
18476 if test -f "$ltmain"; then
18477 # See if we are running on zsh, and set the options which allow our commands through
18478 # without removal of \ escapes.
18479 if test -n "${ZSH_VERSION+set}" ; then
18480 setopt NO_GLOB_SUBST
18482 # Now quote all the things that may contain metacharacters while being
18483 # careful not to overquote the AC_SUBSTed values. We take copies of the
18484 # variables and quote the copies for generation of the libtool script.
18485 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18487 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18488 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18489 deplibs_check_method reload_flag reload_cmds need_locks \
18490 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18491 lt_cv_sys_global_symbol_to_c_name_address \
18492 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18493 old_postinstall_cmds old_postuninstall_cmds \
18497 lt_prog_compiler_wl_GCJ \
18498 lt_prog_compiler_pic_GCJ \
18499 lt_prog_compiler_static_GCJ \
18500 lt_prog_compiler_no_builtin_flag_GCJ \
18501 export_dynamic_flag_spec_GCJ \
18502 thread_safe_flag_spec_GCJ \
18503 whole_archive_flag_spec_GCJ \
18504 enable_shared_with_static_runtimes_GCJ \
18505 old_archive_cmds_GCJ \
18506 old_archive_from_new_cmds_GCJ \
18507 predep_objects_GCJ \
18508 postdep_objects_GCJ \
18511 compiler_lib_search_path_GCJ \
18513 archive_expsym_cmds_GCJ \
18514 postinstall_cmds_GCJ \
18515 postuninstall_cmds_GCJ \
18516 old_archive_from_expsyms_cmds_GCJ \
18517 allow_undefined_flag_GCJ \
18518 no_undefined_flag_GCJ \
18519 export_symbols_cmds_GCJ \
18520 hardcode_libdir_flag_spec_GCJ \
18521 hardcode_libdir_flag_spec_ld_GCJ \
18522 hardcode_libdir_separator_GCJ \
18523 hardcode_automatic_GCJ \
18525 module_expsym_cmds_GCJ \
18526 lt_cv_prog_compiler_c_o_GCJ \
18527 fix_srcfile_path_GCJ \
18528 exclude_expsyms_GCJ \
18529 include_expsyms_GCJ; do
18532 old_archive_cmds_GCJ | \
18533 old_archive_from_new_cmds_GCJ | \
18534 archive_cmds_GCJ | \
18535 archive_expsym_cmds_GCJ | \
18536 module_cmds_GCJ | \
18537 module_expsym_cmds_GCJ | \
18538 old_archive_from_expsyms_cmds_GCJ | \
18539 export_symbols_cmds_GCJ | \
18540 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18541 postinstall_cmds | postuninstall_cmds | \
18542 old_postinstall_cmds | old_postuninstall_cmds | \
18543 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18544 # Double-quote double-evaled strings.
18545 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18548 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18554 *'\$0 --fallback-echo"')
18555 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18561 cat <<__EOF__ >> "$cfgfile"
18562 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18564 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18566 # Shell to use when invoking shell scripts.
18569 # Whether or not to build shared libraries.
18570 build_libtool_libs=$enable_shared
18572 # Whether or not to build static libraries.
18573 build_old_libs=$enable_static
18575 # Whether or not to add -lc for building shared libraries.
18576 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18578 # Whether or not to disallow shared libs when runtime libs are static
18579 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18581 # Whether or not to optimize for fast installation.
18582 fast_install=$enable_fast_install
18585 host_alias=$host_alias
18589 # The build system.
18590 build_alias=$build_alias
18594 # An echo program that does not interpret backslashes.
18599 AR_FLAGS=$lt_AR_FLAGS
18604 # LTCC compiler flags.
18605 LTCFLAGS=$lt_LTCFLAGS
18607 # A language-specific compiler.
18608 CC=$lt_compiler_GCJ
18610 # Is the compiler the GNU C compiler?
18616 # The linker used to build libraries.
18619 # Whether we need hard or soft links.
18622 # A BSD-compatible nm program.
18625 # A symbol stripping program
18628 # Used to examine libraries when file_magic_cmd begins "file"
18629 MAGIC_CMD=$MAGIC_CMD
18631 # Used on cygwin: DLL creation program.
18634 # Used on cygwin: object dumper.
18637 # Used on cygwin: assembler.
18640 # The name of the directory that contains temporary libtool files.
18643 # How to create reloadable object files.
18644 reload_flag=$lt_reload_flag
18645 reload_cmds=$lt_reload_cmds
18647 # How to pass a linker flag through the compiler.
18648 wl=$lt_lt_prog_compiler_wl_GCJ
18650 # Object file suffix (normally "o").
18651 objext="$ac_objext"
18653 # Old archive suffix (normally "a").
18656 # Shared library suffix (normally ".so").
18657 shrext_cmds='$shrext_cmds'
18659 # Executable file suffix (normally "").
18662 # Additional compiler flags for building library objects.
18663 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18666 # What is the maximum length of a command?
18667 max_cmd_len=$lt_cv_sys_max_cmd_len
18669 # Does compiler simultaneously support -c and -o options?
18670 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18672 # Must we lock files when doing compilation?
18673 need_locks=$lt_need_locks
18675 # Do we need the lib prefix for modules?
18676 need_lib_prefix=$need_lib_prefix
18678 # Do we need a version for libraries?
18679 need_version=$need_version
18681 # Whether dlopen is supported.
18682 dlopen_support=$enable_dlopen
18684 # Whether dlopen of programs is supported.
18685 dlopen_self=$enable_dlopen_self
18687 # Whether dlopen of statically linked programs is supported.
18688 dlopen_self_static=$enable_dlopen_self_static
18690 # Compiler flag to prevent dynamic linking.
18691 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18693 # Compiler flag to turn off builtin functions.
18694 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18696 # Compiler flag to allow reflexive dlopens.
18697 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18699 # Compiler flag to generate shared objects directly from archives.
18700 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18702 # Compiler flag to generate thread-safe objects.
18703 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18705 # Library versioning type.
18706 version_type=$version_type
18708 # Format of library name prefix.
18709 libname_spec=$lt_libname_spec
18711 # List of archive names. First name is the real one, the rest are links.
18712 # The last name is the one that the linker finds with -lNAME.
18713 library_names_spec=$lt_library_names_spec
18715 # The coded name of the library, if different from the real name.
18716 soname_spec=$lt_soname_spec
18718 # Commands used to build and install an old-style archive.
18720 old_archive_cmds=$lt_old_archive_cmds_GCJ
18721 old_postinstall_cmds=$lt_old_postinstall_cmds
18722 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18724 # Create an old-style archive from a shared archive.
18725 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18727 # Create a temporary old-style archive to link instead of a shared archive.
18728 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18730 # Commands used to build and install a shared archive.
18731 archive_cmds=$lt_archive_cmds_GCJ
18732 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18733 postinstall_cmds=$lt_postinstall_cmds
18734 postuninstall_cmds=$lt_postuninstall_cmds
18736 # Commands used to build a loadable module (assumed same as above if empty)
18737 module_cmds=$lt_module_cmds_GCJ
18738 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18740 # Commands to strip libraries.
18741 old_striplib=$lt_old_striplib
18742 striplib=$lt_striplib
18744 # Dependencies to place before the objects being linked to create a
18746 predep_objects=$lt_predep_objects_GCJ
18748 # Dependencies to place after the objects being linked to create a
18750 postdep_objects=$lt_postdep_objects_GCJ
18752 # Dependencies to place before the objects being linked to create a
18754 predeps=$lt_predeps_GCJ
18756 # Dependencies to place after the objects being linked to create a
18758 postdeps=$lt_postdeps_GCJ
18760 # The library search path used internally by the compiler when linking
18761 # a shared library.
18762 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18764 # Method to check whether dependent libraries are shared objects.
18765 deplibs_check_method=$lt_deplibs_check_method
18767 # Command to use when deplibs_check_method == file_magic.
18768 file_magic_cmd=$lt_file_magic_cmd
18770 # Flag that allows shared libraries with undefined symbols to be built.
18771 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18773 # Flag that forces no undefined symbols.
18774 no_undefined_flag=$lt_no_undefined_flag_GCJ
18776 # Commands used to finish a libtool library installation in a directory.
18777 finish_cmds=$lt_finish_cmds
18779 # Same as above, but a single script fragment to be evaled but not shown.
18780 finish_eval=$lt_finish_eval
18782 # Take the output of nm and produce a listing of raw symbols and C names.
18783 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18785 # Transform the output of nm in a proper C declaration
18786 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18788 # Transform the output of nm in a C name address pair
18789 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18791 # This is the shared library runtime path variable.
18792 runpath_var=$runpath_var
18794 # This is the shared library path variable.
18795 shlibpath_var=$shlibpath_var
18797 # Is shlibpath searched before the hard-coded library search path?
18798 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18800 # How to hardcode a shared library path into an executable.
18801 hardcode_action=$hardcode_action_GCJ
18803 # Whether we should hardcode library paths into libraries.
18804 hardcode_into_libs=$hardcode_into_libs
18806 # Flag to hardcode \$libdir into a binary during linking.
18807 # This must work even if \$libdir does not exist.
18808 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18810 # If ld is used when linking, flag to hardcode \$libdir into
18811 # a binary during linking. This must work even if \$libdir does
18813 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18815 # Whether we need a single -rpath flag with a separated argument.
18816 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18818 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18819 # resulting binary.
18820 hardcode_direct=$hardcode_direct_GCJ
18822 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18823 # resulting binary.
18824 hardcode_minus_L=$hardcode_minus_L_GCJ
18826 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18827 # the resulting binary.
18828 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18830 # Set to yes if building a shared library automatically hardcodes DIR into the library
18831 # and all subsequent libraries and executables linked against it.
18832 hardcode_automatic=$hardcode_automatic_GCJ
18834 # Variables whose values should be saved in libtool wrapper scripts and
18835 # restored at relink time.
18836 variables_saved_for_relink="$variables_saved_for_relink"
18838 # Whether libtool must link a program against all its dependency libraries.
18839 link_all_deplibs=$link_all_deplibs_GCJ
18841 # Compile-time system search path for libraries
18842 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18844 # Run-time system search path for libraries
18845 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18847 # Fix the shell variable \$srcfile for the compiler.
18848 fix_srcfile_path=$lt_fix_srcfile_path
18850 # Set to yes if exported symbols are required.
18851 always_export_symbols=$always_export_symbols_GCJ
18853 # The commands to list exported symbols.
18854 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18856 # The commands to extract the exported symbol list from a shared archive.
18857 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18859 # Symbols that should not be listed in the preloaded symbols.
18860 exclude_expsyms=$lt_exclude_expsyms_GCJ
18862 # Symbols that must always be exported.
18863 include_expsyms=$lt_include_expsyms_GCJ
18865 # ### END LIBTOOL TAG CONFIG: $tagname
18871 # If there is no Makefile yet, we rely on a make rule to execute
18872 # `config.status --recheck' to rerun these tests and create the
18873 # libtool script then.
18874 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18875 if test -f "$ltmain_in"; then
18876 test -f Makefile && make "$ltmain"
18882 ac_cpp='$CPP $CPPFLAGS'
18883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18897 # Source file extension for RC test sources.
18900 # Object file extension for compiled RC test sources.
18904 # Code to be used in simple compile tests
18905 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18907 # Code to be used in simple link tests
18908 lt_simple_link_test_code="$lt_simple_compile_test_code"
18910 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18912 # If no C compiler was specified, use CC.
18915 # If no C compiler flags were specified, use CFLAGS.
18916 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18918 # Allow CC to be a program name with arguments.
18922 # save warnings/boilerplate of simple test code
18923 ac_outfile=conftest.$ac_objext
18924 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18925 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18926 _lt_compiler_boilerplate=`cat conftest.err`
18929 ac_outfile=conftest.$ac_objext
18930 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18931 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18932 _lt_linker_boilerplate=`cat conftest.err`
18936 # Allow CC to be a program name with arguments.
18941 for cc_temp in $compiler""; do
18943 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18944 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18949 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18951 lt_cv_prog_compiler_c_o_RC=yes
18953 # The else clause should only fire when bootstrapping the
18954 # libtool distribution, otherwise you forgot to ship ltmain.sh
18955 # with your package, and you will get complaints that there are
18956 # no rules to generate ltmain.sh.
18957 if test -f "$ltmain"; then
18958 # See if we are running on zsh, and set the options which allow our commands through
18959 # without removal of \ escapes.
18960 if test -n "${ZSH_VERSION+set}" ; then
18961 setopt NO_GLOB_SUBST
18963 # Now quote all the things that may contain metacharacters while being
18964 # careful not to overquote the AC_SUBSTed values. We take copies of the
18965 # variables and quote the copies for generation of the libtool script.
18966 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18968 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18969 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18970 deplibs_check_method reload_flag reload_cmds need_locks \
18971 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18972 lt_cv_sys_global_symbol_to_c_name_address \
18973 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18974 old_postinstall_cmds old_postuninstall_cmds \
18978 lt_prog_compiler_wl_RC \
18979 lt_prog_compiler_pic_RC \
18980 lt_prog_compiler_static_RC \
18981 lt_prog_compiler_no_builtin_flag_RC \
18982 export_dynamic_flag_spec_RC \
18983 thread_safe_flag_spec_RC \
18984 whole_archive_flag_spec_RC \
18985 enable_shared_with_static_runtimes_RC \
18986 old_archive_cmds_RC \
18987 old_archive_from_new_cmds_RC \
18988 predep_objects_RC \
18989 postdep_objects_RC \
18992 compiler_lib_search_path_RC \
18994 archive_expsym_cmds_RC \
18995 postinstall_cmds_RC \
18996 postuninstall_cmds_RC \
18997 old_archive_from_expsyms_cmds_RC \
18998 allow_undefined_flag_RC \
18999 no_undefined_flag_RC \
19000 export_symbols_cmds_RC \
19001 hardcode_libdir_flag_spec_RC \
19002 hardcode_libdir_flag_spec_ld_RC \
19003 hardcode_libdir_separator_RC \
19004 hardcode_automatic_RC \
19006 module_expsym_cmds_RC \
19007 lt_cv_prog_compiler_c_o_RC \
19008 fix_srcfile_path_RC \
19009 exclude_expsyms_RC \
19010 include_expsyms_RC; do
19013 old_archive_cmds_RC | \
19014 old_archive_from_new_cmds_RC | \
19015 archive_cmds_RC | \
19016 archive_expsym_cmds_RC | \
19018 module_expsym_cmds_RC | \
19019 old_archive_from_expsyms_cmds_RC | \
19020 export_symbols_cmds_RC | \
19021 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19022 postinstall_cmds | postuninstall_cmds | \
19023 old_postinstall_cmds | old_postuninstall_cmds | \
19024 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19025 # Double-quote double-evaled strings.
19026 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19029 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19035 *'\$0 --fallback-echo"')
19036 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19042 cat <<__EOF__ >> "$cfgfile"
19043 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19045 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19047 # Shell to use when invoking shell scripts.
19050 # Whether or not to build shared libraries.
19051 build_libtool_libs=$enable_shared
19053 # Whether or not to build static libraries.
19054 build_old_libs=$enable_static
19056 # Whether or not to add -lc for building shared libraries.
19057 build_libtool_need_lc=$archive_cmds_need_lc_RC
19059 # Whether or not to disallow shared libs when runtime libs are static
19060 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19062 # Whether or not to optimize for fast installation.
19063 fast_install=$enable_fast_install
19066 host_alias=$host_alias
19070 # The build system.
19071 build_alias=$build_alias
19075 # An echo program that does not interpret backslashes.
19080 AR_FLAGS=$lt_AR_FLAGS
19085 # LTCC compiler flags.
19086 LTCFLAGS=$lt_LTCFLAGS
19088 # A language-specific compiler.
19091 # Is the compiler the GNU C compiler?
19097 # The linker used to build libraries.
19100 # Whether we need hard or soft links.
19103 # A BSD-compatible nm program.
19106 # A symbol stripping program
19109 # Used to examine libraries when file_magic_cmd begins "file"
19110 MAGIC_CMD=$MAGIC_CMD
19112 # Used on cygwin: DLL creation program.
19115 # Used on cygwin: object dumper.
19118 # Used on cygwin: assembler.
19121 # The name of the directory that contains temporary libtool files.
19124 # How to create reloadable object files.
19125 reload_flag=$lt_reload_flag
19126 reload_cmds=$lt_reload_cmds
19128 # How to pass a linker flag through the compiler.
19129 wl=$lt_lt_prog_compiler_wl_RC
19131 # Object file suffix (normally "o").
19132 objext="$ac_objext"
19134 # Old archive suffix (normally "a").
19137 # Shared library suffix (normally ".so").
19138 shrext_cmds='$shrext_cmds'
19140 # Executable file suffix (normally "").
19143 # Additional compiler flags for building library objects.
19144 pic_flag=$lt_lt_prog_compiler_pic_RC
19147 # What is the maximum length of a command?
19148 max_cmd_len=$lt_cv_sys_max_cmd_len
19150 # Does compiler simultaneously support -c and -o options?
19151 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19153 # Must we lock files when doing compilation?
19154 need_locks=$lt_need_locks
19156 # Do we need the lib prefix for modules?
19157 need_lib_prefix=$need_lib_prefix
19159 # Do we need a version for libraries?
19160 need_version=$need_version
19162 # Whether dlopen is supported.
19163 dlopen_support=$enable_dlopen
19165 # Whether dlopen of programs is supported.
19166 dlopen_self=$enable_dlopen_self
19168 # Whether dlopen of statically linked programs is supported.
19169 dlopen_self_static=$enable_dlopen_self_static
19171 # Compiler flag to prevent dynamic linking.
19172 link_static_flag=$lt_lt_prog_compiler_static_RC
19174 # Compiler flag to turn off builtin functions.
19175 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19177 # Compiler flag to allow reflexive dlopens.
19178 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19180 # Compiler flag to generate shared objects directly from archives.
19181 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19183 # Compiler flag to generate thread-safe objects.
19184 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19186 # Library versioning type.
19187 version_type=$version_type
19189 # Format of library name prefix.
19190 libname_spec=$lt_libname_spec
19192 # List of archive names. First name is the real one, the rest are links.
19193 # The last name is the one that the linker finds with -lNAME.
19194 library_names_spec=$lt_library_names_spec
19196 # The coded name of the library, if different from the real name.
19197 soname_spec=$lt_soname_spec
19199 # Commands used to build and install an old-style archive.
19201 old_archive_cmds=$lt_old_archive_cmds_RC
19202 old_postinstall_cmds=$lt_old_postinstall_cmds
19203 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19205 # Create an old-style archive from a shared archive.
19206 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19208 # Create a temporary old-style archive to link instead of a shared archive.
19209 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19211 # Commands used to build and install a shared archive.
19212 archive_cmds=$lt_archive_cmds_RC
19213 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19214 postinstall_cmds=$lt_postinstall_cmds
19215 postuninstall_cmds=$lt_postuninstall_cmds
19217 # Commands used to build a loadable module (assumed same as above if empty)
19218 module_cmds=$lt_module_cmds_RC
19219 module_expsym_cmds=$lt_module_expsym_cmds_RC
19221 # Commands to strip libraries.
19222 old_striplib=$lt_old_striplib
19223 striplib=$lt_striplib
19225 # Dependencies to place before the objects being linked to create a
19227 predep_objects=$lt_predep_objects_RC
19229 # Dependencies to place after the objects being linked to create a
19231 postdep_objects=$lt_postdep_objects_RC
19233 # Dependencies to place before the objects being linked to create a
19235 predeps=$lt_predeps_RC
19237 # Dependencies to place after the objects being linked to create a
19239 postdeps=$lt_postdeps_RC
19241 # The library search path used internally by the compiler when linking
19242 # a shared library.
19243 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19245 # Method to check whether dependent libraries are shared objects.
19246 deplibs_check_method=$lt_deplibs_check_method
19248 # Command to use when deplibs_check_method == file_magic.
19249 file_magic_cmd=$lt_file_magic_cmd
19251 # Flag that allows shared libraries with undefined symbols to be built.
19252 allow_undefined_flag=$lt_allow_undefined_flag_RC
19254 # Flag that forces no undefined symbols.
19255 no_undefined_flag=$lt_no_undefined_flag_RC
19257 # Commands used to finish a libtool library installation in a directory.
19258 finish_cmds=$lt_finish_cmds
19260 # Same as above, but a single script fragment to be evaled but not shown.
19261 finish_eval=$lt_finish_eval
19263 # Take the output of nm and produce a listing of raw symbols and C names.
19264 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19266 # Transform the output of nm in a proper C declaration
19267 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19269 # Transform the output of nm in a C name address pair
19270 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19272 # This is the shared library runtime path variable.
19273 runpath_var=$runpath_var
19275 # This is the shared library path variable.
19276 shlibpath_var=$shlibpath_var
19278 # Is shlibpath searched before the hard-coded library search path?
19279 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19281 # How to hardcode a shared library path into an executable.
19282 hardcode_action=$hardcode_action_RC
19284 # Whether we should hardcode library paths into libraries.
19285 hardcode_into_libs=$hardcode_into_libs
19287 # Flag to hardcode \$libdir into a binary during linking.
19288 # This must work even if \$libdir does not exist.
19289 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19291 # If ld is used when linking, flag to hardcode \$libdir into
19292 # a binary during linking. This must work even if \$libdir does
19294 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19296 # Whether we need a single -rpath flag with a separated argument.
19297 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19299 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19300 # resulting binary.
19301 hardcode_direct=$hardcode_direct_RC
19303 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19304 # resulting binary.
19305 hardcode_minus_L=$hardcode_minus_L_RC
19307 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19308 # the resulting binary.
19309 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19311 # Set to yes if building a shared library automatically hardcodes DIR into the library
19312 # and all subsequent libraries and executables linked against it.
19313 hardcode_automatic=$hardcode_automatic_RC
19315 # Variables whose values should be saved in libtool wrapper scripts and
19316 # restored at relink time.
19317 variables_saved_for_relink="$variables_saved_for_relink"
19319 # Whether libtool must link a program against all its dependency libraries.
19320 link_all_deplibs=$link_all_deplibs_RC
19322 # Compile-time system search path for libraries
19323 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19325 # Run-time system search path for libraries
19326 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19328 # Fix the shell variable \$srcfile for the compiler.
19329 fix_srcfile_path=$lt_fix_srcfile_path
19331 # Set to yes if exported symbols are required.
19332 always_export_symbols=$always_export_symbols_RC
19334 # The commands to list exported symbols.
19335 export_symbols_cmds=$lt_export_symbols_cmds_RC
19337 # The commands to extract the exported symbol list from a shared archive.
19338 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19340 # Symbols that should not be listed in the preloaded symbols.
19341 exclude_expsyms=$lt_exclude_expsyms_RC
19343 # Symbols that must always be exported.
19344 include_expsyms=$lt_include_expsyms_RC
19346 # ### END LIBTOOL TAG CONFIG: $tagname
19352 # If there is no Makefile yet, we rely on a make rule to execute
19353 # `config.status --recheck' to rerun these tests and create the
19354 # libtool script then.
19355 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19356 if test -f "$ltmain_in"; then
19357 test -f Makefile && make "$ltmain"
19363 ac_cpp='$CPP $CPPFLAGS'
19364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19373 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19374 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19375 { (exit 1); exit 1; }; }
19379 # Append the new tag name to the list of available tags.
19380 if test -n "$tagname" ; then
19381 available_tags="$available_tags $tagname"
19387 # Now substitute the updated list of available tags.
19388 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19389 mv "${ofile}T" "$ofile"
19393 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19394 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19395 { (exit 1); exit 1; }; }
19401 # This can be used to rebuild libtool when needed
19402 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19404 # Always use our own libtool.
19405 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19407 # Prevent multiple expansion
19428 LIBTOOL="$LIBTOOL --silent"
19430 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19431 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19432 if test "${ac_cv_header_stdc+set}" = set; then
19433 echo $ECHO_N "(cached) $ECHO_C" >&6
19435 cat >conftest.$ac_ext <<_ACEOF
19438 cat confdefs.h >>conftest.$ac_ext
19439 cat >>conftest.$ac_ext <<_ACEOF
19440 /* end confdefs.h. */
19441 #include <stdlib.h>
19442 #include <stdarg.h>
19443 #include <string.h>
19454 rm -f conftest.$ac_objext
19455 if { (ac_try="$ac_compile"
19456 case "(($ac_try" in
19457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19458 *) ac_try_echo=$ac_try;;
19460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19461 (eval "$ac_compile") 2>conftest.er1
19463 grep -v '^ *+' conftest.er1 >conftest.err
19465 cat conftest.err >&5
19466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467 (exit $ac_status); } && {
19468 test -z "$ac_c_werror_flag" ||
19469 test ! -s conftest.err
19470 } && test -s conftest.$ac_objext; then
19471 ac_cv_header_stdc=yes
19473 echo "$as_me: failed program was:" >&5
19474 sed 's/^/| /' conftest.$ac_ext >&5
19476 ac_cv_header_stdc=no
19479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19481 if test $ac_cv_header_stdc = yes; then
19482 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19483 cat >conftest.$ac_ext <<_ACEOF
19486 cat confdefs.h >>conftest.$ac_ext
19487 cat >>conftest.$ac_ext <<_ACEOF
19488 /* end confdefs.h. */
19489 #include <string.h>
19492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19493 $EGREP "memchr" >/dev/null 2>&1; then
19496 ac_cv_header_stdc=no
19502 if test $ac_cv_header_stdc = yes; then
19503 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19504 cat >conftest.$ac_ext <<_ACEOF
19507 cat confdefs.h >>conftest.$ac_ext
19508 cat >>conftest.$ac_ext <<_ACEOF
19509 /* end confdefs.h. */
19510 #include <stdlib.h>
19513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19514 $EGREP "free" >/dev/null 2>&1; then
19517 ac_cv_header_stdc=no
19523 if test $ac_cv_header_stdc = yes; then
19524 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19525 if test "$cross_compiling" = yes; then
19528 cat >conftest.$ac_ext <<_ACEOF
19531 cat confdefs.h >>conftest.$ac_ext
19532 cat >>conftest.$ac_ext <<_ACEOF
19533 /* end confdefs.h. */
19535 #include <stdlib.h>
19536 #if ((' ' & 0x0FF) == 0x020)
19537 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19538 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19540 # define ISLOWER(c) \
19541 (('a' <= (c) && (c) <= 'i') \
19542 || ('j' <= (c) && (c) <= 'r') \
19543 || ('s' <= (c) && (c) <= 'z'))
19544 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19547 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19552 for (i = 0; i < 256; i++)
19553 if (XOR (islower (i), ISLOWER (i))
19554 || toupper (i) != TOUPPER (i))
19559 rm -f conftest$ac_exeext
19560 if { (ac_try="$ac_link"
19561 case "(($ac_try" in
19562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19563 *) ac_try_echo=$ac_try;;
19565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19566 (eval "$ac_link") 2>&5
19568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19570 { (case "(($ac_try" in
19571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19572 *) ac_try_echo=$ac_try;;
19574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19575 (eval "$ac_try") 2>&5
19577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578 (exit $ac_status); }; }; then
19581 echo "$as_me: program exited with status $ac_status" >&5
19582 echo "$as_me: failed program was:" >&5
19583 sed 's/^/| /' conftest.$ac_ext >&5
19585 ( exit $ac_status )
19586 ac_cv_header_stdc=no
19588 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19594 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19595 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19596 if test $ac_cv_header_stdc = yes; then
19598 cat >>confdefs.h <<\_ACEOF
19599 @%:@define STDC_HEADERS 1
19605 GAIM_MIN=pidgin_version_min
19610 # tell pkgconfig to look in the same prefix we're installing this to,
19611 # as that's likely where gaim will be found if it's not in the default
19613 PREFIX=$ac_default_prefix
19614 if test "$prefix" != "NONE"; then
19618 PKG_CONFIG_PATH="$PKG_CONFIG_PATH":"$PREFIX/lib/pkgconfig"
19619 export PKG_CONFIG_PATH
19622 # Check whether --enable-debug was given.
19623 if test "${enable_debug+set}" = set; then
19624 enableval=$enable_debug;
19630 if test "$enable_debug" = yes; then
19632 cat >>confdefs.h <<\_ACEOF
19641 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19642 if test -n "$ac_tool_prefix"; then
19643 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19644 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19645 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19647 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19648 echo $ECHO_N "(cached) $ECHO_C" >&6
19650 case $PKG_CONFIG in
19652 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19656 for as_dir in $PATH
19659 test -z "$as_dir" && as_dir=.
19660 for ac_exec_ext in '' $ac_executable_extensions; do
19661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19662 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19673 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19674 if test -n "$PKG_CONFIG"; then
19675 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19676 echo "${ECHO_T}$PKG_CONFIG" >&6; }
19678 { echo "$as_me:$LINENO: result: no" >&5
19679 echo "${ECHO_T}no" >&6; }
19684 if test -z "$ac_cv_path_PKG_CONFIG"; then
19685 ac_pt_PKG_CONFIG=$PKG_CONFIG
19686 # Extract the first word of "pkg-config", so it can be a program name with args.
19687 set dummy pkg-config; ac_word=$2
19688 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19690 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
19691 echo $ECHO_N "(cached) $ECHO_C" >&6
19693 case $ac_pt_PKG_CONFIG in
19695 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19699 for as_dir in $PATH
19702 test -z "$as_dir" && as_dir=.
19703 for ac_exec_ext in '' $ac_executable_extensions; do
19704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19705 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19716 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19717 if test -n "$ac_pt_PKG_CONFIG"; then
19718 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
19719 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
19721 { echo "$as_me:$LINENO: result: no" >&5
19722 echo "${ECHO_T}no" >&6; }
19725 if test "x$ac_pt_PKG_CONFIG" = x; then
19728 case $cross_compiling:$ac_tool_warned in
19730 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19731 whose name does not start with the host triplet. If you think this
19732 configuration is useful to you, please write to autoconf@gnu.org." >&5
19733 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19734 whose name does not start with the host triplet. If you think this
19735 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19736 ac_tool_warned=yes ;;
19738 PKG_CONFIG=$ac_pt_PKG_CONFIG
19741 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19745 if test -n "$PKG_CONFIG"; then
19746 _pkg_min_version=0.9.0
19747 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
19748 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
19749 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19750 { echo "$as_me:$LINENO: result: yes" >&5
19751 echo "${ECHO_T}yes" >&6; }
19753 { echo "$as_me:$LINENO: result: no" >&5
19754 echo "${ECHO_T}no" >&6; }
19761 { echo "$as_me:$LINENO: checking for libpurple" >&5
19762 echo $ECHO_N "checking for libpurple... $ECHO_C" >&6; }
19764 if test -n "$libpurple_CFLAGS"; then
19765 pkg_cv_libpurple_CFLAGS="$libpurple_CFLAGS"
19766 elif test -n "$PKG_CONFIG"; then
19767 if test -n "$PKG_CONFIG" && \
19768 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pidgin >= 2.0.0\"") >&5
19769 ($PKG_CONFIG --exists --print-errors "pidgin >= 2.0.0") 2>&5
19771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19772 (exit $ac_status); }; then
19773 pkg_cv_libpurple_CFLAGS=`$PKG_CONFIG --cflags "pidgin >= 2.0.0" 2>/dev/null`
19780 if test -n "$libpurple_LIBS"; then
19781 pkg_cv_libpurple_LIBS="$libpurple_LIBS"
19782 elif test -n "$PKG_CONFIG"; then
19783 if test -n "$PKG_CONFIG" && \
19784 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pidgin >= 2.0.0\"") >&5
19785 ($PKG_CONFIG --exists --print-errors "pidgin >= 2.0.0") 2>&5
19787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19788 (exit $ac_status); }; then
19789 pkg_cv_libpurple_LIBS=`$PKG_CONFIG --libs "pidgin >= 2.0.0" 2>/dev/null`
19799 if test $pkg_failed = yes; then
19801 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19802 _pkg_short_errors_supported=yes
19804 _pkg_short_errors_supported=no
19806 if test $_pkg_short_errors_supported = yes; then
19807 libpurple_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pidgin >= 2.0.0" 2>&1`
19809 libpurple_PKG_ERRORS=`$PKG_CONFIG --print-errors "pidgin >= 2.0.0" 2>&1`
19811 # Put the nasty error message in config.log where it belongs
19812 echo "$libpurple_PKG_ERRORS" >&5
19814 { { echo "$as_me:$LINENO: error: Package requirements (pidgin >= 2.0.0) were not met:
19816 $libpurple_PKG_ERRORS
19818 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19819 installed software in a non-standard prefix.
19821 Alternatively, you may set the environment variables libpurple_CFLAGS
19822 and libpurple_LIBS to avoid the need to call pkg-config.
19823 See the pkg-config man page for more details.
19825 echo "$as_me: error: Package requirements (pidgin >= 2.0.0) were not met:
19827 $libpurple_PKG_ERRORS
19829 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19830 installed software in a non-standard prefix.
19832 Alternatively, you may set the environment variables libpurple_CFLAGS
19833 and libpurple_LIBS to avoid the need to call pkg-config.
19834 See the pkg-config man page for more details.
19836 { (exit 1); exit 1; }; }
19837 elif test $pkg_failed = untried; then
19838 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
19839 is in your PATH or set the PKG_CONFIG environment variable to the full
19840 path to pkg-config.
19842 Alternatively, you may set the environment variables libpurple_CFLAGS
19843 and libpurple_LIBS to avoid the need to call pkg-config.
19844 See the pkg-config man page for more details.
19846 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19847 See \`config.log' for more details." >&5
19848 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
19849 is in your PATH or set the PKG_CONFIG environment variable to the full
19850 path to pkg-config.
19852 Alternatively, you may set the environment variables libpurple_CFLAGS
19853 and libpurple_LIBS to avoid the need to call pkg-config.
19854 See the pkg-config man page for more details.
19856 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19857 See \`config.log' for more details." >&2;}
19858 { (exit 1); exit 1; }; }
19860 libpurple_CFLAGS=$pkg_cv_libpurple_CFLAGS
19861 libpurple_LIBS=$pkg_cv_libpurple_LIBS
19862 { echo "$as_me:$LINENO: result: yes" >&5
19863 echo "${ECHO_T}yes" >&6; }
19866 cat >>confdefs.h <<\_ACEOF
19867 @%:@define HAVE_PIDGIN 1
19873 PIDGIN_CFLAGS=`$PKG_CONFIG --cflags purple`
19874 PIDGIN_LIBS=`$PKG_CONFIG --libs purple`
19879 { echo "$as_me:$LINENO: checking for inet_aton" >&5
19880 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
19881 if test "${ac_cv_func_inet_aton+set}" = set; then
19882 echo $ECHO_N "(cached) $ECHO_C" >&6
19884 cat >conftest.$ac_ext <<_ACEOF
19887 cat confdefs.h >>conftest.$ac_ext
19888 cat >>conftest.$ac_ext <<_ACEOF
19889 /* end confdefs.h. */
19890 /* Define inet_aton to an innocuous variant, in case <limits.h> declares inet_aton.
19891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19892 #define inet_aton innocuous_inet_aton
19894 /* System header to define __stub macros and hopefully few prototypes,
19895 which can conflict with char inet_aton (); below.
19896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19897 <limits.h> exists even on freestanding compilers. */
19900 # include <limits.h>
19902 # include <assert.h>
19907 /* Override any GCC internal prototype to avoid an error.
19908 Use char because int might match the return type of a GCC
19909 builtin and then its argument prototype would still apply. */
19914 /* The GNU C library defines this for functions which it implements
19915 to always fail with ENOSYS. Some functions are actually named
19916 something starting with __ and the normal name is an alias. */
19917 #if defined __stub_inet_aton || defined __stub___inet_aton
19924 return inet_aton ();
19929 rm -f conftest.$ac_objext conftest$ac_exeext
19930 if { (ac_try="$ac_link"
19931 case "(($ac_try" in
19932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19933 *) ac_try_echo=$ac_try;;
19935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19936 (eval "$ac_link") 2>conftest.er1
19938 grep -v '^ *+' conftest.er1 >conftest.err
19940 cat conftest.err >&5
19941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19942 (exit $ac_status); } && {
19943 test -z "$ac_c_werror_flag" ||
19944 test ! -s conftest.err
19945 } && test -s conftest$ac_exeext &&
19946 $as_test_x conftest$ac_exeext; then
19947 ac_cv_func_inet_aton=yes
19949 echo "$as_me: failed program was:" >&5
19950 sed 's/^/| /' conftest.$ac_ext >&5
19952 ac_cv_func_inet_aton=no
19955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19956 conftest$ac_exeext conftest.$ac_ext
19958 { echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton" >&5
19959 echo "${ECHO_T}$ac_cv_func_inet_aton" >&6; }
19960 if test $ac_cv_func_inet_aton = yes; then
19964 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
19965 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
19966 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
19967 echo $ECHO_N "(cached) $ECHO_C" >&6
19969 ac_check_lib_save_LIBS=$LIBS
19970 LIBS="-lresolv $LIBS"
19971 cat >conftest.$ac_ext <<_ACEOF
19974 cat confdefs.h >>conftest.$ac_ext
19975 cat >>conftest.$ac_ext <<_ACEOF
19976 /* end confdefs.h. */
19978 /* Override any GCC internal prototype to avoid an error.
19979 Use char because int might match the return type of a GCC
19980 builtin and then its argument prototype would still apply. */
19988 return inet_aton ();
19993 rm -f conftest.$ac_objext conftest$ac_exeext
19994 if { (ac_try="$ac_link"
19995 case "(($ac_try" in
19996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19997 *) ac_try_echo=$ac_try;;
19999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20000 (eval "$ac_link") 2>conftest.er1
20002 grep -v '^ *+' conftest.er1 >conftest.err
20004 cat conftest.err >&5
20005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006 (exit $ac_status); } && {
20007 test -z "$ac_c_werror_flag" ||
20008 test ! -s conftest.err
20009 } && test -s conftest$ac_exeext &&
20010 $as_test_x conftest$ac_exeext; then
20011 ac_cv_lib_resolv_inet_aton=yes
20013 echo "$as_me: failed program was:" >&5
20014 sed 's/^/| /' conftest.$ac_ext >&5
20016 ac_cv_lib_resolv_inet_aton=no
20019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20020 conftest$ac_exeext conftest.$ac_ext
20021 LIBS=$ac_check_lib_save_LIBS
20023 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
20024 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
20025 if test $ac_cv_lib_resolv_inet_aton = yes; then
20026 cat >>confdefs.h <<_ACEOF
20027 @%:@define HAVE_LIBRESOLV 1
20030 LIBS="-lresolv $LIBS"
20033 { { echo "$as_me:$LINENO: error: inet_aton not found" >&5
20034 echo "$as_me: error: inet_aton not found" >&2;}
20035 { (exit 1); exit 1; }; }
20041 SIPE_LIBA=`$PKG_CONFIG sipe --variable=libarchive`
20044 # Check whether --enable-static-sipe was given.
20045 if test "${enable_static_sipe+set}" = set; then
20046 enableval=$enable_static_sipe; sipe_static="yes"
20052 if test $sipe_static = yes; then
20054 SIPE_STATIC_FALSE='#'
20056 SIPE_STATIC_TRUE='#'
20061 # substitutions and generated files
20062 ac_config_files="$ac_config_files src/config.h Makefile pixmaps/Makefile pixmaps/16/Makefile pixmaps/22/Makefile pixmaps/48/Makefile src/Makefile"
20065 cat >confcache <<\_ACEOF
20066 # This file is a shell script that caches the results of configure
20067 # tests run on this system so they can be shared between configure
20068 # scripts and configure runs, see configure's option --config-cache.
20069 # It is not useful on other systems. If it contains results you don't
20070 # want to keep, you may remove or edit it.
20072 # config.status only pays attention to the cache file if you give it
20073 # the --recheck option to rerun configure.
20075 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20076 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20077 # following values.
20081 # The following way of writing the cache mishandles newlines in values,
20082 # but we know of no workaround that is simple, portable, and efficient.
20083 # So, we kill variables containing newlines.
20084 # Ultrix sh set writes to stderr and can't be redirected directly,
20085 # and sets the high bit in the cache file unless we assign to the vars.
20087 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20088 eval ac_val=\$$ac_var
20092 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20093 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20096 _ | IFS | as_nl) ;; #(
20097 *) $as_unset $ac_var ;;
20103 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20104 *${as_nl}ac_space=\ *)
20105 # `set' does not quote correctly, so add quotes (double-quote
20106 # substitution turns \\\\ into \\, and sed turns \\ into \).
20109 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20112 # `set' quotes correctly as required by POSIX, so do not add quotes.
20113 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20122 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20124 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20126 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20127 if test -w "$cache_file"; then
20128 test "x$cache_file" != "x/dev/null" &&
20129 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20130 echo "$as_me: updating cache $cache_file" >&6;}
20131 cat confcache >$cache_file
20133 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20134 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20139 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20140 # Let make expand exec_prefix.
20141 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20143 # Transform confdefs.h into DEFS.
20144 # Protect against shell expansion while executing Makefile rules.
20145 # Protect against Makefile macro expansion.
20147 # If the first sed substitution is executed (which looks for macros that
20148 # take arguments), then branch to the quote section. Otherwise,
20149 # look for a macro that doesn't take arguments.
20153 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
20155 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
20159 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
20172 DEFS=`sed -n "$ac_script" confdefs.h`
20177 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
20178 # 1. Remove the extension, and $U if already installed.
20179 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20180 ac_i=`echo "$ac_i" | sed "$ac_script"`
20181 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20182 # will be set to the directory where LIBOBJS objects are built.
20183 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20184 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20186 LIB@&t@OBJS=$ac_libobjs
20188 LTLIBOBJS=$ac_ltlibobjs
20191 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20192 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20193 Usually this means the macro was only invoked conditionally." >&5
20194 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20195 Usually this means the macro was only invoked conditionally." >&2;}
20196 { (exit 1); exit 1; }; }
20198 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20199 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20200 Usually this means the macro was only invoked conditionally." >&5
20201 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20202 Usually this means the macro was only invoked conditionally." >&2;}
20203 { (exit 1); exit 1; }; }
20205 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20206 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20207 Usually this means the macro was only invoked conditionally." >&5
20208 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20209 Usually this means the macro was only invoked conditionally." >&2;}
20210 { (exit 1); exit 1; }; }
20212 if test -z "${SIPE_STATIC_TRUE}" && test -z "${SIPE_STATIC_FALSE}"; then
20213 { { echo "$as_me:$LINENO: error: conditional \"SIPE_STATIC\" was never defined.
20214 Usually this means the macro was only invoked conditionally." >&5
20215 echo "$as_me: error: conditional \"SIPE_STATIC\" was never defined.
20216 Usually this means the macro was only invoked conditionally." >&2;}
20217 { (exit 1); exit 1; }; }
20220 : ${CONFIG_STATUS=./config.status}
20221 ac_clean_files_save=$ac_clean_files
20222 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20223 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20224 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20225 cat >$CONFIG_STATUS <<_ACEOF
20227 # Generated by $as_me.
20228 # Run this file to recreate the current configuration.
20229 # Compiler output produced by configure, useful for debugging
20230 # configure, is in config.log if it exists.
20233 ac_cs_recheck=false
20235 SHELL=\${CONFIG_SHELL-$SHELL}
20238 cat >>$CONFIG_STATUS <<\_ACEOF
20239 ## --------------------- ##
20240 ## M4sh Initialization. ##
20241 ## --------------------- ##
20243 # Be more Bourne compatible
20244 DUALCASE=1; export DUALCASE # for MKS sh
20245 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20248 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20249 # is contrary to our usage. Disable this feature.
20250 alias -g '${1+"$@"}'='"$@"'
20251 setopt NO_GLOB_SUBST
20253 case `(set -o) 2>/dev/null` in
20254 *posix*) set -o posix ;;
20263 # Avoid depending upon Character Ranges.
20264 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20265 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20266 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20267 as_cr_digits='0123456789'
20268 as_cr_alnum=$as_cr_Letters$as_cr_digits
20270 # The user is always right.
20271 if test "${PATH_SEPARATOR+set}" != set; then
20272 echo "#! /bin/sh" >conf$$.sh
20273 echo "exit 0" >>conf$$.sh
20275 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20283 # Support unset when possible.
20284 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20292 # We need space, tab and new line, in precisely that order. Quoting is
20293 # there to prevent editors from complaining about space-tab.
20294 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20295 # splitting by setting IFS to empty value.)
20300 # Find who we are. Look in the path if we contain no directory separator.
20302 *[\\/]* ) as_myself=$0 ;;
20303 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20304 for as_dir in $PATH
20307 test -z "$as_dir" && as_dir=.
20308 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20314 # We did not find ourselves, most probably we were run as `sh COMMAND'
20315 # in which case we are not to be found in the path.
20316 if test "x$as_myself" = x; then
20319 if test ! -f "$as_myself"; then
20320 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20321 { (exit 1); exit 1; }
20324 # Work around bugs in pre-3.0 UWIN ksh.
20325 for as_var in ENV MAIL MAILPATH
20326 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20334 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20335 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20336 LC_TELEPHONE LC_TIME
20338 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20339 eval $as_var=C; export $as_var
20341 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20345 # Required to use basename.
20346 if expr a : '\(a\)' >/dev/null 2>&1 &&
20347 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20353 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20354 as_basename=basename
20360 # Name of the executable.
20361 as_me=`$as_basename -- "$0" ||
20362 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20363 X"$0" : 'X\(//\)$' \| \
20364 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20366 sed '/^.*\/\([^/][^/]*\)\/*$/{
20385 as_lineno_1=$LINENO
20386 as_lineno_2=$LINENO
20387 test "x$as_lineno_1" != "x$as_lineno_2" &&
20388 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20390 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20391 # uniformly replaced by the line number. The first 'sed' inserts a
20392 # line-number line after each line using $LINENO; the second 'sed'
20393 # does the real work. The second script uses 'N' to pair each
20394 # line-number line with the line containing $LINENO, and appends
20395 # trailing '-' during substitution so that $LINENO is not a special
20396 # case at line end.
20397 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20398 # scripts with optimization help from Paolo Bonzini. Blame Lee
20399 # E. McMahon (1931-1989) for sed's syntax. :-)
20411 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20414 ' >$as_me.lineno &&
20415 chmod +x "$as_me.lineno" ||
20416 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20417 { (exit 1); exit 1; }; }
20419 # Don't try to exec as it changes $[0], causing all sort of problems
20420 # (the dirname of $[0] is not the place where we might find the
20421 # original and so on. Autoconf is especially sensitive to this).
20422 . "./$as_me.lineno"
20423 # Exit status is that of the last command.
20428 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20434 ECHO_C= ECHO_N= ECHO_T=
20435 case `echo -n x` in
20437 case `echo 'x\c'` in
20438 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20445 if expr a : '\(a\)' >/dev/null 2>&1 &&
20446 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20452 rm -f conf$$ conf$$.exe conf$$.file
20453 if test -d conf$$.dir; then
20454 rm -f conf$$.dir/conf$$.file
20460 if ln -s conf$$.file conf$$ 2>/dev/null; then
20462 # ... but there are two gotchas:
20463 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20464 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20465 # In both cases, we have to default to `cp -p'.
20466 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20468 elif ln conf$$.file conf$$ 2>/dev/null; then
20473 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20474 rmdir conf$$.dir 2>/dev/null
20476 if mkdir -p . 2>/dev/null; then
20479 test -d ./-p && rmdir ./-p
20483 if test -x / >/dev/null 2>&1; then
20484 as_test_x='test -x'
20486 if ls -dL / >/dev/null 2>&1; then
20493 if test -d "$1"; then
20499 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20500 ???[sx]*):;;*)false;;esac;fi
20504 as_executable_p=$as_test_x
20506 # Sed expression to map a string onto a valid CPP name.
20507 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20509 # Sed expression to map a string onto a valid variable name.
20510 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20515 # Save the log message, to keep $[0] and so on meaningful, and to
20516 # report actual input values of CONFIG_FILES etc. instead of their
20517 # values after options handling.
20519 This file was extended by $as_me, which was
20520 generated by GNU Autoconf 2.61. Invocation command line was
20522 CONFIG_FILES = $CONFIG_FILES
20523 CONFIG_HEADERS = $CONFIG_HEADERS
20524 CONFIG_LINKS = $CONFIG_LINKS
20525 CONFIG_COMMANDS = $CONFIG_COMMANDS
20528 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20533 cat >>$CONFIG_STATUS <<_ACEOF
20534 # Files that config.status was made for.
20535 config_files="$ac_config_files"
20536 config_commands="$ac_config_commands"
20540 cat >>$CONFIG_STATUS <<\_ACEOF
20542 \`$as_me' instantiates files from templates according to the
20543 current configuration.
20545 Usage: $0 [OPTIONS] [FILE]...
20547 -h, --help print this help, then exit
20548 -V, --version print version number and configuration settings, then exit
20549 -q, --quiet do not print progress messages
20550 -d, --debug don't remove temporary files
20551 --recheck update $as_me by reconfiguring in the same conditions
20552 --file=FILE[:TEMPLATE]
20553 instantiate the configuration file FILE
20555 Configuration files:
20558 Configuration commands:
20561 Report bugs to <bug-autoconf@gnu.org>."
20564 cat >>$CONFIG_STATUS <<_ACEOF
20567 configured by $0, generated by GNU Autoconf 2.61,
20568 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20570 Copyright (C) 2006 Free Software Foundation, Inc.
20571 This config.status script is free software; the Free Software Foundation
20572 gives unlimited permission to copy, distribute and modify it."
20580 cat >>$CONFIG_STATUS <<\_ACEOF
20581 # If no file are specified by the user, then we need to provide default
20582 # value. By we need to know if files were specified by the user.
20588 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20589 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20600 # Handling of the options.
20601 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20603 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20604 echo "$ac_cs_version"; exit ;;
20605 --debug | --debu | --deb | --de | --d | -d )
20607 --file | --fil | --fi | --f )
20609 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20610 ac_need_defaults=false;;
20611 --he | --h | --help | --hel | -h )
20612 echo "$ac_cs_usage"; exit ;;
20613 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20614 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20617 # This is an error.
20618 -*) { echo "$as_me: error: unrecognized option: $1
20619 Try \`$0 --help' for more information." >&2
20620 { (exit 1); exit 1; }; } ;;
20622 *) ac_config_targets="$ac_config_targets $1"
20623 ac_need_defaults=false ;;
20629 ac_configure_extra_args=
20631 if $ac_cs_silent; then
20633 ac_configure_extra_args="$ac_configure_extra_args --silent"
20637 cat >>$CONFIG_STATUS <<_ACEOF
20638 if \$ac_cs_recheck; then
20639 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20640 CONFIG_SHELL=$SHELL
20641 export CONFIG_SHELL
20642 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20646 cat >>$CONFIG_STATUS <<\_ACEOF
20650 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
20651 @%:@@%:@ Running $as_me. @%:@@%:@
20657 cat >>$CONFIG_STATUS <<_ACEOF
20661 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20665 cat >>$CONFIG_STATUS <<\_ACEOF
20667 # Handling of arguments.
20668 for ac_config_target in $ac_config_targets
20670 case $ac_config_target in
20671 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20672 "src/config.h") CONFIG_FILES="$CONFIG_FILES src/config.h" ;;
20673 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20674 "pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/Makefile" ;;
20675 "pixmaps/16/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/16/Makefile" ;;
20676 "pixmaps/22/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/22/Makefile" ;;
20677 "pixmaps/48/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/48/Makefile" ;;
20678 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20680 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20681 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20682 { (exit 1); exit 1; }; };;
20687 # If the user did not use the arguments to specify the items to instantiate,
20688 # then the envvar interface is used. Set only those that are not.
20689 # We use the long form for the default assignment because of an extremely
20690 # bizarre bug on SunOS 4.1.3.
20691 if $ac_need_defaults; then
20692 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20693 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20696 # Have a temporary directory for convenience. Make it in the build tree
20697 # simply because there is no reason against having it here, and in addition,
20698 # creating and moving files from /tmp can sometimes cause problems.
20699 # Hook for its removal unless debugging.
20700 # Note that there is a small window in which the directory will not be cleaned:
20701 # after its creation but before its name has been assigned to `$tmp'.
20705 trap 'exit_status=$?
20706 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20708 trap '{ (exit 1); exit 1; }' 1 2 13 15
20710 # Create a (secure) tmp directory for tmp files.
20713 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20714 test -n "$tmp" && test -d "$tmp"
20717 tmp=./conf$$-$RANDOM
20718 (umask 077 && mkdir "$tmp")
20721 echo "$me: cannot create a temporary directory in ." >&2
20722 { (exit 1); exit 1; }
20726 # Set up the sed scripts for CONFIG_FILES section.
20729 # No need to generate the scripts if there are no CONFIG_FILES.
20730 # This happens for instance when ./config.status config.h
20731 if test -n "$CONFIG_FILES"; then
20738 for ac_last_try in false false false false false :; do
20739 cat >conf$$subs.sed <<_ACEOF
20740 SHELL!$SHELL$ac_delim
20741 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20742 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20743 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20744 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20745 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20746 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20747 exec_prefix!$exec_prefix$ac_delim
20748 prefix!$prefix$ac_delim
20749 program_transform_name!$program_transform_name$ac_delim
20750 bindir!$bindir$ac_delim
20751 sbindir!$sbindir$ac_delim
20752 libexecdir!$libexecdir$ac_delim
20753 datarootdir!$datarootdir$ac_delim
20754 datadir!$datadir$ac_delim
20755 sysconfdir!$sysconfdir$ac_delim
20756 sharedstatedir!$sharedstatedir$ac_delim
20757 localstatedir!$localstatedir$ac_delim
20758 includedir!$includedir$ac_delim
20759 oldincludedir!$oldincludedir$ac_delim
20760 docdir!$docdir$ac_delim
20761 infodir!$infodir$ac_delim
20762 htmldir!$htmldir$ac_delim
20763 dvidir!$dvidir$ac_delim
20764 pdfdir!$pdfdir$ac_delim
20765 psdir!$psdir$ac_delim
20766 libdir!$libdir$ac_delim
20767 localedir!$localedir$ac_delim
20768 mandir!$mandir$ac_delim
20769 DEFS!$DEFS$ac_delim
20770 ECHO_C!$ECHO_C$ac_delim
20771 ECHO_N!$ECHO_N$ac_delim
20772 ECHO_T!$ECHO_T$ac_delim
20773 LIBS!$LIBS$ac_delim
20774 build_alias!$build_alias$ac_delim
20775 host_alias!$host_alias$ac_delim
20776 target_alias!$target_alias$ac_delim
20777 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20778 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20779 INSTALL_DATA!$INSTALL_DATA$ac_delim
20780 am__isrc!$am__isrc$ac_delim
20781 CYGPATH_W!$CYGPATH_W$ac_delim
20782 PACKAGE!$PACKAGE$ac_delim
20783 VERSION!$VERSION$ac_delim
20784 ACLOCAL!$ACLOCAL$ac_delim
20785 AUTOCONF!$AUTOCONF$ac_delim
20786 AUTOMAKE!$AUTOMAKE$ac_delim
20787 AUTOHEADER!$AUTOHEADER$ac_delim
20788 MAKEINFO!$MAKEINFO$ac_delim
20789 install_sh!$install_sh$ac_delim
20790 STRIP!$STRIP$ac_delim
20791 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
20792 mkdir_p!$mkdir_p$ac_delim
20794 SET_MAKE!$SET_MAKE$ac_delim
20795 am__leading_dot!$am__leading_dot$ac_delim
20796 AMTAR!$AMTAR$ac_delim
20797 am__tar!$am__tar$ac_delim
20798 am__untar!$am__untar$ac_delim
20800 CFLAGS!$CFLAGS$ac_delim
20801 LDFLAGS!$LDFLAGS$ac_delim
20802 CPPFLAGS!$CPPFLAGS$ac_delim
20803 ac_ct_CC!$ac_ct_CC$ac_delim
20804 EXEEXT!$EXEEXT$ac_delim
20805 OBJEXT!$OBJEXT$ac_delim
20806 DEPDIR!$DEPDIR$ac_delim
20807 am__include!$am__include$ac_delim
20808 am__quote!$am__quote$ac_delim
20809 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
20810 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
20811 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
20812 CCDEPMODE!$CCDEPMODE$ac_delim
20813 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
20814 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
20815 build!$build$ac_delim
20816 build_cpu!$build_cpu$ac_delim
20817 build_vendor!$build_vendor$ac_delim
20818 build_os!$build_os$ac_delim
20819 host!$host$ac_delim
20820 host_cpu!$host_cpu$ac_delim
20821 host_vendor!$host_vendor$ac_delim
20822 host_os!$host_os$ac_delim
20824 GREP!$GREP$ac_delim
20825 EGREP!$EGREP$ac_delim
20826 LN_S!$LN_S$ac_delim
20827 ECHO!$ECHO$ac_delim
20829 RANLIB!$RANLIB$ac_delim
20832 CXXFLAGS!$CXXFLAGS$ac_delim
20833 ac_ct_CXX!$ac_ct_CXX$ac_delim
20834 CXXDEPMODE!$CXXDEPMODE$ac_delim
20835 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
20836 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
20839 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20841 elif $ac_last_try; then
20842 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20843 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20844 { (exit 1); exit 1; }; }
20846 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20850 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20851 if test -n "$ac_eof"; then
20852 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20853 ac_eof=`expr $ac_eof + 1`
20856 cat >>$CONFIG_STATUS <<_ACEOF
20857 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20858 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20861 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20862 s/^/s,@/; s/!/@,|#_!!_#|/
20865 s/'"$ac_delim"'$/,g/; t
20867 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20868 ' >>$CONFIG_STATUS <conf$$subs.sed
20869 rm -f conf$$subs.sed
20870 cat >>$CONFIG_STATUS <<_ACEOF
20876 for ac_last_try in false false false false false :; do
20877 cat >conf$$subs.sed <<_ACEOF
20878 CXXCPP!$CXXCPP$ac_delim
20880 FFLAGS!$FFLAGS$ac_delim
20881 ac_ct_F77!$ac_ct_F77$ac_delim
20882 LIBTOOL!$LIBTOOL$ac_delim
20883 PIDGIN_MIN!$PIDGIN_MIN$ac_delim
20884 PIDGIN_MAX!$PIDGIN_MAX$ac_delim
20885 PKG_CONFIG!$PKG_CONFIG$ac_delim
20886 libpurple_CFLAGS!$libpurple_CFLAGS$ac_delim
20887 libpurple_LIBS!$libpurple_LIBS$ac_delim
20888 PIDGIN_CFLAGS!$PIDGIN_CFLAGS$ac_delim
20889 PIDGIN_LIBS!$PIDGIN_LIBS$ac_delim
20890 SIPE_LIBA!$SIPE_LIBA$ac_delim
20891 SIPE_STATIC_TRUE!$SIPE_STATIC_TRUE$ac_delim
20892 SIPE_STATIC_FALSE!$SIPE_STATIC_FALSE$ac_delim
20893 LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim
20894 LTLIBOBJS!$LTLIBOBJS$ac_delim
20897 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 17; then
20899 elif $ac_last_try; then
20900 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20901 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20902 { (exit 1); exit 1; }; }
20904 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20908 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20909 if test -n "$ac_eof"; then
20910 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20911 ac_eof=`expr $ac_eof + 1`
20914 cat >>$CONFIG_STATUS <<_ACEOF
20915 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20916 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20919 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20920 s/^/s,@/; s/!/@,|#_!!_#|/
20923 s/'"$ac_delim"'$/,g/; t
20925 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20926 ' >>$CONFIG_STATUS <conf$$subs.sed
20927 rm -f conf$$subs.sed
20928 cat >>$CONFIG_STATUS <<_ACEOF
20935 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20936 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20937 # trailing colons and then remove the whole line if VPATH becomes empty
20938 # (actually we leave an empty line to preserve line numbers).
20939 if test "x$srcdir" = x.; then
20940 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20941 s/:*\$(srcdir):*/:/
20942 s/:*\${srcdir}:*/:/
20944 s/^\([^=]*=[ ]*\):*/\1/
20950 cat >>$CONFIG_STATUS <<\_ACEOF
20951 fi # test -n "$CONFIG_FILES"
20954 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
20957 :[FHLC]) ac_mode=$ac_tag; continue;;
20959 case $ac_mode$ac_tag in
20961 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20962 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20963 { (exit 1); exit 1; }; };;
20964 :[FH]-) ac_tag=-:-;;
20965 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20982 -) ac_f="$tmp/stdin";;
20983 *) # Look for the file first in the build tree, then in the source tree
20984 # (if the path is not absolute). The absolute path cannot be DOS-style,
20985 # because $ac_f cannot contain `:'.
20989 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20991 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20992 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20993 { (exit 1); exit 1; }; };;
20995 ac_file_inputs="$ac_file_inputs $ac_f"
20998 # Let's still pretend it is `configure' which instantiates (i.e., don't
20999 # use $as_me), people would be surprised to read:
21000 # /* config.h. Generated by config.status. */
21001 configure_input="Generated from "`IFS=:
21002 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21003 if test x"$ac_file" != x-; then
21004 configure_input="$ac_file. $configure_input"
21005 { echo "$as_me:$LINENO: creating $ac_file" >&5
21006 echo "$as_me: creating $ac_file" >&6;}
21010 *:-:* | *:-) cat >"$tmp/stdin";;
21015 ac_dir=`$as_dirname -- "$ac_file" ||
21016 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21017 X"$ac_file" : 'X\(//\)[^/]' \| \
21018 X"$ac_file" : 'X\(//\)$' \| \
21019 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21025 /^X\(\/\/\)[^/].*/{
21040 -*) as_dir=./$as_dir;;
21042 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21046 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21047 *) as_qdir=$as_dir;;
21049 as_dirs="'$as_qdir' $as_dirs"
21050 as_dir=`$as_dirname -- "$as_dir" ||
21051 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21052 X"$as_dir" : 'X\(//\)[^/]' \| \
21053 X"$as_dir" : 'X\(//\)$' \| \
21054 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21060 /^X\(\/\/\)[^/].*/{
21073 test -d "$as_dir" && break
21075 test -z "$as_dirs" || eval "mkdir $as_dirs"
21076 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21077 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21078 { (exit 1); exit 1; }; }; }
21082 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21084 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21085 # A ".." for each directory in $ac_dir_suffix.
21086 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21087 case $ac_top_builddir_sub in
21088 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21089 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21092 ac_abs_top_builddir=$ac_pwd
21093 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21094 # for backward compatibility:
21095 ac_top_builddir=$ac_top_build_prefix
21098 .) # We are building in place.
21100 ac_top_srcdir=$ac_top_builddir_sub
21101 ac_abs_top_srcdir=$ac_pwd ;;
21102 [\\/]* | ?:[\\/]* ) # Absolute name.
21103 ac_srcdir=$srcdir$ac_dir_suffix;
21104 ac_top_srcdir=$srcdir
21105 ac_abs_top_srcdir=$srcdir ;;
21106 *) # Relative name.
21107 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21108 ac_top_srcdir=$ac_top_build_prefix$srcdir
21109 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21111 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21121 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21122 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21124 ac_MKDIR_P=$MKDIR_P
21126 [\\/$]* | ?:[\\/]* ) ;;
21127 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21131 cat >>$CONFIG_STATUS <<\_ACEOF
21132 # If the template does not know about datarootdir, expand it.
21133 # FIXME: This hack should be removed a few years after 2.60.
21134 ac_datarootdir_hack=; ac_datarootdir_seen=
21136 case `sed -n '/datarootdir/ {
21145 ' $ac_file_inputs` in
21146 *datarootdir*) ac_datarootdir_seen=yes;;
21147 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21148 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21149 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21151 cat >>$CONFIG_STATUS <<_ACEOF
21152 ac_datarootdir_hack='
21153 s&@datadir@&$datadir&g
21154 s&@docdir@&$docdir&g
21155 s&@infodir@&$infodir&g
21156 s&@localedir@&$localedir&g
21157 s&@mandir@&$mandir&g
21158 s&\\\${datarootdir}&$datarootdir&g' ;;
21162 # Neutralize VPATH when `$srcdir' = `.'.
21163 # Shell code in configure.ac might set extrasub.
21164 # FIXME: do we really want to maintain this feature?
21165 cat >>$CONFIG_STATUS <<_ACEOF
21169 cat >>$CONFIG_STATUS <<\_ACEOF
21171 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21172 s&@configure_input@&$configure_input&;t t
21173 s&@top_builddir@&$ac_top_builddir_sub&;t t
21174 s&@srcdir@&$ac_srcdir&;t t
21175 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21176 s&@top_srcdir@&$ac_top_srcdir&;t t
21177 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21178 s&@builddir@&$ac_builddir&;t t
21179 s&@abs_builddir@&$ac_abs_builddir&;t t
21180 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21181 s&@INSTALL@&$ac_INSTALL&;t t
21182 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21183 $ac_datarootdir_hack
21184 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21186 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21187 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21188 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21189 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21190 which seems to be undefined. Please make sure it is defined." >&5
21191 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21192 which seems to be undefined. Please make sure it is defined." >&2;}
21196 -) cat "$tmp/out"; rm -f "$tmp/out";;
21197 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21202 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21203 echo "$as_me: executing $ac_file commands" >&6;}
21208 case $ac_file$ac_mode in
21209 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21210 # Strip MF so we end up with the name of the file.
21211 mf=`echo "$mf" | sed -e 's/:.*$//'`
21212 # Check whether this is an Automake generated Makefile or not.
21213 # We used to match only the files named `Makefile.in', but
21214 # some people rename them; so instead we look at the file content.
21215 # Grep'ing the first line is not enough: some people post-process
21216 # each Makefile.in and add a new line on top of each file to say so.
21217 # Grep'ing the whole file is not good either: AIX grep has a line
21218 # limit of 2048, but all sed's we know have understand at least 4000.
21219 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21220 dirpart=`$as_dirname -- "$mf" ||
21221 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21222 X"$mf" : 'X\(//\)[^/]' \| \
21223 X"$mf" : 'X\(//\)$' \| \
21224 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21226 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21230 /^X\(\/\/\)[^/].*/{
21246 # Extract the definition of DEPDIR, am__include, and am__quote
21247 # from the Makefile without running `make'.
21248 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21249 test -z "$DEPDIR" && continue
21250 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21251 test -z "am__include" && continue
21252 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21253 # When using ansi2knr, U may be empty or an underscore; expand it
21254 U=`sed -n 's/^U = //p' < "$mf"`
21255 # Find all dependency output files, they are included files with
21256 # $(DEPDIR) in their names. We invoke sed twice because it is the
21257 # simplest approach to changing $(DEPDIR) to its actual value in the
21259 for file in `sed -n "
21260 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21261 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21262 # Make sure the directory exists.
21263 test -f "$dirpart/$file" && continue
21264 fdir=`$as_dirname -- "$file" ||
21265 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21266 X"$file" : 'X\(//\)[^/]' \| \
21267 X"$file" : 'X\(//\)$' \| \
21268 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21274 /^X\(\/\/\)[^/].*/{
21287 { as_dir=$dirpart/$fdir
21289 -*) as_dir=./$as_dir;;
21291 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21295 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21296 *) as_qdir=$as_dir;;
21298 as_dirs="'$as_qdir' $as_dirs"
21299 as_dir=`$as_dirname -- "$as_dir" ||
21300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21301 X"$as_dir" : 'X\(//\)[^/]' \| \
21302 X"$as_dir" : 'X\(//\)$' \| \
21303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21309 /^X\(\/\/\)[^/].*/{
21322 test -d "$as_dir" && break
21324 test -z "$as_dirs" || eval "mkdir $as_dirs"
21325 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21326 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21327 { (exit 1); exit 1; }; }; }
21328 # echo "creating $dirpart/$file"
21329 echo '# dummy' > "$dirpart/$file"
21338 { (exit 0); exit 0; }
21340 chmod +x $CONFIG_STATUS
21341 ac_clean_files=$ac_clean_files_save
21344 # configure is writing to config.log, and then calls config.status.
21345 # config.status does its own redirection, appending to config.log.
21346 # Unfortunately, on DOS this fails, as config.log is still kept open
21347 # by configure, so config.status won't be able to write to it; its
21348 # output is simply discarded. So we exec the FD to /dev/null,
21349 # effectively closing config.log, so it can be properly (re)opened and
21350 # appended to by config.status. When coming back to configure, we
21351 # need to make the FD available again.
21352 if test "$no_create" != yes; then
21354 ac_config_status_args=
21355 test "$silent" = yes &&
21356 ac_config_status_args="$ac_config_status_args --quiet"
21358 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21360 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21361 # would make configure fail if this is the last instruction.
21362 $ac_cs_success || { (exit 1); exit 1; }
21368 echo -n "Simple Exchange linking mode... : "
21369 if test "$sipe_static" = "yes" ; then
21371 echo "Simple Exchange library... : $SIPE_LIBA"
21377 echo configure complete, now run \`make\`