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
819 INSTALL_STRIP_PROGRAM
882 ac_precious_vars='build_alias
902 # Initialize some variables set by options.
904 ac_init_version=false
905 # The variables have the same names as the options, with
906 # dashes changed to underlines.
914 program_transform_name=s,x,x,
922 # Installation directory options.
923 # These are left unexpanded so users can "make install exec_prefix=/foo"
924 # and all the variables that are supposed to be based on exec_prefix
925 # by default will actually change.
926 # Use braces instead of parens because sh, perl, etc. also accept them.
927 # (The list follows the same order as the GNU Coding Standards.)
928 bindir='${exec_prefix}/bin'
929 sbindir='${exec_prefix}/sbin'
930 libexecdir='${exec_prefix}/libexec'
931 datarootdir='${prefix}/share'
932 datadir='${datarootdir}'
933 sysconfdir='${prefix}/etc'
934 sharedstatedir='${prefix}/com'
935 localstatedir='${prefix}/var'
936 includedir='${prefix}/include'
937 oldincludedir='/usr/include'
938 docdir='${datarootdir}/doc/${PACKAGE}'
939 infodir='${datarootdir}/info'
944 libdir='${exec_prefix}/lib'
945 localedir='${datarootdir}/locale'
946 mandir='${datarootdir}/man'
952 # If the previous option needs an argument, assign it.
953 if test -n "$ac_prev"; then
954 eval $ac_prev=\$ac_option
960 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
964 # Accept the important Cygnus configure options, so we can diagnose typos.
966 case $ac_dashdash$ac_option in
970 -bindir | --bindir | --bindi | --bind | --bin | --bi)
972 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
975 -build | --build | --buil | --bui | --bu)
976 ac_prev=build_alias ;;
977 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
978 build_alias=$ac_optarg ;;
980 -cache-file | --cache-file | --cache-fil | --cache-fi \
981 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
982 ac_prev=cache_file ;;
983 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
984 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
985 cache_file=$ac_optarg ;;
988 cache_file=config.cache ;;
990 -datadir | --datadir | --datadi | --datad)
992 -datadir=* | --datadir=* | --datadi=* | --datad=*)
993 datadir=$ac_optarg ;;
995 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
996 | --dataroo | --dataro | --datar)
997 ac_prev=datarootdir ;;
998 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
999 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1000 datarootdir=$ac_optarg ;;
1002 -disable-* | --disable-*)
1003 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1004 # Reject names that are not valid shell variable names.
1005 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1006 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1007 { (exit 1); exit 1; }; }
1008 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1009 eval enable_$ac_feature=no ;;
1011 -docdir | --docdir | --docdi | --doc | --do)
1013 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1014 docdir=$ac_optarg ;;
1016 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1018 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1019 dvidir=$ac_optarg ;;
1021 -enable-* | --enable-*)
1022 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1023 # Reject names that are not valid shell variable names.
1024 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1025 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1026 { (exit 1); exit 1; }; }
1027 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1028 eval enable_$ac_feature=\$ac_optarg ;;
1030 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1031 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1032 | --exec | --exe | --ex)
1033 ac_prev=exec_prefix ;;
1034 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1035 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1036 | --exec=* | --exe=* | --ex=*)
1037 exec_prefix=$ac_optarg ;;
1039 -gas | --gas | --ga | --g)
1040 # Obsolete; use --with-gas.
1043 -help | --help | --hel | --he | -h)
1044 ac_init_help=long ;;
1045 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1046 ac_init_help=recursive ;;
1047 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1048 ac_init_help=short ;;
1050 -host | --host | --hos | --ho)
1051 ac_prev=host_alias ;;
1052 -host=* | --host=* | --hos=* | --ho=*)
1053 host_alias=$ac_optarg ;;
1055 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1057 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1059 htmldir=$ac_optarg ;;
1061 -includedir | --includedir | --includedi | --included | --include \
1062 | --includ | --inclu | --incl | --inc)
1063 ac_prev=includedir ;;
1064 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1065 | --includ=* | --inclu=* | --incl=* | --inc=*)
1066 includedir=$ac_optarg ;;
1068 -infodir | --infodir | --infodi | --infod | --info | --inf)
1070 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1071 infodir=$ac_optarg ;;
1073 -libdir | --libdir | --libdi | --libd)
1075 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1076 libdir=$ac_optarg ;;
1078 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1079 | --libexe | --libex | --libe)
1080 ac_prev=libexecdir ;;
1081 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1082 | --libexe=* | --libex=* | --libe=*)
1083 libexecdir=$ac_optarg ;;
1085 -localedir | --localedir | --localedi | --localed | --locale)
1086 ac_prev=localedir ;;
1087 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1088 localedir=$ac_optarg ;;
1090 -localstatedir | --localstatedir | --localstatedi | --localstated \
1091 | --localstate | --localstat | --localsta | --localst | --locals)
1092 ac_prev=localstatedir ;;
1093 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1094 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1095 localstatedir=$ac_optarg ;;
1097 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1099 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1100 mandir=$ac_optarg ;;
1102 -nfp | --nfp | --nf)
1103 # Obsolete; use --without-fp.
1106 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1107 | --no-cr | --no-c | -n)
1110 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1111 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1114 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1115 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1116 | --oldin | --oldi | --old | --ol | --o)
1117 ac_prev=oldincludedir ;;
1118 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1119 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1120 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1121 oldincludedir=$ac_optarg ;;
1123 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1125 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1126 prefix=$ac_optarg ;;
1128 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1129 | --program-pre | --program-pr | --program-p)
1130 ac_prev=program_prefix ;;
1131 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1132 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1133 program_prefix=$ac_optarg ;;
1135 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1136 | --program-suf | --program-su | --program-s)
1137 ac_prev=program_suffix ;;
1138 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1139 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1140 program_suffix=$ac_optarg ;;
1142 -program-transform-name | --program-transform-name \
1143 | --program-transform-nam | --program-transform-na \
1144 | --program-transform-n | --program-transform- \
1145 | --program-transform | --program-transfor \
1146 | --program-transfo | --program-transf \
1147 | --program-trans | --program-tran \
1148 | --progr-tra | --program-tr | --program-t)
1149 ac_prev=program_transform_name ;;
1150 -program-transform-name=* | --program-transform-name=* \
1151 | --program-transform-nam=* | --program-transform-na=* \
1152 | --program-transform-n=* | --program-transform-=* \
1153 | --program-transform=* | --program-transfor=* \
1154 | --program-transfo=* | --program-transf=* \
1155 | --program-trans=* | --program-tran=* \
1156 | --progr-tra=* | --program-tr=* | --program-t=*)
1157 program_transform_name=$ac_optarg ;;
1159 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1161 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1162 pdfdir=$ac_optarg ;;
1164 -psdir | --psdir | --psdi | --psd | --ps)
1166 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1169 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1170 | -silent | --silent | --silen | --sile | --sil)
1173 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1175 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1177 sbindir=$ac_optarg ;;
1179 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1180 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1181 | --sharedst | --shareds | --shared | --share | --shar \
1183 ac_prev=sharedstatedir ;;
1184 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1185 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1186 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1188 sharedstatedir=$ac_optarg ;;
1190 -site | --site | --sit)
1192 -site=* | --site=* | --sit=*)
1195 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1197 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1198 srcdir=$ac_optarg ;;
1200 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1201 | --syscon | --sysco | --sysc | --sys | --sy)
1202 ac_prev=sysconfdir ;;
1203 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1204 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1205 sysconfdir=$ac_optarg ;;
1207 -target | --target | --targe | --targ | --tar | --ta | --t)
1208 ac_prev=target_alias ;;
1209 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1210 target_alias=$ac_optarg ;;
1212 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1215 -version | --version | --versio | --versi | --vers | -V)
1216 ac_init_version=: ;;
1219 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1220 # Reject names that are not valid shell variable names.
1221 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222 { echo "$as_me: error: invalid package name: $ac_package" >&2
1223 { (exit 1); exit 1; }; }
1224 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1225 eval with_$ac_package=\$ac_optarg ;;
1227 -without-* | --without-*)
1228 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1229 # Reject names that are not valid shell variable names.
1230 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1231 { echo "$as_me: error: invalid package name: $ac_package" >&2
1232 { (exit 1); exit 1; }; }
1233 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1234 eval with_$ac_package=no ;;
1237 # Obsolete; use --with-x.
1240 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1241 | --x-incl | --x-inc | --x-in | --x-i)
1242 ac_prev=x_includes ;;
1243 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1244 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1245 x_includes=$ac_optarg ;;
1247 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1248 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1249 ac_prev=x_libraries ;;
1250 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1251 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1252 x_libraries=$ac_optarg ;;
1254 -*) { echo "$as_me: error: unrecognized option: $ac_option
1255 Try \`$0 --help' for more information." >&2
1256 { (exit 1); exit 1; }; }
1260 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1261 # Reject names that are not valid shell variable names.
1262 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1263 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1264 { (exit 1); exit 1; }; }
1265 eval $ac_envvar=\$ac_optarg
1266 export $ac_envvar ;;
1269 # FIXME: should be removed in autoconf 3.0.
1270 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1271 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1272 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1273 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1279 if test -n "$ac_prev"; then
1280 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1281 { echo "$as_me: error: missing argument to $ac_option" >&2
1282 { (exit 1); exit 1; }; }
1285 # Be sure to have absolute directory names.
1286 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1287 datadir sysconfdir sharedstatedir localstatedir includedir \
1288 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1289 libdir localedir mandir
1291 eval ac_val=\$$ac_var
1293 [\\/$]* | ?:[\\/]* ) continue;;
1294 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1296 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1297 { (exit 1); exit 1; }; }
1300 # There might be people who depend on the old broken behavior: `$host'
1301 # used to hold the argument of --host etc.
1302 # FIXME: To remove some day.
1305 target=$target_alias
1307 # FIXME: To remove some day.
1308 if test "x$host_alias" != x; then
1309 if test "x$build_alias" = x; then
1310 cross_compiling=maybe
1311 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1312 If a cross compiler is detected then cross compile mode will be used." >&2
1313 elif test "x$build_alias" != "x$host_alias"; then
1319 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1321 test "$silent" = yes && exec 6>/dev/null
1324 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1325 ac_ls_di=`ls -di .` &&
1326 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1327 { echo "$as_me: error: Working directory cannot be determined" >&2
1328 { (exit 1); exit 1; }; }
1329 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1330 { echo "$as_me: error: pwd does not report name of working directory" >&2
1331 { (exit 1); exit 1; }; }
1334 # Find the source files, if location was not specified.
1335 if test -z "$srcdir"; then
1336 ac_srcdir_defaulted=yes
1337 # Try the directory containing this script, then the parent directory.
1338 ac_confdir=`$as_dirname -- "$0" ||
1339 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1340 X"$0" : 'X\(//\)[^/]' \| \
1341 X"$0" : 'X\(//\)$' \| \
1342 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1362 if test ! -r "$srcdir/$ac_unique_file"; then
1366 ac_srcdir_defaulted=no
1368 if test ! -r "$srcdir/$ac_unique_file"; then
1369 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1370 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1371 { (exit 1); exit 1; }; }
1373 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1375 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1376 { (exit 1); exit 1; }; }
1378 # When building in place, set srcdir=.
1379 if test "$ac_abs_confdir" = "$ac_pwd"; then
1382 # Remove unnecessary trailing slashes from srcdir.
1383 # Double slashes in file names in object file debugging info
1384 # mess up M-x gdb in Emacs.
1386 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1388 for ac_var in $ac_precious_vars; do
1389 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1390 eval ac_env_${ac_var}_value=\$${ac_var}
1391 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1392 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1396 # Report the --help message.
1398 if test "$ac_init_help" = "long"; then
1399 # Omit some internal or obsolete options to make the list less imposing.
1400 # This message is too long to be a string in the A/UX 3.1 sh.
1402 \`configure' configures this package to adapt to many kinds of systems.
1404 Usage: $0 [OPTION]... [VAR=VALUE]...
1406 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1407 VAR=VALUE. See below for descriptions of some of the useful variables.
1409 Defaults for the options are specified in brackets.
1412 -h, --help display this help and exit
1413 --help=short display options specific to this package
1414 --help=recursive display the short help of all the included packages
1415 -V, --version display version information and exit
1416 -q, --quiet, --silent do not print \`checking...' messages
1417 --cache-file=FILE cache test results in FILE [disabled]
1418 -C, --config-cache alias for \`--cache-file=config.cache'
1419 -n, --no-create do not create output files
1420 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1422 Installation directories:
1423 --prefix=PREFIX install architecture-independent files in PREFIX
1424 [$ac_default_prefix]
1425 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1428 By default, \`make install' will install all the files in
1429 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1430 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1431 for instance \`--prefix=\$HOME'.
1433 For better control, use the options below.
1435 Fine tuning of the installation directories:
1436 --bindir=DIR user executables [EPREFIX/bin]
1437 --sbindir=DIR system admin executables [EPREFIX/sbin]
1438 --libexecdir=DIR program executables [EPREFIX/libexec]
1439 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1440 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1441 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1442 --libdir=DIR object code libraries [EPREFIX/lib]
1443 --includedir=DIR C header files [PREFIX/include]
1444 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1445 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1446 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1447 --infodir=DIR info documentation [DATAROOTDIR/info]
1448 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1449 --mandir=DIR man documentation [DATAROOTDIR/man]
1450 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/PACKAGE@:>@
1451 --htmldir=DIR html documentation [DOCDIR]
1452 --dvidir=DIR dvi documentation [DOCDIR]
1453 --pdfdir=DIR pdf documentation [DOCDIR]
1454 --psdir=DIR ps documentation [DOCDIR]
1460 --program-prefix=PREFIX prepend PREFIX to installed program names
1461 --program-suffix=SUFFIX append SUFFIX to installed program names
1462 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1465 --build=BUILD configure for building on BUILD [guessed]
1466 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1470 if test -n "$ac_init_help"; then
1475 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1476 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1477 --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=no@:>@
1478 --disable-dependency-tracking speeds up one-time build
1479 --enable-dependency-tracking do not reject slow dependency extractors
1480 --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@
1481 --enable-fast-install@<:@=PKGS@:>@
1482 optimize for fast installation @<:@default=yes@:>@
1483 --disable-libtool-lock avoid locking (might break parallel builds)
1484 --enable-debug compile with debugging support
1485 --enable-static-sipe statically link in Simple Exchange
1488 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1489 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1490 --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
1491 --with-pic try to use only PIC/non-PIC objects @<:@default=use
1493 --with-tags@<:@=TAGS@:>@ include additional configurations @<:@automatic@:>@
1495 Some influential environment variables:
1496 CC C compiler command
1497 CFLAGS C compiler flags
1498 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1499 nonstandard directory <lib dir>
1500 LIBS libraries to pass to the linker, e.g. -l<library>
1501 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1502 you have headers in a nonstandard directory <include dir>
1504 CXX C++ compiler command
1505 CXXFLAGS C++ compiler flags
1506 CXXCPP C++ preprocessor
1507 F77 Fortran 77 compiler command
1508 FFLAGS Fortran 77 compiler flags
1509 PKG_CONFIG path to pkg-config utility
1511 C compiler flags for libpurple, overriding pkg-config
1513 linker flags for libpurple, overriding pkg-config
1515 Use these variables to override the choices made by `configure' or to help
1516 it to find libraries and programs with nonstandard names/locations.
1522 if test "$ac_init_help" = "recursive"; then
1523 # If there are subdirs, report their specific --help.
1524 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1525 test -d "$ac_dir" || continue
1529 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1531 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1532 # A ".." for each directory in $ac_dir_suffix.
1533 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1534 case $ac_top_builddir_sub in
1535 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1536 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1539 ac_abs_top_builddir=$ac_pwd
1540 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1541 # for backward compatibility:
1542 ac_top_builddir=$ac_top_build_prefix
1545 .) # We are building in place.
1547 ac_top_srcdir=$ac_top_builddir_sub
1548 ac_abs_top_srcdir=$ac_pwd ;;
1549 [\\/]* | ?:[\\/]* ) # Absolute name.
1550 ac_srcdir=$srcdir$ac_dir_suffix;
1551 ac_top_srcdir=$srcdir
1552 ac_abs_top_srcdir=$srcdir ;;
1554 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1555 ac_top_srcdir=$ac_top_build_prefix$srcdir
1556 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1558 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1560 cd "$ac_dir" || { ac_status=$?; continue; }
1561 # Check for guested configure.
1562 if test -f "$ac_srcdir/configure.gnu"; then
1564 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1565 elif test -f "$ac_srcdir/configure"; then
1567 $SHELL "$ac_srcdir/configure" --help=recursive
1569 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1571 cd "$ac_pwd" || { ac_status=$?; break; }
1575 test -n "$ac_init_help" && exit $ac_status
1576 if $ac_init_version; then
1579 generated by GNU Autoconf 2.61
1581 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1582 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1583 This configure script is free software; the Free Software Foundation
1584 gives unlimited permission to copy, distribute and modify it.
1588 cat >config.log <<_ACEOF
1589 This file contains any messages produced by compilers while
1590 running configure, to aid debugging if configure makes a mistake.
1592 It was created by $as_me, which was
1593 generated by GNU Autoconf 2.61. Invocation command line was
1601 @%:@@%:@ --------- @%:@@%:@
1602 @%:@@%:@ Platform. @%:@@%:@
1603 @%:@@%:@ --------- @%:@@%:@
1605 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1606 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1607 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1608 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1609 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1611 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1612 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1614 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1615 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1616 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1617 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1618 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1619 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1620 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1628 test -z "$as_dir" && as_dir=.
1629 echo "PATH: $as_dir"
1638 @%:@@%:@ ----------- @%:@@%:@
1639 @%:@@%:@ Core tests. @%:@@%:@
1640 @%:@@%:@ ----------- @%:@@%:@
1645 # Keep a trace of the command line.
1646 # Strip out --no-create and --no-recursion so they do not pile up.
1647 # Strip out --silent because we don't want to record it for future runs.
1648 # Also quote any args containing shell meta-characters.
1649 # Make two passes to allow for proper duplicate-argument suppression.
1653 ac_must_keep_next=false
1659 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1660 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1661 | -silent | --silent | --silen | --sile | --sil)
1664 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1667 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1669 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1670 if test $ac_must_keep_next = true; then
1671 ac_must_keep_next=false # Got value, back to normal.
1674 *=* | --config-cache | -C | -disable-* | --disable-* \
1675 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1676 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1677 | -with-* | --with-* | -without-* | --without-* | --x)
1678 case "$ac_configure_args0 " in
1679 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1682 -* ) ac_must_keep_next=true ;;
1685 ac_configure_args="$ac_configure_args '$ac_arg'"
1690 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1691 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1693 # When interrupted or exit'd, cleanup temporary files, and complete
1694 # config.log. We remove comments because anyway the quotes in there
1695 # would cause problems or look ugly.
1696 # WARNING: Use '\'' to represent an apostrophe within the trap.
1697 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1698 trap 'exit_status=$?
1699 # Save into config.log some information that might help in debugging.
1704 @%:@@%:@ ---------------- @%:@@%:@
1705 @%:@@%:@ Cache variables. @%:@@%:@
1706 @%:@@%:@ ---------------- @%:@@%:@
1709 # The following way of writing the cache mishandles newlines in values,
1711 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1712 eval ac_val=\$$ac_var
1716 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1717 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1720 _ | IFS | as_nl) ;; #(
1721 *) $as_unset $ac_var ;;
1726 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1727 *${as_nl}ac_space=\ *)
1729 "s/'\''/'\''\\\\'\'''\''/g;
1730 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1733 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1741 @%:@@%:@ ----------------- @%:@@%:@
1742 @%:@@%:@ Output variables. @%:@@%:@
1743 @%:@@%:@ ----------------- @%:@@%:@
1746 for ac_var in $ac_subst_vars
1748 eval ac_val=\$$ac_var
1750 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1752 echo "$ac_var='\''$ac_val'\''"
1756 if test -n "$ac_subst_files"; then
1758 @%:@@%:@ ------------------- @%:@@%:@
1759 @%:@@%:@ File substitutions. @%:@@%:@
1760 @%:@@%:@ ------------------- @%:@@%:@
1763 for ac_var in $ac_subst_files
1765 eval ac_val=\$$ac_var
1767 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1769 echo "$ac_var='\''$ac_val'\''"
1774 if test -s confdefs.h; then
1776 @%:@@%:@ ----------- @%:@@%:@
1777 @%:@@%:@ confdefs.h. @%:@@%:@
1778 @%:@@%:@ ----------- @%:@@%:@
1784 test "$ac_signal" != 0 &&
1785 echo "$as_me: caught signal $ac_signal"
1786 echo "$as_me: exit $exit_status"
1788 rm -f core *.core core.conftest.* &&
1789 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1792 for ac_signal in 1 2 13 15; do
1793 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1797 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1798 rm -f -r conftest* confdefs.h
1800 # Predefined preprocessor variables.
1802 cat >>confdefs.h <<_ACEOF
1803 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
1807 cat >>confdefs.h <<_ACEOF
1808 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1812 cat >>confdefs.h <<_ACEOF
1813 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1817 cat >>confdefs.h <<_ACEOF
1818 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
1822 cat >>confdefs.h <<_ACEOF
1823 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1827 # Let the site file select an alternate cache file if it wants to.
1828 # Prefer explicitly selected file to automatically selected ones.
1829 if test -n "$CONFIG_SITE"; then
1830 set x "$CONFIG_SITE"
1831 elif test "x$prefix" != xNONE; then
1832 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1834 set x "$ac_default_prefix/share/config.site" \
1835 "$ac_default_prefix/etc/config.site"
1840 if test -r "$ac_site_file"; then
1841 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1842 echo "$as_me: loading site script $ac_site_file" >&6;}
1843 sed 's/^/| /' "$ac_site_file" >&5
1848 if test -r "$cache_file"; then
1849 # Some versions of bash will fail to source /dev/null (special
1850 # files actually), so we avoid doing that.
1851 if test -f "$cache_file"; then
1852 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1853 echo "$as_me: loading cache $cache_file" >&6;}
1855 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1856 *) . "./$cache_file";;
1860 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1861 echo "$as_me: creating cache $cache_file" >&6;}
1865 # Check that the precious variables saved in the cache have kept the same
1867 ac_cache_corrupted=false
1868 for ac_var in $ac_precious_vars; do
1869 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1870 eval ac_new_set=\$ac_env_${ac_var}_set
1871 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1872 eval ac_new_val=\$ac_env_${ac_var}_value
1873 case $ac_old_set,$ac_new_set in
1875 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1876 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1877 ac_cache_corrupted=: ;;
1879 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1880 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1881 ac_cache_corrupted=: ;;
1884 if test "x$ac_old_val" != "x$ac_new_val"; then
1885 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1886 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1887 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1888 echo "$as_me: former value: $ac_old_val" >&2;}
1889 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1890 echo "$as_me: current value: $ac_new_val" >&2;}
1891 ac_cache_corrupted=:
1894 # Pass precious variables to config.status.
1895 if test "$ac_new_set" = set; then
1897 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1898 *) ac_arg=$ac_var=$ac_new_val ;;
1900 case " $ac_configure_args " in
1901 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1902 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1906 if $ac_cache_corrupted; then
1907 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1908 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1909 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1910 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1911 { (exit 1); exit 1; }; }
1931 ac_cpp='$CPP $CPPFLAGS'
1932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1937 am__api_version="1.9"
1939 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1940 if test -f "$ac_dir/install-sh"; then
1942 ac_install_sh="$ac_aux_dir/install-sh -c"
1944 elif test -f "$ac_dir/install.sh"; then
1946 ac_install_sh="$ac_aux_dir/install.sh -c"
1948 elif test -f "$ac_dir/shtool"; then
1950 ac_install_sh="$ac_aux_dir/shtool install -c"
1954 if test -z "$ac_aux_dir"; then
1955 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1956 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1957 { (exit 1); exit 1; }; }
1960 # These three variables are undocumented and unsupported,
1961 # and are intended to be withdrawn in a future Autoconf release.
1962 # They can cause serious problems if a builder's source tree is in a directory
1963 # whose full name contains unusual characters.
1964 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1965 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1966 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1969 # Find a good install program. We prefer a C program (faster),
1970 # so one script is as good as another. But avoid the broken or
1971 # incompatible versions:
1972 # SysV /etc/install, /usr/sbin/install
1973 # SunOS /usr/etc/install
1974 # IRIX /sbin/install
1976 # AmigaOS /C/install, which installs bootblocks on floppy discs
1977 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1978 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1979 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1980 # OS/2's system install, which has a completely different semantic
1981 # ./install, which can be erroneously created by make from ./install.sh.
1982 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1983 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1984 if test -z "$INSTALL"; then
1985 if test "${ac_cv_path_install+set}" = set; then
1986 echo $ECHO_N "(cached) $ECHO_C" >&6
1988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1992 test -z "$as_dir" && as_dir=.
1993 # Account for people who put trailing slashes in PATH elements.
1995 ./ | .// | /cC/* | \
1996 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1997 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2000 # OSF1 and SCO ODT 3.0 have their own names for install.
2001 # Don't use installbsd from OSF since it installs stuff as root
2003 for ac_prog in ginstall scoinst install; do
2004 for ac_exec_ext in '' $ac_executable_extensions; do
2005 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2006 if test $ac_prog = install &&
2007 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2008 # AIX install. It has an incompatible calling convention.
2010 elif test $ac_prog = install &&
2011 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2012 # program-specific install script used by HP pwplus--don't use.
2015 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2028 if test "${ac_cv_path_install+set}" = set; then
2029 INSTALL=$ac_cv_path_install
2031 # As a last resort, use the slow shell script. Don't cache a
2032 # value for INSTALL within a source directory, because that will
2033 # break other packages using the cache if that directory is
2034 # removed, or if the value is a relative name.
2035 INSTALL=$ac_install_sh
2038 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2039 echo "${ECHO_T}$INSTALL" >&6; }
2041 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2042 # It thinks the first close brace ends the variable substitution.
2043 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2045 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2047 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2049 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2050 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2053 echo timestamp > conftest.file
2054 # Do `set' in a subshell so we don't clobber the current shell's
2055 # arguments. Must try -L first in case configure is actually a
2056 # symlink; some systems play weird games with the mod time of symlinks
2057 # (eg FreeBSD returns the mod time of the symlink's containing
2060 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2061 if test "$*" = "X"; then
2063 set X `ls -t $srcdir/configure conftest.file`
2066 if test "$*" != "X $srcdir/configure conftest.file" \
2067 && test "$*" != "X conftest.file $srcdir/configure"; then
2069 # If neither matched, then we have a broken ls. This can happen
2070 # if, for instance, CONFIG_SHELL is bash and it inherits a
2071 # broken ls alias from the environment. This has actually
2072 # happened. Such a system could not be considered "sane".
2073 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2074 alias in your environment" >&5
2075 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2076 alias in your environment" >&2;}
2077 { (exit 1); exit 1; }; }
2080 test "$2" = conftest.file
2086 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2087 Check your system clock" >&5
2088 echo "$as_me: error: newly created file is older than distributed files!
2089 Check your system clock" >&2;}
2090 { (exit 1); exit 1; }; }
2092 { echo "$as_me:$LINENO: result: yes" >&5
2093 echo "${ECHO_T}yes" >&6; }
2094 test "$program_prefix" != NONE &&
2095 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2096 # Use a double $ so make ignores it.
2097 test "$program_suffix" != NONE &&
2098 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2099 # Double any \ or $. echo might interpret backslashes.
2100 # By default was `s,x,x', remove it if useless.
2101 cat <<\_ACEOF >conftest.sed
2102 s/[\\$]/&&/g;s/;s,x,x,$//
2104 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2107 # expand $ac_aux_dir to an absolute path
2108 am_aux_dir=`cd $ac_aux_dir && pwd`
2110 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2111 # Use eval to expand $SHELL
2112 if eval "$MISSING --run true"; then
2113 am_missing_run="$MISSING --run "
2116 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2117 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2120 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2121 # We used to keeping the `.' as first argument, in order to
2122 # allow $(mkdir_p) to be used without argument. As in
2123 # $(mkdir_p) $(somedir)
2124 # where $(somedir) is conditionally defined. However this is wrong
2126 # 1. if the package is installed by a user who cannot write `.'
2127 # make install will fail,
2128 # 2. the above comment should most certainly read
2129 # $(mkdir_p) $(DESTDIR)$(somedir)
2130 # so it does not work when $(somedir) is undefined and
2131 # $(DESTDIR) is not.
2132 # To support the latter case, we have to write
2133 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2134 # so the `.' trick is pointless.
2135 mkdir_p='mkdir -p --'
2137 # On NextStep and OpenStep, the `mkdir' command does not
2138 # recognize any option. It will interpret all options as
2139 # directories to create, and then abort because `.' already
2141 for d in ./-p ./--version;
2143 test -d $d && rmdir $d
2145 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2146 if test -f "$ac_aux_dir/mkinstalldirs"; then
2147 mkdir_p='$(mkinstalldirs)'
2149 mkdir_p='$(install_sh) -d'
2153 for ac_prog in gawk mawk nawk awk
2155 # Extract the first word of "$ac_prog", so it can be a program name with args.
2156 set dummy $ac_prog; ac_word=$2
2157 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2159 if test "${ac_cv_prog_AWK+set}" = set; then
2160 echo $ECHO_N "(cached) $ECHO_C" >&6
2162 if test -n "$AWK"; then
2163 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2169 test -z "$as_dir" && as_dir=.
2170 for ac_exec_ext in '' $ac_executable_extensions; do
2171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2172 ac_cv_prog_AWK="$ac_prog"
2173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2183 if test -n "$AWK"; then
2184 { echo "$as_me:$LINENO: result: $AWK" >&5
2185 echo "${ECHO_T}$AWK" >&6; }
2187 { echo "$as_me:$LINENO: result: no" >&5
2188 echo "${ECHO_T}no" >&6; }
2192 test -n "$AWK" && break
2195 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2196 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2197 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2198 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2199 echo $ECHO_N "(cached) $ECHO_C" >&6
2201 cat >conftest.make <<\_ACEOF
2204 @echo '@@@%%%=$(MAKE)=@@@%%%'
2206 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2207 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2209 eval ac_cv_prog_make_${ac_make}_set=yes;;
2211 eval ac_cv_prog_make_${ac_make}_set=no;;
2215 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2216 { echo "$as_me:$LINENO: result: yes" >&5
2217 echo "${ECHO_T}yes" >&6; }
2220 { echo "$as_me:$LINENO: result: no" >&5
2221 echo "${ECHO_T}no" >&6; }
2222 SET_MAKE="MAKE=${MAKE-make}"
2225 rm -rf .tst 2>/dev/null
2226 mkdir .tst 2>/dev/null
2227 if test -d .tst; then
2232 rmdir .tst 2>/dev/null
2234 # test to see if srcdir already configured
2235 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2236 test -f $srcdir/config.status; then
2237 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2238 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2239 { (exit 1); exit 1; }; }
2242 # test whether we have cygpath
2243 if test -z "$CYGPATH_W"; then
2244 if (cygpath --version) >/dev/null 2>/dev/null; then
2245 CYGPATH_W='cygpath -w'
2252 # Define the identity of the package.
2257 cat >>confdefs.h <<_ACEOF
2258 @%:@define PACKAGE "$PACKAGE"
2262 cat >>confdefs.h <<_ACEOF
2263 @%:@define VERSION "$VERSION"
2266 # Some tools Automake needs.
2268 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2271 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2274 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2277 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2280 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2282 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2284 # Installed binaries are usually stripped using `strip' when the user
2285 # run `make install-strip'. However `strip' might not be the right
2286 # tool to use in cross-compilation environments, therefore Automake
2287 # will honor the `STRIP' environment variable to overrule this program.
2288 if test "$cross_compiling" != no; then
2289 if test -n "$ac_tool_prefix"; then
2290 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2291 set dummy ${ac_tool_prefix}strip; ac_word=$2
2292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2294 if test "${ac_cv_prog_STRIP+set}" = set; then
2295 echo $ECHO_N "(cached) $ECHO_C" >&6
2297 if test -n "$STRIP"; then
2298 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2304 test -z "$as_dir" && as_dir=.
2305 for ac_exec_ext in '' $ac_executable_extensions; do
2306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2307 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2317 STRIP=$ac_cv_prog_STRIP
2318 if test -n "$STRIP"; then
2319 { echo "$as_me:$LINENO: result: $STRIP" >&5
2320 echo "${ECHO_T}$STRIP" >&6; }
2322 { echo "$as_me:$LINENO: result: no" >&5
2323 echo "${ECHO_T}no" >&6; }
2328 if test -z "$ac_cv_prog_STRIP"; then
2330 # Extract the first word of "strip", so it can be a program name with args.
2331 set dummy strip; ac_word=$2
2332 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2334 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2335 echo $ECHO_N "(cached) $ECHO_C" >&6
2337 if test -n "$ac_ct_STRIP"; then
2338 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2344 test -z "$as_dir" && as_dir=.
2345 for ac_exec_ext in '' $ac_executable_extensions; do
2346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2347 ac_cv_prog_ac_ct_STRIP="strip"
2348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2357 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2358 if test -n "$ac_ct_STRIP"; then
2359 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2360 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2362 { echo "$as_me:$LINENO: result: no" >&5
2363 echo "${ECHO_T}no" >&6; }
2366 if test "x$ac_ct_STRIP" = x; then
2369 case $cross_compiling:$ac_tool_warned in
2371 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2372 whose name does not start with the host triplet. If you think this
2373 configuration is useful to you, please write to autoconf@gnu.org." >&5
2374 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2375 whose name does not start with the host triplet. If you think this
2376 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2377 ac_tool_warned=yes ;;
2382 STRIP="$ac_cv_prog_STRIP"
2386 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2388 # We need awk for the "check" target. The system "awk" is bad on
2390 # Always define AMTAR for backward compatibility.
2392 AMTAR=${AMTAR-"${am_missing_run}tar"}
2394 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2403 # Check whether --enable-static was given.
2404 if test "${enable_static+set}" = set; then
2405 enableval=$enable_static; p=${PACKAGE-default}
2407 yes) enable_static=yes ;;
2408 no) enable_static=no ;;
2411 # Look at the argument we got. We use all the common list separators.
2412 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2413 for pkg in $enableval; do
2415 if test "X$pkg" = "X$p"; then
2430 ac_cpp='$CPP $CPPFLAGS'
2431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2434 if test -n "$ac_tool_prefix"; then
2435 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2436 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2439 if test "${ac_cv_prog_CC+set}" = set; then
2440 echo $ECHO_N "(cached) $ECHO_C" >&6
2442 if test -n "$CC"; then
2443 ac_cv_prog_CC="$CC" # Let the user override the test.
2445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449 test -z "$as_dir" && as_dir=.
2450 for ac_exec_ext in '' $ac_executable_extensions; do
2451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2452 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2463 if test -n "$CC"; then
2464 { echo "$as_me:$LINENO: result: $CC" >&5
2465 echo "${ECHO_T}$CC" >&6; }
2467 { echo "$as_me:$LINENO: result: no" >&5
2468 echo "${ECHO_T}no" >&6; }
2473 if test -z "$ac_cv_prog_CC"; then
2475 # Extract the first word of "gcc", so it can be a program name with args.
2476 set dummy gcc; ac_word=$2
2477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2479 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2480 echo $ECHO_N "(cached) $ECHO_C" >&6
2482 if test -n "$ac_ct_CC"; then
2483 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489 test -z "$as_dir" && as_dir=.
2490 for ac_exec_ext in '' $ac_executable_extensions; do
2491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2492 ac_cv_prog_ac_ct_CC="gcc"
2493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2502 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2503 if test -n "$ac_ct_CC"; then
2504 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2505 echo "${ECHO_T}$ac_ct_CC" >&6; }
2507 { echo "$as_me:$LINENO: result: no" >&5
2508 echo "${ECHO_T}no" >&6; }
2511 if test "x$ac_ct_CC" = x; then
2514 case $cross_compiling:$ac_tool_warned in
2516 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2517 whose name does not start with the host triplet. If you think this
2518 configuration is useful to you, please write to autoconf@gnu.org." >&5
2519 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2520 whose name does not start with the host triplet. If you think this
2521 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2522 ac_tool_warned=yes ;;
2530 if test -z "$CC"; then
2531 if test -n "$ac_tool_prefix"; then
2532 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2533 set dummy ${ac_tool_prefix}cc; ac_word=$2
2534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2536 if test "${ac_cv_prog_CC+set}" = set; then
2537 echo $ECHO_N "(cached) $ECHO_C" >&6
2539 if test -n "$CC"; then
2540 ac_cv_prog_CC="$CC" # Let the user override the test.
2542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546 test -z "$as_dir" && as_dir=.
2547 for ac_exec_ext in '' $ac_executable_extensions; do
2548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2549 ac_cv_prog_CC="${ac_tool_prefix}cc"
2550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2560 if test -n "$CC"; then
2561 { echo "$as_me:$LINENO: result: $CC" >&5
2562 echo "${ECHO_T}$CC" >&6; }
2564 { echo "$as_me:$LINENO: result: no" >&5
2565 echo "${ECHO_T}no" >&6; }
2571 if test -z "$CC"; then
2572 # Extract the first word of "cc", so it can be a program name with args.
2573 set dummy cc; ac_word=$2
2574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2576 if test "${ac_cv_prog_CC+set}" = set; then
2577 echo $ECHO_N "(cached) $ECHO_C" >&6
2579 if test -n "$CC"; then
2580 ac_cv_prog_CC="$CC" # Let the user override the test.
2583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587 test -z "$as_dir" && as_dir=.
2588 for ac_exec_ext in '' $ac_executable_extensions; do
2589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2590 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2591 ac_prog_rejected=yes
2595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2602 if test $ac_prog_rejected = yes; then
2603 # We found a bogon in the path, so make sure we never use it.
2604 set dummy $ac_cv_prog_CC
2606 if test $@%:@ != 0; then
2607 # We chose a different compiler from the bogus one.
2608 # However, it has the same basename, so the bogon will be chosen
2609 # first if we set CC to just the basename; use the full file name.
2611 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2617 if test -n "$CC"; then
2618 { echo "$as_me:$LINENO: result: $CC" >&5
2619 echo "${ECHO_T}$CC" >&6; }
2621 { echo "$as_me:$LINENO: result: no" >&5
2622 echo "${ECHO_T}no" >&6; }
2627 if test -z "$CC"; then
2628 if test -n "$ac_tool_prefix"; then
2629 for ac_prog in cl.exe
2631 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2632 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2635 if test "${ac_cv_prog_CC+set}" = set; then
2636 echo $ECHO_N "(cached) $ECHO_C" >&6
2638 if test -n "$CC"; then
2639 ac_cv_prog_CC="$CC" # Let the user override the test.
2641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645 test -z "$as_dir" && as_dir=.
2646 for ac_exec_ext in '' $ac_executable_extensions; do
2647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2648 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2659 if test -n "$CC"; then
2660 { echo "$as_me:$LINENO: result: $CC" >&5
2661 echo "${ECHO_T}$CC" >&6; }
2663 { echo "$as_me:$LINENO: result: no" >&5
2664 echo "${ECHO_T}no" >&6; }
2668 test -n "$CC" && break
2671 if test -z "$CC"; then
2673 for ac_prog in cl.exe
2675 # Extract the first word of "$ac_prog", so it can be a program name with args.
2676 set dummy $ac_prog; ac_word=$2
2677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2679 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2680 echo $ECHO_N "(cached) $ECHO_C" >&6
2682 if test -n "$ac_ct_CC"; then
2683 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689 test -z "$as_dir" && as_dir=.
2690 for ac_exec_ext in '' $ac_executable_extensions; do
2691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2692 ac_cv_prog_ac_ct_CC="$ac_prog"
2693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2702 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2703 if test -n "$ac_ct_CC"; then
2704 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2705 echo "${ECHO_T}$ac_ct_CC" >&6; }
2707 { echo "$as_me:$LINENO: result: no" >&5
2708 echo "${ECHO_T}no" >&6; }
2712 test -n "$ac_ct_CC" && break
2715 if test "x$ac_ct_CC" = x; then
2718 case $cross_compiling:$ac_tool_warned in
2720 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2721 whose name does not start with the host triplet. If you think this
2722 configuration is useful to you, please write to autoconf@gnu.org." >&5
2723 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2724 whose name does not start with the host triplet. If you think this
2725 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2726 ac_tool_warned=yes ;;
2735 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2736 See \`config.log' for more details." >&5
2737 echo "$as_me: error: no acceptable C compiler found in \$PATH
2738 See \`config.log' for more details." >&2;}
2739 { (exit 1); exit 1; }; }
2741 # Provide some information about the compiler.
2742 echo "$as_me:$LINENO: checking for C compiler version" >&5
2743 ac_compiler=`set X $ac_compile; echo $2`
2744 { (ac_try="$ac_compiler --version >&5"
2746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2747 *) ac_try_echo=$ac_try;;
2749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2750 (eval "$ac_compiler --version >&5") 2>&5
2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); }
2754 { (ac_try="$ac_compiler -v >&5"
2756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2757 *) ac_try_echo=$ac_try;;
2759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2760 (eval "$ac_compiler -v >&5") 2>&5
2762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763 (exit $ac_status); }
2764 { (ac_try="$ac_compiler -V >&5"
2766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2767 *) ac_try_echo=$ac_try;;
2769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2770 (eval "$ac_compiler -V >&5") 2>&5
2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773 (exit $ac_status); }
2775 cat >conftest.$ac_ext <<_ACEOF
2778 cat confdefs.h >>conftest.$ac_ext
2779 cat >>conftest.$ac_ext <<_ACEOF
2780 /* end confdefs.h. */
2790 ac_clean_files_save=$ac_clean_files
2791 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2792 # Try to create an executable without -o first, disregard a.out.
2793 # It will help us diagnose broken compilers, and finding out an intuition
2795 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2796 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2797 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2799 # List of possible output files, starting from the most likely.
2800 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2801 # only as a last resort. b.out is created by i960 compilers.
2802 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2804 # The IRIX 6 linker writes into existing files which may not be
2805 # executable, retaining their permissions. Remove them first so a
2806 # subsequent execution test works.
2808 for ac_file in $ac_files
2811 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2812 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2817 if { (ac_try="$ac_link_default"
2819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2820 *) ac_try_echo=$ac_try;;
2822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2823 (eval "$ac_link_default") 2>&5
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); }; then
2827 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2828 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2829 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2830 # so that the user can short-circuit this test for compilers unknown to
2832 for ac_file in $ac_files ''
2834 test -f "$ac_file" || continue
2836 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2839 # We found the default executable, but exeext='' is most
2843 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2845 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2847 # We set ac_cv_exeext here because the later test for it is not
2848 # safe: cross compilers may not add the suffix if given an `-o'
2849 # argument, so we may need to know it at that point already.
2850 # Even if this section looks crufty: it has the advantage of
2857 test "$ac_cv_exeext" = no && ac_cv_exeext=
2863 { echo "$as_me:$LINENO: result: $ac_file" >&5
2864 echo "${ECHO_T}$ac_file" >&6; }
2865 if test -z "$ac_file"; then
2866 echo "$as_me: failed program was:" >&5
2867 sed 's/^/| /' conftest.$ac_ext >&5
2869 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2870 See \`config.log' for more details." >&5
2871 echo "$as_me: error: C compiler cannot create executables
2872 See \`config.log' for more details." >&2;}
2873 { (exit 77); exit 77; }; }
2876 ac_exeext=$ac_cv_exeext
2878 # Check that the compiler produces executables we can run. If not, either
2879 # the compiler is broken, or we cross compile.
2880 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2881 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2882 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2883 # If not cross compiling, check that we can run a simple program.
2884 if test "$cross_compiling" != yes; then
2885 if { ac_try='./$ac_file'
2886 { (case "(($ac_try" in
2887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2888 *) ac_try_echo=$ac_try;;
2890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2891 (eval "$ac_try") 2>&5
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); }; }; then
2897 if test "$cross_compiling" = maybe; then
2900 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2901 If you meant to cross compile, use \`--host'.
2902 See \`config.log' for more details." >&5
2903 echo "$as_me: error: cannot run C compiled programs.
2904 If you meant to cross compile, use \`--host'.
2905 See \`config.log' for more details." >&2;}
2906 { (exit 1); exit 1; }; }
2910 { echo "$as_me:$LINENO: result: yes" >&5
2911 echo "${ECHO_T}yes" >&6; }
2913 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2914 ac_clean_files=$ac_clean_files_save
2915 # Check that the compiler produces executables we can run. If not, either
2916 # the compiler is broken, or we cross compile.
2917 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2918 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2919 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2920 echo "${ECHO_T}$cross_compiling" >&6; }
2922 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2923 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2924 if { (ac_try="$ac_link"
2926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2927 *) ac_try_echo=$ac_try;;
2929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2930 (eval "$ac_link") 2>&5
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); }; then
2934 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2935 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2936 # work properly (i.e., refer to `conftest.exe'), while it won't with
2938 for ac_file in conftest.exe conftest conftest.*; do
2939 test -f "$ac_file" || continue
2941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2942 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2948 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2949 See \`config.log' for more details." >&5
2950 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2951 See \`config.log' for more details." >&2;}
2952 { (exit 1); exit 1; }; }
2955 rm -f conftest$ac_cv_exeext
2956 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2957 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2959 rm -f conftest.$ac_ext
2960 EXEEXT=$ac_cv_exeext
2962 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2963 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2964 if test "${ac_cv_objext+set}" = set; then
2965 echo $ECHO_N "(cached) $ECHO_C" >&6
2967 cat >conftest.$ac_ext <<_ACEOF
2970 cat confdefs.h >>conftest.$ac_ext
2971 cat >>conftest.$ac_ext <<_ACEOF
2972 /* end confdefs.h. */
2982 rm -f conftest.o conftest.obj
2983 if { (ac_try="$ac_compile"
2985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986 *) ac_try_echo=$ac_try;;
2988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2989 (eval "$ac_compile") 2>&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); }; then
2993 for ac_file in conftest.o conftest.obj conftest.*; do
2994 test -f "$ac_file" || continue;
2996 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2997 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3002 echo "$as_me: failed program was:" >&5
3003 sed 's/^/| /' conftest.$ac_ext >&5
3005 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3006 See \`config.log' for more details." >&5
3007 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3008 See \`config.log' for more details." >&2;}
3009 { (exit 1); exit 1; }; }
3012 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3014 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3015 echo "${ECHO_T}$ac_cv_objext" >&6; }
3016 OBJEXT=$ac_cv_objext
3018 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3019 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3020 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3021 echo $ECHO_N "(cached) $ECHO_C" >&6
3023 cat >conftest.$ac_ext <<_ACEOF
3026 cat confdefs.h >>conftest.$ac_ext
3027 cat >>conftest.$ac_ext <<_ACEOF
3028 /* end confdefs.h. */
3041 rm -f conftest.$ac_objext
3042 if { (ac_try="$ac_compile"
3044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045 *) ac_try_echo=$ac_try;;
3047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3048 (eval "$ac_compile") 2>conftest.er1
3050 grep -v '^ *+' conftest.er1 >conftest.err
3052 cat conftest.err >&5
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); } && {
3055 test -z "$ac_c_werror_flag" ||
3056 test ! -s conftest.err
3057 } && test -s conftest.$ac_objext; then
3060 echo "$as_me: failed program was:" >&5
3061 sed 's/^/| /' conftest.$ac_ext >&5
3066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3067 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3070 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3071 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3072 GCC=`test $ac_compiler_gnu = yes && echo yes`
3073 ac_test_CFLAGS=${CFLAGS+set}
3074 ac_save_CFLAGS=$CFLAGS
3075 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3076 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3077 if test "${ac_cv_prog_cc_g+set}" = set; then
3078 echo $ECHO_N "(cached) $ECHO_C" >&6
3080 ac_save_c_werror_flag=$ac_c_werror_flag
3081 ac_c_werror_flag=yes
3084 cat >conftest.$ac_ext <<_ACEOF
3087 cat confdefs.h >>conftest.$ac_ext
3088 cat >>conftest.$ac_ext <<_ACEOF
3089 /* end confdefs.h. */
3099 rm -f conftest.$ac_objext
3100 if { (ac_try="$ac_compile"
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106 (eval "$ac_compile") 2>conftest.er1
3108 grep -v '^ *+' conftest.er1 >conftest.err
3110 cat conftest.err >&5
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); } && {
3113 test -z "$ac_c_werror_flag" ||
3114 test ! -s conftest.err
3115 } && test -s conftest.$ac_objext; then
3118 echo "$as_me: failed program was:" >&5
3119 sed 's/^/| /' conftest.$ac_ext >&5
3122 cat >conftest.$ac_ext <<_ACEOF
3125 cat confdefs.h >>conftest.$ac_ext
3126 cat >>conftest.$ac_ext <<_ACEOF
3127 /* end confdefs.h. */
3137 rm -f conftest.$ac_objext
3138 if { (ac_try="$ac_compile"
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144 (eval "$ac_compile") 2>conftest.er1
3146 grep -v '^ *+' conftest.er1 >conftest.err
3148 cat conftest.err >&5
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); } && {
3151 test -z "$ac_c_werror_flag" ||
3152 test ! -s conftest.err
3153 } && test -s conftest.$ac_objext; then
3156 echo "$as_me: failed program was:" >&5
3157 sed 's/^/| /' conftest.$ac_ext >&5
3159 ac_c_werror_flag=$ac_save_c_werror_flag
3161 cat >conftest.$ac_ext <<_ACEOF
3164 cat confdefs.h >>conftest.$ac_ext
3165 cat >>conftest.$ac_ext <<_ACEOF
3166 /* end confdefs.h. */
3176 rm -f conftest.$ac_objext
3177 if { (ac_try="$ac_compile"
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183 (eval "$ac_compile") 2>conftest.er1
3185 grep -v '^ *+' conftest.er1 >conftest.err
3187 cat conftest.err >&5
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); } && {
3190 test -z "$ac_c_werror_flag" ||
3191 test ! -s conftest.err
3192 } && test -s conftest.$ac_objext; then
3195 echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3208 ac_c_werror_flag=$ac_save_c_werror_flag
3210 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3211 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3212 if test "$ac_test_CFLAGS" = set; then
3213 CFLAGS=$ac_save_CFLAGS
3214 elif test $ac_cv_prog_cc_g = yes; then
3215 if test "$GCC" = yes; then
3221 if test "$GCC" = yes; then
3227 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3228 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3229 if test "${ac_cv_prog_cc_c89+set}" = set; then
3230 echo $ECHO_N "(cached) $ECHO_C" >&6
3232 ac_cv_prog_cc_c89=no
3234 cat >conftest.$ac_ext <<_ACEOF
3237 cat confdefs.h >>conftest.$ac_ext
3238 cat >>conftest.$ac_ext <<_ACEOF
3239 /* end confdefs.h. */
3242 #include <sys/types.h>
3243 #include <sys/stat.h>
3244 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3245 struct buf { int x; };
3246 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3247 static char *e (p, i)
3253 static char *f (char * (*g) (char **, int), char **p, ...)
3258 s = g (p, va_arg (v,int));
3263 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3264 function prototypes and stuff, but not '\xHH' hex character constants.
3265 These don't provoke an error unfortunately, instead are silently treated
3266 as 'x'. The following induces an error, until -std is added to get
3267 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3268 array size at least. It's necessary to write '\x00'==0 to get something
3269 that's true only with -std. */
3270 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3272 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3273 inside strings and character constants. */
3275 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3277 int test (int i, double x);
3278 struct s1 {int (*f) (int a);};
3279 struct s2 {int (*f) (double a);};
3280 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3286 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3291 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3292 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3294 CC="$ac_save_CC $ac_arg"
3295 rm -f conftest.$ac_objext
3296 if { (ac_try="$ac_compile"
3298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299 *) ac_try_echo=$ac_try;;
3301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3302 (eval "$ac_compile") 2>conftest.er1
3304 grep -v '^ *+' conftest.er1 >conftest.err
3306 cat conftest.err >&5
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); } && {
3309 test -z "$ac_c_werror_flag" ||
3310 test ! -s conftest.err
3311 } && test -s conftest.$ac_objext; then
3312 ac_cv_prog_cc_c89=$ac_arg
3314 echo "$as_me: failed program was:" >&5
3315 sed 's/^/| /' conftest.$ac_ext >&5
3320 rm -f core conftest.err conftest.$ac_objext
3321 test "x$ac_cv_prog_cc_c89" != "xno" && break
3323 rm -f conftest.$ac_ext
3328 case "x$ac_cv_prog_cc_c89" in
3330 { echo "$as_me:$LINENO: result: none needed" >&5
3331 echo "${ECHO_T}none needed" >&6; } ;;
3333 { echo "$as_me:$LINENO: result: unsupported" >&5
3334 echo "${ECHO_T}unsupported" >&6; } ;;
3336 CC="$CC $ac_cv_prog_cc_c89"
3337 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3338 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3343 ac_cpp='$CPP $CPPFLAGS'
3344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3347 DEPDIR="${am__leading_dot}deps"
3349 ac_config_commands="$ac_config_commands depfiles"
3352 am_make=${MAKE-make}
3353 cat > confinc << 'END'
3358 # If we don't find an include directive, just comment out the code.
3359 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3360 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3364 # First try GNU make style include.
3365 echo "include confinc" > confmf
3366 # We grep out `Entering directory' and `Leaving directory'
3367 # messages which can occur if `w' ends up in MAKEFLAGS.
3368 # In particular we don't look at `^make:' because GNU make might
3369 # be invoked under some other name (usually "gmake"), in which
3370 # case it prints its new name instead of `make'.
3371 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3376 # Now try BSD make style include.
3377 if test "$am__include" = "#"; then
3378 echo '.include "confinc"' > confmf
3379 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3380 am__include=.include
3387 { echo "$as_me:$LINENO: result: $_am_result" >&5
3388 echo "${ECHO_T}$_am_result" >&6; }
3389 rm -f confinc confmf
3391 # Check whether --enable-dependency-tracking was given.
3392 if test "${enable_dependency_tracking+set}" = set; then
3393 enableval=$enable_dependency_tracking;
3396 if test "x$enable_dependency_tracking" != xno; then
3397 am_depcomp="$ac_aux_dir/depcomp"
3402 if test "x$enable_dependency_tracking" != xno; then
3413 depcc="$CC" am_compiler_list=
3415 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3416 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3417 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3418 echo $ECHO_N "(cached) $ECHO_C" >&6
3420 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3421 # We make a subdir and do the tests there. Otherwise we can end up
3422 # making bogus files that we don't know about and never remove. For
3423 # instance it was reported that on HP-UX the gcc test will end up
3424 # making a dummy file named `D' -- because `-MD' means `put the output
3427 # Copy depcomp to subdir because otherwise we won't find it if we're
3428 # using a relative directory.
3429 cp "$am_depcomp" conftest.dir
3431 # We will build objects and dependencies in a subdirectory because
3432 # it helps to detect inapplicable dependency modes. For instance
3433 # both Tru64's cc and ICC support -MD to output dependencies as a
3434 # side effect of compilation, but ICC will put the dependencies in
3435 # the current directory while Tru64 will put them in the object
3439 am_cv_CC_dependencies_compiler_type=none
3440 if test "$am_compiler_list" = ""; then
3441 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3443 for depmode in $am_compiler_list; do
3444 # Setup a source with many dependencies, because some compilers
3445 # like to wrap large dependency lists on column 80 (with \), and
3446 # we should not choose a depcomp mode which is confused by this.
3448 # We need to recreate these files for each test, as the compiler may
3449 # overwrite some of them when testing with obscure command lines.
3450 # This happens at least with the AIX C compiler.
3452 for i in 1 2 3 4 5 6; do
3453 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3454 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3455 # Solaris 8's {/usr,}/bin/sh.
3456 touch sub/conftst$i.h
3458 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3462 # after this tag, mechanisms are not by side-effect, so they'll
3463 # only be used when explicitly requested
3464 if test "x$enable_dependency_tracking" = xyes; then
3472 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3473 # mode. It turns out that the SunPro C++ compiler does not properly
3474 # handle `-M -o', and we need to detect this.
3475 if depmode=$depmode \
3476 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3477 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3478 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3479 >/dev/null 2>conftest.err &&
3480 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3481 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3482 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3483 # icc doesn't choke on unknown options, it will just issue warnings
3484 # or remarks (even with -Werror). So we grep stderr for any message
3485 # that says an option was ignored or not supported.
3486 # When given -MP, icc 7.0 and 7.1 complain thusly:
3487 # icc: Command line warning: ignoring option '-M'; no argument required
3488 # The diagnosis changed in icc 8.0:
3489 # icc: Command line remark: option '-MP' not supported
3490 if (grep 'ignoring option' conftest.err ||
3491 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3492 am_cv_CC_dependencies_compiler_type=$depmode
3501 am_cv_CC_dependencies_compiler_type=none
3505 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3506 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3507 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3512 test "x$enable_dependency_tracking" != xno \
3513 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3515 am__fastdepCC_FALSE='#'
3517 am__fastdepCC_TRUE='#'
3518 am__fastdepCC_FALSE=
3522 # Find a good install program. We prefer a C program (faster),
3523 # so one script is as good as another. But avoid the broken or
3524 # incompatible versions:
3525 # SysV /etc/install, /usr/sbin/install
3526 # SunOS /usr/etc/install
3527 # IRIX /sbin/install
3529 # AmigaOS /C/install, which installs bootblocks on floppy discs
3530 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3531 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3532 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3533 # OS/2's system install, which has a completely different semantic
3534 # ./install, which can be erroneously created by make from ./install.sh.
3535 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3536 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3537 if test -z "$INSTALL"; then
3538 if test "${ac_cv_path_install+set}" = set; then
3539 echo $ECHO_N "(cached) $ECHO_C" >&6
3541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545 test -z "$as_dir" && as_dir=.
3546 # Account for people who put trailing slashes in PATH elements.
3548 ./ | .// | /cC/* | \
3549 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3550 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3553 # OSF1 and SCO ODT 3.0 have their own names for install.
3554 # Don't use installbsd from OSF since it installs stuff as root
3556 for ac_prog in ginstall scoinst install; do
3557 for ac_exec_ext in '' $ac_executable_extensions; do
3558 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3559 if test $ac_prog = install &&
3560 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3561 # AIX install. It has an incompatible calling convention.
3563 elif test $ac_prog = install &&
3564 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3565 # program-specific install script used by HP pwplus--don't use.
3568 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3581 if test "${ac_cv_path_install+set}" = set; then
3582 INSTALL=$ac_cv_path_install
3584 # As a last resort, use the slow shell script. Don't cache a
3585 # value for INSTALL within a source directory, because that will
3586 # break other packages using the cache if that directory is
3587 # removed, or if the value is a relative name.
3588 INSTALL=$ac_install_sh
3591 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3592 echo "${ECHO_T}$INSTALL" >&6; }
3594 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3595 # It thinks the first close brace ends the variable substitution.
3596 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3598 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3600 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3602 # Check whether --enable-shared was given.
3603 if test "${enable_shared+set}" = set; then
3604 enableval=$enable_shared; p=${PACKAGE-default}
3606 yes) enable_shared=yes ;;
3607 no) enable_shared=no ;;
3610 # Look at the argument we got. We use all the common list separators.
3611 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3612 for pkg in $enableval; do
3614 if test "X$pkg" = "X$p"; then
3626 # Check whether --enable-fast-install was given.
3627 if test "${enable_fast_install+set}" = set; then
3628 enableval=$enable_fast_install; p=${PACKAGE-default}
3630 yes) enable_fast_install=yes ;;
3631 no) enable_fast_install=no ;;
3633 enable_fast_install=no
3634 # Look at the argument we got. We use all the common list separators.
3635 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3636 for pkg in $enableval; do
3638 if test "X$pkg" = "X$p"; then
3639 enable_fast_install=yes
3646 enable_fast_install=yes
3650 # Make sure we can run config.sub.
3651 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3652 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3653 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3654 { (exit 1); exit 1; }; }
3656 { echo "$as_me:$LINENO: checking build system type" >&5
3657 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3658 if test "${ac_cv_build+set}" = set; then
3659 echo $ECHO_N "(cached) $ECHO_C" >&6
3661 ac_build_alias=$build_alias
3662 test "x$ac_build_alias" = x &&
3663 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3664 test "x$ac_build_alias" = x &&
3665 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3666 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3667 { (exit 1); exit 1; }; }
3668 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3669 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3670 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3671 { (exit 1); exit 1; }; }
3674 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3675 echo "${ECHO_T}$ac_cv_build" >&6; }
3676 case $ac_cv_build in
3678 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3679 echo "$as_me: error: invalid value of canonical build" >&2;}
3680 { (exit 1); exit 1; }; };;
3683 ac_save_IFS=$IFS; IFS='-'
3689 # Remember, the first character of IFS is used to create $*,
3690 # except with old shells:
3693 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3696 { echo "$as_me:$LINENO: checking host system type" >&5
3697 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3698 if test "${ac_cv_host+set}" = set; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3701 if test "x$host_alias" = x; then
3702 ac_cv_host=$ac_cv_build
3704 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3705 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3706 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3707 { (exit 1); exit 1; }; }
3711 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3712 echo "${ECHO_T}$ac_cv_host" >&6; }
3715 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3716 echo "$as_me: error: invalid value of canonical host" >&2;}
3717 { (exit 1); exit 1; }; };;
3720 ac_save_IFS=$IFS; IFS='-'
3726 # Remember, the first character of IFS is used to create $*,
3727 # except with old shells:
3730 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3733 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3734 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3735 if test "${lt_cv_path_SED+set}" = set; then
3736 echo $ECHO_N "(cached) $ECHO_C" >&6
3738 # Loop through the user's path and test for sed and gsed.
3739 # Then use that list of sed's as ones to test for truncation.
3740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3744 test -z "$as_dir" && as_dir=.
3745 for lt_ac_prog in sed gsed; do
3746 for ac_exec_ext in '' $ac_executable_extensions; do
3747 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3748 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3755 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3756 # along with /bin/sed that truncates output.
3757 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3758 test ! -f $lt_ac_sed && continue
3759 cat /dev/null > conftest.in
3761 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3762 # Check for GNU sed and select it if it is found.
3763 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3764 lt_cv_path_SED=$lt_ac_sed
3768 cat conftest.in conftest.in >conftest.tmp
3769 mv conftest.tmp conftest.in
3770 cp conftest.in conftest.nl
3772 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3773 cmp -s conftest.out conftest.nl || break
3774 # 10000 chars as input seems more than enough
3775 test $lt_ac_count -gt 10 && break
3776 lt_ac_count=`expr $lt_ac_count + 1`
3777 if test $lt_ac_count -gt $lt_ac_max; then
3778 lt_ac_max=$lt_ac_count
3779 lt_cv_path_SED=$lt_ac_sed
3787 { echo "$as_me:$LINENO: result: $SED" >&5
3788 echo "${ECHO_T}$SED" >&6; }
3790 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3791 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3792 if test "${ac_cv_path_GREP+set}" = set; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3795 # Extract the first word of "grep ggrep" to use in msg output
3796 if test -z "$GREP"; then
3797 set dummy grep ggrep; ac_prog_name=$2
3798 if test "${ac_cv_path_GREP+set}" = set; then
3799 echo $ECHO_N "(cached) $ECHO_C" >&6
3801 ac_path_GREP_found=false
3802 # Loop through the user's path and test for each of PROGNAME-LIST
3803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3804 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3807 test -z "$as_dir" && as_dir=.
3808 for ac_prog in grep ggrep; do
3809 for ac_exec_ext in '' $ac_executable_extensions; do
3810 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3811 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3812 # Check for GNU ac_path_GREP and select it if it is found.
3813 # Check for GNU $ac_path_GREP
3814 case `"$ac_path_GREP" --version 2>&1` in
3816 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3819 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3822 cat "conftest.in" "conftest.in" >"conftest.tmp"
3823 mv "conftest.tmp" "conftest.in"
3824 cp "conftest.in" "conftest.nl"
3825 echo 'GREP' >> "conftest.nl"
3826 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3827 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3828 ac_count=`expr $ac_count + 1`
3829 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3830 # Best one so far, save it but keep looking for a better one
3831 ac_cv_path_GREP="$ac_path_GREP"
3832 ac_path_GREP_max=$ac_count
3834 # 10*(2^10) chars as input seems more than enough
3835 test $ac_count -gt 10 && break
3837 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3841 $ac_path_GREP_found && break 3
3851 GREP="$ac_cv_path_GREP"
3852 if test -z "$GREP"; then
3853 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3854 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3855 { (exit 1); exit 1; }; }
3859 ac_cv_path_GREP=$GREP
3864 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3865 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3866 GREP="$ac_cv_path_GREP"
3869 { echo "$as_me:$LINENO: checking for egrep" >&5
3870 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3871 if test "${ac_cv_path_EGREP+set}" = set; then
3872 echo $ECHO_N "(cached) $ECHO_C" >&6
3874 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3875 then ac_cv_path_EGREP="$GREP -E"
3877 # Extract the first word of "egrep" to use in msg output
3878 if test -z "$EGREP"; then
3879 set dummy egrep; ac_prog_name=$2
3880 if test "${ac_cv_path_EGREP+set}" = set; then
3881 echo $ECHO_N "(cached) $ECHO_C" >&6
3883 ac_path_EGREP_found=false
3884 # Loop through the user's path and test for each of PROGNAME-LIST
3885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3886 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3889 test -z "$as_dir" && as_dir=.
3890 for ac_prog in egrep; do
3891 for ac_exec_ext in '' $ac_executable_extensions; do
3892 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3893 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3894 # Check for GNU ac_path_EGREP and select it if it is found.
3895 # Check for GNU $ac_path_EGREP
3896 case `"$ac_path_EGREP" --version 2>&1` in
3898 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3901 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3904 cat "conftest.in" "conftest.in" >"conftest.tmp"
3905 mv "conftest.tmp" "conftest.in"
3906 cp "conftest.in" "conftest.nl"
3907 echo 'EGREP' >> "conftest.nl"
3908 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3909 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3910 ac_count=`expr $ac_count + 1`
3911 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3912 # Best one so far, save it but keep looking for a better one
3913 ac_cv_path_EGREP="$ac_path_EGREP"
3914 ac_path_EGREP_max=$ac_count
3916 # 10*(2^10) chars as input seems more than enough
3917 test $ac_count -gt 10 && break
3919 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3923 $ac_path_EGREP_found && break 3
3933 EGREP="$ac_cv_path_EGREP"
3934 if test -z "$EGREP"; then
3935 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3936 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3937 { (exit 1); exit 1; }; }
3941 ac_cv_path_EGREP=$EGREP
3947 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3948 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3949 EGREP="$ac_cv_path_EGREP"
3953 # Check whether --with-gnu-ld was given.
3954 if test "${with_gnu_ld+set}" = set; then
3955 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3961 if test "$GCC" = yes; then
3962 # Check if gcc -print-prog-name=ld gives a path.
3963 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3964 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3967 # gcc leaves a trailing carriage return which upsets mingw
3968 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3970 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3973 # Accept absolute paths.
3975 re_direlt='/[^/][^/]*/\.\./'
3976 # Canonicalize the pathname of ld
3977 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3978 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3979 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3981 test -z "$LD" && LD="$ac_prog"
3984 # If it fails, then pretend we aren't using GCC.
3988 # If it is relative, then search for the first ld in PATH.
3992 elif test "$with_gnu_ld" = yes; then
3993 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3994 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3996 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3997 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3999 if test "${lt_cv_path_LD+set}" = set; then
4000 echo $ECHO_N "(cached) $ECHO_C" >&6
4002 if test -z "$LD"; then
4003 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4004 for ac_dir in $PATH; do
4006 test -z "$ac_dir" && ac_dir=.
4007 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4008 lt_cv_path_LD="$ac_dir/$ac_prog"
4009 # Check to see if the program is GNU ld. I'd rather use --version,
4010 # but apparently some variants of GNU ld only accept -v.
4011 # Break only if it was the GNU/non-GNU ld that we prefer.
4012 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4013 *GNU* | *'with BFD'*)
4014 test "$with_gnu_ld" != no && break
4017 test "$with_gnu_ld" != yes && break
4024 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4029 if test -n "$LD"; then
4030 { echo "$as_me:$LINENO: result: $LD" >&5
4031 echo "${ECHO_T}$LD" >&6; }
4033 { echo "$as_me:$LINENO: result: no" >&5
4034 echo "${ECHO_T}no" >&6; }
4036 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4037 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4038 { (exit 1); exit 1; }; }
4039 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4040 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4041 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4042 echo $ECHO_N "(cached) $ECHO_C" >&6
4044 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4045 case `$LD -v 2>&1 </dev/null` in
4046 *GNU* | *'with BFD'*)
4047 lt_cv_prog_gnu_ld=yes
4050 lt_cv_prog_gnu_ld=no
4054 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4055 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4056 with_gnu_ld=$lt_cv_prog_gnu_ld
4059 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4060 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4061 if test "${lt_cv_ld_reload_flag+set}" = set; then
4062 echo $ECHO_N "(cached) $ECHO_C" >&6
4064 lt_cv_ld_reload_flag='-r'
4066 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4067 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4068 reload_flag=$lt_cv_ld_reload_flag
4069 case $reload_flag in
4071 *) reload_flag=" $reload_flag" ;;
4073 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4076 if test "$GCC" = yes; then
4077 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
4079 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4084 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4085 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4086 if test "${lt_cv_path_NM+set}" = set; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
4089 if test -n "$NM"; then
4090 # Let the user override the test.
4093 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4094 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4096 test -z "$ac_dir" && ac_dir=.
4097 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4098 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4099 # Check to see if the nm accepts a BSD-compat flag.
4100 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4101 # nm: unknown option "B" ignored
4102 # Tru64's nm complains that /dev/null is an invalid object file
4103 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4104 */dev/null* | *'Invalid file or object type'*)
4105 lt_cv_path_NM="$tmp_nm -B"
4109 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4111 lt_cv_path_NM="$tmp_nm -p"
4115 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4116 continue # so that we can try to find one that supports BSD flags
4123 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4126 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4127 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4130 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4131 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4133 if test "$LN_S" = "ln -s"; then
4134 { echo "$as_me:$LINENO: result: yes" >&5
4135 echo "${ECHO_T}yes" >&6; }
4137 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4138 echo "${ECHO_T}no, using $LN_S" >&6; }
4141 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4142 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4143 if test "${lt_cv_deplibs_check_method+set}" = set; then
4144 echo $ECHO_N "(cached) $ECHO_C" >&6
4146 lt_cv_file_magic_cmd='$MAGIC_CMD'
4147 lt_cv_file_magic_test_file=
4148 lt_cv_deplibs_check_method='unknown'
4149 # Need to set the preceding variable on all platforms that support
4150 # interlibrary dependencies.
4151 # 'none' -- dependencies not supported.
4152 # `unknown' -- same as none, but documents that we really don't know.
4153 # 'pass_all' -- all dependencies passed with no checks.
4154 # 'test_compile' -- check by making test program.
4155 # 'file_magic [[regex]]' -- check by looking for files in library path
4156 # which responds to the $file_magic_cmd with a given extended regex.
4157 # If you have `file' or equivalent on your system and you're not sure
4158 # whether `pass_all' will *always* work, you probably want this one.
4162 lt_cv_deplibs_check_method=pass_all
4166 lt_cv_deplibs_check_method=pass_all
4170 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4171 lt_cv_file_magic_cmd='/usr/bin/file -L'
4172 lt_cv_file_magic_test_file=/shlib/libc.so
4176 # func_win32_libid is a shell function defined in ltmain.sh
4177 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4178 lt_cv_file_magic_cmd='func_win32_libid'
4182 # Base MSYS/MinGW do not provide the 'file' command needed by
4183 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4184 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4185 lt_cv_file_magic_cmd='$OBJDUMP -f'
4188 darwin* | rhapsody*)
4189 lt_cv_deplibs_check_method=pass_all
4192 freebsd* | kfreebsd*-gnu | dragonfly*)
4193 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4196 # Not sure whether the presence of OpenBSD here was a mistake.
4197 # Let's accept both of them until this is cleared up.
4198 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4199 lt_cv_file_magic_cmd=/usr/bin/file
4200 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4204 lt_cv_deplibs_check_method=pass_all
4209 lt_cv_deplibs_check_method=pass_all
4212 hpux10.20* | hpux11*)
4213 lt_cv_file_magic_cmd=/usr/bin/file
4216 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4217 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4220 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]'
4221 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4224 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4225 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4230 irix5* | irix6* | nonstopux*)
4232 *-32|*"-32 ") libmagic=32-bit;;
4233 *-n32|*"-n32 ") libmagic=N32;;
4234 *-64|*"-64 ") libmagic=64-bit;;
4235 *) libmagic=never-match;;
4237 lt_cv_deplibs_check_method=pass_all
4240 # This must be Linux ELF.
4242 lt_cv_deplibs_check_method=pass_all
4245 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
4246 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4247 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4249 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4254 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4255 lt_cv_file_magic_cmd=/usr/bin/file
4256 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4260 lt_cv_deplibs_check_method=unknown
4264 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4265 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4267 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4271 osf3* | osf4* | osf5*)
4272 lt_cv_deplibs_check_method=pass_all
4276 lt_cv_deplibs_check_method=pass_all
4280 lt_cv_deplibs_check_method=pass_all
4283 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4284 case $host_vendor in
4286 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]'
4287 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4290 lt_cv_deplibs_check_method=pass_all
4293 lt_cv_file_magic_cmd='/bin/file'
4294 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4297 lt_cv_file_magic_cmd='/bin/file'
4298 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4299 lt_cv_file_magic_test_file=/lib/libc.so
4302 lt_cv_deplibs_check_method=pass_all
4307 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4308 lt_cv_deplibs_check_method=pass_all
4313 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4314 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4315 file_magic_cmd=$lt_cv_file_magic_cmd
4316 deplibs_check_method=$lt_cv_deplibs_check_method
4317 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4322 # If no C compiler was specified, use CC.
4325 # Allow CC to be a program name with arguments.
4329 # Check whether --enable-libtool-lock was given.
4330 if test "${enable_libtool_lock+set}" = set; then
4331 enableval=$enable_libtool_lock;
4334 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4336 # Some flags need to be propagated to the compiler or linker for good
4340 # Find out which ABI we are using.
4341 echo 'int i;' > conftest.$ac_ext
4342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4343 (eval $ac_compile) 2>&5
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); }; then
4347 case `/usr/bin/file conftest.$ac_objext` in
4359 # Find out which ABI we are using.
4360 echo '#line __oline__ "configure"' > conftest.$ac_ext
4361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4362 (eval $ac_compile) 2>&5
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); }; then
4366 if test "$lt_cv_prog_gnu_ld" = yes; then
4367 case `/usr/bin/file conftest.$ac_objext` in
4369 LD="${LD-ld} -melf32bsmip"
4372 LD="${LD-ld} -melf32bmipn32"
4375 LD="${LD-ld} -melf64bmip"
4379 case `/usr/bin/file conftest.$ac_objext` in
4395 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4396 # Find out which ABI we are using.
4397 echo 'int i;' > conftest.$ac_ext
4398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4399 (eval $ac_compile) 2>&5
4401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402 (exit $ac_status); }; then
4403 case `/usr/bin/file conftest.o` in
4407 LD="${LD-ld} -m elf_i386"
4409 ppc64-*linux*|powerpc64-*linux*)
4410 LD="${LD-ld} -m elf32ppclinux"
4413 LD="${LD-ld} -m elf_s390"
4416 LD="${LD-ld} -m elf32_sparc"
4423 LD="${LD-ld} -m elf_x86_64"
4425 ppc*-*linux*|powerpc*-*linux*)
4426 LD="${LD-ld} -m elf64ppc"
4429 LD="${LD-ld} -m elf64_s390"
4432 LD="${LD-ld} -m elf64_sparc"
4442 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4443 SAVE_CFLAGS="$CFLAGS"
4444 CFLAGS="$CFLAGS -belf"
4445 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4446 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4447 if test "${lt_cv_cc_needs_belf+set}" = set; then
4448 echo $ECHO_N "(cached) $ECHO_C" >&6
4451 ac_cpp='$CPP $CPPFLAGS'
4452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4456 cat >conftest.$ac_ext <<_ACEOF
4459 cat confdefs.h >>conftest.$ac_ext
4460 cat >>conftest.$ac_ext <<_ACEOF
4461 /* end confdefs.h. */
4471 rm -f conftest.$ac_objext conftest$ac_exeext
4472 if { (ac_try="$ac_link"
4474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4475 *) ac_try_echo=$ac_try;;
4477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4478 (eval "$ac_link") 2>conftest.er1
4480 grep -v '^ *+' conftest.er1 >conftest.err
4482 cat conftest.err >&5
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); } && {
4485 test -z "$ac_c_werror_flag" ||
4486 test ! -s conftest.err
4487 } && test -s conftest$ac_exeext &&
4488 $as_test_x conftest$ac_exeext; then
4489 lt_cv_cc_needs_belf=yes
4491 echo "$as_me: failed program was:" >&5
4492 sed 's/^/| /' conftest.$ac_ext >&5
4494 lt_cv_cc_needs_belf=no
4497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4498 conftest$ac_exeext conftest.$ac_ext
4500 ac_cpp='$CPP $CPPFLAGS'
4501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4506 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4507 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4508 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4509 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4510 CFLAGS="$SAVE_CFLAGS"
4516 need_locks="$enable_libtool_lock"
4520 ac_cpp='$CPP $CPPFLAGS'
4521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4524 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4525 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4526 # On Suns, sometimes $CPP names a directory.
4527 if test -n "$CPP" && test -d "$CPP"; then
4530 if test -z "$CPP"; then
4531 if test "${ac_cv_prog_CPP+set}" = set; then
4532 echo $ECHO_N "(cached) $ECHO_C" >&6
4534 # Double quotes because CPP needs to be expanded
4535 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4538 for ac_c_preproc_warn_flag in '' yes
4540 # Use a header file that comes with gcc, so configuring glibc
4541 # with a fresh cross-compiler works.
4542 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4543 # <limits.h> exists even on freestanding compilers.
4544 # On the NeXT, cc -E runs the code through the compiler's parser,
4545 # not just through cpp. "Syntax error" is here to catch this case.
4546 cat >conftest.$ac_ext <<_ACEOF
4549 cat confdefs.h >>conftest.$ac_ext
4550 cat >>conftest.$ac_ext <<_ACEOF
4551 /* end confdefs.h. */
4553 @%:@ include <limits.h>
4555 @%:@ include <assert.h>
4559 if { (ac_try="$ac_cpp conftest.$ac_ext"
4561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4562 *) ac_try_echo=$ac_try;;
4564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4565 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4567 grep -v '^ *+' conftest.er1 >conftest.err
4569 cat conftest.err >&5
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); } >/dev/null && {
4572 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4573 test ! -s conftest.err
4577 echo "$as_me: failed program was:" >&5
4578 sed 's/^/| /' conftest.$ac_ext >&5
4580 # Broken: fails on valid input.
4584 rm -f conftest.err conftest.$ac_ext
4586 # OK, works on sane cases. Now check whether nonexistent headers
4587 # can be detected and how.
4588 cat >conftest.$ac_ext <<_ACEOF
4591 cat confdefs.h >>conftest.$ac_ext
4592 cat >>conftest.$ac_ext <<_ACEOF
4593 /* end confdefs.h. */
4594 @%:@include <ac_nonexistent.h>
4596 if { (ac_try="$ac_cpp conftest.$ac_ext"
4598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4599 *) ac_try_echo=$ac_try;;
4601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4604 grep -v '^ *+' conftest.er1 >conftest.err
4606 cat conftest.err >&5
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); } >/dev/null && {
4609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4610 test ! -s conftest.err
4612 # Broken: success on invalid input.
4615 echo "$as_me: failed program was:" >&5
4616 sed 's/^/| /' conftest.$ac_ext >&5
4618 # Passes both tests.
4623 rm -f conftest.err conftest.$ac_ext
4626 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4627 rm -f conftest.err conftest.$ac_ext
4628 if $ac_preproc_ok; then
4640 { echo "$as_me:$LINENO: result: $CPP" >&5
4641 echo "${ECHO_T}$CPP" >&6; }
4643 for ac_c_preproc_warn_flag in '' yes
4645 # Use a header file that comes with gcc, so configuring glibc
4646 # with a fresh cross-compiler works.
4647 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4648 # <limits.h> exists even on freestanding compilers.
4649 # On the NeXT, cc -E runs the code through the compiler's parser,
4650 # not just through cpp. "Syntax error" is here to catch this case.
4651 cat >conftest.$ac_ext <<_ACEOF
4654 cat confdefs.h >>conftest.$ac_ext
4655 cat >>conftest.$ac_ext <<_ACEOF
4656 /* end confdefs.h. */
4658 @%:@ include <limits.h>
4660 @%:@ include <assert.h>
4664 if { (ac_try="$ac_cpp conftest.$ac_ext"
4666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4667 *) ac_try_echo=$ac_try;;
4669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4672 grep -v '^ *+' conftest.er1 >conftest.err
4674 cat conftest.err >&5
4675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676 (exit $ac_status); } >/dev/null && {
4677 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4678 test ! -s conftest.err
4682 echo "$as_me: failed program was:" >&5
4683 sed 's/^/| /' conftest.$ac_ext >&5
4685 # Broken: fails on valid input.
4689 rm -f conftest.err conftest.$ac_ext
4691 # OK, works on sane cases. Now check whether nonexistent headers
4692 # can be detected and how.
4693 cat >conftest.$ac_ext <<_ACEOF
4696 cat confdefs.h >>conftest.$ac_ext
4697 cat >>conftest.$ac_ext <<_ACEOF
4698 /* end confdefs.h. */
4699 @%:@include <ac_nonexistent.h>
4701 if { (ac_try="$ac_cpp conftest.$ac_ext"
4703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4704 *) ac_try_echo=$ac_try;;
4706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4707 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4709 grep -v '^ *+' conftest.er1 >conftest.err
4711 cat conftest.err >&5
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); } >/dev/null && {
4714 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4715 test ! -s conftest.err
4717 # Broken: success on invalid input.
4720 echo "$as_me: failed program was:" >&5
4721 sed 's/^/| /' conftest.$ac_ext >&5
4723 # Passes both tests.
4728 rm -f conftest.err conftest.$ac_ext
4731 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4732 rm -f conftest.err conftest.$ac_ext
4733 if $ac_preproc_ok; then
4736 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4737 See \`config.log' for more details." >&5
4738 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4739 See \`config.log' for more details." >&2;}
4740 { (exit 1); exit 1; }; }
4744 ac_cpp='$CPP $CPPFLAGS'
4745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4750 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4751 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4752 if test "${ac_cv_header_stdc+set}" = set; then
4753 echo $ECHO_N "(cached) $ECHO_C" >&6
4755 cat >conftest.$ac_ext <<_ACEOF
4758 cat confdefs.h >>conftest.$ac_ext
4759 cat >>conftest.$ac_ext <<_ACEOF
4760 /* end confdefs.h. */
4774 rm -f conftest.$ac_objext
4775 if { (ac_try="$ac_compile"
4777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4778 *) ac_try_echo=$ac_try;;
4780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4781 (eval "$ac_compile") 2>conftest.er1
4783 grep -v '^ *+' conftest.er1 >conftest.err
4785 cat conftest.err >&5
4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); } && {
4788 test -z "$ac_c_werror_flag" ||
4789 test ! -s conftest.err
4790 } && test -s conftest.$ac_objext; then
4791 ac_cv_header_stdc=yes
4793 echo "$as_me: failed program was:" >&5
4794 sed 's/^/| /' conftest.$ac_ext >&5
4796 ac_cv_header_stdc=no
4799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4801 if test $ac_cv_header_stdc = yes; then
4802 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4803 cat >conftest.$ac_ext <<_ACEOF
4806 cat confdefs.h >>conftest.$ac_ext
4807 cat >>conftest.$ac_ext <<_ACEOF
4808 /* end confdefs.h. */
4812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4813 $EGREP "memchr" >/dev/null 2>&1; then
4816 ac_cv_header_stdc=no
4822 if test $ac_cv_header_stdc = yes; then
4823 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4824 cat >conftest.$ac_ext <<_ACEOF
4827 cat confdefs.h >>conftest.$ac_ext
4828 cat >>conftest.$ac_ext <<_ACEOF
4829 /* end confdefs.h. */
4833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4834 $EGREP "free" >/dev/null 2>&1; then
4837 ac_cv_header_stdc=no
4843 if test $ac_cv_header_stdc = yes; then
4844 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4845 if test "$cross_compiling" = yes; then
4848 cat >conftest.$ac_ext <<_ACEOF
4851 cat confdefs.h >>conftest.$ac_ext
4852 cat >>conftest.$ac_ext <<_ACEOF
4853 /* end confdefs.h. */
4856 #if ((' ' & 0x0FF) == 0x020)
4857 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4858 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4860 # define ISLOWER(c) \
4861 (('a' <= (c) && (c) <= 'i') \
4862 || ('j' <= (c) && (c) <= 'r') \
4863 || ('s' <= (c) && (c) <= 'z'))
4864 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4867 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4872 for (i = 0; i < 256; i++)
4873 if (XOR (islower (i), ISLOWER (i))
4874 || toupper (i) != TOUPPER (i))
4879 rm -f conftest$ac_exeext
4880 if { (ac_try="$ac_link"
4882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4883 *) ac_try_echo=$ac_try;;
4885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4886 (eval "$ac_link") 2>&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4890 { (case "(($ac_try" in
4891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4892 *) ac_try_echo=$ac_try;;
4894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4895 (eval "$ac_try") 2>&5
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); }; }; then
4901 echo "$as_me: program exited with status $ac_status" >&5
4902 echo "$as_me: failed program was:" >&5
4903 sed 's/^/| /' conftest.$ac_ext >&5
4906 ac_cv_header_stdc=no
4908 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4914 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4915 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4916 if test $ac_cv_header_stdc = yes; then
4918 cat >>confdefs.h <<\_ACEOF
4919 @%:@define STDC_HEADERS 1
4924 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4934 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4935 inttypes.h stdint.h unistd.h
4937 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4938 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4941 echo $ECHO_N "(cached) $ECHO_C" >&6
4943 cat >conftest.$ac_ext <<_ACEOF
4946 cat confdefs.h >>conftest.$ac_ext
4947 cat >>conftest.$ac_ext <<_ACEOF
4948 /* end confdefs.h. */
4949 $ac_includes_default
4951 @%:@include <$ac_header>
4953 rm -f conftest.$ac_objext
4954 if { (ac_try="$ac_compile"
4956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4957 *) ac_try_echo=$ac_try;;
4959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4960 (eval "$ac_compile") 2>conftest.er1
4962 grep -v '^ *+' conftest.er1 >conftest.err
4964 cat conftest.err >&5
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); } && {
4967 test -z "$ac_c_werror_flag" ||
4968 test ! -s conftest.err
4969 } && test -s conftest.$ac_objext; then
4970 eval "$as_ac_Header=yes"
4972 echo "$as_me: failed program was:" >&5
4973 sed 's/^/| /' conftest.$ac_ext >&5
4975 eval "$as_ac_Header=no"
4978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4980 ac_res=`eval echo '${'$as_ac_Header'}'`
4981 { echo "$as_me:$LINENO: result: $ac_res" >&5
4982 echo "${ECHO_T}$ac_res" >&6; }
4983 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4984 cat >>confdefs.h <<_ACEOF
4985 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4994 for ac_header in dlfcn.h
4996 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4997 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4998 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5000 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5001 echo $ECHO_N "(cached) $ECHO_C" >&6
5003 ac_res=`eval echo '${'$as_ac_Header'}'`
5004 { echo "$as_me:$LINENO: result: $ac_res" >&5
5005 echo "${ECHO_T}$ac_res" >&6; }
5007 # Is the header compilable?
5008 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5009 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5010 cat >conftest.$ac_ext <<_ACEOF
5013 cat confdefs.h >>conftest.$ac_ext
5014 cat >>conftest.$ac_ext <<_ACEOF
5015 /* end confdefs.h. */
5016 $ac_includes_default
5017 @%:@include <$ac_header>
5019 rm -f conftest.$ac_objext
5020 if { (ac_try="$ac_compile"
5022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5023 *) ac_try_echo=$ac_try;;
5025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5026 (eval "$ac_compile") 2>conftest.er1
5028 grep -v '^ *+' conftest.er1 >conftest.err
5030 cat conftest.err >&5
5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032 (exit $ac_status); } && {
5033 test -z "$ac_c_werror_flag" ||
5034 test ! -s conftest.err
5035 } && test -s conftest.$ac_objext; then
5036 ac_header_compiler=yes
5038 echo "$as_me: failed program was:" >&5
5039 sed 's/^/| /' conftest.$ac_ext >&5
5041 ac_header_compiler=no
5044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5045 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5046 echo "${ECHO_T}$ac_header_compiler" >&6; }
5048 # Is the header present?
5049 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5050 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5051 cat >conftest.$ac_ext <<_ACEOF
5054 cat confdefs.h >>conftest.$ac_ext
5055 cat >>conftest.$ac_ext <<_ACEOF
5056 /* end confdefs.h. */
5057 @%:@include <$ac_header>
5059 if { (ac_try="$ac_cpp conftest.$ac_ext"
5061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5062 *) ac_try_echo=$ac_try;;
5064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5065 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5067 grep -v '^ *+' conftest.er1 >conftest.err
5069 cat conftest.err >&5
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); } >/dev/null && {
5072 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5073 test ! -s conftest.err
5075 ac_header_preproc=yes
5077 echo "$as_me: failed program was:" >&5
5078 sed 's/^/| /' conftest.$ac_ext >&5
5080 ac_header_preproc=no
5083 rm -f conftest.err conftest.$ac_ext
5084 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5085 echo "${ECHO_T}$ac_header_preproc" >&6; }
5087 # So? What about this header?
5088 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5090 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5091 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5092 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5093 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5094 ac_header_preproc=yes
5097 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5098 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5099 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5100 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5101 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5102 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5103 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5104 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5105 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5106 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5107 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5108 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5112 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5113 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5115 echo $ECHO_N "(cached) $ECHO_C" >&6
5117 eval "$as_ac_Header=\$ac_header_preproc"
5119 ac_res=`eval echo '${'$as_ac_Header'}'`
5120 { echo "$as_me:$LINENO: result: $ac_res" >&5
5121 echo "${ECHO_T}$ac_res" >&6; }
5124 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5125 cat >>confdefs.h <<_ACEOF
5126 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5134 ac_cpp='$CXXCPP $CPPFLAGS'
5135 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5136 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5137 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5138 if test -z "$CXX"; then
5139 if test -n "$CCC"; then
5142 if test -n "$ac_tool_prefix"; then
5143 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5145 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5146 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5149 if test "${ac_cv_prog_CXX+set}" = set; then
5150 echo $ECHO_N "(cached) $ECHO_C" >&6
5152 if test -n "$CXX"; then
5153 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159 test -z "$as_dir" && as_dir=.
5160 for ac_exec_ext in '' $ac_executable_extensions; do
5161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5162 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5173 if test -n "$CXX"; then
5174 { echo "$as_me:$LINENO: result: $CXX" >&5
5175 echo "${ECHO_T}$CXX" >&6; }
5177 { echo "$as_me:$LINENO: result: no" >&5
5178 echo "${ECHO_T}no" >&6; }
5182 test -n "$CXX" && break
5185 if test -z "$CXX"; then
5187 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5189 # Extract the first word of "$ac_prog", so it can be a program name with args.
5190 set dummy $ac_prog; ac_word=$2
5191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5193 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5194 echo $ECHO_N "(cached) $ECHO_C" >&6
5196 if test -n "$ac_ct_CXX"; then
5197 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5203 test -z "$as_dir" && as_dir=.
5204 for ac_exec_ext in '' $ac_executable_extensions; do
5205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5206 ac_cv_prog_ac_ct_CXX="$ac_prog"
5207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5216 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5217 if test -n "$ac_ct_CXX"; then
5218 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5219 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5221 { echo "$as_me:$LINENO: result: no" >&5
5222 echo "${ECHO_T}no" >&6; }
5226 test -n "$ac_ct_CXX" && break
5229 if test "x$ac_ct_CXX" = x; then
5232 case $cross_compiling:$ac_tool_warned in
5234 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5235 whose name does not start with the host triplet. If you think this
5236 configuration is useful to you, please write to autoconf@gnu.org." >&5
5237 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5238 whose name does not start with the host triplet. If you think this
5239 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5240 ac_tool_warned=yes ;;
5248 # Provide some information about the compiler.
5249 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5250 ac_compiler=`set X $ac_compile; echo $2`
5251 { (ac_try="$ac_compiler --version >&5"
5253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5254 *) ac_try_echo=$ac_try;;
5256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5257 (eval "$ac_compiler --version >&5") 2>&5
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); }
5261 { (ac_try="$ac_compiler -v >&5"
5263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5264 *) ac_try_echo=$ac_try;;
5266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5267 (eval "$ac_compiler -v >&5") 2>&5
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); }
5271 { (ac_try="$ac_compiler -V >&5"
5273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5274 *) ac_try_echo=$ac_try;;
5276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5277 (eval "$ac_compiler -V >&5") 2>&5
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); }
5282 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5283 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5284 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5285 echo $ECHO_N "(cached) $ECHO_C" >&6
5287 cat >conftest.$ac_ext <<_ACEOF
5290 cat confdefs.h >>conftest.$ac_ext
5291 cat >>conftest.$ac_ext <<_ACEOF
5292 /* end confdefs.h. */
5305 rm -f conftest.$ac_objext
5306 if { (ac_try="$ac_compile"
5308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5309 *) ac_try_echo=$ac_try;;
5311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5312 (eval "$ac_compile") 2>conftest.er1
5314 grep -v '^ *+' conftest.er1 >conftest.err
5316 cat conftest.err >&5
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); } && {
5319 test -z "$ac_cxx_werror_flag" ||
5320 test ! -s conftest.err
5321 } && test -s conftest.$ac_objext; then
5324 echo "$as_me: failed program was:" >&5
5325 sed 's/^/| /' conftest.$ac_ext >&5
5330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5331 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5334 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5335 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5336 GXX=`test $ac_compiler_gnu = yes && echo yes`
5337 ac_test_CXXFLAGS=${CXXFLAGS+set}
5338 ac_save_CXXFLAGS=$CXXFLAGS
5339 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5340 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5341 if test "${ac_cv_prog_cxx_g+set}" = set; then
5342 echo $ECHO_N "(cached) $ECHO_C" >&6
5344 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5345 ac_cxx_werror_flag=yes
5348 cat >conftest.$ac_ext <<_ACEOF
5351 cat confdefs.h >>conftest.$ac_ext
5352 cat >>conftest.$ac_ext <<_ACEOF
5353 /* end confdefs.h. */
5363 rm -f conftest.$ac_objext
5364 if { (ac_try="$ac_compile"
5366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5367 *) ac_try_echo=$ac_try;;
5369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5370 (eval "$ac_compile") 2>conftest.er1
5372 grep -v '^ *+' conftest.er1 >conftest.err
5374 cat conftest.err >&5
5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); } && {
5377 test -z "$ac_cxx_werror_flag" ||
5378 test ! -s conftest.err
5379 } && test -s conftest.$ac_objext; then
5380 ac_cv_prog_cxx_g=yes
5382 echo "$as_me: failed program was:" >&5
5383 sed 's/^/| /' conftest.$ac_ext >&5
5386 cat >conftest.$ac_ext <<_ACEOF
5389 cat confdefs.h >>conftest.$ac_ext
5390 cat >>conftest.$ac_ext <<_ACEOF
5391 /* end confdefs.h. */
5401 rm -f conftest.$ac_objext
5402 if { (ac_try="$ac_compile"
5404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5405 *) ac_try_echo=$ac_try;;
5407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5408 (eval "$ac_compile") 2>conftest.er1
5410 grep -v '^ *+' conftest.er1 >conftest.err
5412 cat conftest.err >&5
5413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414 (exit $ac_status); } && {
5415 test -z "$ac_cxx_werror_flag" ||
5416 test ! -s conftest.err
5417 } && test -s conftest.$ac_objext; then
5420 echo "$as_me: failed program was:" >&5
5421 sed 's/^/| /' conftest.$ac_ext >&5
5423 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5425 cat >conftest.$ac_ext <<_ACEOF
5428 cat confdefs.h >>conftest.$ac_ext
5429 cat >>conftest.$ac_ext <<_ACEOF
5430 /* end confdefs.h. */
5440 rm -f conftest.$ac_objext
5441 if { (ac_try="$ac_compile"
5443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5444 *) ac_try_echo=$ac_try;;
5446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5447 (eval "$ac_compile") 2>conftest.er1
5449 grep -v '^ *+' conftest.er1 >conftest.err
5451 cat conftest.err >&5
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); } && {
5454 test -z "$ac_cxx_werror_flag" ||
5455 test ! -s conftest.err
5456 } && test -s conftest.$ac_objext; then
5457 ac_cv_prog_cxx_g=yes
5459 echo "$as_me: failed program was:" >&5
5460 sed 's/^/| /' conftest.$ac_ext >&5
5465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5472 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5474 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5475 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5476 if test "$ac_test_CXXFLAGS" = set; then
5477 CXXFLAGS=$ac_save_CXXFLAGS
5478 elif test $ac_cv_prog_cxx_g = yes; then
5479 if test "$GXX" = yes; then
5485 if test "$GXX" = yes; then
5492 ac_cpp='$CXXCPP $CPPFLAGS'
5493 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5494 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5495 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5497 depcc="$CXX" am_compiler_list=
5499 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5500 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5501 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5502 echo $ECHO_N "(cached) $ECHO_C" >&6
5504 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5505 # We make a subdir and do the tests there. Otherwise we can end up
5506 # making bogus files that we don't know about and never remove. For
5507 # instance it was reported that on HP-UX the gcc test will end up
5508 # making a dummy file named `D' -- because `-MD' means `put the output
5511 # Copy depcomp to subdir because otherwise we won't find it if we're
5512 # using a relative directory.
5513 cp "$am_depcomp" conftest.dir
5515 # We will build objects and dependencies in a subdirectory because
5516 # it helps to detect inapplicable dependency modes. For instance
5517 # both Tru64's cc and ICC support -MD to output dependencies as a
5518 # side effect of compilation, but ICC will put the dependencies in
5519 # the current directory while Tru64 will put them in the object
5523 am_cv_CXX_dependencies_compiler_type=none
5524 if test "$am_compiler_list" = ""; then
5525 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5527 for depmode in $am_compiler_list; do
5528 # Setup a source with many dependencies, because some compilers
5529 # like to wrap large dependency lists on column 80 (with \), and
5530 # we should not choose a depcomp mode which is confused by this.
5532 # We need to recreate these files for each test, as the compiler may
5533 # overwrite some of them when testing with obscure command lines.
5534 # This happens at least with the AIX C compiler.
5536 for i in 1 2 3 4 5 6; do
5537 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5538 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5539 # Solaris 8's {/usr,}/bin/sh.
5540 touch sub/conftst$i.h
5542 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5546 # after this tag, mechanisms are not by side-effect, so they'll
5547 # only be used when explicitly requested
5548 if test "x$enable_dependency_tracking" = xyes; then
5556 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5557 # mode. It turns out that the SunPro C++ compiler does not properly
5558 # handle `-M -o', and we need to detect this.
5559 if depmode=$depmode \
5560 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5561 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5562 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5563 >/dev/null 2>conftest.err &&
5564 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5565 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5566 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5567 # icc doesn't choke on unknown options, it will just issue warnings
5568 # or remarks (even with -Werror). So we grep stderr for any message
5569 # that says an option was ignored or not supported.
5570 # When given -MP, icc 7.0 and 7.1 complain thusly:
5571 # icc: Command line warning: ignoring option '-M'; no argument required
5572 # The diagnosis changed in icc 8.0:
5573 # icc: Command line remark: option '-MP' not supported
5574 if (grep 'ignoring option' conftest.err ||
5575 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5576 am_cv_CXX_dependencies_compiler_type=$depmode
5585 am_cv_CXX_dependencies_compiler_type=none
5589 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5590 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5591 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5596 test "x$enable_dependency_tracking" != xno \
5597 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5598 am__fastdepCXX_TRUE=
5599 am__fastdepCXX_FALSE='#'
5601 am__fastdepCXX_TRUE='#'
5602 am__fastdepCXX_FALSE=
5608 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5609 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5610 (test "X$CXX" != "Xg++"))) ; then
5612 ac_cpp='$CXXCPP $CPPFLAGS'
5613 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5614 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5615 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5616 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5617 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5618 if test -z "$CXXCPP"; then
5619 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5620 echo $ECHO_N "(cached) $ECHO_C" >&6
5622 # Double quotes because CXXCPP needs to be expanded
5623 for CXXCPP in "$CXX -E" "/lib/cpp"
5626 for ac_cxx_preproc_warn_flag in '' yes
5628 # Use a header file that comes with gcc, so configuring glibc
5629 # with a fresh cross-compiler works.
5630 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5631 # <limits.h> exists even on freestanding compilers.
5632 # On the NeXT, cc -E runs the code through the compiler's parser,
5633 # not just through cpp. "Syntax error" is here to catch this case.
5634 cat >conftest.$ac_ext <<_ACEOF
5637 cat confdefs.h >>conftest.$ac_ext
5638 cat >>conftest.$ac_ext <<_ACEOF
5639 /* end confdefs.h. */
5641 @%:@ include <limits.h>
5643 @%:@ include <assert.h>
5647 if { (ac_try="$ac_cpp conftest.$ac_ext"
5649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5650 *) ac_try_echo=$ac_try;;
5652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5653 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5655 grep -v '^ *+' conftest.er1 >conftest.err
5657 cat conftest.err >&5
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); } >/dev/null && {
5660 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5661 test ! -s conftest.err
5665 echo "$as_me: failed program was:" >&5
5666 sed 's/^/| /' conftest.$ac_ext >&5
5668 # Broken: fails on valid input.
5672 rm -f conftest.err conftest.$ac_ext
5674 # OK, works on sane cases. Now check whether nonexistent headers
5675 # can be detected and how.
5676 cat >conftest.$ac_ext <<_ACEOF
5679 cat confdefs.h >>conftest.$ac_ext
5680 cat >>conftest.$ac_ext <<_ACEOF
5681 /* end confdefs.h. */
5682 @%:@include <ac_nonexistent.h>
5684 if { (ac_try="$ac_cpp conftest.$ac_ext"
5686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5687 *) ac_try_echo=$ac_try;;
5689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5690 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5692 grep -v '^ *+' conftest.er1 >conftest.err
5694 cat conftest.err >&5
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); } >/dev/null && {
5697 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5698 test ! -s conftest.err
5700 # Broken: success on invalid input.
5703 echo "$as_me: failed program was:" >&5
5704 sed 's/^/| /' conftest.$ac_ext >&5
5706 # Passes both tests.
5711 rm -f conftest.err conftest.$ac_ext
5714 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5715 rm -f conftest.err conftest.$ac_ext
5716 if $ac_preproc_ok; then
5721 ac_cv_prog_CXXCPP=$CXXCPP
5724 CXXCPP=$ac_cv_prog_CXXCPP
5726 ac_cv_prog_CXXCPP=$CXXCPP
5728 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5729 echo "${ECHO_T}$CXXCPP" >&6; }
5731 for ac_cxx_preproc_warn_flag in '' yes
5733 # Use a header file that comes with gcc, so configuring glibc
5734 # with a fresh cross-compiler works.
5735 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5736 # <limits.h> exists even on freestanding compilers.
5737 # On the NeXT, cc -E runs the code through the compiler's parser,
5738 # not just through cpp. "Syntax error" is here to catch this case.
5739 cat >conftest.$ac_ext <<_ACEOF
5742 cat confdefs.h >>conftest.$ac_ext
5743 cat >>conftest.$ac_ext <<_ACEOF
5744 /* end confdefs.h. */
5746 @%:@ include <limits.h>
5748 @%:@ include <assert.h>
5752 if { (ac_try="$ac_cpp conftest.$ac_ext"
5754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5755 *) ac_try_echo=$ac_try;;
5757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5758 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5760 grep -v '^ *+' conftest.er1 >conftest.err
5762 cat conftest.err >&5
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); } >/dev/null && {
5765 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5766 test ! -s conftest.err
5770 echo "$as_me: failed program was:" >&5
5771 sed 's/^/| /' conftest.$ac_ext >&5
5773 # Broken: fails on valid input.
5777 rm -f conftest.err conftest.$ac_ext
5779 # OK, works on sane cases. Now check whether nonexistent headers
5780 # can be detected and how.
5781 cat >conftest.$ac_ext <<_ACEOF
5784 cat confdefs.h >>conftest.$ac_ext
5785 cat >>conftest.$ac_ext <<_ACEOF
5786 /* end confdefs.h. */
5787 @%:@include <ac_nonexistent.h>
5789 if { (ac_try="$ac_cpp conftest.$ac_ext"
5791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5792 *) ac_try_echo=$ac_try;;
5794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5795 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5797 grep -v '^ *+' conftest.er1 >conftest.err
5799 cat conftest.err >&5
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); } >/dev/null && {
5802 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5803 test ! -s conftest.err
5805 # Broken: success on invalid input.
5808 echo "$as_me: failed program was:" >&5
5809 sed 's/^/| /' conftest.$ac_ext >&5
5811 # Passes both tests.
5816 rm -f conftest.err conftest.$ac_ext
5819 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5820 rm -f conftest.err conftest.$ac_ext
5821 if $ac_preproc_ok; then
5824 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5825 See \`config.log' for more details." >&5
5826 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5827 See \`config.log' for more details." >&2;}
5828 { (exit 1); exit 1; }; }
5832 ac_cpp='$CXXCPP $CPPFLAGS'
5833 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5834 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5835 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5841 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5842 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5843 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5844 if test -n "$ac_tool_prefix"; then
5845 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
5847 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5848 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5851 if test "${ac_cv_prog_F77+set}" = set; then
5852 echo $ECHO_N "(cached) $ECHO_C" >&6
5854 if test -n "$F77"; then
5855 ac_cv_prog_F77="$F77" # Let the user override the test.
5857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5861 test -z "$as_dir" && as_dir=.
5862 for ac_exec_ext in '' $ac_executable_extensions; do
5863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5864 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5875 if test -n "$F77"; then
5876 { echo "$as_me:$LINENO: result: $F77" >&5
5877 echo "${ECHO_T}$F77" >&6; }
5879 { echo "$as_me:$LINENO: result: no" >&5
5880 echo "${ECHO_T}no" >&6; }
5884 test -n "$F77" && break
5887 if test -z "$F77"; then
5889 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
5891 # Extract the first word of "$ac_prog", so it can be a program name with args.
5892 set dummy $ac_prog; ac_word=$2
5893 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5895 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5896 echo $ECHO_N "(cached) $ECHO_C" >&6
5898 if test -n "$ac_ct_F77"; then
5899 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5905 test -z "$as_dir" && as_dir=.
5906 for ac_exec_ext in '' $ac_executable_extensions; do
5907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5908 ac_cv_prog_ac_ct_F77="$ac_prog"
5909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5918 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5919 if test -n "$ac_ct_F77"; then
5920 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5921 echo "${ECHO_T}$ac_ct_F77" >&6; }
5923 { echo "$as_me:$LINENO: result: no" >&5
5924 echo "${ECHO_T}no" >&6; }
5928 test -n "$ac_ct_F77" && break
5931 if test "x$ac_ct_F77" = x; then
5934 case $cross_compiling:$ac_tool_warned in
5936 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5937 whose name does not start with the host triplet. If you think this
5938 configuration is useful to you, please write to autoconf@gnu.org." >&5
5939 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5940 whose name does not start with the host triplet. If you think this
5941 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5942 ac_tool_warned=yes ;;
5949 # Provide some information about the compiler.
5950 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5951 ac_compiler=`set X $ac_compile; echo $2`
5952 { (ac_try="$ac_compiler --version >&5"
5954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5955 *) ac_try_echo=$ac_try;;
5957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5958 (eval "$ac_compiler --version >&5") 2>&5
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); }
5962 { (ac_try="$ac_compiler -v >&5"
5964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5965 *) ac_try_echo=$ac_try;;
5967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5968 (eval "$ac_compiler -v >&5") 2>&5
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); }
5972 { (ac_try="$ac_compiler -V >&5"
5974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5975 *) ac_try_echo=$ac_try;;
5977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5978 (eval "$ac_compiler -V >&5") 2>&5
5980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981 (exit $ac_status); }
5984 # If we don't use `.F' as extension, the preprocessor is not run on the
5985 # input file. (Note that this only needs to work for GNU compilers.)
5988 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5989 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5990 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5991 echo $ECHO_N "(cached) $ECHO_C" >&6
5993 cat >conftest.$ac_ext <<_ACEOF
6001 rm -f conftest.$ac_objext
6002 if { (ac_try="$ac_compile"
6004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6005 *) ac_try_echo=$ac_try;;
6007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6008 (eval "$ac_compile") 2>conftest.er1
6010 grep -v '^ *+' conftest.er1 >conftest.err
6012 cat conftest.err >&5
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); } && {
6015 test -z "$ac_f77_werror_flag" ||
6016 test ! -s conftest.err
6017 } && test -s conftest.$ac_objext; then
6020 echo "$as_me: failed program was:" >&5
6021 sed 's/^/| /' conftest.$ac_ext >&5
6026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6027 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6030 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6031 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6033 ac_test_FFLAGS=${FFLAGS+set}
6034 ac_save_FFLAGS=$FFLAGS
6036 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6037 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6038 if test "${ac_cv_prog_f77_g+set}" = set; then
6039 echo $ECHO_N "(cached) $ECHO_C" >&6
6042 cat >conftest.$ac_ext <<_ACEOF
6047 rm -f conftest.$ac_objext
6048 if { (ac_try="$ac_compile"
6050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6051 *) ac_try_echo=$ac_try;;
6053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6054 (eval "$ac_compile") 2>conftest.er1
6056 grep -v '^ *+' conftest.er1 >conftest.err
6058 cat conftest.err >&5
6059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060 (exit $ac_status); } && {
6061 test -z "$ac_f77_werror_flag" ||
6062 test ! -s conftest.err
6063 } && test -s conftest.$ac_objext; then
6064 ac_cv_prog_f77_g=yes
6066 echo "$as_me: failed program was:" >&5
6067 sed 's/^/| /' conftest.$ac_ext >&5
6072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6075 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6076 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6077 if test "$ac_test_FFLAGS" = set; then
6078 FFLAGS=$ac_save_FFLAGS
6079 elif test $ac_cv_prog_f77_g = yes; then
6080 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6086 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6093 G77=`test $ac_compiler_gnu = yes && echo yes`
6095 ac_cpp='$CPP $CPPFLAGS'
6096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6102 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6104 # find the maximum length of command line arguments
6105 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6106 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6107 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6115 # On DJGPP, this test can blow up pretty badly due to problems in libc
6116 # (any single argument exceeding 2000 bytes causes a buffer overrun
6117 # during glob expansion). Even if it were fixed, the result of this
6118 # check would be larger than it should be.
6119 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6123 # Under GNU Hurd, this test is not required because there is
6124 # no limit to the length of command line arguments.
6125 # Libtool will interpret -1 as no limit whatsoever
6126 lt_cv_sys_max_cmd_len=-1;
6130 # On Win9x/ME, this test blows up -- it succeeds, but takes
6131 # about 5 minutes as the teststring grows exponentially.
6132 # Worse, since 9x/ME are not pre-emptively multitasking,
6133 # you end up with a "frozen" computer, even though with patience
6134 # the test eventually succeeds (with a max line length of 256k).
6135 # Instead, let's just punt: use the minimum linelength reported by
6136 # all of the supported platforms: 8192 (on NT/2K/XP).
6137 lt_cv_sys_max_cmd_len=8192;
6141 # On AmigaOS with pdksh, this test takes hours, literally.
6142 # So we just punt and use a minimum line length of 8192.
6143 lt_cv_sys_max_cmd_len=8192;
6146 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6147 # This has been around since 386BSD, at least. Likely further.
6148 if test -x /sbin/sysctl; then
6149 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6150 elif test -x /usr/sbin/sysctl; then
6151 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6153 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6155 # And add a safety zone
6156 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6157 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6160 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6161 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6162 # nice to cause kernel panics so lets avoid the loop below.
6163 # First set a reasonable default.
6164 lt_cv_sys_max_cmd_len=16384
6166 if test -x /sbin/sysconfig; then
6167 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6168 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6173 # If test is not a shell built-in, we'll probably end up computing a
6174 # maximum length that is only half of the actual maximum length, but
6176 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6177 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6178 = "XX$teststring") >/dev/null 2>&1 &&
6179 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6180 lt_cv_sys_max_cmd_len=$new_result &&
6181 test $i != 17 # 1/2 MB should be enough
6184 teststring=$teststring$teststring
6187 # Add a significant safety factor because C++ compilers can tack on massive
6188 # amounts of additional arguments before passing them to the linker.
6189 # It appears as though 1/2 is a usable value.
6190 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6196 if test -n $lt_cv_sys_max_cmd_len ; then
6197 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6198 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6200 { echo "$as_me:$LINENO: result: none" >&5
6201 echo "${ECHO_T}none" >&6; }
6207 # Check for command to grab the raw symbol name followed by C symbol from nm.
6208 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6209 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6210 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6211 echo $ECHO_N "(cached) $ECHO_C" >&6
6214 # These are sane defaults that work on at least a few old systems.
6215 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6217 # Character class describing NM global symbol codes.
6218 symcode='[BCDEGRST]'
6220 # Regexp to match symbols that can be accessed directly from C.
6221 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6223 # Transform an extracted symbol line into a proper C declaration
6224 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6226 # Transform an extracted symbol line into symbol name and symbol address
6227 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'"
6229 # Define system-specific variables.
6234 cygwin* | mingw* | pw32*)
6235 symcode='[ABCDGISTW]'
6237 hpux*) # Its linker distinguishes data from code symbols
6238 if test "$host_cpu" = ia64; then
6239 symcode='[ABCDEGRST]'
6241 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6242 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'"
6245 if test "$host_cpu" = ia64; then
6246 symcode='[ABCDGIRSTW]'
6247 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6248 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'"
6252 symcode='[BCDEGRST]'
6255 symcode='[BCDEGQRST]'
6265 # Handle CRLF in mingw tool chain
6269 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6273 # If we're using GNU nm, then use its standard symbol codes.
6274 case `$NM -V 2>&1` in
6275 *GNU* | *'with BFD'*)
6276 symcode='[ABCDGIRSTW]' ;;
6279 # Try without a prefix undercore, then with it.
6280 for ac_symprfx in "" "_"; do
6282 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6283 symxfrm="\\1 $ac_symprfx\\2 \\2"
6285 # Write the raw and C identifiers.
6286 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6288 # Check to see that the pipe works correctly.
6292 cat > conftest.$ac_ext <<EOF
6297 void nm_test_func(){}
6301 int main(){nm_test_var='a';nm_test_func();return(0);}
6304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6305 (eval $ac_compile) 2>&5
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); }; then
6309 # Now try to grab the symbols.
6311 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6312 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315 (exit $ac_status); } && test -s "$nlist"; then
6316 # Try sorting and uniquifying the output.
6317 if sort "$nlist" | uniq > "$nlist"T; then
6318 mv -f "$nlist"T "$nlist"
6323 # Make sure that we snagged all the symbols we need.
6324 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6325 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6326 cat <<EOF > conftest.$ac_ext
6332 # Now generate the symbol file.
6333 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6335 cat <<EOF >> conftest.$ac_ext
6336 #if defined (__STDC__) && __STDC__
6337 # define lt_ptr_t void *
6339 # define lt_ptr_t char *
6343 /* The mapping between symbol names and symbols. */
6348 lt_preloaded_symbols[] =
6351 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6352 cat <<\EOF >> conftest.$ac_ext
6360 # Now try linking the two files.
6361 mv conftest.$ac_objext conftstm.$ac_objext
6362 lt_save_LIBS="$LIBS"
6363 lt_save_CFLAGS="$CFLAGS"
6364 LIBS="conftstm.$ac_objext"
6365 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6367 (eval $ac_link) 2>&5
6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6373 LIBS="$lt_save_LIBS"
6374 CFLAGS="$lt_save_CFLAGS"
6376 echo "cannot find nm_test_func in $nlist" >&5
6379 echo "cannot find nm_test_var in $nlist" >&5
6382 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6385 echo "$progname: failed program was:" >&5
6386 cat conftest.$ac_ext >&5
6388 rm -f conftest* conftst*
6390 # Do not use the global_symbol_pipe unless it works.
6391 if test "$pipe_works" = yes; then
6394 lt_cv_sys_global_symbol_pipe=
6400 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6401 lt_cv_sys_global_symbol_to_cdecl=
6403 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6404 { echo "$as_me:$LINENO: result: failed" >&5
6405 echo "${ECHO_T}failed" >&6; }
6407 { echo "$as_me:$LINENO: result: ok" >&5
6408 echo "${ECHO_T}ok" >&6; }
6411 { echo "$as_me:$LINENO: checking for objdir" >&5
6412 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6413 if test "${lt_cv_objdir+set}" = set; then
6414 echo $ECHO_N "(cached) $ECHO_C" >&6
6416 rm -f .libs 2>/dev/null
6417 mkdir .libs 2>/dev/null
6418 if test -d .libs; then
6421 # MS-DOS does not allow filenames that begin with a dot.
6424 rmdir .libs 2>/dev/null
6426 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6427 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6428 objdir=$lt_cv_objdir
6436 # AIX sometimes has problems with the GCC collect2 program. For some
6437 # reason, if we set the COLLECT_NAMES environment variable, the problems
6438 # vanish in a puff of smoke.
6439 if test "X${COLLECT_NAMES+set}" != Xset; then
6441 export COLLECT_NAMES
6446 # Sed substitution that helps us do robust quoting. It backslashifies
6447 # metacharacters that are still active within double-quoted strings.
6448 Xsed='sed -e 1s/^X//'
6449 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6451 # Same as above, but do not quote variable references.
6452 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6454 # Sed substitution to delay expansion of an escaped shell variable in a
6455 # double_quote_subst'ed string.
6456 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6458 # Sed substitution to avoid accidental globbing in evaled expressions
6459 no_glob_subst='s/\*/\\\*/g'
6465 default_ofile=libtool
6466 can_build_shared=yes
6468 # All known linkers require a `.a' archive for static linking (except MSVC,
6469 # which needs '.lib').
6471 ltmain="$ac_aux_dir/ltmain.sh"
6472 ofile="$default_ofile"
6473 with_gnu_ld="$lt_cv_prog_gnu_ld"
6475 if test -n "$ac_tool_prefix"; then
6476 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6477 set dummy ${ac_tool_prefix}ar; ac_word=$2
6478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6480 if test "${ac_cv_prog_AR+set}" = set; then
6481 echo $ECHO_N "(cached) $ECHO_C" >&6
6483 if test -n "$AR"; then
6484 ac_cv_prog_AR="$AR" # Let the user override the test.
6486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6490 test -z "$as_dir" && as_dir=.
6491 for ac_exec_ext in '' $ac_executable_extensions; do
6492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6493 ac_cv_prog_AR="${ac_tool_prefix}ar"
6494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6504 if test -n "$AR"; then
6505 { echo "$as_me:$LINENO: result: $AR" >&5
6506 echo "${ECHO_T}$AR" >&6; }
6508 { echo "$as_me:$LINENO: result: no" >&5
6509 echo "${ECHO_T}no" >&6; }
6514 if test -z "$ac_cv_prog_AR"; then
6516 # Extract the first word of "ar", so it can be a program name with args.
6517 set dummy ar; ac_word=$2
6518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6520 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6521 echo $ECHO_N "(cached) $ECHO_C" >&6
6523 if test -n "$ac_ct_AR"; then
6524 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6530 test -z "$as_dir" && as_dir=.
6531 for ac_exec_ext in '' $ac_executable_extensions; do
6532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6533 ac_cv_prog_ac_ct_AR="ar"
6534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6543 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6544 if test -n "$ac_ct_AR"; then
6545 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6546 echo "${ECHO_T}$ac_ct_AR" >&6; }
6548 { echo "$as_me:$LINENO: result: no" >&5
6549 echo "${ECHO_T}no" >&6; }
6552 if test "x$ac_ct_AR" = x; then
6555 case $cross_compiling:$ac_tool_warned in
6557 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6558 whose name does not start with the host triplet. If you think this
6559 configuration is useful to you, please write to autoconf@gnu.org." >&5
6560 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6561 whose name does not start with the host triplet. If you think this
6562 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6563 ac_tool_warned=yes ;;
6571 if test -n "$ac_tool_prefix"; then
6572 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6573 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6576 if test "${ac_cv_prog_RANLIB+set}" = set; then
6577 echo $ECHO_N "(cached) $ECHO_C" >&6
6579 if test -n "$RANLIB"; then
6580 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6586 test -z "$as_dir" && as_dir=.
6587 for ac_exec_ext in '' $ac_executable_extensions; do
6588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6589 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6599 RANLIB=$ac_cv_prog_RANLIB
6600 if test -n "$RANLIB"; then
6601 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6602 echo "${ECHO_T}$RANLIB" >&6; }
6604 { echo "$as_me:$LINENO: result: no" >&5
6605 echo "${ECHO_T}no" >&6; }
6610 if test -z "$ac_cv_prog_RANLIB"; then
6611 ac_ct_RANLIB=$RANLIB
6612 # Extract the first word of "ranlib", so it can be a program name with args.
6613 set dummy ranlib; ac_word=$2
6614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6616 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6617 echo $ECHO_N "(cached) $ECHO_C" >&6
6619 if test -n "$ac_ct_RANLIB"; then
6620 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6626 test -z "$as_dir" && as_dir=.
6627 for ac_exec_ext in '' $ac_executable_extensions; do
6628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6629 ac_cv_prog_ac_ct_RANLIB="ranlib"
6630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6639 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6640 if test -n "$ac_ct_RANLIB"; then
6641 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6642 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6644 { echo "$as_me:$LINENO: result: no" >&5
6645 echo "${ECHO_T}no" >&6; }
6648 if test "x$ac_ct_RANLIB" = x; then
6651 case $cross_compiling:$ac_tool_warned in
6653 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6654 whose name does not start with the host triplet. If you think this
6655 configuration is useful to you, please write to autoconf@gnu.org." >&5
6656 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6657 whose name does not start with the host triplet. If you think this
6658 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6659 ac_tool_warned=yes ;;
6661 RANLIB=$ac_ct_RANLIB
6664 RANLIB="$ac_cv_prog_RANLIB"
6667 if test -n "$ac_tool_prefix"; then
6668 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6669 set dummy ${ac_tool_prefix}strip; ac_word=$2
6670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6672 if test "${ac_cv_prog_STRIP+set}" = set; then
6673 echo $ECHO_N "(cached) $ECHO_C" >&6
6675 if test -n "$STRIP"; then
6676 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6682 test -z "$as_dir" && as_dir=.
6683 for ac_exec_ext in '' $ac_executable_extensions; do
6684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6685 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6695 STRIP=$ac_cv_prog_STRIP
6696 if test -n "$STRIP"; then
6697 { echo "$as_me:$LINENO: result: $STRIP" >&5
6698 echo "${ECHO_T}$STRIP" >&6; }
6700 { echo "$as_me:$LINENO: result: no" >&5
6701 echo "${ECHO_T}no" >&6; }
6706 if test -z "$ac_cv_prog_STRIP"; then
6708 # Extract the first word of "strip", so it can be a program name with args.
6709 set dummy strip; ac_word=$2
6710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6712 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6713 echo $ECHO_N "(cached) $ECHO_C" >&6
6715 if test -n "$ac_ct_STRIP"; then
6716 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6722 test -z "$as_dir" && as_dir=.
6723 for ac_exec_ext in '' $ac_executable_extensions; do
6724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6725 ac_cv_prog_ac_ct_STRIP="strip"
6726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6735 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6736 if test -n "$ac_ct_STRIP"; then
6737 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6738 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6740 { echo "$as_me:$LINENO: result: no" >&5
6741 echo "${ECHO_T}no" >&6; }
6744 if test "x$ac_ct_STRIP" = x; then
6747 case $cross_compiling:$ac_tool_warned in
6749 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6750 whose name does not start with the host triplet. If you think this
6751 configuration is useful to you, please write to autoconf@gnu.org." >&5
6752 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6753 whose name does not start with the host triplet. If you think this
6754 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6755 ac_tool_warned=yes ;;
6760 STRIP="$ac_cv_prog_STRIP"
6765 old_CFLAGS="$CFLAGS"
6767 # Set sane defaults for various variables
6768 test -z "$AR" && AR=ar
6769 test -z "$AR_FLAGS" && AR_FLAGS=cru
6770 test -z "$AS" && AS=as
6771 test -z "$CC" && CC=cc
6772 test -z "$LTCC" && LTCC=$CC
6773 test -z "$DLLTOOL" && DLLTOOL=dlltool
6774 test -z "$LD" && LD=ld
6775 test -z "$LN_S" && LN_S="ln -s"
6776 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6777 test -z "$NM" && NM=nm
6778 test -z "$SED" && SED=sed
6779 test -z "$OBJDUMP" && OBJDUMP=objdump
6780 test -z "$RANLIB" && RANLIB=:
6781 test -z "$STRIP" && STRIP=:
6782 test -z "$ac_objext" && ac_objext=o
6784 # Determine commands to create old-style static archives.
6785 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6786 old_postinstall_cmds='chmod 644 $oldlib'
6787 old_postuninstall_cmds=
6789 if test -n "$RANLIB"; then
6792 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6795 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6798 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6801 for cc_temp in $compiler""; do
6803 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6804 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6809 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6812 # Only perform the check for file, if the check method requires it
6813 case $deplibs_check_method in
6815 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6816 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6817 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6818 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6819 echo $ECHO_N "(cached) $ECHO_C" >&6
6823 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6826 lt_save_MAGIC_CMD="$MAGIC_CMD"
6827 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6828 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6829 for ac_dir in $ac_dummy; do
6831 test -z "$ac_dir" && ac_dir=.
6832 if test -f $ac_dir/${ac_tool_prefix}file; then
6833 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6834 if test -n "$file_magic_test_file"; then
6835 case $deplibs_check_method in
6837 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6838 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6839 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6840 $EGREP "$file_magic_regex" > /dev/null; then
6845 *** Warning: the command libtool uses to detect shared libraries,
6846 *** $file_magic_cmd, produces output that libtool cannot recognize.
6847 *** The result is that libtool may fail to recognize shared libraries
6848 *** as such. This will affect the creation of libtool libraries that
6849 *** depend on shared libraries, but programs linked with such libtool
6850 *** libraries will work regardless of this problem. Nevertheless, you
6851 *** may want to report the problem to your system manager and/or to
6852 *** bug-libtool@gnu.org
6862 MAGIC_CMD="$lt_save_MAGIC_CMD"
6867 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6868 if test -n "$MAGIC_CMD"; then
6869 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6870 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6872 { echo "$as_me:$LINENO: result: no" >&5
6873 echo "${ECHO_T}no" >&6; }
6876 if test -z "$lt_cv_path_MAGIC_CMD"; then
6877 if test -n "$ac_tool_prefix"; then
6878 { echo "$as_me:$LINENO: checking for file" >&5
6879 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6880 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6881 echo $ECHO_N "(cached) $ECHO_C" >&6
6885 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6888 lt_save_MAGIC_CMD="$MAGIC_CMD"
6889 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6890 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6891 for ac_dir in $ac_dummy; do
6893 test -z "$ac_dir" && ac_dir=.
6894 if test -f $ac_dir/file; then
6895 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6896 if test -n "$file_magic_test_file"; then
6897 case $deplibs_check_method in
6899 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6900 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6901 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6902 $EGREP "$file_magic_regex" > /dev/null; then
6907 *** Warning: the command libtool uses to detect shared libraries,
6908 *** $file_magic_cmd, produces output that libtool cannot recognize.
6909 *** The result is that libtool may fail to recognize shared libraries
6910 *** as such. This will affect the creation of libtool libraries that
6911 *** depend on shared libraries, but programs linked with such libtool
6912 *** libraries will work regardless of this problem. Nevertheless, you
6913 *** may want to report the problem to your system manager and/or to
6914 *** bug-libtool@gnu.org
6924 MAGIC_CMD="$lt_save_MAGIC_CMD"
6929 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6930 if test -n "$MAGIC_CMD"; then
6931 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6932 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6934 { echo "$as_me:$LINENO: result: no" >&5
6935 echo "${ECHO_T}no" >&6; }
6950 # Check whether --enable-libtool-lock was given.
6951 if test "${enable_libtool_lock+set}" = set; then
6952 enableval=$enable_libtool_lock;
6955 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6958 # Check whether --with-pic was given.
6959 if test "${with_pic+set}" = set; then
6960 withval=$with_pic; pic_mode="$withval"
6965 test -z "$pic_mode" && pic_mode=default
6967 # Use C for the default configuration in the libtool script
6971 ac_cpp='$CPP $CPPFLAGS'
6972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6977 # Source file extension for C test sources.
6980 # Object file extension for compiled C test sources.
6984 # Code to be used in simple compile tests
6985 lt_simple_compile_test_code="int some_variable = 0;\n"
6987 # Code to be used in simple link tests
6988 lt_simple_link_test_code='int main(){return(0);}\n'
6991 # If no C compiler was specified, use CC.
6994 # Allow CC to be a program name with arguments.
6998 # save warnings/boilerplate of simple test code
6999 ac_outfile=conftest.$ac_objext
7000 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7001 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7002 _lt_compiler_boilerplate=`cat conftest.err`
7005 ac_outfile=conftest.$ac_objext
7006 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7007 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7008 _lt_linker_boilerplate=`cat conftest.err`
7013 # Check for any special shared library compilation flags.
7016 if test "$GCC" = no; then
7019 lt_prog_cc_shlib='-belf'
7023 if test -n "$lt_prog_cc_shlib"; then
7024 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7025 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7026 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7028 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7029 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7030 lt_cv_prog_cc_can_build_shared=no
7036 # Check to make sure the static flag actually works.
7038 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7039 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
7040 if test "${lt_prog_compiler_static_works+set}" = set; then
7041 echo $ECHO_N "(cached) $ECHO_C" >&6
7043 lt_prog_compiler_static_works=no
7044 save_LDFLAGS="$LDFLAGS"
7045 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7046 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7047 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7048 # The linker can only warn and ignore the option if not recognized
7049 # So say no if there are warnings
7050 if test -s conftest.err; then
7051 # Append any errors to the config.log.
7052 cat conftest.err 1>&5
7053 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7054 $SED '/^$/d' conftest.err >conftest.er2
7055 if diff conftest.exp conftest.er2 >/dev/null; then
7056 lt_prog_compiler_static_works=yes
7059 lt_prog_compiler_static_works=yes
7063 LDFLAGS="$save_LDFLAGS"
7066 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7067 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7069 if test x"$lt_prog_compiler_static_works" = xyes; then
7072 lt_prog_compiler_static=
7078 ## There is no encapsulation within the following macros, do not change
7079 ## the running order or otherwise move them around unless you know exactly
7080 ## what you are doing...
7082 lt_prog_compiler_no_builtin_flag=
7084 if test "$GCC" = yes; then
7085 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7088 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7089 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7090 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7091 echo $ECHO_N "(cached) $ECHO_C" >&6
7093 lt_cv_prog_compiler_rtti_exceptions=no
7094 ac_outfile=conftest.$ac_objext
7095 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7096 lt_compiler_flag="-fno-rtti -fno-exceptions"
7097 # Insert the option either (1) after the last *FLAGS variable, or
7098 # (2) before a word containing "conftest.", or (3) at the end.
7099 # Note that $ac_compile itself does not contain backslashes and begins
7100 # with a dollar sign (not a hyphen), so the echo should work correctly.
7101 # The option is referenced via a variable to avoid confusing sed.
7102 lt_compile=`echo "$ac_compile" | $SED \
7103 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7104 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7105 -e 's:$: $lt_compiler_flag:'`
7106 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7107 (eval "$lt_compile" 2>conftest.err)
7109 cat conftest.err >&5
7110 echo "$as_me:__oline__: \$? = $ac_status" >&5
7111 if (exit $ac_status) && test -s "$ac_outfile"; then
7112 # The compiler can only warn and ignore the option if not recognized
7113 # So say no if there are warnings other than the usual output.
7114 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7115 $SED '/^$/d' conftest.err >conftest.er2
7116 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7117 lt_cv_prog_compiler_rtti_exceptions=yes
7123 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7124 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7126 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7127 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7134 lt_prog_compiler_wl=
7135 lt_prog_compiler_pic=
7136 lt_prog_compiler_static=
7138 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7139 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7141 if test "$GCC" = yes; then
7142 lt_prog_compiler_wl='-Wl,'
7143 lt_prog_compiler_static='-static'
7147 # All AIX code is PIC.
7148 if test "$host_cpu" = ia64; then
7149 # AIX 5 now supports IA64 processor
7150 lt_prog_compiler_static='-Bstatic'
7155 # FIXME: we need at least 68020 code to build shared libraries, but
7156 # adding the `-m68020' flag to GCC prevents building anything better,
7158 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7161 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7162 # PIC is the default for these OSes.
7165 mingw* | pw32* | os2*)
7166 # This hack is so that the source file can tell whether it is being
7167 # built for inclusion in a dll (and should export symbols for example).
7168 lt_prog_compiler_pic='-DDLL_EXPORT'
7171 darwin* | rhapsody*)
7172 # PIC is the default on this platform
7173 # Common symbols not allowed in MH_DYLIB files
7174 lt_prog_compiler_pic='-fno-common'
7178 # Just because we use GCC doesn't mean we suddenly get shared libraries
7179 # on systems that don't support them.
7180 lt_prog_compiler_can_build_shared=no
7185 if test -d /usr/nec; then
7186 lt_prog_compiler_pic=-Kconform_pic
7191 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7198 lt_prog_compiler_pic='-fPIC'
7204 lt_prog_compiler_pic='-fPIC'
7208 # PORTME Check for flag to pass linker flags through the system compiler.
7211 lt_prog_compiler_wl='-Wl,'
7212 if test "$host_cpu" = ia64; then
7213 # AIX 5 now supports IA64 processor
7214 lt_prog_compiler_static='-Bstatic'
7216 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7220 # PIC is the default on this platform
7221 # Common symbols not allowed in MH_DYLIB files
7222 case $cc_basename in
7224 lt_prog_compiler_pic='-qnocommon'
7225 lt_prog_compiler_wl='-Wl,'
7230 mingw* | pw32* | os2*)
7231 # This hack is so that the source file can tell whether it is being
7232 # built for inclusion in a dll (and should export symbols for example).
7233 lt_prog_compiler_pic='-DDLL_EXPORT'
7236 hpux9* | hpux10* | hpux11*)
7237 lt_prog_compiler_wl='-Wl,'
7238 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7245 lt_prog_compiler_pic='+Z'
7248 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7249 lt_prog_compiler_static='${wl}-a ${wl}archive'
7252 irix5* | irix6* | nonstopux*)
7253 lt_prog_compiler_wl='-Wl,'
7254 # PIC (with -KPIC) is the default.
7255 lt_prog_compiler_static='-non_shared'
7259 lt_prog_compiler_pic='-KPIC'
7260 lt_prog_compiler_static='-Bstatic'
7264 case $cc_basename in
7266 lt_prog_compiler_wl='-Wl,'
7267 lt_prog_compiler_pic='-KPIC'
7268 lt_prog_compiler_static='-static'
7270 pgcc* | pgf77* | pgf90* | pgf95*)
7271 # Portland Group compilers (*not* the Pentium gcc compiler,
7272 # which looks to be a dead project)
7273 lt_prog_compiler_wl='-Wl,'
7274 lt_prog_compiler_pic='-fpic'
7275 lt_prog_compiler_static='-Bstatic'
7278 lt_prog_compiler_wl='-Wl,'
7279 # All Alpha code is PIC.
7280 lt_prog_compiler_static='-non_shared'
7285 osf3* | osf4* | osf5*)
7286 lt_prog_compiler_wl='-Wl,'
7287 # All OSF/1 code is PIC.
7288 lt_prog_compiler_static='-non_shared'
7292 lt_prog_compiler_pic='-Kpic'
7293 lt_prog_compiler_static='-dn'
7297 lt_prog_compiler_pic='-KPIC'
7298 lt_prog_compiler_static='-Bstatic'
7299 case $cc_basename in
7301 lt_prog_compiler_wl='-Qoption ld ';;
7303 lt_prog_compiler_wl='-Wl,';;
7308 lt_prog_compiler_wl='-Qoption ld '
7309 lt_prog_compiler_pic='-PIC'
7310 lt_prog_compiler_static='-Bstatic'
7313 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7314 lt_prog_compiler_wl='-Wl,'
7315 lt_prog_compiler_pic='-KPIC'
7316 lt_prog_compiler_static='-Bstatic'
7320 if test -d /usr/nec ;then
7321 lt_prog_compiler_pic='-Kconform_pic'
7322 lt_prog_compiler_static='-Bstatic'
7327 lt_prog_compiler_wl='-Wl,'
7328 lt_prog_compiler_can_build_shared=no
7332 lt_prog_compiler_pic='-pic'
7333 lt_prog_compiler_static='-Bstatic'
7337 lt_prog_compiler_can_build_shared=no
7342 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7343 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7346 # Check to make sure the PIC flag actually works.
7348 if test -n "$lt_prog_compiler_pic"; then
7350 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7351 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7352 if test "${lt_prog_compiler_pic_works+set}" = set; then
7353 echo $ECHO_N "(cached) $ECHO_C" >&6
7355 lt_prog_compiler_pic_works=no
7356 ac_outfile=conftest.$ac_objext
7357 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7358 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7359 # Insert the option either (1) after the last *FLAGS variable, or
7360 # (2) before a word containing "conftest.", or (3) at the end.
7361 # Note that $ac_compile itself does not contain backslashes and begins
7362 # with a dollar sign (not a hyphen), so the echo should work correctly.
7363 # The option is referenced via a variable to avoid confusing sed.
7364 lt_compile=`echo "$ac_compile" | $SED \
7365 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7366 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7367 -e 's:$: $lt_compiler_flag:'`
7368 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7369 (eval "$lt_compile" 2>conftest.err)
7371 cat conftest.err >&5
7372 echo "$as_me:__oline__: \$? = $ac_status" >&5
7373 if (exit $ac_status) && test -s "$ac_outfile"; then
7374 # The compiler can only warn and ignore the option if not recognized
7375 # So say no if there are warnings other than the usual output.
7376 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7377 $SED '/^$/d' conftest.err >conftest.er2
7378 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7379 lt_prog_compiler_pic_works=yes
7385 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7386 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7388 if test x"$lt_prog_compiler_pic_works" = xyes; then
7389 case $lt_prog_compiler_pic in
7391 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7394 lt_prog_compiler_pic=
7395 lt_prog_compiler_can_build_shared=no
7400 # For platforms which do not support PIC, -DPIC is meaningless:
7402 lt_prog_compiler_pic=
7405 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7409 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7410 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7411 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7412 echo $ECHO_N "(cached) $ECHO_C" >&6
7414 lt_cv_prog_compiler_c_o=no
7415 $rm -r conftest 2>/dev/null
7419 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7421 lt_compiler_flag="-o out/conftest2.$ac_objext"
7422 # Insert the option either (1) after the last *FLAGS variable, or
7423 # (2) before a word containing "conftest.", or (3) at the end.
7424 # Note that $ac_compile itself does not contain backslashes and begins
7425 # with a dollar sign (not a hyphen), so the echo should work correctly.
7426 lt_compile=`echo "$ac_compile" | $SED \
7427 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7428 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7429 -e 's:$: $lt_compiler_flag:'`
7430 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7431 (eval "$lt_compile" 2>out/conftest.err)
7433 cat out/conftest.err >&5
7434 echo "$as_me:__oline__: \$? = $ac_status" >&5
7435 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7437 # The compiler can only warn and ignore the option if not recognized
7438 # So say no if there are warnings
7439 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
7440 $SED '/^$/d' out/conftest.err >out/conftest.er2
7441 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7442 lt_cv_prog_compiler_c_o=yes
7447 # SGI C++ compiler will create directory out/ii_files/ for
7448 # template instantiation
7449 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7450 $rm out/* && rmdir out
7456 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7457 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7460 hard_links="nottested"
7461 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7462 # do not overwrite the value of need_locks provided by the user
7463 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7464 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7467 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7469 ln conftest.a conftest.b 2>&5 || hard_links=no
7470 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7471 { echo "$as_me:$LINENO: result: $hard_links" >&5
7472 echo "${ECHO_T}$hard_links" >&6; }
7473 if test "$hard_links" = no; then
7474 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7475 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7482 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7483 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7486 allow_undefined_flag=
7487 enable_shared_with_static_runtimes=no
7489 archive_expsym_cmds=
7490 old_archive_From_new_cmds=
7491 old_archive_from_expsyms_cmds=
7492 export_dynamic_flag_spec=
7493 whole_archive_flag_spec=
7494 thread_safe_flag_spec=
7495 hardcode_libdir_flag_spec=
7496 hardcode_libdir_flag_spec_ld=
7497 hardcode_libdir_separator=
7500 hardcode_shlibpath_var=unsupported
7501 link_all_deplibs=unknown
7502 hardcode_automatic=no
7505 always_export_symbols=no
7506 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7507 # include_expsyms should be a list of space-separated symbols to be *always*
7508 # included in the symbol list
7510 # exclude_expsyms can be an extended regexp of symbols to exclude
7511 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7512 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7513 # as well as any symbol that contains `d'.
7514 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7515 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7516 # platforms (ab)use it in PIC code, but their linkers get confused if
7517 # the symbol is explicitly referenced. Since portable code cannot
7518 # rely on this symbol name, it's probably fine to never include it in
7519 # preloaded symbol tables.
7520 extract_expsyms_cmds=
7521 # Just being paranoid about ensuring that cc_basename is set.
7522 for cc_temp in $compiler""; do
7524 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7525 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7530 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7533 cygwin* | mingw* | pw32*)
7534 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7535 # When not using gcc, we currently assume that we are using
7536 # Microsoft Visual C++.
7537 if test "$GCC" != yes; then
7547 if test "$with_gnu_ld" = yes; then
7548 # If archive_cmds runs LD, not CC, wlarc should be empty
7551 # Set some defaults for GNU ld with shared library support. These
7552 # are reset later if shared libraries are not supported. Putting them
7553 # here allows them to be overridden if necessary.
7554 runpath_var=LD_RUN_PATH
7555 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7556 export_dynamic_flag_spec='${wl}--export-dynamic'
7557 # ancient GNU ld didn't support --whole-archive et. al.
7558 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7559 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7561 whole_archive_flag_spec=
7563 supports_anon_versioning=no
7564 case `$LD -v 2>/dev/null` in
7565 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7566 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7567 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7568 *\ 2.11.*) ;; # other 2.11 versions
7569 *) supports_anon_versioning=yes ;;
7572 # See if GNU ld supports shared libraries.
7574 aix3* | aix4* | aix5*)
7575 # On AIX/PPC, the GNU linker is very broken
7576 if test "$host_cpu" != ia64; then
7580 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7581 *** to be unable to reliably create shared libraries on AIX.
7582 *** Therefore, libtool is disabling shared libraries support. If you
7583 *** really care for shared libraries, you may want to modify your PATH
7584 *** so that a non-GNU linker is found, and then restart.
7591 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)'
7592 hardcode_libdir_flag_spec='-L$libdir'
7593 hardcode_minus_L=yes
7595 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7596 # that the semantics of dynamic libraries on AmigaOS, at least up
7597 # to version 4, is to share data among multiple programs linked
7598 # with the same dynamic library. Since this doesn't match the
7599 # behavior of shared libraries on other platforms, we can't use
7605 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7606 allow_undefined_flag=unsupported
7607 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7608 # support --undefined. This deserves some investigation. FIXME
7609 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7615 cygwin* | mingw* | pw32*)
7616 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7617 # as there is no search path for DLLs.
7618 hardcode_libdir_flag_spec='-L$libdir'
7619 allow_undefined_flag=unsupported
7620 always_export_symbols=no
7621 enable_shared_with_static_runtimes=yes
7622 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7624 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7625 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7626 # If the export-symbols file already is a .def file (1st line
7627 # is EXPORTS), use it as is; otherwise, prepend...
7628 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7629 cp $export_symbols $output_objdir/$soname.def;
7631 echo EXPORTS > $output_objdir/$soname.def;
7632 cat $export_symbols >> $output_objdir/$soname.def;
7634 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7641 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7643 case $cc_basename,$host_cpu in
7644 pgcc*) # Portland Group C compiler
7645 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'
7646 tmp_addflag=' $pic_flag'
7648 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7649 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'
7650 tmp_addflag=' $pic_flag -Mnomain' ;;
7651 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7652 tmp_addflag=' -i_dynamic' ;;
7653 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7654 tmp_addflag=' -i_dynamic -nofor_main' ;;
7655 ifc* | ifort*) # Intel Fortran compiler
7656 tmp_addflag=' -nofor_main' ;;
7658 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7660 if test $supports_anon_versioning = yes; then
7661 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7662 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7663 $echo "local: *; };" >> $output_objdir/$libname.ver~
7664 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7672 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7673 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7674 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7677 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7678 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7683 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7687 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7688 *** create shared libraries on Solaris systems. Therefore, libtool
7689 *** is disabling shared libraries support. We urge you to upgrade GNU
7690 *** binutils to release 2.9.1 or newer. Another option is to modify
7691 *** your PATH or compiler configuration so that the native linker is
7692 *** used, and then restart.
7695 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7696 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7697 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7704 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7707 hardcode_shlibpath_var=no
7711 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7712 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7713 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7720 if test "$ld_shlibs" = no; then
7722 hardcode_libdir_flag_spec=
7723 export_dynamic_flag_spec=
7724 whole_archive_flag_spec=
7727 # PORTME fill in a description of your system's linker (not GNU ld)
7730 allow_undefined_flag=unsupported
7731 always_export_symbols=yes
7732 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
7733 # Note: this linker hardcodes the directories in LIBPATH if there
7734 # are no directories specified by -L.
7735 hardcode_minus_L=yes
7736 if test "$GCC" = yes && test -z "$link_static_flag"; then
7737 # Neither direct hardcoding nor static linking is supported with a
7739 hardcode_direct=unsupported
7744 if test "$host_cpu" = ia64; then
7745 # On IA64, the linker does run time linking by default, so we don't
7746 # have to do anything special.
7747 aix_use_runtimelinking=no
7748 exp_sym_flag='-Bexport'
7751 # If we're using GNU nm, then we don't want the "-C" option.
7752 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7753 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7754 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7756 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7758 aix_use_runtimelinking=no
7760 # Test if we are trying to use run time linking or normal
7761 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7762 # need to do runtime linking.
7763 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7764 for ld_flag in $LDFLAGS; do
7765 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7766 aix_use_runtimelinking=yes
7772 exp_sym_flag='-bexport'
7773 no_entry_flag='-bnoentry'
7776 # When large executables or shared objects are built, AIX ld can
7777 # have problems creating the table of contents. If linking a library
7778 # or program results in "error TOC overflow" add -mminimal-toc to
7779 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7780 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7784 hardcode_libdir_separator=':'
7785 link_all_deplibs=yes
7787 if test "$GCC" = yes; then
7788 case $host_os in aix4.[012]|aix4.[012].*)
7789 # We only want to do this on AIX 4.2 and lower, the check
7790 # below for broken collect2 doesn't work under 4.3+
7791 collect2name=`${CC} -print-prog-name=collect2`
7792 if test -f "$collect2name" && \
7793 strings "$collect2name" | grep resolve_lib_name >/dev/null
7795 # We have reworked collect2
7798 # We have old collect2
7799 hardcode_direct=unsupported
7800 # It fails to find uninstalled libraries when the uninstalled
7801 # path is not listed in the libpath. Setting hardcode_minus_L
7802 # to unsupported forces relinking
7803 hardcode_minus_L=yes
7804 hardcode_libdir_flag_spec='-L$libdir'
7805 hardcode_libdir_separator=
7808 shared_flag='-shared'
7809 if test "$aix_use_runtimelinking" = yes; then
7810 shared_flag="$shared_flag "'${wl}-G'
7814 if test "$host_cpu" = ia64; then
7815 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7816 # chokes on -Wl,-G. The following line is correct:
7819 if test "$aix_use_runtimelinking" = yes; then
7820 shared_flag='${wl}-G'
7822 shared_flag='${wl}-bM:SRE'
7827 # It seems that -bexpall does not export symbols beginning with
7828 # underscore (_), so it is better to generate a list of symbols to export.
7829 always_export_symbols=yes
7830 if test "$aix_use_runtimelinking" = yes; then
7831 # Warning - without using the other runtime loading flags (-brtl),
7832 # -berok will link without error, but may produce a broken library.
7833 allow_undefined_flag='-berok'
7834 # Determine the default libpath from the value encoded in an empty executable.
7835 cat >conftest.$ac_ext <<_ACEOF
7838 cat confdefs.h >>conftest.$ac_ext
7839 cat >>conftest.$ac_ext <<_ACEOF
7840 /* end confdefs.h. */
7850 rm -f conftest.$ac_objext conftest$ac_exeext
7851 if { (ac_try="$ac_link"
7853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7854 *) ac_try_echo=$ac_try;;
7856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7857 (eval "$ac_link") 2>conftest.er1
7859 grep -v '^ *+' conftest.er1 >conftest.err
7861 cat conftest.err >&5
7862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863 (exit $ac_status); } && {
7864 test -z "$ac_c_werror_flag" ||
7865 test ! -s conftest.err
7866 } && test -s conftest$ac_exeext &&
7867 $as_test_x conftest$ac_exeext; then
7869 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7871 # Check for a 64-bit object if we didn't find anything.
7872 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7875 echo "$as_me: failed program was:" >&5
7876 sed 's/^/| /' conftest.$ac_ext >&5
7881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7882 conftest$ac_exeext conftest.$ac_ext
7883 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7885 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7886 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7888 if test "$host_cpu" = ia64; then
7889 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7890 allow_undefined_flag="-z nodefs"
7891 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7893 # Determine the default libpath from the value encoded in an empty executable.
7894 cat >conftest.$ac_ext <<_ACEOF
7897 cat confdefs.h >>conftest.$ac_ext
7898 cat >>conftest.$ac_ext <<_ACEOF
7899 /* end confdefs.h. */
7909 rm -f conftest.$ac_objext conftest$ac_exeext
7910 if { (ac_try="$ac_link"
7912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7913 *) ac_try_echo=$ac_try;;
7915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7916 (eval "$ac_link") 2>conftest.er1
7918 grep -v '^ *+' conftest.er1 >conftest.err
7920 cat conftest.err >&5
7921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); } && {
7923 test -z "$ac_c_werror_flag" ||
7924 test ! -s conftest.err
7925 } && test -s conftest$ac_exeext &&
7926 $as_test_x conftest$ac_exeext; then
7928 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7930 # Check for a 64-bit object if we didn't find anything.
7931 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7934 echo "$as_me: failed program was:" >&5
7935 sed 's/^/| /' conftest.$ac_ext >&5
7940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7941 conftest$ac_exeext conftest.$ac_ext
7942 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7944 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7945 # Warning - without using the other run time loading flags,
7946 # -berok will link without error, but may produce a broken library.
7947 no_undefined_flag=' ${wl}-bernotok'
7948 allow_undefined_flag=' ${wl}-berok'
7949 # -bexpall does not export symbols beginning with underscore (_)
7950 always_export_symbols=yes
7951 # Exported symbols can be pulled into shared objects from archives
7952 whole_archive_flag_spec=' '
7953 archive_cmds_need_lc=yes
7954 # This is similar to how AIX traditionally builds its shared libraries.
7955 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7961 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7962 hardcode_libdir_flag_spec='-L$libdir'
7963 hardcode_minus_L=yes
7964 # see comment about different semantics on the GNU ld section
7969 export_dynamic_flag_spec=-rdynamic
7972 cygwin* | mingw* | pw32*)
7973 # When not using gcc, we currently assume that we are using
7974 # Microsoft Visual C++.
7975 # hardcode_libdir_flag_spec is actually meaningless, as there is
7976 # no search path for DLLs.
7977 hardcode_libdir_flag_spec=' '
7978 allow_undefined_flag=unsupported
7979 # Tell ltmain to make .lib files, not .a files.
7981 # Tell ltmain to make .dll files, not .so files.
7983 # FIXME: Setting linknames here is a bad hack.
7984 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7985 # The linker will automatically build a .lib file if we build a DLL.
7986 old_archive_From_new_cmds='true'
7987 # FIXME: Should let the user specify the lib program.
7988 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7989 fix_srcfile_path='`cygpath -w "$srcfile"`'
7990 enable_shared_with_static_runtimes=yes
7993 darwin* | rhapsody*)
7995 rhapsody* | darwin1.[012])
7996 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7999 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8000 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8002 case ${MACOSX_DEPLOYMENT_TARGET} in
8004 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8007 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8013 archive_cmds_need_lc=no
8015 hardcode_automatic=yes
8016 hardcode_shlibpath_var=unsupported
8017 whole_archive_flag_spec=''
8018 link_all_deplibs=yes
8019 if test "$GCC" = yes ; then
8020 output_verbose_link_cmd='echo'
8021 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8022 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8023 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8024 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8025 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8027 case $cc_basename in
8029 output_verbose_link_cmd='echo'
8030 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8031 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8032 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8033 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8034 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8044 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8045 hardcode_libdir_flag_spec='-L$libdir'
8046 hardcode_shlibpath_var=no
8053 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8054 # support. Future versions do this automatically, but an explicit c++rt0.o
8055 # does not break anything, and helps significantly (at the cost of a little
8058 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8059 hardcode_libdir_flag_spec='-R$libdir'
8061 hardcode_shlibpath_var=no
8064 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8066 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8068 hardcode_minus_L=yes
8069 hardcode_shlibpath_var=no
8072 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8073 freebsd* | kfreebsd*-gnu | dragonfly*)
8074 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8075 hardcode_libdir_flag_spec='-R$libdir'
8077 hardcode_shlibpath_var=no
8081 if test "$GCC" = yes; then
8082 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8084 archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8086 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8087 hardcode_libdir_separator=:
8090 # hardcode_minus_L: Not really in the search PATH,
8091 # but as the default location of the library.
8092 hardcode_minus_L=yes
8093 export_dynamic_flag_spec='${wl}-E'
8097 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8100 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8103 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8109 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8112 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8116 if test "$with_gnu_ld" = no; then
8119 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8120 hardcode_libdir_flag_spec_ld='+b $libdir'
8121 hardcode_libdir_separator=:
8123 hardcode_shlibpath_var=no
8126 hardcode_libdir_flag_spec='-L$libdir'
8128 hardcode_shlibpath_var=no
8130 # hardcode_minus_L: Not really in the search PATH,
8131 # but as the default location of the library.
8132 hardcode_minus_L=yes
8135 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8136 hardcode_libdir_separator=:
8138 export_dynamic_flag_spec='${wl}-E'
8140 # hardcode_minus_L: Not really in the search PATH,
8141 # but as the default location of the library.
8142 hardcode_minus_L=yes
8148 irix5* | irix6* | nonstopux*)
8149 if test "$GCC" = yes; then
8150 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'
8152 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'
8153 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8155 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8156 hardcode_libdir_separator=:
8157 link_all_deplibs=yes
8160 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
8161 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8162 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8164 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8166 hardcode_libdir_flag_spec='-R$libdir'
8168 hardcode_shlibpath_var=no
8172 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8174 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8175 hardcode_libdir_separator=:
8176 hardcode_shlibpath_var=no
8181 hardcode_shlibpath_var=no
8182 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8183 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8184 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8185 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8186 export_dynamic_flag_spec='${wl}-E'
8189 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8190 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8191 hardcode_libdir_flag_spec='-R$libdir'
8194 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8195 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8202 hardcode_libdir_flag_spec='-L$libdir'
8203 hardcode_minus_L=yes
8204 allow_undefined_flag=unsupported
8205 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'
8206 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8210 if test "$GCC" = yes; then
8211 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8212 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'
8214 allow_undefined_flag=' -expect_unresolved \*'
8215 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'
8217 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8218 hardcode_libdir_separator=:
8221 osf4* | osf5*) # as osf3* with the addition of -msym flag
8222 if test "$GCC" = yes; then
8223 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8224 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'
8225 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8227 allow_undefined_flag=' -expect_unresolved \*'
8228 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'
8229 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8230 $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'
8232 # Both c and cxx compiler support -rpath directly
8233 hardcode_libdir_flag_spec='-rpath $libdir'
8235 hardcode_libdir_separator=:
8239 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8240 hardcode_shlibpath_var=no
8241 export_dynamic_flag_spec='${wl}-Bexport'
8242 runpath_var=LD_RUN_PATH
8243 hardcode_runpath_var=yes
8247 no_undefined_flag=' -z text'
8248 if test "$GCC" = yes; then
8250 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8251 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8252 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8255 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8256 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8257 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8259 hardcode_libdir_flag_spec='-R$libdir'
8260 hardcode_shlibpath_var=no
8262 solaris2.[0-5] | solaris2.[0-5].*) ;;
8264 # The compiler driver will combine linker options so we
8265 # cannot just pass the convience library names through
8266 # without $wl, iff we do not link with $LD.
8267 # Luckily, gcc supports the same syntax we need for Sun Studio.
8268 # Supported since Solaris 2.6 (maybe 2.5.1?)
8271 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8273 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8276 link_all_deplibs=yes
8280 if test "x$host_vendor" = xsequent; then
8281 # Use $CC to link under sequent, because it throws in some extra .o
8282 # files that make .init and .fini sections work.
8283 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8285 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8287 hardcode_libdir_flag_spec='-L$libdir'
8289 hardcode_minus_L=yes
8290 hardcode_shlibpath_var=no
8294 case $host_vendor in
8296 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8297 hardcode_direct=yes # is this really true???
8300 ## LD is ld it makes a PLAMLIB
8301 ## CC just makes a GrossModule.
8302 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8303 reload_cmds='$CC -r -o $output$reload_objs'
8307 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8308 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8311 runpath_var='LD_RUN_PATH'
8312 hardcode_shlibpath_var=no
8316 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8317 hardcode_shlibpath_var=no
8318 export_dynamic_flag_spec='-Bexport'
8322 if test -d /usr/nec; then
8323 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8324 hardcode_shlibpath_var=no
8325 runpath_var=LD_RUN_PATH
8326 hardcode_runpath_var=yes
8332 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8335 hardcode_shlibpath_var=no
8336 hardcode_runpath_var=yes
8337 runpath_var=LD_RUN_PATH
8340 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8341 no_undefined_flag='${wl}-z ${wl}text'
8342 if test "$GCC" = yes; then
8343 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8345 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8347 runpath_var='LD_RUN_PATH'
8348 hardcode_shlibpath_var=no
8352 no_undefined_flag=' -z text'
8353 # $CC -shared without GNU ld will not create a library from C++
8354 # object files and a static libstdc++, better avoid it by now
8355 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8356 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8357 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8358 hardcode_libdir_flag_spec=
8359 hardcode_shlibpath_var=no
8360 runpath_var='LD_RUN_PATH'
8364 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8365 hardcode_libdir_flag_spec='-L$libdir'
8366 hardcode_shlibpath_var=no
8375 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8376 echo "${ECHO_T}$ld_shlibs" >&6; }
8377 test "$ld_shlibs" = no && can_build_shared=no
8379 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8380 if test "$GCC" = yes; then
8381 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8385 # Do we need to explicitly link libc?
8387 case "x$archive_cmds_need_lc" in
8389 # Assume -lc should be added
8390 archive_cmds_need_lc=yes
8392 if test "$enable_shared" = yes && test "$GCC" = yes; then
8393 case $archive_cmds in
8395 # FIXME: we may have to deal with multi-command sequences.
8398 # Test whether the compiler implicitly links with -lc since on some
8399 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8400 # to ld, don't add -lc before -lgcc.
8401 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8402 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8404 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8407 (eval $ac_compile) 2>&5
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); } 2>conftest.err; then
8413 libobjs=conftest.$ac_objext
8415 wl=$lt_prog_compiler_wl
8421 lt_save_allow_undefined_flag=$allow_undefined_flag
8422 allow_undefined_flag=
8423 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8424 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); }
8429 archive_cmds_need_lc=no
8431 archive_cmds_need_lc=yes
8433 allow_undefined_flag=$lt_save_allow_undefined_flag
8435 cat conftest.err 1>&5
8438 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8439 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8446 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8447 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8449 libname_spec='lib$name'
8457 shlibpath_overrides_runpath=unknown
8459 dynamic_linker="$host_os ld.so"
8460 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8461 if test "$GCC" = yes; then
8462 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8463 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8464 # if the path contains ";" then we assume it to be the separator
8465 # otherwise default to the standard path separator (i.e. ":") - it is
8466 # assumed that no part of a normal pathname contains ";" but that should
8467 # okay in the real world where ";" in dirpaths is itself problematic.
8468 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8470 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8473 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8475 need_lib_prefix=unknown
8476 hardcode_into_libs=no
8478 # when you set need_version to no, make sure it does not cause -set_version
8479 # flags to be left without arguments
8480 need_version=unknown
8485 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8486 shlibpath_var=LIBPATH
8488 # AIX 3 has no versioning support, so we append a major version to the name.
8489 soname_spec='${libname}${release}${shared_ext}$major'
8496 hardcode_into_libs=yes
8497 if test "$host_cpu" = ia64; then
8498 # AIX 5 supports IA64
8499 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8500 shlibpath_var=LD_LIBRARY_PATH
8502 # With GCC up to 2.95.x, collect2 would create an import file
8503 # for dependence libraries. The import file would start with
8504 # the line `#! .'. This would cause the generated library to
8505 # depend on `.', always an invalid library. This was fixed in
8506 # development snapshots of GCC prior to 3.0.
8508 aix4 | aix4.[01] | aix4.[01].*)
8509 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8511 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8518 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8519 # soname into executable. Probably we can add versioning support to
8520 # collect2, so additional links can be useful in future.
8521 if test "$aix_use_runtimelinking" = yes; then
8522 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8523 # instead of lib<name>.a to let people know that these are not
8524 # typical AIX shared libraries.
8525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8527 # We preserve .a as extension for shared libraries through AIX4.2
8528 # and later when we are not doing run time linking.
8529 library_names_spec='${libname}${release}.a $libname.a'
8530 soname_spec='${libname}${release}${shared_ext}$major'
8532 shlibpath_var=LIBPATH
8537 library_names_spec='$libname.ixlibrary $libname.a'
8538 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8539 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'
8543 library_names_spec='${libname}${shared_ext}'
8544 dynamic_linker="$host_os ld.so"
8545 shlibpath_var=LIBRARY_PATH
8551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8552 soname_spec='${libname}${release}${shared_ext}$major'
8553 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8554 shlibpath_var=LD_LIBRARY_PATH
8555 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8556 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8557 # the default ld.so.conf also contains /usr/contrib/lib and
8558 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8559 # libtool to hard-code these into programs
8562 cygwin* | mingw* | pw32*)
8563 version_type=windows
8568 case $GCC,$host_os in
8569 yes,cygwin* | yes,mingw* | yes,pw32*)
8570 library_names_spec='$libname.dll.a'
8571 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8572 postinstall_cmds='base_file=`basename \${file}`~
8573 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8574 dldir=$destdir/`dirname \$dlpath`~
8575 test -d \$dldir || mkdir -p \$dldir~
8576 $install_prog $dir/$dlname \$dldir/$dlname~
8577 chmod a+x \$dldir/$dlname'
8578 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8579 dlpath=$dir/\$dldll~
8581 shlibpath_overrides_runpath=yes
8585 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8586 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8587 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8590 # MinGW DLLs use traditional 'lib' prefix
8591 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8592 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8593 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8594 # It is most probably a Windows format PATH printed by
8595 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8596 # path with ; separators, and with drive letters. We can handle the
8597 # drive letters (cygwin fileutils understands them), so leave them,
8598 # especially as we might pass files found there to a mingw objdump,
8599 # which wouldn't understand a cygwinified path. Ahh.
8600 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8602 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8606 # pw32 DLLs use 'pw' prefix rather than 'lib'
8607 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8613 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8616 dynamic_linker='Win32 ld.exe'
8617 # FIXME: first we should search . and the directory the executable is in
8621 darwin* | rhapsody*)
8622 dynamic_linker="$host_os dyld"
8626 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8627 soname_spec='${libname}${release}${major}$shared_ext'
8628 shlibpath_overrides_runpath=yes
8629 shlibpath_var=DYLD_LIBRARY_PATH
8630 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8631 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8632 if test "$GCC" = yes; then
8633 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8635 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8637 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8645 soname_spec='${libname}${release}${shared_ext}$major'
8646 shlibpath_var=LD_LIBRARY_PATH
8657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8658 soname_spec='${libname}${release}${shared_ext}$major'
8659 shlibpath_var=LD_LIBRARY_PATH
8660 shlibpath_overrides_runpath=no
8661 hardcode_into_libs=yes
8662 dynamic_linker='GNU ld.so'
8665 freebsd* | dragonfly*)
8666 # DragonFly does not have aout. When/if they implement a new
8667 # versioning mechanism, adjust this.
8668 if test -x /usr/bin/objformat; then
8669 objformat=`/usr/bin/objformat`
8672 freebsd[123]*) objformat=aout ;;
8676 version_type=freebsd-$objformat
8677 case $version_type in
8679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8684 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8688 shlibpath_var=LD_LIBRARY_PATH
8691 shlibpath_overrides_runpath=yes
8693 freebsd3.[01]* | freebsdelf3.[01]*)
8694 shlibpath_overrides_runpath=yes
8695 hardcode_into_libs=yes
8698 shlibpath_overrides_runpath=no
8699 hardcode_into_libs=yes
8708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8709 soname_spec='${libname}${release}${shared_ext}$major'
8710 shlibpath_var=LD_LIBRARY_PATH
8711 hardcode_into_libs=yes
8714 hpux9* | hpux10* | hpux11*)
8715 # Give a soname corresponding to the major version so that dld.sl refuses to
8716 # link against other versions.
8723 hardcode_into_libs=yes
8724 dynamic_linker="$host_os dld.so"
8725 shlibpath_var=LD_LIBRARY_PATH
8726 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8728 soname_spec='${libname}${release}${shared_ext}$major'
8729 if test "X$HPUX_IA64_MODE" = X32; then
8730 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8732 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8734 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8738 hardcode_into_libs=yes
8739 dynamic_linker="$host_os dld.sl"
8740 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8741 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8743 soname_spec='${libname}${release}${shared_ext}$major'
8744 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8745 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8749 dynamic_linker="$host_os dld.sl"
8750 shlibpath_var=SHLIB_PATH
8751 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8753 soname_spec='${libname}${release}${shared_ext}$major'
8756 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8757 postinstall_cmds='chmod 555 $lib'
8760 irix5* | irix6* | nonstopux*)
8762 nonstopux*) version_type=nonstopux ;;
8764 if test "$lt_cv_prog_gnu_ld" = yes; then
8772 soname_spec='${libname}${release}${shared_ext}$major'
8773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8775 irix5* | nonstopux*)
8779 case $LD in # libtool.m4 will add one of these switches to LD
8780 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8781 libsuff= shlibsuff= libmagic=32-bit;;
8782 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8783 libsuff=32 shlibsuff=N32 libmagic=N32;;
8784 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8785 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8786 *) libsuff= shlibsuff= libmagic=never-match;;
8790 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8791 shlibpath_overrides_runpath=no
8792 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8793 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8794 hardcode_into_libs=yes
8797 # No shared lib support for Linux oldld, aout, or coff.
8798 linux*oldld* | linux*aout* | linux*coff*)
8802 # This must be Linux ELF.
8807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8808 soname_spec='${libname}${release}${shared_ext}$major'
8809 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8810 shlibpath_var=LD_LIBRARY_PATH
8811 shlibpath_overrides_runpath=no
8812 # This implies no fast_install, which is unacceptable.
8813 # Some rework will be needed to allow for fast_install
8814 # before this can be enabled.
8815 hardcode_into_libs=yes
8817 # Append ld.so.conf contents to the search path
8818 if test -f /etc/ld.so.conf; then
8819 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8820 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8823 # We used to test for /lib/ld.so.1 and disable shared libraries on
8824 # powerpc, because MkLinux only supported shared libraries with the
8825 # GNU dynamic linker. Since this was broken with cross compilers,
8826 # most powerpc-linux boxes support dynamic linking these days and
8827 # people can always --disable-shared, the test was removed, and we
8828 # assume the GNU/Linux dynamic linker is in use.
8829 dynamic_linker='GNU/Linux ld.so'
8836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8837 soname_spec='${libname}${release}${shared_ext}$major'
8838 shlibpath_var=LD_LIBRARY_PATH
8839 shlibpath_overrides_runpath=no
8840 hardcode_into_libs=yes
8841 dynamic_linker='NetBSD ld.elf_so'
8848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8849 soname_spec='${libname}${release}${shared_ext}$major'
8850 shlibpath_var=LD_LIBRARY_PATH
8851 shlibpath_overrides_runpath=no
8852 hardcode_into_libs=yes
8853 dynamic_linker='GNU ld.so'
8860 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8862 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8863 dynamic_linker='NetBSD (a.out) ld.so'
8865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8866 soname_spec='${libname}${release}${shared_ext}$major'
8867 dynamic_linker='NetBSD ld.elf_so'
8869 shlibpath_var=LD_LIBRARY_PATH
8870 shlibpath_overrides_runpath=yes
8871 hardcode_into_libs=yes
8876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8877 shlibpath_var=LD_LIBRARY_PATH
8878 shlibpath_overrides_runpath=yes
8885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8886 soname_spec='${libname}${release}${shared_ext}$major'
8887 shlibpath_var=LD_LIBRARY_PATH
8888 shlibpath_overrides_runpath=yes
8894 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8896 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8897 *) need_version=no ;;
8899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8900 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8901 shlibpath_var=LD_LIBRARY_PATH
8902 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8904 openbsd2.[89] | openbsd2.[89].*)
8905 shlibpath_overrides_runpath=no
8908 shlibpath_overrides_runpath=yes
8912 shlibpath_overrides_runpath=yes
8917 libname_spec='$name'
8920 library_names_spec='$libname${shared_ext} $libname.a'
8921 dynamic_linker='OS/2 ld.exe'
8922 shlibpath_var=LIBPATH
8925 osf3* | osf4* | osf5*)
8929 soname_spec='${libname}${release}${shared_ext}$major'
8930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8931 shlibpath_var=LD_LIBRARY_PATH
8932 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8933 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8938 soname_spec='${libname}${release}${shared_ext}$major'
8939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8940 shlibpath_var=LD_LIBRARY_PATH
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 shlibpath_var=LD_LIBRARY_PATH
8950 shlibpath_overrides_runpath=yes
8951 hardcode_into_libs=yes
8952 # ldd complains unless libraries are executable
8953 postinstall_cmds='chmod +x $lib'
8958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8959 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8960 shlibpath_var=LD_LIBRARY_PATH
8961 shlibpath_overrides_runpath=yes
8962 if test "$with_gnu_ld" = yes; then
8968 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8971 soname_spec='${libname}${release}${shared_ext}$major'
8972 shlibpath_var=LD_LIBRARY_PATH
8973 case $host_vendor in
8975 shlibpath_overrides_runpath=no
8977 export_dynamic_flag_spec='${wl}-Blargedynsym'
8978 runpath_var=LD_RUN_PATH
8986 shlibpath_overrides_runpath=no
8987 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8993 if test -d /usr/nec ;then
8995 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8996 soname_spec='$libname${shared_ext}.$major'
8997 shlibpath_var=LD_LIBRARY_PATH
9003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9004 soname_spec='${libname}${release}${shared_ext}$major'
9005 shlibpath_var=LD_LIBRARY_PATH
9012 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9013 echo "${ECHO_T}$dynamic_linker" >&6; }
9014 test "$dynamic_linker" = no && can_build_shared=no
9016 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9017 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9019 if test -n "$hardcode_libdir_flag_spec" || \
9020 test -n "$runpath_var" || \
9021 test "X$hardcode_automatic" = "Xyes" ; then
9023 # We can hardcode non-existant directories.
9024 if test "$hardcode_direct" != no &&
9025 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9026 # have to relink, otherwise we might link with an installed library
9027 # when we should be linking with a yet-to-be-installed one
9028 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9029 test "$hardcode_minus_L" != no; then
9030 # Linking always hardcodes the temporary library directory.
9031 hardcode_action=relink
9033 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9034 hardcode_action=immediate
9037 # We cannot hardcode anything, or else we can only hardcode existing
9039 hardcode_action=unsupported
9041 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9042 echo "${ECHO_T}$hardcode_action" >&6; }
9044 if test "$hardcode_action" = relink; then
9045 # Fast installation is not supported
9046 enable_fast_install=no
9047 elif test "$shlibpath_overrides_runpath" = yes ||
9048 test "$enable_shared" = no; then
9049 # Fast installation is not necessary
9050 enable_fast_install=needless
9055 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9056 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9057 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9058 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9059 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9060 { echo "$as_me:$LINENO: result: yes" >&5
9061 echo "${ECHO_T}yes" >&6; }
9063 # FIXME - insert some real tests, host_os isn't really good enough
9066 if test -n "$STRIP" ; then
9067 striplib="$STRIP -x"
9068 { echo "$as_me:$LINENO: result: yes" >&5
9069 echo "${ECHO_T}yes" >&6; }
9071 { echo "$as_me:$LINENO: result: no" >&5
9072 echo "${ECHO_T}no" >&6; }
9076 { echo "$as_me:$LINENO: result: no" >&5
9077 echo "${ECHO_T}no" >&6; }
9082 if test "x$enable_dlopen" != xyes; then
9083 enable_dlopen=unknown
9084 enable_dlopen_self=unknown
9085 enable_dlopen_self_static=unknown
9092 lt_cv_dlopen="load_add_on"
9094 lt_cv_dlopen_self=yes
9098 lt_cv_dlopen="LoadLibrary"
9103 lt_cv_dlopen="dlopen"
9108 # if libdl is installed we need to link against it
9109 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9110 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9111 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9112 echo $ECHO_N "(cached) $ECHO_C" >&6
9114 ac_check_lib_save_LIBS=$LIBS
9116 cat >conftest.$ac_ext <<_ACEOF
9119 cat confdefs.h >>conftest.$ac_ext
9120 cat >>conftest.$ac_ext <<_ACEOF
9121 /* end confdefs.h. */
9123 /* Override any GCC internal prototype to avoid an error.
9124 Use char because int might match the return type of a GCC
9125 builtin and then its argument prototype would still apply. */
9138 rm -f conftest.$ac_objext conftest$ac_exeext
9139 if { (ac_try="$ac_link"
9141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9142 *) ac_try_echo=$ac_try;;
9144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9145 (eval "$ac_link") 2>conftest.er1
9147 grep -v '^ *+' conftest.er1 >conftest.err
9149 cat conftest.err >&5
9150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151 (exit $ac_status); } && {
9152 test -z "$ac_c_werror_flag" ||
9153 test ! -s conftest.err
9154 } && test -s conftest$ac_exeext &&
9155 $as_test_x conftest$ac_exeext; then
9156 ac_cv_lib_dl_dlopen=yes
9158 echo "$as_me: failed program was:" >&5
9159 sed 's/^/| /' conftest.$ac_ext >&5
9161 ac_cv_lib_dl_dlopen=no
9164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9165 conftest$ac_exeext conftest.$ac_ext
9166 LIBS=$ac_check_lib_save_LIBS
9168 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9169 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9170 if test $ac_cv_lib_dl_dlopen = yes; then
9171 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9176 lt_cv_dlopen_self=yes
9183 { echo "$as_me:$LINENO: checking for shl_load" >&5
9184 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9185 if test "${ac_cv_func_shl_load+set}" = set; then
9186 echo $ECHO_N "(cached) $ECHO_C" >&6
9188 cat >conftest.$ac_ext <<_ACEOF
9191 cat confdefs.h >>conftest.$ac_ext
9192 cat >>conftest.$ac_ext <<_ACEOF
9193 /* end confdefs.h. */
9194 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9196 #define shl_load innocuous_shl_load
9198 /* System header to define __stub macros and hopefully few prototypes,
9199 which can conflict with char shl_load (); below.
9200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9201 <limits.h> exists even on freestanding compilers. */
9204 # include <limits.h>
9206 # include <assert.h>
9211 /* Override any GCC internal prototype to avoid an error.
9212 Use char because int might match the return type of a GCC
9213 builtin and then its argument prototype would still apply. */
9218 /* The GNU C library defines this for functions which it implements
9219 to always fail with ENOSYS. Some functions are actually named
9220 something starting with __ and the normal name is an alias. */
9221 #if defined __stub_shl_load || defined __stub___shl_load
9233 rm -f conftest.$ac_objext conftest$ac_exeext
9234 if { (ac_try="$ac_link"
9236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9237 *) ac_try_echo=$ac_try;;
9239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9240 (eval "$ac_link") 2>conftest.er1
9242 grep -v '^ *+' conftest.er1 >conftest.err
9244 cat conftest.err >&5
9245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246 (exit $ac_status); } && {
9247 test -z "$ac_c_werror_flag" ||
9248 test ! -s conftest.err
9249 } && test -s conftest$ac_exeext &&
9250 $as_test_x conftest$ac_exeext; then
9251 ac_cv_func_shl_load=yes
9253 echo "$as_me: failed program was:" >&5
9254 sed 's/^/| /' conftest.$ac_ext >&5
9256 ac_cv_func_shl_load=no
9259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9260 conftest$ac_exeext conftest.$ac_ext
9262 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9263 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9264 if test $ac_cv_func_shl_load = yes; then
9265 lt_cv_dlopen="shl_load"
9267 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9268 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9269 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9270 echo $ECHO_N "(cached) $ECHO_C" >&6
9272 ac_check_lib_save_LIBS=$LIBS
9274 cat >conftest.$ac_ext <<_ACEOF
9277 cat confdefs.h >>conftest.$ac_ext
9278 cat >>conftest.$ac_ext <<_ACEOF
9279 /* end confdefs.h. */
9281 /* Override any GCC internal prototype to avoid an error.
9282 Use char because int might match the return type of a GCC
9283 builtin and then its argument prototype would still apply. */
9296 rm -f conftest.$ac_objext conftest$ac_exeext
9297 if { (ac_try="$ac_link"
9299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9300 *) ac_try_echo=$ac_try;;
9302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9303 (eval "$ac_link") 2>conftest.er1
9305 grep -v '^ *+' conftest.er1 >conftest.err
9307 cat conftest.err >&5
9308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309 (exit $ac_status); } && {
9310 test -z "$ac_c_werror_flag" ||
9311 test ! -s conftest.err
9312 } && test -s conftest$ac_exeext &&
9313 $as_test_x conftest$ac_exeext; then
9314 ac_cv_lib_dld_shl_load=yes
9316 echo "$as_me: failed program was:" >&5
9317 sed 's/^/| /' conftest.$ac_ext >&5
9319 ac_cv_lib_dld_shl_load=no
9322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9323 conftest$ac_exeext conftest.$ac_ext
9324 LIBS=$ac_check_lib_save_LIBS
9326 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9327 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9328 if test $ac_cv_lib_dld_shl_load = yes; then
9329 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9331 { echo "$as_me:$LINENO: checking for dlopen" >&5
9332 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9333 if test "${ac_cv_func_dlopen+set}" = set; then
9334 echo $ECHO_N "(cached) $ECHO_C" >&6
9336 cat >conftest.$ac_ext <<_ACEOF
9339 cat confdefs.h >>conftest.$ac_ext
9340 cat >>conftest.$ac_ext <<_ACEOF
9341 /* end confdefs.h. */
9342 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9343 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9344 #define dlopen innocuous_dlopen
9346 /* System header to define __stub macros and hopefully few prototypes,
9347 which can conflict with char dlopen (); below.
9348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9349 <limits.h> exists even on freestanding compilers. */
9352 # include <limits.h>
9354 # include <assert.h>
9359 /* Override any GCC internal prototype to avoid an error.
9360 Use char because int might match the return type of a GCC
9361 builtin and then its argument prototype would still apply. */
9366 /* The GNU C library defines this for functions which it implements
9367 to always fail with ENOSYS. Some functions are actually named
9368 something starting with __ and the normal name is an alias. */
9369 #if defined __stub_dlopen || defined __stub___dlopen
9381 rm -f conftest.$ac_objext conftest$ac_exeext
9382 if { (ac_try="$ac_link"
9384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9385 *) ac_try_echo=$ac_try;;
9387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9388 (eval "$ac_link") 2>conftest.er1
9390 grep -v '^ *+' conftest.er1 >conftest.err
9392 cat conftest.err >&5
9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 (exit $ac_status); } && {
9395 test -z "$ac_c_werror_flag" ||
9396 test ! -s conftest.err
9397 } && test -s conftest$ac_exeext &&
9398 $as_test_x conftest$ac_exeext; then
9399 ac_cv_func_dlopen=yes
9401 echo "$as_me: failed program was:" >&5
9402 sed 's/^/| /' conftest.$ac_ext >&5
9404 ac_cv_func_dlopen=no
9407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9408 conftest$ac_exeext conftest.$ac_ext
9410 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9411 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9412 if test $ac_cv_func_dlopen = yes; then
9413 lt_cv_dlopen="dlopen"
9415 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9416 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9417 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9418 echo $ECHO_N "(cached) $ECHO_C" >&6
9420 ac_check_lib_save_LIBS=$LIBS
9422 cat >conftest.$ac_ext <<_ACEOF
9425 cat confdefs.h >>conftest.$ac_ext
9426 cat >>conftest.$ac_ext <<_ACEOF
9427 /* end confdefs.h. */
9429 /* Override any GCC internal prototype to avoid an error.
9430 Use char because int might match the return type of a GCC
9431 builtin and then its argument prototype would still apply. */
9444 rm -f conftest.$ac_objext conftest$ac_exeext
9445 if { (ac_try="$ac_link"
9447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9448 *) ac_try_echo=$ac_try;;
9450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9451 (eval "$ac_link") 2>conftest.er1
9453 grep -v '^ *+' conftest.er1 >conftest.err
9455 cat conftest.err >&5
9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457 (exit $ac_status); } && {
9458 test -z "$ac_c_werror_flag" ||
9459 test ! -s conftest.err
9460 } && test -s conftest$ac_exeext &&
9461 $as_test_x conftest$ac_exeext; then
9462 ac_cv_lib_dl_dlopen=yes
9464 echo "$as_me: failed program was:" >&5
9465 sed 's/^/| /' conftest.$ac_ext >&5
9467 ac_cv_lib_dl_dlopen=no
9470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9471 conftest$ac_exeext conftest.$ac_ext
9472 LIBS=$ac_check_lib_save_LIBS
9474 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9475 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9476 if test $ac_cv_lib_dl_dlopen = yes; then
9477 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9479 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9480 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9481 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9482 echo $ECHO_N "(cached) $ECHO_C" >&6
9484 ac_check_lib_save_LIBS=$LIBS
9486 cat >conftest.$ac_ext <<_ACEOF
9489 cat confdefs.h >>conftest.$ac_ext
9490 cat >>conftest.$ac_ext <<_ACEOF
9491 /* end confdefs.h. */
9493 /* Override any GCC internal prototype to avoid an error.
9494 Use char because int might match the return type of a GCC
9495 builtin and then its argument prototype would still apply. */
9508 rm -f conftest.$ac_objext conftest$ac_exeext
9509 if { (ac_try="$ac_link"
9511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9512 *) ac_try_echo=$ac_try;;
9514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9515 (eval "$ac_link") 2>conftest.er1
9517 grep -v '^ *+' conftest.er1 >conftest.err
9519 cat conftest.err >&5
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); } && {
9522 test -z "$ac_c_werror_flag" ||
9523 test ! -s conftest.err
9524 } && test -s conftest$ac_exeext &&
9525 $as_test_x conftest$ac_exeext; then
9526 ac_cv_lib_svld_dlopen=yes
9528 echo "$as_me: failed program was:" >&5
9529 sed 's/^/| /' conftest.$ac_ext >&5
9531 ac_cv_lib_svld_dlopen=no
9534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9535 conftest$ac_exeext conftest.$ac_ext
9536 LIBS=$ac_check_lib_save_LIBS
9538 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9539 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9540 if test $ac_cv_lib_svld_dlopen = yes; then
9541 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9543 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9544 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9545 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9546 echo $ECHO_N "(cached) $ECHO_C" >&6
9548 ac_check_lib_save_LIBS=$LIBS
9550 cat >conftest.$ac_ext <<_ACEOF
9553 cat confdefs.h >>conftest.$ac_ext
9554 cat >>conftest.$ac_ext <<_ACEOF
9555 /* end confdefs.h. */
9557 /* Override any GCC internal prototype to avoid an error.
9558 Use char because int might match the return type of a GCC
9559 builtin and then its argument prototype would still apply. */
9572 rm -f conftest.$ac_objext conftest$ac_exeext
9573 if { (ac_try="$ac_link"
9575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9576 *) ac_try_echo=$ac_try;;
9578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9579 (eval "$ac_link") 2>conftest.er1
9581 grep -v '^ *+' conftest.er1 >conftest.err
9583 cat conftest.err >&5
9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); } && {
9586 test -z "$ac_c_werror_flag" ||
9587 test ! -s conftest.err
9588 } && test -s conftest$ac_exeext &&
9589 $as_test_x conftest$ac_exeext; then
9590 ac_cv_lib_dld_dld_link=yes
9592 echo "$as_me: failed program was:" >&5
9593 sed 's/^/| /' conftest.$ac_ext >&5
9595 ac_cv_lib_dld_dld_link=no
9598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9599 conftest$ac_exeext conftest.$ac_ext
9600 LIBS=$ac_check_lib_save_LIBS
9602 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9603 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9604 if test $ac_cv_lib_dld_dld_link = yes; then
9605 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9626 if test "x$lt_cv_dlopen" != xno; then
9632 case $lt_cv_dlopen in
9634 save_CPPFLAGS="$CPPFLAGS"
9635 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9637 save_LDFLAGS="$LDFLAGS"
9638 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9641 LIBS="$lt_cv_dlopen_libs $LIBS"
9643 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9644 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9645 if test "${lt_cv_dlopen_self+set}" = set; then
9646 echo $ECHO_N "(cached) $ECHO_C" >&6
9648 if test "$cross_compiling" = yes; then :
9649 lt_cv_dlopen_self=cross
9651 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9652 lt_status=$lt_dlunknown
9653 cat > conftest.$ac_ext <<EOF
9654 #line __oline__ "configure"
9655 #include "confdefs.h"
9664 # define LT_DLGLOBAL RTLD_GLOBAL
9667 # define LT_DLGLOBAL DL_GLOBAL
9669 # define LT_DLGLOBAL 0
9673 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9674 find out it does not work in some platform. */
9675 #ifndef LT_DLLAZY_OR_NOW
9677 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9680 # define LT_DLLAZY_OR_NOW DL_LAZY
9683 # define LT_DLLAZY_OR_NOW RTLD_NOW
9686 # define LT_DLLAZY_OR_NOW DL_NOW
9688 # define LT_DLLAZY_OR_NOW 0
9696 extern "C" void exit (int);
9699 void fnord() { int i=42;}
9702 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9703 int status = $lt_dlunknown;
9707 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9708 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9709 /* dlclose (self); */
9715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9716 (eval $ac_link) 2>&5
9718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9720 (./conftest; exit; ) >&5 2>/dev/null
9723 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9724 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9725 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9728 # compilation failed
9729 lt_cv_dlopen_self=no
9736 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9737 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9739 if test "x$lt_cv_dlopen_self" = xyes; then
9740 LDFLAGS="$LDFLAGS $link_static_flag"
9741 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9742 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9743 if test "${lt_cv_dlopen_self_static+set}" = set; then
9744 echo $ECHO_N "(cached) $ECHO_C" >&6
9746 if test "$cross_compiling" = yes; then :
9747 lt_cv_dlopen_self_static=cross
9749 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9750 lt_status=$lt_dlunknown
9751 cat > conftest.$ac_ext <<EOF
9752 #line __oline__ "configure"
9753 #include "confdefs.h"
9762 # define LT_DLGLOBAL RTLD_GLOBAL
9765 # define LT_DLGLOBAL DL_GLOBAL
9767 # define LT_DLGLOBAL 0
9771 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9772 find out it does not work in some platform. */
9773 #ifndef LT_DLLAZY_OR_NOW
9775 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9778 # define LT_DLLAZY_OR_NOW DL_LAZY
9781 # define LT_DLLAZY_OR_NOW RTLD_NOW
9784 # define LT_DLLAZY_OR_NOW DL_NOW
9786 # define LT_DLLAZY_OR_NOW 0
9794 extern "C" void exit (int);
9797 void fnord() { int i=42;}
9800 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9801 int status = $lt_dlunknown;
9805 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9806 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9807 /* dlclose (self); */
9813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9814 (eval $ac_link) 2>&5
9816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9818 (./conftest; exit; ) >&5 2>/dev/null
9821 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9822 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9823 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9826 # compilation failed
9827 lt_cv_dlopen_self_static=no
9834 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9835 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9838 CPPFLAGS="$save_CPPFLAGS"
9839 LDFLAGS="$save_LDFLAGS"
9844 case $lt_cv_dlopen_self in
9845 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9846 *) enable_dlopen_self=unknown ;;
9849 case $lt_cv_dlopen_self_static in
9850 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9851 *) enable_dlopen_self_static=unknown ;;
9856 # Report which librarie types wil actually be built
9857 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9858 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9859 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9860 echo "${ECHO_T}$can_build_shared" >&6; }
9862 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9863 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9864 test "$can_build_shared" = "no" && enable_shared=no
9866 # On AIX, shared libraries and static libraries use the same namespace, and
9867 # are all built from PIC.
9870 test "$enable_shared" = yes && enable_static=no
9871 if test -n "$RANLIB"; then
9872 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9873 postinstall_cmds='$RANLIB $lib'
9878 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9879 test "$enable_shared" = yes && enable_static=no
9883 { echo "$as_me:$LINENO: result: $enable_shared" >&5
9884 echo "${ECHO_T}$enable_shared" >&6; }
9886 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9887 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9888 # Make sure either enable_shared or enable_static is yes.
9889 test "$enable_shared" = yes || enable_static=yes
9890 { echo "$as_me:$LINENO: result: $enable_static" >&5
9891 echo "${ECHO_T}$enable_static" >&6; }
9893 # The else clause should only fire when bootstrapping the
9894 # libtool distribution, otherwise you forgot to ship ltmain.sh
9895 # with your package, and you will get complaints that there are
9896 # no rules to generate ltmain.sh.
9897 if test -f "$ltmain"; then
9898 # See if we are running on zsh, and set the options which allow our commands through
9899 # without removal of \ escapes.
9900 if test -n "${ZSH_VERSION+set}" ; then
9901 setopt NO_GLOB_SUBST
9903 # Now quote all the things that may contain metacharacters while being
9904 # careful not to overquote the AC_SUBSTed values. We take copies of the
9905 # variables and quote the copies for generation of the libtool script.
9906 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9908 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9909 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9910 deplibs_check_method reload_flag reload_cmds need_locks \
9911 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9912 lt_cv_sys_global_symbol_to_c_name_address \
9913 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9914 old_postinstall_cmds old_postuninstall_cmds \
9918 lt_prog_compiler_wl \
9919 lt_prog_compiler_pic \
9920 lt_prog_compiler_static \
9921 lt_prog_compiler_no_builtin_flag \
9922 export_dynamic_flag_spec \
9923 thread_safe_flag_spec \
9924 whole_archive_flag_spec \
9925 enable_shared_with_static_runtimes \
9927 old_archive_from_new_cmds \
9932 compiler_lib_search_path \
9934 archive_expsym_cmds \
9936 postuninstall_cmds \
9937 old_archive_from_expsyms_cmds \
9938 allow_undefined_flag \
9940 export_symbols_cmds \
9941 hardcode_libdir_flag_spec \
9942 hardcode_libdir_flag_spec_ld \
9943 hardcode_libdir_separator \
9944 hardcode_automatic \
9946 module_expsym_cmds \
9947 lt_cv_prog_compiler_c_o \
9952 old_archive_cmds | \
9953 old_archive_from_new_cmds | \
9955 archive_expsym_cmds | \
9957 module_expsym_cmds | \
9958 old_archive_from_expsyms_cmds | \
9959 export_symbols_cmds | \
9960 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9961 postinstall_cmds | postuninstall_cmds | \
9962 old_postinstall_cmds | old_postuninstall_cmds | \
9963 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9964 # Double-quote double-evaled strings.
9965 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9968 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9974 *'\$0 --fallback-echo"')
9975 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9980 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9982 { echo "$as_me:$LINENO: creating $ofile" >&5
9983 echo "$as_me: creating $ofile" >&6;}
9985 cat <<__EOF__ >> "$cfgfile"
9988 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9989 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9990 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9992 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9993 # Free Software Foundation, Inc.
9995 # This file is part of GNU Libtool:
9996 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9998 # This program is free software; you can redistribute it and/or modify
9999 # it under the terms of the GNU General Public License as published by
10000 # the Free Software Foundation; either version 2 of the License, or
10001 # (at your option) any later version.
10003 # This program is distributed in the hope that it will be useful, but
10004 # WITHOUT ANY WARRANTY; without even the implied warranty of
10005 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10006 # General Public License for more details.
10008 # You should have received a copy of the GNU General Public License
10009 # along with this program; if not, write to the Free Software
10010 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10012 # As a special exception to the GNU General Public License, if you
10013 # distribute this file as part of a program that contains a
10014 # configuration script generated by Autoconf, you may include it under
10015 # the same distribution terms that you use for the rest of that program.
10017 # A sed program that does not truncate output.
10020 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10021 Xsed="$SED -e 1s/^X//"
10023 # The HP-UX ksh and POSIX shell print the target directory to stdout
10024 # if CDPATH is set.
10025 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10027 # The names of the tagged configurations supported by this script.
10030 # ### BEGIN LIBTOOL CONFIG
10032 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10034 # Shell to use when invoking shell scripts.
10037 # Whether or not to build shared libraries.
10038 build_libtool_libs=$enable_shared
10040 # Whether or not to build static libraries.
10041 build_old_libs=$enable_static
10043 # Whether or not to add -lc for building shared libraries.
10044 build_libtool_need_lc=$archive_cmds_need_lc
10046 # Whether or not to disallow shared libs when runtime libs are static
10047 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10049 # Whether or not to optimize for fast installation.
10050 fast_install=$enable_fast_install
10053 host_alias=$host_alias
10057 # The build system.
10058 build_alias=$build_alias
10062 # An echo program that does not interpret backslashes.
10067 AR_FLAGS=$lt_AR_FLAGS
10072 # A language-specific compiler.
10075 # Is the compiler the GNU C compiler?
10081 # The linker used to build libraries.
10084 # Whether we need hard or soft links.
10087 # A BSD-compatible nm program.
10090 # A symbol stripping program
10093 # Used to examine libraries when file_magic_cmd begins "file"
10094 MAGIC_CMD=$MAGIC_CMD
10096 # Used on cygwin: DLL creation program.
10099 # Used on cygwin: object dumper.
10102 # Used on cygwin: assembler.
10105 # The name of the directory that contains temporary libtool files.
10108 # How to create reloadable object files.
10109 reload_flag=$lt_reload_flag
10110 reload_cmds=$lt_reload_cmds
10112 # How to pass a linker flag through the compiler.
10113 wl=$lt_lt_prog_compiler_wl
10115 # Object file suffix (normally "o").
10116 objext="$ac_objext"
10118 # Old archive suffix (normally "a").
10121 # Shared library suffix (normally ".so").
10122 shrext_cmds='$shrext_cmds'
10124 # Executable file suffix (normally "").
10127 # Additional compiler flags for building library objects.
10128 pic_flag=$lt_lt_prog_compiler_pic
10131 # What is the maximum length of a command?
10132 max_cmd_len=$lt_cv_sys_max_cmd_len
10134 # Does compiler simultaneously support -c and -o options?
10135 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10137 # Must we lock files when doing compilation?
10138 need_locks=$lt_need_locks
10140 # Do we need the lib prefix for modules?
10141 need_lib_prefix=$need_lib_prefix
10143 # Do we need a version for libraries?
10144 need_version=$need_version
10146 # Whether dlopen is supported.
10147 dlopen_support=$enable_dlopen
10149 # Whether dlopen of programs is supported.
10150 dlopen_self=$enable_dlopen_self
10152 # Whether dlopen of statically linked programs is supported.
10153 dlopen_self_static=$enable_dlopen_self_static
10155 # Compiler flag to prevent dynamic linking.
10156 link_static_flag=$lt_lt_prog_compiler_static
10158 # Compiler flag to turn off builtin functions.
10159 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10161 # Compiler flag to allow reflexive dlopens.
10162 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10164 # Compiler flag to generate shared objects directly from archives.
10165 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10167 # Compiler flag to generate thread-safe objects.
10168 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10170 # Library versioning type.
10171 version_type=$version_type
10173 # Format of library name prefix.
10174 libname_spec=$lt_libname_spec
10176 # List of archive names. First name is the real one, the rest are links.
10177 # The last name is the one that the linker finds with -lNAME.
10178 library_names_spec=$lt_library_names_spec
10180 # The coded name of the library, if different from the real name.
10181 soname_spec=$lt_soname_spec
10183 # Commands used to build and install an old-style archive.
10185 old_archive_cmds=$lt_old_archive_cmds
10186 old_postinstall_cmds=$lt_old_postinstall_cmds
10187 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10189 # Create an old-style archive from a shared archive.
10190 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10192 # Create a temporary old-style archive to link instead of a shared archive.
10193 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10195 # Commands used to build and install a shared archive.
10196 archive_cmds=$lt_archive_cmds
10197 archive_expsym_cmds=$lt_archive_expsym_cmds
10198 postinstall_cmds=$lt_postinstall_cmds
10199 postuninstall_cmds=$lt_postuninstall_cmds
10201 # Commands used to build a loadable module (assumed same as above if empty)
10202 module_cmds=$lt_module_cmds
10203 module_expsym_cmds=$lt_module_expsym_cmds
10205 # Commands to strip libraries.
10206 old_striplib=$lt_old_striplib
10207 striplib=$lt_striplib
10209 # Dependencies to place before the objects being linked to create a
10211 predep_objects=$lt_predep_objects
10213 # Dependencies to place after the objects being linked to create a
10215 postdep_objects=$lt_postdep_objects
10217 # Dependencies to place before the objects being linked to create a
10219 predeps=$lt_predeps
10221 # Dependencies to place after the objects being linked to create a
10223 postdeps=$lt_postdeps
10225 # The library search path used internally by the compiler when linking
10226 # a shared library.
10227 compiler_lib_search_path=$lt_compiler_lib_search_path
10229 # Method to check whether dependent libraries are shared objects.
10230 deplibs_check_method=$lt_deplibs_check_method
10232 # Command to use when deplibs_check_method == file_magic.
10233 file_magic_cmd=$lt_file_magic_cmd
10235 # Flag that allows shared libraries with undefined symbols to be built.
10236 allow_undefined_flag=$lt_allow_undefined_flag
10238 # Flag that forces no undefined symbols.
10239 no_undefined_flag=$lt_no_undefined_flag
10241 # Commands used to finish a libtool library installation in a directory.
10242 finish_cmds=$lt_finish_cmds
10244 # Same as above, but a single script fragment to be evaled but not shown.
10245 finish_eval=$lt_finish_eval
10247 # Take the output of nm and produce a listing of raw symbols and C names.
10248 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10250 # Transform the output of nm in a proper C declaration
10251 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10253 # Transform the output of nm in a C name address pair
10254 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10256 # This is the shared library runtime path variable.
10257 runpath_var=$runpath_var
10259 # This is the shared library path variable.
10260 shlibpath_var=$shlibpath_var
10262 # Is shlibpath searched before the hard-coded library search path?
10263 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10265 # How to hardcode a shared library path into an executable.
10266 hardcode_action=$hardcode_action
10268 # Whether we should hardcode library paths into libraries.
10269 hardcode_into_libs=$hardcode_into_libs
10271 # Flag to hardcode \$libdir into a binary during linking.
10272 # This must work even if \$libdir does not exist.
10273 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10275 # If ld is used when linking, flag to hardcode \$libdir into
10276 # a binary during linking. This must work even if \$libdir does
10278 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10280 # Whether we need a single -rpath flag with a separated argument.
10281 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10283 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10284 # resulting binary.
10285 hardcode_direct=$hardcode_direct
10287 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10288 # resulting binary.
10289 hardcode_minus_L=$hardcode_minus_L
10291 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10292 # the resulting binary.
10293 hardcode_shlibpath_var=$hardcode_shlibpath_var
10295 # Set to yes if building a shared library automatically hardcodes DIR into the library
10296 # and all subsequent libraries and executables linked against it.
10297 hardcode_automatic=$hardcode_automatic
10299 # Variables whose values should be saved in libtool wrapper scripts and
10300 # restored at relink time.
10301 variables_saved_for_relink="$variables_saved_for_relink"
10303 # Whether libtool must link a program against all its dependency libraries.
10304 link_all_deplibs=$link_all_deplibs
10306 # Compile-time system search path for libraries
10307 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10309 # Run-time system search path for libraries
10310 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10312 # Fix the shell variable \$srcfile for the compiler.
10313 fix_srcfile_path="$fix_srcfile_path"
10315 # Set to yes if exported symbols are required.
10316 always_export_symbols=$always_export_symbols
10318 # The commands to list exported symbols.
10319 export_symbols_cmds=$lt_export_symbols_cmds
10321 # The commands to extract the exported symbol list from a shared archive.
10322 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10324 # Symbols that should not be listed in the preloaded symbols.
10325 exclude_expsyms=$lt_exclude_expsyms
10327 # Symbols that must always be exported.
10328 include_expsyms=$lt_include_expsyms
10330 # ### END LIBTOOL CONFIG
10337 cat <<\EOF >> "$cfgfile"
10339 # AIX sometimes has problems with the GCC collect2 program. For some
10340 # reason, if we set the COLLECT_NAMES environment variable, the problems
10341 # vanish in a puff of smoke.
10342 if test "X${COLLECT_NAMES+set}" != Xset; then
10344 export COLLECT_NAMES
10350 # We use sed instead of cat because bash on DJGPP gets confused if
10351 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10352 # text mode, it properly converts lines to CR/LF. This bash problem
10353 # is reportedly fixed, but why not run on old versions too?
10354 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10356 mv -f "$cfgfile" "$ofile" || \
10357 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10361 # If there is no Makefile yet, we rely on a make rule to execute
10362 # `config.status --recheck' to rerun these tests and create the
10363 # libtool script then.
10364 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10365 if test -f "$ltmain_in"; then
10366 test -f Makefile && make "$ltmain"
10372 ac_cpp='$CPP $CPPFLAGS'
10373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10380 # Check whether --with-tags was given.
10381 if test "${with_tags+set}" = set; then
10382 withval=$with_tags; tagnames="$withval"
10386 if test -f "$ltmain" && test -n "$tagnames"; then
10387 if test ! -f "${ofile}"; then
10388 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10389 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10392 if test -z "$LTCC"; then
10393 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10394 if test -z "$LTCC"; then
10395 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10396 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10398 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10399 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10403 # Extract list of available tagged configurations in $ofile.
10404 # Note that this assumes the entire list is on one line.
10405 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10407 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10408 for tagname in $tagnames; do
10410 # Check whether tagname contains only valid characters
10411 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10413 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10414 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10415 { (exit 1); exit 1; }; }
10419 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10421 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10422 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10423 { (exit 1); exit 1; }; }
10426 # Update the list of available tags.
10427 if test -n "$tagname"; then
10428 echo appending configuration tag \"$tagname\" to $ofile
10432 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10433 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10434 (test "X$CXX" != "Xg++"))) ; then
10436 ac_cpp='$CXXCPP $CPPFLAGS'
10437 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10438 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10439 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10444 archive_cmds_need_lc_CXX=no
10445 allow_undefined_flag_CXX=
10446 always_export_symbols_CXX=no
10447 archive_expsym_cmds_CXX=
10448 export_dynamic_flag_spec_CXX=
10449 hardcode_direct_CXX=no
10450 hardcode_libdir_flag_spec_CXX=
10451 hardcode_libdir_flag_spec_ld_CXX=
10452 hardcode_libdir_separator_CXX=
10453 hardcode_minus_L_CXX=no
10454 hardcode_automatic_CXX=no
10456 module_expsym_cmds_CXX=
10457 link_all_deplibs_CXX=unknown
10458 old_archive_cmds_CXX=$old_archive_cmds
10459 no_undefined_flag_CXX=
10460 whole_archive_flag_spec_CXX=
10461 enable_shared_with_static_runtimes_CXX=no
10463 # Dependencies to place before and after the object being linked:
10464 predep_objects_CXX=
10465 postdep_objects_CXX=
10468 compiler_lib_search_path_CXX=
10470 # Source file extension for C++ test sources.
10473 # Object file extension for compiled C++ test sources.
10477 # Code to be used in simple compile tests
10478 lt_simple_compile_test_code="int some_variable = 0;\n"
10480 # Code to be used in simple link tests
10481 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10483 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10485 # If no C compiler was specified, use CC.
10488 # Allow CC to be a program name with arguments.
10492 # save warnings/boilerplate of simple test code
10493 ac_outfile=conftest.$ac_objext
10494 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10495 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10496 _lt_compiler_boilerplate=`cat conftest.err`
10499 ac_outfile=conftest.$ac_objext
10500 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10501 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10502 _lt_linker_boilerplate=`cat conftest.err`
10506 # Allow CC to be a program name with arguments.
10511 lt_save_with_gnu_ld=$with_gnu_ld
10512 lt_save_path_LD=$lt_cv_path_LD
10513 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10514 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10516 unset lt_cv_prog_gnu_ld
10518 if test -n "${lt_cv_path_LDCXX+set}"; then
10519 lt_cv_path_LD=$lt_cv_path_LDCXX
10521 unset lt_cv_path_LD
10523 test -z "${LDCXX+set}" || LD=$LDCXX
10527 for cc_temp in $compiler""; do
10529 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10530 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10535 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10538 # We don't want -fno-exception wen compiling C++ code, so set the
10539 # no_builtin_flag separately
10540 if test "$GXX" = yes; then
10541 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10543 lt_prog_compiler_no_builtin_flag_CXX=
10546 if test "$GXX" = yes; then
10547 # Set up default GNU C++ configuration
10550 # Check whether --with-gnu-ld was given.
10551 if test "${with_gnu_ld+set}" = set; then
10552 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10558 if test "$GCC" = yes; then
10559 # Check if gcc -print-prog-name=ld gives a path.
10560 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10561 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10564 # gcc leaves a trailing carriage return which upsets mingw
10565 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10567 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10570 # Accept absolute paths.
10572 re_direlt='/[^/][^/]*/\.\./'
10573 # Canonicalize the pathname of ld
10574 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10575 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10576 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10578 test -z "$LD" && LD="$ac_prog"
10581 # If it fails, then pretend we aren't using GCC.
10585 # If it is relative, then search for the first ld in PATH.
10586 with_gnu_ld=unknown
10589 elif test "$with_gnu_ld" = yes; then
10590 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10591 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10593 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10594 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10596 if test "${lt_cv_path_LD+set}" = set; then
10597 echo $ECHO_N "(cached) $ECHO_C" >&6
10599 if test -z "$LD"; then
10600 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10601 for ac_dir in $PATH; do
10603 test -z "$ac_dir" && ac_dir=.
10604 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10605 lt_cv_path_LD="$ac_dir/$ac_prog"
10606 # Check to see if the program is GNU ld. I'd rather use --version,
10607 # but apparently some variants of GNU ld only accept -v.
10608 # Break only if it was the GNU/non-GNU ld that we prefer.
10609 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10610 *GNU* | *'with BFD'*)
10611 test "$with_gnu_ld" != no && break
10614 test "$with_gnu_ld" != yes && break
10621 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10625 LD="$lt_cv_path_LD"
10626 if test -n "$LD"; then
10627 { echo "$as_me:$LINENO: result: $LD" >&5
10628 echo "${ECHO_T}$LD" >&6; }
10630 { echo "$as_me:$LINENO: result: no" >&5
10631 echo "${ECHO_T}no" >&6; }
10633 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10634 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10635 { (exit 1); exit 1; }; }
10636 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10637 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10638 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10639 echo $ECHO_N "(cached) $ECHO_C" >&6
10641 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10642 case `$LD -v 2>&1 </dev/null` in
10643 *GNU* | *'with BFD'*)
10644 lt_cv_prog_gnu_ld=yes
10647 lt_cv_prog_gnu_ld=no
10651 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10652 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10653 with_gnu_ld=$lt_cv_prog_gnu_ld
10657 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10658 # archiving commands below assume that GNU ld is being used.
10659 if test "$with_gnu_ld" = yes; then
10660 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10661 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'
10663 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10664 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10666 # If archive_cmds runs LD, not CC, wlarc should be empty
10667 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10668 # investigate it a little bit more. (MM)
10671 # ancient GNU ld didn't support --whole-archive et. al.
10672 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10673 grep 'no-whole-archive' > /dev/null; then
10674 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10676 whole_archive_flag_spec_CXX=
10682 # A generic and very simple default shared library creation
10683 # command for GNU C++ for the case where it uses the native
10684 # linker, instead of GNU ld. If possible, this setting should
10685 # overridden to take advantage of the native linker features on
10686 # the platform it is being used on.
10687 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10690 # Commands to make compiler produce verbose output that lists
10691 # what "hidden" libraries, object files and flags are used when
10692 # linking a shared library.
10693 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10701 # PORTME: fill in a description of your system's C++ link characteristics
10702 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10703 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10707 # FIXME: insert proper C++ library support
10711 if test "$host_cpu" = ia64; then
10712 # On IA64, the linker does run time linking by default, so we don't
10713 # have to do anything special.
10714 aix_use_runtimelinking=no
10715 exp_sym_flag='-Bexport'
10718 aix_use_runtimelinking=no
10720 # Test if we are trying to use run time linking or normal
10721 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10722 # need to do runtime linking.
10723 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10724 for ld_flag in $LDFLAGS; do
10727 aix_use_runtimelinking=yes
10734 exp_sym_flag='-bexport'
10735 no_entry_flag='-bnoentry'
10738 # When large executables or shared objects are built, AIX ld can
10739 # have problems creating the table of contents. If linking a library
10740 # or program results in "error TOC overflow" add -mminimal-toc to
10741 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10742 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10744 archive_cmds_CXX=''
10745 hardcode_direct_CXX=yes
10746 hardcode_libdir_separator_CXX=':'
10747 link_all_deplibs_CXX=yes
10749 if test "$GXX" = yes; then
10750 case $host_os in aix4.[012]|aix4.[012].*)
10751 # We only want to do this on AIX 4.2 and lower, the check
10752 # below for broken collect2 doesn't work under 4.3+
10753 collect2name=`${CC} -print-prog-name=collect2`
10754 if test -f "$collect2name" && \
10755 strings "$collect2name" | grep resolve_lib_name >/dev/null
10757 # We have reworked collect2
10758 hardcode_direct_CXX=yes
10760 # We have old collect2
10761 hardcode_direct_CXX=unsupported
10762 # It fails to find uninstalled libraries when the uninstalled
10763 # path is not listed in the libpath. Setting hardcode_minus_L
10764 # to unsupported forces relinking
10765 hardcode_minus_L_CXX=yes
10766 hardcode_libdir_flag_spec_CXX='-L$libdir'
10767 hardcode_libdir_separator_CXX=
10770 shared_flag='-shared'
10771 if test "$aix_use_runtimelinking" = yes; then
10772 shared_flag="$shared_flag "'${wl}-G'
10776 if test "$host_cpu" = ia64; then
10777 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10778 # chokes on -Wl,-G. The following line is correct:
10781 if test "$aix_use_runtimelinking" = yes; then
10782 shared_flag='${wl}-G'
10784 shared_flag='${wl}-bM:SRE'
10789 # It seems that -bexpall does not export symbols beginning with
10790 # underscore (_), so it is better to generate a list of symbols to export.
10791 always_export_symbols_CXX=yes
10792 if test "$aix_use_runtimelinking" = yes; then
10793 # Warning - without using the other runtime loading flags (-brtl),
10794 # -berok will link without error, but may produce a broken library.
10795 allow_undefined_flag_CXX='-berok'
10796 # Determine the default libpath from the value encoded in an empty executable.
10797 cat >conftest.$ac_ext <<_ACEOF
10800 cat confdefs.h >>conftest.$ac_ext
10801 cat >>conftest.$ac_ext <<_ACEOF
10802 /* end confdefs.h. */
10812 rm -f conftest.$ac_objext conftest$ac_exeext
10813 if { (ac_try="$ac_link"
10814 case "(($ac_try" in
10815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10816 *) ac_try_echo=$ac_try;;
10818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10819 (eval "$ac_link") 2>conftest.er1
10821 grep -v '^ *+' conftest.er1 >conftest.err
10823 cat conftest.err >&5
10824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825 (exit $ac_status); } && {
10826 test -z "$ac_cxx_werror_flag" ||
10827 test ! -s conftest.err
10828 } && test -s conftest$ac_exeext &&
10829 $as_test_x conftest$ac_exeext; then
10831 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10833 # Check for a 64-bit object if we didn't find anything.
10834 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10837 echo "$as_me: failed program was:" >&5
10838 sed 's/^/| /' conftest.$ac_ext >&5
10843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10844 conftest$ac_exeext conftest.$ac_ext
10845 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10847 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10849 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10851 if test "$host_cpu" = ia64; then
10852 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10853 allow_undefined_flag_CXX="-z nodefs"
10854 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10856 # Determine the default libpath from the value encoded in an empty executable.
10857 cat >conftest.$ac_ext <<_ACEOF
10860 cat confdefs.h >>conftest.$ac_ext
10861 cat >>conftest.$ac_ext <<_ACEOF
10862 /* end confdefs.h. */
10872 rm -f conftest.$ac_objext conftest$ac_exeext
10873 if { (ac_try="$ac_link"
10874 case "(($ac_try" in
10875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10876 *) ac_try_echo=$ac_try;;
10878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10879 (eval "$ac_link") 2>conftest.er1
10881 grep -v '^ *+' conftest.er1 >conftest.err
10883 cat conftest.err >&5
10884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885 (exit $ac_status); } && {
10886 test -z "$ac_cxx_werror_flag" ||
10887 test ! -s conftest.err
10888 } && test -s conftest$ac_exeext &&
10889 $as_test_x conftest$ac_exeext; then
10891 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10893 # Check for a 64-bit object if we didn't find anything.
10894 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10897 echo "$as_me: failed program was:" >&5
10898 sed 's/^/| /' conftest.$ac_ext >&5
10903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10904 conftest$ac_exeext conftest.$ac_ext
10905 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10907 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10908 # Warning - without using the other run time loading flags,
10909 # -berok will link without error, but may produce a broken library.
10910 no_undefined_flag_CXX=' ${wl}-bernotok'
10911 allow_undefined_flag_CXX=' ${wl}-berok'
10912 # -bexpall does not export symbols beginning with underscore (_)
10913 always_export_symbols_CXX=yes
10914 # Exported symbols can be pulled into shared objects from archives
10915 whole_archive_flag_spec_CXX=' '
10916 archive_cmds_need_lc_CXX=yes
10917 # This is similar to how AIX traditionally builds its shared libraries.
10918 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10923 case $cc_basename in
10925 # FIXME: insert proper C++ library support
10932 cygwin* | mingw* | pw32*)
10933 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10934 # as there is no search path for DLLs.
10935 hardcode_libdir_flag_spec_CXX='-L$libdir'
10936 allow_undefined_flag_CXX=unsupported
10937 always_export_symbols_CXX=no
10938 enable_shared_with_static_runtimes_CXX=yes
10940 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10941 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10942 # If the export-symbols file already is a .def file (1st line
10943 # is EXPORTS), use it as is; otherwise, prepend...
10944 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10945 cp $export_symbols $output_objdir/$soname.def;
10947 echo EXPORTS > $output_objdir/$soname.def;
10948 cat $export_symbols >> $output_objdir/$soname.def;
10950 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10955 darwin* | rhapsody*)
10957 rhapsody* | darwin1.[012])
10958 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10961 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10962 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10964 case ${MACOSX_DEPLOYMENT_TARGET} in
10966 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10969 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10975 archive_cmds_need_lc_CXX=no
10976 hardcode_direct_CXX=no
10977 hardcode_automatic_CXX=yes
10978 hardcode_shlibpath_var_CXX=unsupported
10979 whole_archive_flag_spec_CXX=''
10980 link_all_deplibs_CXX=yes
10982 if test "$GXX" = yes ; then
10983 lt_int_apple_cc_single_mod=no
10984 output_verbose_link_cmd='echo'
10985 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10986 lt_int_apple_cc_single_mod=yes
10988 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10989 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10991 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'
10993 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10994 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10995 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10996 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}'
10998 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}'
11000 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}'
11002 case $cc_basename in
11004 output_verbose_link_cmd='echo'
11005 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11006 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11007 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11008 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11009 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}'
11019 case $cc_basename in
11021 # FIXME: insert proper C++ library support
11025 # Green Hills C++ Compiler
11026 # FIXME: insert proper C++ library support
11030 # FIXME: insert proper C++ library support
11036 # C++ shared libraries reported to be fairly broken before switch to ELF
11040 archive_cmds_need_lc_CXX=no
11042 freebsd* | kfreebsd*-gnu | dragonfly*)
11043 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11050 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11051 hardcode_libdir_separator_CXX=:
11052 export_dynamic_flag_spec_CXX='${wl}-E'
11053 hardcode_direct_CXX=yes
11054 hardcode_minus_L_CXX=yes # Not in the search PATH,
11055 # but as the default
11056 # location of the library.
11058 case $cc_basename in
11060 # FIXME: insert proper C++ library support
11064 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'
11065 # Commands to make compiler produce verbose output that lists
11066 # what "hidden" libraries, object files and flags are used when
11067 # linking a shared library.
11069 # There doesn't appear to be a way to prevent this compiler from
11070 # explicitly linking system object files so we need to strip them
11071 # from the output so that they don't get included in the library
11073 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'
11076 if test "$GXX" = yes; then
11077 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'
11079 # FIXME: insert proper C++ library support
11086 if test $with_gnu_ld = no; then
11089 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11090 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11091 hardcode_libdir_separator_CXX=:
11094 hardcode_libdir_flag_spec_CXX='-L$libdir'
11097 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11098 hardcode_libdir_separator_CXX=:
11099 export_dynamic_flag_spec_CXX='${wl}-E'
11105 hardcode_direct_CXX=no
11106 hardcode_shlibpath_var_CXX=no
11109 hardcode_direct_CXX=no
11110 hardcode_shlibpath_var_CXX=no
11111 hardcode_minus_L_CXX=yes # Not in the search PATH,
11112 # but as the default
11113 # location of the library.
11116 hardcode_direct_CXX=yes
11117 hardcode_minus_L_CXX=yes # Not in the search PATH,
11118 # but as the default
11119 # location of the library.
11123 case $cc_basename in
11125 # FIXME: insert proper C++ library support
11131 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11134 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11137 # Commands to make compiler produce verbose output that lists
11138 # what "hidden" libraries, object files and flags are used when
11139 # linking a shared library.
11141 # There doesn't appear to be a way to prevent this compiler from
11142 # explicitly linking system object files so we need to strip them
11143 # from the output so that they don't get included in the library
11145 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'
11148 if test "$GXX" = yes; then
11149 if test $with_gnu_ld = no; then
11152 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11155 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'
11160 # FIXME: insert proper C++ library support
11167 case $cc_basename in
11170 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'
11172 # Archives containing C++ object files must be created using
11173 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11174 # necessary to make sure instantiated templates are included
11176 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11179 if test "$GXX" = yes; then
11180 if test "$with_gnu_ld" = no; then
11181 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'
11183 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'
11186 link_all_deplibs_CXX=yes
11189 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11190 hardcode_libdir_separator_CXX=:
11193 case $cc_basename in
11195 # Kuck and Associates, Inc. (KAI) C++ Compiler
11197 # KCC will only create a shared library if the output file
11198 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11199 # to its proper name (with version) after linking.
11200 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'
11201 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'
11202 # Commands to make compiler produce verbose output that lists
11203 # what "hidden" libraries, object files and flags are used when
11204 # linking a shared library.
11206 # There doesn't appear to be a way to prevent this compiler from
11207 # explicitly linking system object files so we need to strip them
11208 # from the output so that they don't get included in the library
11210 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'
11212 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11213 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11215 # Archives containing C++ object files must be created using
11216 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11217 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11222 # version 8.0 and above of icpc choke on multiply defined symbols
11223 # if we add $predep_objects and $postdep_objects, however 7.1 and
11224 # earlier do not add the objects themselves.
11225 case `$CC -V 2>&1` in
11227 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11228 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'
11230 *) # Version 8.0 or newer
11233 ia64*) tmp_idyn=' -i_dynamic';;
11235 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11236 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'
11239 archive_cmds_need_lc_CXX=no
11240 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11241 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11242 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11245 # Portland Group C++ compiler
11246 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11247 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'
11249 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11250 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11251 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'
11255 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11256 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'
11258 runpath_var=LD_RUN_PATH
11259 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11260 hardcode_libdir_separator_CXX=:
11262 # Commands to make compiler produce verbose output that lists
11263 # what "hidden" libraries, object files and flags are used when
11264 # linking a shared library.
11266 # There doesn't appear to be a way to prevent this compiler from
11267 # explicitly linking system object files so we need to strip them
11268 # from the output so that they don't get included in the library
11270 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'
11275 # FIXME: insert proper C++ library support
11279 # FIXME: insert proper C++ library support
11283 case $cc_basename in
11285 # FIXME: insert proper C++ library support
11289 # FIXME: insert proper C++ library support
11294 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11295 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11296 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11298 hardcode_libdir_flag_spec_CXX='-R$libdir'
11299 hardcode_direct_CXX=yes
11300 hardcode_shlibpath_var_CXX=no
11302 # Workaround some broken pre-1.5 toolchains
11303 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11306 # C++ shared libraries are fairly broken
11310 hardcode_direct_CXX=yes
11311 hardcode_shlibpath_var_CXX=no
11312 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11313 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11314 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11315 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11316 export_dynamic_flag_spec_CXX='${wl}-E'
11317 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11319 output_verbose_link_cmd='echo'
11322 case $cc_basename in
11324 # Kuck and Associates, Inc. (KAI) C++ Compiler
11326 # KCC will only create a shared library if the output file
11327 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11328 # to its proper name (with version) after linking.
11329 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'
11331 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11332 hardcode_libdir_separator_CXX=:
11334 # Archives containing C++ object files must be created using
11335 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11336 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11340 # Rational C++ 2.4.1
11341 # FIXME: insert proper C++ library support
11345 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11346 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'
11348 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11349 hardcode_libdir_separator_CXX=:
11351 # Commands to make compiler produce verbose output that lists
11352 # what "hidden" libraries, object files and flags are used when
11353 # linking a shared library.
11355 # There doesn't appear to be a way to prevent this compiler from
11356 # explicitly linking system object files so we need to strip them
11357 # from the output so that they don't get included in the library
11359 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'
11362 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11363 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11364 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'
11366 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11367 hardcode_libdir_separator_CXX=:
11369 # Commands to make compiler produce verbose output that lists
11370 # what "hidden" libraries, object files and flags are used when
11371 # linking a shared library.
11372 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11375 # FIXME: insert proper C++ library support
11382 case $cc_basename in
11384 # Kuck and Associates, Inc. (KAI) C++ Compiler
11386 # KCC will only create a shared library if the output file
11387 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11388 # to its proper name (with version) after linking.
11389 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'
11391 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11392 hardcode_libdir_separator_CXX=:
11394 # Archives containing C++ object files must be created using
11395 # the KAI C++ compiler.
11396 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11399 # Rational C++ 2.4.1
11400 # FIXME: insert proper C++ library support
11404 allow_undefined_flag_CXX=' -expect_unresolved \*'
11405 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'
11406 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11407 echo "-hidden">> $lib.exp~
11408 $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~
11411 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11412 hardcode_libdir_separator_CXX=:
11414 # Commands to make compiler produce verbose output that lists
11415 # what "hidden" libraries, object files and flags are used when
11416 # linking a shared library.
11418 # There doesn't appear to be a way to prevent this compiler from
11419 # explicitly linking system object files so we need to strip them
11420 # from the output so that they don't get included in the library
11422 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'
11425 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11426 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11427 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'
11429 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11430 hardcode_libdir_separator_CXX=:
11432 # Commands to make compiler produce verbose output that lists
11433 # what "hidden" libraries, object files and flags are used when
11434 # linking a shared library.
11435 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11438 # FIXME: insert proper C++ library support
11445 # FIXME: insert proper C++ library support
11449 archive_cmds_need_lc_CXX=no
11450 case $cc_basename in
11452 # FIXME: insert proper C++ library support
11456 # FIXME: insert proper C++ library support
11462 case $cc_basename in
11465 # FIXME: insert proper C++ library support
11470 # FIXME: insert proper C++ library support
11474 # FIXME: insert proper C++ library support
11480 case $cc_basename in
11482 # Sun C++ 4.2, 5.x and Centerline C++
11483 archive_cmds_need_lc_CXX=yes
11484 no_undefined_flag_CXX=' -zdefs'
11485 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11486 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11487 $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'
11489 hardcode_libdir_flag_spec_CXX='-R$libdir'
11490 hardcode_shlibpath_var_CXX=no
11492 solaris2.[0-5] | solaris2.[0-5].*) ;;
11494 # The C++ compiler is used as linker so we must use $wl
11495 # flag to pass the commands to the underlying system
11496 # linker. We must also pass each convience library through
11497 # to the system linker between allextract/defaultextract.
11498 # The C++ compiler will combine linker options so we
11499 # cannot just pass the convience library names through
11501 # Supported since Solaris 2.6 (maybe 2.5.1?)
11502 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11505 link_all_deplibs_CXX=yes
11507 output_verbose_link_cmd='echo'
11509 # Archives containing C++ object files must be created using
11510 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11511 # necessary to make sure instantiated templates are included
11513 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11516 # Green Hills C++ Compiler
11517 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11519 # The C++ compiler must be used to create the archive.
11520 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11523 # GNU C++ compiler with Solaris linker
11524 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11525 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11526 if $CC --version | grep -v '^2\.7' > /dev/null; then
11527 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11528 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11529 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11531 # Commands to make compiler produce verbose output that lists
11532 # what "hidden" libraries, object files and flags are used when
11533 # linking a shared library.
11534 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11536 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11538 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11539 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11540 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11542 # Commands to make compiler produce verbose output that lists
11543 # what "hidden" libraries, object files and flags are used when
11544 # linking a shared library.
11545 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11548 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11553 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11554 archive_cmds_need_lc_CXX=no
11557 case $cc_basename in
11559 # NonStop-UX NCC 3.20
11560 # FIXME: insert proper C++ library support
11564 # FIXME: insert proper C++ library support
11570 # FIXME: insert proper C++ library support
11574 # FIXME: insert proper C++ library support
11578 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11579 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11580 test "$ld_shlibs_CXX" = no && can_build_shared=no
11586 ## There is no encapsulation within the following macros, do not change
11587 ## the running order or otherwise move them around unless you know exactly
11588 ## what you are doing...
11590 cat > conftest.$ac_ext <<EOF
11594 Foo (void) { a = 0; }
11600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11601 (eval $ac_compile) 2>&5
11603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604 (exit $ac_status); }; then
11605 # Parse the compiler output and extract the necessary
11606 # objects, libraries and library flags.
11608 # Sentinel used to keep track of whether or not we are before
11609 # the conftest object file.
11610 pre_test_object_deps_done=no
11612 # The `*' in the case matches for architectures that use `case' in
11613 # $output_verbose_cmd can trigger glob expansion during the loop
11614 # eval without this substitution.
11615 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11617 for p in `eval $output_verbose_link_cmd`; do
11621 # Some compilers place space between "-{L,R}" and the path.
11622 # Remove the space.
11623 if test $p = "-L" \
11624 || test $p = "-R"; then
11631 if test "$pre_test_object_deps_done" = no; then
11634 # Internal compiler library paths should come after those
11635 # provided the user. The postdeps already come after the
11636 # user supplied libs so there is no need to process them.
11637 if test -z "$compiler_lib_search_path_CXX"; then
11638 compiler_lib_search_path_CXX="${prev}${p}"
11640 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11643 # The "-l" case would never come before the object being
11644 # linked, so don't bother handling this case.
11647 if test -z "$postdeps_CXX"; then
11648 postdeps_CXX="${prev}${p}"
11650 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11656 # This assumes that the test object file only shows up
11657 # once in the compiler output.
11658 if test "$p" = "conftest.$objext"; then
11659 pre_test_object_deps_done=yes
11663 if test "$pre_test_object_deps_done" = no; then
11664 if test -z "$predep_objects_CXX"; then
11665 predep_objects_CXX="$p"
11667 predep_objects_CXX="$predep_objects_CXX $p"
11670 if test -z "$postdep_objects_CXX"; then
11671 postdep_objects_CXX="$p"
11673 postdep_objects_CXX="$postdep_objects_CXX $p"
11678 *) ;; # Ignore the rest.
11686 echo "libtool.m4: error: problem compiling CXX test program"
11689 $rm -f confest.$objext
11691 # PORTME: override above test on systems where it is broken
11694 case $cc_basename in
11696 # Adding this requires a known-good setup of shared libraries for
11697 # Sun compiler versions before 5.6, else PIC objects from an old
11698 # archive will be linked into the output, leading to subtle bugs.
11699 postdeps_CXX='-lCstd -lCrun'
11705 case " $postdeps_CXX " in
11706 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11709 lt_prog_compiler_wl_CXX=
11710 lt_prog_compiler_pic_CXX=
11711 lt_prog_compiler_static_CXX=
11713 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11714 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11716 # C++ specific cases for pic, static, wl, etc.
11717 if test "$GXX" = yes; then
11718 lt_prog_compiler_wl_CXX='-Wl,'
11719 lt_prog_compiler_static_CXX='-static'
11723 # All AIX code is PIC.
11724 if test "$host_cpu" = ia64; then
11725 # AIX 5 now supports IA64 processor
11726 lt_prog_compiler_static_CXX='-Bstatic'
11730 # FIXME: we need at least 68020 code to build shared libraries, but
11731 # adding the `-m68020' flag to GCC prevents building anything better,
11733 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11735 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11736 # PIC is the default for these OSes.
11738 mingw* | os2* | pw32*)
11739 # This hack is so that the source file can tell whether it is being
11740 # built for inclusion in a dll (and should export symbols for example).
11741 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11743 darwin* | rhapsody*)
11744 # PIC is the default on this platform
11745 # Common symbols not allowed in MH_DYLIB files
11746 lt_prog_compiler_pic_CXX='-fno-common'
11749 # DJGPP does not support shared libraries at all
11750 lt_prog_compiler_pic_CXX=
11753 if test -d /usr/nec; then
11754 lt_prog_compiler_pic_CXX=-Kconform_pic
11758 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11759 # not for PA HP-UX.
11764 lt_prog_compiler_pic_CXX='-fPIC'
11769 lt_prog_compiler_pic_CXX='-fPIC'
11775 # All AIX code is PIC.
11776 if test "$host_cpu" = ia64; then
11777 # AIX 5 now supports IA64 processor
11778 lt_prog_compiler_static_CXX='-Bstatic'
11780 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11784 case $cc_basename in
11786 # Green Hills C++ Compiler
11787 # _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"
11792 # PIC is the default on this platform
11793 # Common symbols not allowed in MH_DYLIB files
11794 case $cc_basename in
11796 lt_prog_compiler_pic_CXX='-qnocommon'
11797 lt_prog_compiler_wl_CXX='-Wl,'
11802 case $cc_basename in
11804 lt_prog_compiler_pic_CXX='-KPIC'
11807 # Green Hills C++ Compiler
11808 lt_prog_compiler_pic_CXX='-pic'
11814 freebsd* | kfreebsd*-gnu | dragonfly*)
11815 # FreeBSD uses GNU C++
11817 hpux9* | hpux10* | hpux11*)
11818 case $cc_basename in
11820 lt_prog_compiler_wl_CXX='-Wl,'
11821 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11822 if test "$host_cpu" != ia64; then
11823 lt_prog_compiler_pic_CXX='+Z'
11827 lt_prog_compiler_wl_CXX='-Wl,'
11828 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11834 lt_prog_compiler_pic_CXX='+Z'
11842 irix5* | irix6* | nonstopux*)
11843 case $cc_basename in
11845 lt_prog_compiler_wl_CXX='-Wl,'
11846 lt_prog_compiler_static_CXX='-non_shared'
11847 # CC pic flag -KPIC is the default.
11854 case $cc_basename in
11857 lt_prog_compiler_wl_CXX='--backend -Wl,'
11858 lt_prog_compiler_pic_CXX='-fPIC'
11862 lt_prog_compiler_wl_CXX='-Wl,'
11863 lt_prog_compiler_pic_CXX='-KPIC'
11864 lt_prog_compiler_static_CXX='-static'
11867 # Portland Group C++ compiler.
11868 lt_prog_compiler_wl_CXX='-Wl,'
11869 lt_prog_compiler_pic_CXX='-fpic'
11870 lt_prog_compiler_static_CXX='-Bstatic'
11874 # Make sure the PIC flag is empty. It appears that all Alpha
11875 # Linux and Compaq Tru64 Unix objects are PIC.
11876 lt_prog_compiler_pic_CXX=
11877 lt_prog_compiler_static_CXX='-non_shared'
11888 case $cc_basename in
11890 lt_prog_compiler_pic_CXX='-W c,exportall'
11896 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11898 osf3* | osf4* | osf5*)
11899 case $cc_basename in
11901 lt_prog_compiler_wl_CXX='--backend -Wl,'
11904 # Rational C++ 2.4.1
11905 lt_prog_compiler_pic_CXX='-pic'
11908 # Digital/Compaq C++
11909 lt_prog_compiler_wl_CXX='-Wl,'
11910 # Make sure the PIC flag is empty. It appears that all Alpha
11911 # Linux and Compaq Tru64 Unix objects are PIC.
11912 lt_prog_compiler_pic_CXX=
11913 lt_prog_compiler_static_CXX='-non_shared'
11922 case $cc_basename in
11924 lt_prog_compiler_pic_CXX='-fPIC'
11931 case $cc_basename in
11933 # Sun C++ 4.2, 5.x and Centerline C++
11934 lt_prog_compiler_pic_CXX='-KPIC'
11935 lt_prog_compiler_static_CXX='-Bstatic'
11936 lt_prog_compiler_wl_CXX='-Qoption ld '
11939 # Green Hills C++ Compiler
11940 lt_prog_compiler_pic_CXX='-PIC'
11947 case $cc_basename in
11950 lt_prog_compiler_pic_CXX='-pic'
11951 lt_prog_compiler_static_CXX='-Bstatic'
11955 lt_prog_compiler_pic_CXX='-pic'
11962 case $cc_basename in
11964 # NonStop-UX NCC 3.20
11965 lt_prog_compiler_pic_CXX='-KPIC'
11976 lt_prog_compiler_can_build_shared_CXX=no
11981 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11982 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
11985 # Check to make sure the PIC flag actually works.
11987 if test -n "$lt_prog_compiler_pic_CXX"; then
11989 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11990 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
11991 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11992 echo $ECHO_N "(cached) $ECHO_C" >&6
11994 lt_prog_compiler_pic_works_CXX=no
11995 ac_outfile=conftest.$ac_objext
11996 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11997 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11998 # Insert the option either (1) after the last *FLAGS variable, or
11999 # (2) before a word containing "conftest.", or (3) at the end.
12000 # Note that $ac_compile itself does not contain backslashes and begins
12001 # with a dollar sign (not a hyphen), so the echo should work correctly.
12002 # The option is referenced via a variable to avoid confusing sed.
12003 lt_compile=`echo "$ac_compile" | $SED \
12004 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12005 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12006 -e 's:$: $lt_compiler_flag:'`
12007 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
12008 (eval "$lt_compile" 2>conftest.err)
12010 cat conftest.err >&5
12011 echo "$as_me:__oline__: \$? = $ac_status" >&5
12012 if (exit $ac_status) && test -s "$ac_outfile"; then
12013 # The compiler can only warn and ignore the option if not recognized
12014 # So say no if there are warnings other than the usual output.
12015 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
12016 $SED '/^$/d' conftest.err >conftest.er2
12017 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
12018 lt_prog_compiler_pic_works_CXX=yes
12024 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12025 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12027 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12028 case $lt_prog_compiler_pic_CXX in
12030 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12033 lt_prog_compiler_pic_CXX=
12034 lt_prog_compiler_can_build_shared_CXX=no
12039 # For platforms which do not support PIC, -DPIC is meaningless:
12041 lt_prog_compiler_pic_CXX=
12044 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12048 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12049 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12050 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12051 echo $ECHO_N "(cached) $ECHO_C" >&6
12053 lt_cv_prog_compiler_c_o_CXX=no
12054 $rm -r conftest 2>/dev/null
12058 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12060 lt_compiler_flag="-o out/conftest2.$ac_objext"
12061 # Insert the option either (1) after the last *FLAGS variable, or
12062 # (2) before a word containing "conftest.", or (3) at the end.
12063 # Note that $ac_compile itself does not contain backslashes and begins
12064 # with a dollar sign (not a hyphen), so the echo should work correctly.
12065 lt_compile=`echo "$ac_compile" | $SED \
12066 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12067 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12068 -e 's:$: $lt_compiler_flag:'`
12069 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
12070 (eval "$lt_compile" 2>out/conftest.err)
12072 cat out/conftest.err >&5
12073 echo "$as_me:__oline__: \$? = $ac_status" >&5
12074 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12076 # The compiler can only warn and ignore the option if not recognized
12077 # So say no if there are warnings
12078 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
12079 $SED '/^$/d' out/conftest.err >out/conftest.er2
12080 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12081 lt_cv_prog_compiler_c_o_CXX=yes
12086 # SGI C++ compiler will create directory out/ii_files/ for
12087 # template instantiation
12088 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12089 $rm out/* && rmdir out
12095 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12096 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12099 hard_links="nottested"
12100 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12101 # do not overwrite the value of need_locks provided by the user
12102 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12103 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12106 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12108 ln conftest.a conftest.b 2>&5 || hard_links=no
12109 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12110 { echo "$as_me:$LINENO: result: $hard_links" >&5
12111 echo "${ECHO_T}$hard_links" >&6; }
12112 if test "$hard_links" = no; then
12113 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12114 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12121 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12122 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12124 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12127 # If we're using GNU nm, then we don't want the "-C" option.
12128 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12129 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12130 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'
12132 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'
12136 export_symbols_cmds_CXX="$ltdll_cmds"
12139 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'
12142 link_all_deplibs_CXX=no
12145 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12149 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12150 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12151 test "$ld_shlibs_CXX" = no && can_build_shared=no
12153 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12154 if test "$GCC" = yes; then
12155 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12159 # Do we need to explicitly link libc?
12161 case "x$archive_cmds_need_lc_CXX" in
12163 # Assume -lc should be added
12164 archive_cmds_need_lc_CXX=yes
12166 if test "$enable_shared" = yes && test "$GCC" = yes; then
12167 case $archive_cmds_CXX in
12169 # FIXME: we may have to deal with multi-command sequences.
12172 # Test whether the compiler implicitly links with -lc since on some
12173 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12174 # to ld, don't add -lc before -lgcc.
12175 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12176 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12178 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12181 (eval $ac_compile) 2>&5
12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 (exit $ac_status); } 2>conftest.err; then
12187 libobjs=conftest.$ac_objext
12189 wl=$lt_prog_compiler_wl_CXX
12195 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12196 allow_undefined_flag_CXX=
12197 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12198 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201 (exit $ac_status); }
12203 archive_cmds_need_lc_CXX=no
12205 archive_cmds_need_lc_CXX=yes
12207 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12209 cat conftest.err 1>&5
12212 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12213 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12220 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12221 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12222 library_names_spec=
12223 libname_spec='lib$name'
12227 postuninstall_cmds=
12231 shlibpath_overrides_runpath=unknown
12233 dynamic_linker="$host_os ld.so"
12234 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12235 if test "$GCC" = yes; then
12236 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12237 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12238 # if the path contains ";" then we assume it to be the separator
12239 # otherwise default to the standard path separator (i.e. ":") - it is
12240 # assumed that no part of a normal pathname contains ";" but that should
12241 # okay in the real world where ";" in dirpaths is itself problematic.
12242 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12244 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12247 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12249 need_lib_prefix=unknown
12250 hardcode_into_libs=no
12252 # when you set need_version to no, make sure it does not cause -set_version
12253 # flags to be left without arguments
12254 need_version=unknown
12259 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12260 shlibpath_var=LIBPATH
12262 # AIX 3 has no versioning support, so we append a major version to the name.
12263 soname_spec='${libname}${release}${shared_ext}$major'
12270 hardcode_into_libs=yes
12271 if test "$host_cpu" = ia64; then
12272 # AIX 5 supports IA64
12273 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12274 shlibpath_var=LD_LIBRARY_PATH
12276 # With GCC up to 2.95.x, collect2 would create an import file
12277 # for dependence libraries. The import file would start with
12278 # the line `#! .'. This would cause the generated library to
12279 # depend on `.', always an invalid library. This was fixed in
12280 # development snapshots of GCC prior to 3.0.
12282 aix4 | aix4.[01] | aix4.[01].*)
12283 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12285 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12288 can_build_shared=no
12292 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12293 # soname into executable. Probably we can add versioning support to
12294 # collect2, so additional links can be useful in future.
12295 if test "$aix_use_runtimelinking" = yes; then
12296 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12297 # instead of lib<name>.a to let people know that these are not
12298 # typical AIX shared libraries.
12299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12301 # We preserve .a as extension for shared libraries through AIX4.2
12302 # and later when we are not doing run time linking.
12303 library_names_spec='${libname}${release}.a $libname.a'
12304 soname_spec='${libname}${release}${shared_ext}$major'
12306 shlibpath_var=LIBPATH
12311 library_names_spec='$libname.ixlibrary $libname.a'
12312 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12313 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'
12317 library_names_spec='${libname}${shared_ext}'
12318 dynamic_linker="$host_os ld.so"
12319 shlibpath_var=LIBRARY_PATH
12325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12326 soname_spec='${libname}${release}${shared_ext}$major'
12327 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12328 shlibpath_var=LD_LIBRARY_PATH
12329 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12330 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12331 # the default ld.so.conf also contains /usr/contrib/lib and
12332 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12333 # libtool to hard-code these into programs
12336 cygwin* | mingw* | pw32*)
12337 version_type=windows
12342 case $GCC,$host_os in
12343 yes,cygwin* | yes,mingw* | yes,pw32*)
12344 library_names_spec='$libname.dll.a'
12345 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12346 postinstall_cmds='base_file=`basename \${file}`~
12347 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12348 dldir=$destdir/`dirname \$dlpath`~
12349 test -d \$dldir || mkdir -p \$dldir~
12350 $install_prog $dir/$dlname \$dldir/$dlname~
12351 chmod a+x \$dldir/$dlname'
12352 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12353 dlpath=$dir/\$dldll~
12355 shlibpath_overrides_runpath=yes
12359 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12360 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12361 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12364 # MinGW DLLs use traditional 'lib' prefix
12365 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12366 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12367 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12368 # It is most probably a Windows format PATH printed by
12369 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12370 # path with ; separators, and with drive letters. We can handle the
12371 # drive letters (cygwin fileutils understands them), so leave them,
12372 # especially as we might pass files found there to a mingw objdump,
12373 # which wouldn't understand a cygwinified path. Ahh.
12374 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12376 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12380 # pw32 DLLs use 'pw' prefix rather than 'lib'
12381 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12387 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12390 dynamic_linker='Win32 ld.exe'
12391 # FIXME: first we should search . and the directory the executable is in
12395 darwin* | rhapsody*)
12396 dynamic_linker="$host_os dyld"
12397 version_type=darwin
12400 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12401 soname_spec='${libname}${release}${major}$shared_ext'
12402 shlibpath_overrides_runpath=yes
12403 shlibpath_var=DYLD_LIBRARY_PATH
12404 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12405 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12406 if test "$GCC" = yes; then
12407 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12409 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12411 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12419 soname_spec='${libname}${release}${shared_ext}$major'
12420 shlibpath_var=LD_LIBRARY_PATH
12431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12432 soname_spec='${libname}${release}${shared_ext}$major'
12433 shlibpath_var=LD_LIBRARY_PATH
12434 shlibpath_overrides_runpath=no
12435 hardcode_into_libs=yes
12436 dynamic_linker='GNU ld.so'
12439 freebsd* | dragonfly*)
12440 # DragonFly does not have aout. When/if they implement a new
12441 # versioning mechanism, adjust this.
12442 if test -x /usr/bin/objformat; then
12443 objformat=`/usr/bin/objformat`
12446 freebsd[123]*) objformat=aout ;;
12447 *) objformat=elf ;;
12450 version_type=freebsd-$objformat
12451 case $version_type in
12453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12458 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12462 shlibpath_var=LD_LIBRARY_PATH
12465 shlibpath_overrides_runpath=yes
12467 freebsd3.[01]* | freebsdelf3.[01]*)
12468 shlibpath_overrides_runpath=yes
12469 hardcode_into_libs=yes
12472 shlibpath_overrides_runpath=no
12473 hardcode_into_libs=yes
12482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12483 soname_spec='${libname}${release}${shared_ext}$major'
12484 shlibpath_var=LD_LIBRARY_PATH
12485 hardcode_into_libs=yes
12488 hpux9* | hpux10* | hpux11*)
12489 # Give a soname corresponding to the major version so that dld.sl refuses to
12490 # link against other versions.
12497 hardcode_into_libs=yes
12498 dynamic_linker="$host_os dld.so"
12499 shlibpath_var=LD_LIBRARY_PATH
12500 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12502 soname_spec='${libname}${release}${shared_ext}$major'
12503 if test "X$HPUX_IA64_MODE" = X32; then
12504 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12506 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12508 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12512 hardcode_into_libs=yes
12513 dynamic_linker="$host_os dld.sl"
12514 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12515 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12517 soname_spec='${libname}${release}${shared_ext}$major'
12518 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12519 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12523 dynamic_linker="$host_os dld.sl"
12524 shlibpath_var=SHLIB_PATH
12525 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12527 soname_spec='${libname}${release}${shared_ext}$major'
12530 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12531 postinstall_cmds='chmod 555 $lib'
12534 irix5* | irix6* | nonstopux*)
12536 nonstopux*) version_type=nonstopux ;;
12538 if test "$lt_cv_prog_gnu_ld" = yes; then
12546 soname_spec='${libname}${release}${shared_ext}$major'
12547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12549 irix5* | nonstopux*)
12550 libsuff= shlibsuff=
12553 case $LD in # libtool.m4 will add one of these switches to LD
12554 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12555 libsuff= shlibsuff= libmagic=32-bit;;
12556 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12557 libsuff=32 shlibsuff=N32 libmagic=N32;;
12558 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12559 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12560 *) libsuff= shlibsuff= libmagic=never-match;;
12564 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12565 shlibpath_overrides_runpath=no
12566 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12567 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12568 hardcode_into_libs=yes
12571 # No shared lib support for Linux oldld, aout, or coff.
12572 linux*oldld* | linux*aout* | linux*coff*)
12576 # This must be Linux ELF.
12581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12582 soname_spec='${libname}${release}${shared_ext}$major'
12583 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12584 shlibpath_var=LD_LIBRARY_PATH
12585 shlibpath_overrides_runpath=no
12586 # This implies no fast_install, which is unacceptable.
12587 # Some rework will be needed to allow for fast_install
12588 # before this can be enabled.
12589 hardcode_into_libs=yes
12591 # Append ld.so.conf contents to the search path
12592 if test -f /etc/ld.so.conf; then
12593 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12594 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12597 # We used to test for /lib/ld.so.1 and disable shared libraries on
12598 # powerpc, because MkLinux only supported shared libraries with the
12599 # GNU dynamic linker. Since this was broken with cross compilers,
12600 # most powerpc-linux boxes support dynamic linking these days and
12601 # people can always --disable-shared, the test was removed, and we
12602 # assume the GNU/Linux dynamic linker is in use.
12603 dynamic_linker='GNU/Linux ld.so'
12610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12611 soname_spec='${libname}${release}${shared_ext}$major'
12612 shlibpath_var=LD_LIBRARY_PATH
12613 shlibpath_overrides_runpath=no
12614 hardcode_into_libs=yes
12615 dynamic_linker='NetBSD ld.elf_so'
12622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12623 soname_spec='${libname}${release}${shared_ext}$major'
12624 shlibpath_var=LD_LIBRARY_PATH
12625 shlibpath_overrides_runpath=no
12626 hardcode_into_libs=yes
12627 dynamic_linker='GNU ld.so'
12634 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12636 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12637 dynamic_linker='NetBSD (a.out) ld.so'
12639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12640 soname_spec='${libname}${release}${shared_ext}$major'
12641 dynamic_linker='NetBSD ld.elf_so'
12643 shlibpath_var=LD_LIBRARY_PATH
12644 shlibpath_overrides_runpath=yes
12645 hardcode_into_libs=yes
12650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12651 shlibpath_var=LD_LIBRARY_PATH
12652 shlibpath_overrides_runpath=yes
12659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12660 soname_spec='${libname}${release}${shared_ext}$major'
12661 shlibpath_var=LD_LIBRARY_PATH
12662 shlibpath_overrides_runpath=yes
12668 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12670 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12671 *) need_version=no ;;
12673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12674 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12675 shlibpath_var=LD_LIBRARY_PATH
12676 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12678 openbsd2.[89] | openbsd2.[89].*)
12679 shlibpath_overrides_runpath=no
12682 shlibpath_overrides_runpath=yes
12686 shlibpath_overrides_runpath=yes
12691 libname_spec='$name'
12694 library_names_spec='$libname${shared_ext} $libname.a'
12695 dynamic_linker='OS/2 ld.exe'
12696 shlibpath_var=LIBPATH
12699 osf3* | osf4* | osf5*)
12703 soname_spec='${libname}${release}${shared_ext}$major'
12704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12705 shlibpath_var=LD_LIBRARY_PATH
12706 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12707 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12712 soname_spec='${libname}${release}${shared_ext}$major'
12713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12714 shlibpath_var=LD_LIBRARY_PATH
12721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12722 soname_spec='${libname}${release}${shared_ext}$major'
12723 shlibpath_var=LD_LIBRARY_PATH
12724 shlibpath_overrides_runpath=yes
12725 hardcode_into_libs=yes
12726 # ldd complains unless libraries are executable
12727 postinstall_cmds='chmod +x $lib'
12732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12733 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12734 shlibpath_var=LD_LIBRARY_PATH
12735 shlibpath_overrides_runpath=yes
12736 if test "$with_gnu_ld" = yes; then
12742 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12745 soname_spec='${libname}${release}${shared_ext}$major'
12746 shlibpath_var=LD_LIBRARY_PATH
12747 case $host_vendor in
12749 shlibpath_overrides_runpath=no
12751 export_dynamic_flag_spec='${wl}-Blargedynsym'
12752 runpath_var=LD_RUN_PATH
12760 shlibpath_overrides_runpath=no
12761 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12767 if test -d /usr/nec ;then
12769 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12770 soname_spec='$libname${shared_ext}.$major'
12771 shlibpath_var=LD_LIBRARY_PATH
12777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12778 soname_spec='${libname}${release}${shared_ext}$major'
12779 shlibpath_var=LD_LIBRARY_PATH
12786 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12787 echo "${ECHO_T}$dynamic_linker" >&6; }
12788 test "$dynamic_linker" = no && can_build_shared=no
12790 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12791 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12792 hardcode_action_CXX=
12793 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12794 test -n "$runpath_var_CXX" || \
12795 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12797 # We can hardcode non-existant directories.
12798 if test "$hardcode_direct_CXX" != no &&
12799 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12800 # have to relink, otherwise we might link with an installed library
12801 # when we should be linking with a yet-to-be-installed one
12802 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12803 test "$hardcode_minus_L_CXX" != no; then
12804 # Linking always hardcodes the temporary library directory.
12805 hardcode_action_CXX=relink
12807 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12808 hardcode_action_CXX=immediate
12811 # We cannot hardcode anything, or else we can only hardcode existing
12813 hardcode_action_CXX=unsupported
12815 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12816 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
12818 if test "$hardcode_action_CXX" = relink; then
12819 # Fast installation is not supported
12820 enable_fast_install=no
12821 elif test "$shlibpath_overrides_runpath" = yes ||
12822 test "$enable_shared" = no; then
12823 # Fast installation is not necessary
12824 enable_fast_install=needless
12829 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12830 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12831 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12832 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12833 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12834 { echo "$as_me:$LINENO: result: yes" >&5
12835 echo "${ECHO_T}yes" >&6; }
12837 # FIXME - insert some real tests, host_os isn't really good enough
12840 if test -n "$STRIP" ; then
12841 striplib="$STRIP -x"
12842 { echo "$as_me:$LINENO: result: yes" >&5
12843 echo "${ECHO_T}yes" >&6; }
12845 { echo "$as_me:$LINENO: result: no" >&5
12846 echo "${ECHO_T}no" >&6; }
12850 { echo "$as_me:$LINENO: result: no" >&5
12851 echo "${ECHO_T}no" >&6; }
12856 if test "x$enable_dlopen" != xyes; then
12857 enable_dlopen=unknown
12858 enable_dlopen_self=unknown
12859 enable_dlopen_self_static=unknown
12866 lt_cv_dlopen="load_add_on"
12868 lt_cv_dlopen_self=yes
12872 lt_cv_dlopen="LoadLibrary"
12877 lt_cv_dlopen="dlopen"
12882 # if libdl is installed we need to link against it
12883 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12884 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12885 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12886 echo $ECHO_N "(cached) $ECHO_C" >&6
12888 ac_check_lib_save_LIBS=$LIBS
12890 cat >conftest.$ac_ext <<_ACEOF
12893 cat confdefs.h >>conftest.$ac_ext
12894 cat >>conftest.$ac_ext <<_ACEOF
12895 /* end confdefs.h. */
12897 /* Override any GCC internal prototype to avoid an error.
12898 Use char because int might match the return type of a GCC
12899 builtin and then its argument prototype would still apply. */
12912 rm -f conftest.$ac_objext conftest$ac_exeext
12913 if { (ac_try="$ac_link"
12914 case "(($ac_try" in
12915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12916 *) ac_try_echo=$ac_try;;
12918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12919 (eval "$ac_link") 2>conftest.er1
12921 grep -v '^ *+' conftest.er1 >conftest.err
12923 cat conftest.err >&5
12924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925 (exit $ac_status); } && {
12926 test -z "$ac_cxx_werror_flag" ||
12927 test ! -s conftest.err
12928 } && test -s conftest$ac_exeext &&
12929 $as_test_x conftest$ac_exeext; then
12930 ac_cv_lib_dl_dlopen=yes
12932 echo "$as_me: failed program was:" >&5
12933 sed 's/^/| /' conftest.$ac_ext >&5
12935 ac_cv_lib_dl_dlopen=no
12938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12939 conftest$ac_exeext conftest.$ac_ext
12940 LIBS=$ac_check_lib_save_LIBS
12942 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12943 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12944 if test $ac_cv_lib_dl_dlopen = yes; then
12945 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12948 lt_cv_dlopen="dyld"
12950 lt_cv_dlopen_self=yes
12957 { echo "$as_me:$LINENO: checking for shl_load" >&5
12958 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12959 if test "${ac_cv_func_shl_load+set}" = set; then
12960 echo $ECHO_N "(cached) $ECHO_C" >&6
12962 cat >conftest.$ac_ext <<_ACEOF
12965 cat confdefs.h >>conftest.$ac_ext
12966 cat >>conftest.$ac_ext <<_ACEOF
12967 /* end confdefs.h. */
12968 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12970 #define shl_load innocuous_shl_load
12972 /* System header to define __stub macros and hopefully few prototypes,
12973 which can conflict with char shl_load (); below.
12974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12975 <limits.h> exists even on freestanding compilers. */
12978 # include <limits.h>
12980 # include <assert.h>
12985 /* Override any GCC internal prototype to avoid an error.
12986 Use char because int might match the return type of a GCC
12987 builtin and then its argument prototype would still apply. */
12992 /* The GNU C library defines this for functions which it implements
12993 to always fail with ENOSYS. Some functions are actually named
12994 something starting with __ and the normal name is an alias. */
12995 #if defined __stub_shl_load || defined __stub___shl_load
13002 return shl_load ();
13007 rm -f conftest.$ac_objext conftest$ac_exeext
13008 if { (ac_try="$ac_link"
13009 case "(($ac_try" in
13010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13011 *) ac_try_echo=$ac_try;;
13013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13014 (eval "$ac_link") 2>conftest.er1
13016 grep -v '^ *+' conftest.er1 >conftest.err
13018 cat conftest.err >&5
13019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020 (exit $ac_status); } && {
13021 test -z "$ac_cxx_werror_flag" ||
13022 test ! -s conftest.err
13023 } && test -s conftest$ac_exeext &&
13024 $as_test_x conftest$ac_exeext; then
13025 ac_cv_func_shl_load=yes
13027 echo "$as_me: failed program was:" >&5
13028 sed 's/^/| /' conftest.$ac_ext >&5
13030 ac_cv_func_shl_load=no
13033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13034 conftest$ac_exeext conftest.$ac_ext
13036 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13037 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
13038 if test $ac_cv_func_shl_load = yes; then
13039 lt_cv_dlopen="shl_load"
13041 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13042 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
13043 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13044 echo $ECHO_N "(cached) $ECHO_C" >&6
13046 ac_check_lib_save_LIBS=$LIBS
13048 cat >conftest.$ac_ext <<_ACEOF
13051 cat confdefs.h >>conftest.$ac_ext
13052 cat >>conftest.$ac_ext <<_ACEOF
13053 /* end confdefs.h. */
13055 /* Override any GCC internal prototype to avoid an error.
13056 Use char because int might match the return type of a GCC
13057 builtin and then its argument prototype would still apply. */
13065 return shl_load ();
13070 rm -f conftest.$ac_objext conftest$ac_exeext
13071 if { (ac_try="$ac_link"
13072 case "(($ac_try" in
13073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13074 *) ac_try_echo=$ac_try;;
13076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13077 (eval "$ac_link") 2>conftest.er1
13079 grep -v '^ *+' conftest.er1 >conftest.err
13081 cat conftest.err >&5
13082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083 (exit $ac_status); } && {
13084 test -z "$ac_cxx_werror_flag" ||
13085 test ! -s conftest.err
13086 } && test -s conftest$ac_exeext &&
13087 $as_test_x conftest$ac_exeext; then
13088 ac_cv_lib_dld_shl_load=yes
13090 echo "$as_me: failed program was:" >&5
13091 sed 's/^/| /' conftest.$ac_ext >&5
13093 ac_cv_lib_dld_shl_load=no
13096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13097 conftest$ac_exeext conftest.$ac_ext
13098 LIBS=$ac_check_lib_save_LIBS
13100 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13101 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
13102 if test $ac_cv_lib_dld_shl_load = yes; then
13103 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13105 { echo "$as_me:$LINENO: checking for dlopen" >&5
13106 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
13107 if test "${ac_cv_func_dlopen+set}" = set; then
13108 echo $ECHO_N "(cached) $ECHO_C" >&6
13110 cat >conftest.$ac_ext <<_ACEOF
13113 cat confdefs.h >>conftest.$ac_ext
13114 cat >>conftest.$ac_ext <<_ACEOF
13115 /* end confdefs.h. */
13116 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13117 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13118 #define dlopen innocuous_dlopen
13120 /* System header to define __stub macros and hopefully few prototypes,
13121 which can conflict with char dlopen (); below.
13122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13123 <limits.h> exists even on freestanding compilers. */
13126 # include <limits.h>
13128 # include <assert.h>
13133 /* Override any GCC internal prototype to avoid an error.
13134 Use char because int might match the return type of a GCC
13135 builtin and then its argument prototype would still apply. */
13140 /* The GNU C library defines this for functions which it implements
13141 to always fail with ENOSYS. Some functions are actually named
13142 something starting with __ and the normal name is an alias. */
13143 #if defined __stub_dlopen || defined __stub___dlopen
13155 rm -f conftest.$ac_objext conftest$ac_exeext
13156 if { (ac_try="$ac_link"
13157 case "(($ac_try" in
13158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13159 *) ac_try_echo=$ac_try;;
13161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13162 (eval "$ac_link") 2>conftest.er1
13164 grep -v '^ *+' conftest.er1 >conftest.err
13166 cat conftest.err >&5
13167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13168 (exit $ac_status); } && {
13169 test -z "$ac_cxx_werror_flag" ||
13170 test ! -s conftest.err
13171 } && test -s conftest$ac_exeext &&
13172 $as_test_x conftest$ac_exeext; then
13173 ac_cv_func_dlopen=yes
13175 echo "$as_me: failed program was:" >&5
13176 sed 's/^/| /' conftest.$ac_ext >&5
13178 ac_cv_func_dlopen=no
13181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13182 conftest$ac_exeext conftest.$ac_ext
13184 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13185 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
13186 if test $ac_cv_func_dlopen = yes; then
13187 lt_cv_dlopen="dlopen"
13189 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13190 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13191 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13192 echo $ECHO_N "(cached) $ECHO_C" >&6
13194 ac_check_lib_save_LIBS=$LIBS
13196 cat >conftest.$ac_ext <<_ACEOF
13199 cat confdefs.h >>conftest.$ac_ext
13200 cat >>conftest.$ac_ext <<_ACEOF
13201 /* end confdefs.h. */
13203 /* Override any GCC internal prototype to avoid an error.
13204 Use char because int might match the return type of a GCC
13205 builtin and then its argument prototype would still apply. */
13218 rm -f conftest.$ac_objext conftest$ac_exeext
13219 if { (ac_try="$ac_link"
13220 case "(($ac_try" in
13221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13222 *) ac_try_echo=$ac_try;;
13224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13225 (eval "$ac_link") 2>conftest.er1
13227 grep -v '^ *+' conftest.er1 >conftest.err
13229 cat conftest.err >&5
13230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231 (exit $ac_status); } && {
13232 test -z "$ac_cxx_werror_flag" ||
13233 test ! -s conftest.err
13234 } && test -s conftest$ac_exeext &&
13235 $as_test_x conftest$ac_exeext; then
13236 ac_cv_lib_dl_dlopen=yes
13238 echo "$as_me: failed program was:" >&5
13239 sed 's/^/| /' conftest.$ac_ext >&5
13241 ac_cv_lib_dl_dlopen=no
13244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13245 conftest$ac_exeext conftest.$ac_ext
13246 LIBS=$ac_check_lib_save_LIBS
13248 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13249 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13250 if test $ac_cv_lib_dl_dlopen = yes; then
13251 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13253 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13254 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
13255 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13256 echo $ECHO_N "(cached) $ECHO_C" >&6
13258 ac_check_lib_save_LIBS=$LIBS
13259 LIBS="-lsvld $LIBS"
13260 cat >conftest.$ac_ext <<_ACEOF
13263 cat confdefs.h >>conftest.$ac_ext
13264 cat >>conftest.$ac_ext <<_ACEOF
13265 /* end confdefs.h. */
13267 /* Override any GCC internal prototype to avoid an error.
13268 Use char because int might match the return type of a GCC
13269 builtin and then its argument prototype would still apply. */
13282 rm -f conftest.$ac_objext conftest$ac_exeext
13283 if { (ac_try="$ac_link"
13284 case "(($ac_try" in
13285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13286 *) ac_try_echo=$ac_try;;
13288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13289 (eval "$ac_link") 2>conftest.er1
13291 grep -v '^ *+' conftest.er1 >conftest.err
13293 cat conftest.err >&5
13294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295 (exit $ac_status); } && {
13296 test -z "$ac_cxx_werror_flag" ||
13297 test ! -s conftest.err
13298 } && test -s conftest$ac_exeext &&
13299 $as_test_x conftest$ac_exeext; then
13300 ac_cv_lib_svld_dlopen=yes
13302 echo "$as_me: failed program was:" >&5
13303 sed 's/^/| /' conftest.$ac_ext >&5
13305 ac_cv_lib_svld_dlopen=no
13308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13309 conftest$ac_exeext conftest.$ac_ext
13310 LIBS=$ac_check_lib_save_LIBS
13312 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13313 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
13314 if test $ac_cv_lib_svld_dlopen = yes; then
13315 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13317 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13318 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
13319 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13320 echo $ECHO_N "(cached) $ECHO_C" >&6
13322 ac_check_lib_save_LIBS=$LIBS
13324 cat >conftest.$ac_ext <<_ACEOF
13327 cat confdefs.h >>conftest.$ac_ext
13328 cat >>conftest.$ac_ext <<_ACEOF
13329 /* end confdefs.h. */
13331 /* Override any GCC internal prototype to avoid an error.
13332 Use char because int might match the return type of a GCC
13333 builtin and then its argument prototype would still apply. */
13341 return dld_link ();
13346 rm -f conftest.$ac_objext conftest$ac_exeext
13347 if { (ac_try="$ac_link"
13348 case "(($ac_try" in
13349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13350 *) ac_try_echo=$ac_try;;
13352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13353 (eval "$ac_link") 2>conftest.er1
13355 grep -v '^ *+' conftest.er1 >conftest.err
13357 cat conftest.err >&5
13358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359 (exit $ac_status); } && {
13360 test -z "$ac_cxx_werror_flag" ||
13361 test ! -s conftest.err
13362 } && test -s conftest$ac_exeext &&
13363 $as_test_x conftest$ac_exeext; then
13364 ac_cv_lib_dld_dld_link=yes
13366 echo "$as_me: failed program was:" >&5
13367 sed 's/^/| /' conftest.$ac_ext >&5
13369 ac_cv_lib_dld_dld_link=no
13372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13373 conftest$ac_exeext conftest.$ac_ext
13374 LIBS=$ac_check_lib_save_LIBS
13376 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13377 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
13378 if test $ac_cv_lib_dld_dld_link = yes; then
13379 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13400 if test "x$lt_cv_dlopen" != xno; then
13406 case $lt_cv_dlopen in
13408 save_CPPFLAGS="$CPPFLAGS"
13409 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13411 save_LDFLAGS="$LDFLAGS"
13412 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13415 LIBS="$lt_cv_dlopen_libs $LIBS"
13417 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13418 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
13419 if test "${lt_cv_dlopen_self+set}" = set; then
13420 echo $ECHO_N "(cached) $ECHO_C" >&6
13422 if test "$cross_compiling" = yes; then :
13423 lt_cv_dlopen_self=cross
13425 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13426 lt_status=$lt_dlunknown
13427 cat > conftest.$ac_ext <<EOF
13428 #line __oline__ "configure"
13429 #include "confdefs.h"
13438 # define LT_DLGLOBAL RTLD_GLOBAL
13441 # define LT_DLGLOBAL DL_GLOBAL
13443 # define LT_DLGLOBAL 0
13447 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13448 find out it does not work in some platform. */
13449 #ifndef LT_DLLAZY_OR_NOW
13451 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13454 # define LT_DLLAZY_OR_NOW DL_LAZY
13457 # define LT_DLLAZY_OR_NOW RTLD_NOW
13460 # define LT_DLLAZY_OR_NOW DL_NOW
13462 # define LT_DLLAZY_OR_NOW 0
13470 extern "C" void exit (int);
13473 void fnord() { int i=42;}
13476 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13477 int status = $lt_dlunknown;
13481 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13482 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13483 /* dlclose (self); */
13489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13490 (eval $ac_link) 2>&5
13492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13493 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13494 (./conftest; exit; ) >&5 2>/dev/null
13496 case x$lt_status in
13497 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13498 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13499 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13502 # compilation failed
13503 lt_cv_dlopen_self=no
13510 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13511 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
13513 if test "x$lt_cv_dlopen_self" = xyes; then
13514 LDFLAGS="$LDFLAGS $link_static_flag"
13515 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13516 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
13517 if test "${lt_cv_dlopen_self_static+set}" = set; then
13518 echo $ECHO_N "(cached) $ECHO_C" >&6
13520 if test "$cross_compiling" = yes; then :
13521 lt_cv_dlopen_self_static=cross
13523 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13524 lt_status=$lt_dlunknown
13525 cat > conftest.$ac_ext <<EOF
13526 #line __oline__ "configure"
13527 #include "confdefs.h"
13536 # define LT_DLGLOBAL RTLD_GLOBAL
13539 # define LT_DLGLOBAL DL_GLOBAL
13541 # define LT_DLGLOBAL 0
13545 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13546 find out it does not work in some platform. */
13547 #ifndef LT_DLLAZY_OR_NOW
13549 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13552 # define LT_DLLAZY_OR_NOW DL_LAZY
13555 # define LT_DLLAZY_OR_NOW RTLD_NOW
13558 # define LT_DLLAZY_OR_NOW DL_NOW
13560 # define LT_DLLAZY_OR_NOW 0
13568 extern "C" void exit (int);
13571 void fnord() { int i=42;}
13574 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13575 int status = $lt_dlunknown;
13579 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13580 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13581 /* dlclose (self); */
13587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13588 (eval $ac_link) 2>&5
13590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13592 (./conftest; exit; ) >&5 2>/dev/null
13594 case x$lt_status in
13595 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13596 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13597 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13600 # compilation failed
13601 lt_cv_dlopen_self_static=no
13608 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13609 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
13612 CPPFLAGS="$save_CPPFLAGS"
13613 LDFLAGS="$save_LDFLAGS"
13618 case $lt_cv_dlopen_self in
13619 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13620 *) enable_dlopen_self=unknown ;;
13623 case $lt_cv_dlopen_self_static in
13624 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13625 *) enable_dlopen_self_static=unknown ;;
13630 # The else clause should only fire when bootstrapping the
13631 # libtool distribution, otherwise you forgot to ship ltmain.sh
13632 # with your package, and you will get complaints that there are
13633 # no rules to generate ltmain.sh.
13634 if test -f "$ltmain"; then
13635 # See if we are running on zsh, and set the options which allow our commands through
13636 # without removal of \ escapes.
13637 if test -n "${ZSH_VERSION+set}" ; then
13638 setopt NO_GLOB_SUBST
13640 # Now quote all the things that may contain metacharacters while being
13641 # careful not to overquote the AC_SUBSTed values. We take copies of the
13642 # variables and quote the copies for generation of the libtool script.
13643 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13645 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13646 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13647 deplibs_check_method reload_flag reload_cmds need_locks \
13648 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13649 lt_cv_sys_global_symbol_to_c_name_address \
13650 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13651 old_postinstall_cmds old_postuninstall_cmds \
13655 lt_prog_compiler_wl_CXX \
13656 lt_prog_compiler_pic_CXX \
13657 lt_prog_compiler_static_CXX \
13658 lt_prog_compiler_no_builtin_flag_CXX \
13659 export_dynamic_flag_spec_CXX \
13660 thread_safe_flag_spec_CXX \
13661 whole_archive_flag_spec_CXX \
13662 enable_shared_with_static_runtimes_CXX \
13663 old_archive_cmds_CXX \
13664 old_archive_from_new_cmds_CXX \
13665 predep_objects_CXX \
13666 postdep_objects_CXX \
13669 compiler_lib_search_path_CXX \
13671 archive_expsym_cmds_CXX \
13672 postinstall_cmds_CXX \
13673 postuninstall_cmds_CXX \
13674 old_archive_from_expsyms_cmds_CXX \
13675 allow_undefined_flag_CXX \
13676 no_undefined_flag_CXX \
13677 export_symbols_cmds_CXX \
13678 hardcode_libdir_flag_spec_CXX \
13679 hardcode_libdir_flag_spec_ld_CXX \
13680 hardcode_libdir_separator_CXX \
13681 hardcode_automatic_CXX \
13683 module_expsym_cmds_CXX \
13684 lt_cv_prog_compiler_c_o_CXX \
13685 exclude_expsyms_CXX \
13686 include_expsyms_CXX; do
13689 old_archive_cmds_CXX | \
13690 old_archive_from_new_cmds_CXX | \
13691 archive_cmds_CXX | \
13692 archive_expsym_cmds_CXX | \
13693 module_cmds_CXX | \
13694 module_expsym_cmds_CXX | \
13695 old_archive_from_expsyms_cmds_CXX | \
13696 export_symbols_cmds_CXX | \
13697 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13698 postinstall_cmds | postuninstall_cmds | \
13699 old_postinstall_cmds | old_postuninstall_cmds | \
13700 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13701 # Double-quote double-evaled strings.
13702 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13705 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13711 *'\$0 --fallback-echo"')
13712 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13718 cat <<__EOF__ >> "$cfgfile"
13719 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13721 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13723 # Shell to use when invoking shell scripts.
13726 # Whether or not to build shared libraries.
13727 build_libtool_libs=$enable_shared
13729 # Whether or not to build static libraries.
13730 build_old_libs=$enable_static
13732 # Whether or not to add -lc for building shared libraries.
13733 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13735 # Whether or not to disallow shared libs when runtime libs are static
13736 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13738 # Whether or not to optimize for fast installation.
13739 fast_install=$enable_fast_install
13742 host_alias=$host_alias
13746 # The build system.
13747 build_alias=$build_alias
13751 # An echo program that does not interpret backslashes.
13756 AR_FLAGS=$lt_AR_FLAGS
13761 # A language-specific compiler.
13762 CC=$lt_compiler_CXX
13764 # Is the compiler the GNU C compiler?
13770 # The linker used to build libraries.
13773 # Whether we need hard or soft links.
13776 # A BSD-compatible nm program.
13779 # A symbol stripping program
13782 # Used to examine libraries when file_magic_cmd begins "file"
13783 MAGIC_CMD=$MAGIC_CMD
13785 # Used on cygwin: DLL creation program.
13788 # Used on cygwin: object dumper.
13791 # Used on cygwin: assembler.
13794 # The name of the directory that contains temporary libtool files.
13797 # How to create reloadable object files.
13798 reload_flag=$lt_reload_flag
13799 reload_cmds=$lt_reload_cmds
13801 # How to pass a linker flag through the compiler.
13802 wl=$lt_lt_prog_compiler_wl_CXX
13804 # Object file suffix (normally "o").
13805 objext="$ac_objext"
13807 # Old archive suffix (normally "a").
13810 # Shared library suffix (normally ".so").
13811 shrext_cmds='$shrext_cmds'
13813 # Executable file suffix (normally "").
13816 # Additional compiler flags for building library objects.
13817 pic_flag=$lt_lt_prog_compiler_pic_CXX
13820 # What is the maximum length of a command?
13821 max_cmd_len=$lt_cv_sys_max_cmd_len
13823 # Does compiler simultaneously support -c and -o options?
13824 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13826 # Must we lock files when doing compilation?
13827 need_locks=$lt_need_locks
13829 # Do we need the lib prefix for modules?
13830 need_lib_prefix=$need_lib_prefix
13832 # Do we need a version for libraries?
13833 need_version=$need_version
13835 # Whether dlopen is supported.
13836 dlopen_support=$enable_dlopen
13838 # Whether dlopen of programs is supported.
13839 dlopen_self=$enable_dlopen_self
13841 # Whether dlopen of statically linked programs is supported.
13842 dlopen_self_static=$enable_dlopen_self_static
13844 # Compiler flag to prevent dynamic linking.
13845 link_static_flag=$lt_lt_prog_compiler_static_CXX
13847 # Compiler flag to turn off builtin functions.
13848 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13850 # Compiler flag to allow reflexive dlopens.
13851 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13853 # Compiler flag to generate shared objects directly from archives.
13854 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13856 # Compiler flag to generate thread-safe objects.
13857 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13859 # Library versioning type.
13860 version_type=$version_type
13862 # Format of library name prefix.
13863 libname_spec=$lt_libname_spec
13865 # List of archive names. First name is the real one, the rest are links.
13866 # The last name is the one that the linker finds with -lNAME.
13867 library_names_spec=$lt_library_names_spec
13869 # The coded name of the library, if different from the real name.
13870 soname_spec=$lt_soname_spec
13872 # Commands used to build and install an old-style archive.
13874 old_archive_cmds=$lt_old_archive_cmds_CXX
13875 old_postinstall_cmds=$lt_old_postinstall_cmds
13876 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13878 # Create an old-style archive from a shared archive.
13879 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13881 # Create a temporary old-style archive to link instead of a shared archive.
13882 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13884 # Commands used to build and install a shared archive.
13885 archive_cmds=$lt_archive_cmds_CXX
13886 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13887 postinstall_cmds=$lt_postinstall_cmds
13888 postuninstall_cmds=$lt_postuninstall_cmds
13890 # Commands used to build a loadable module (assumed same as above if empty)
13891 module_cmds=$lt_module_cmds_CXX
13892 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13894 # Commands to strip libraries.
13895 old_striplib=$lt_old_striplib
13896 striplib=$lt_striplib
13898 # Dependencies to place before the objects being linked to create a
13900 predep_objects=$lt_predep_objects_CXX
13902 # Dependencies to place after the objects being linked to create a
13904 postdep_objects=$lt_postdep_objects_CXX
13906 # Dependencies to place before the objects being linked to create a
13908 predeps=$lt_predeps_CXX
13910 # Dependencies to place after the objects being linked to create a
13912 postdeps=$lt_postdeps_CXX
13914 # The library search path used internally by the compiler when linking
13915 # a shared library.
13916 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13918 # Method to check whether dependent libraries are shared objects.
13919 deplibs_check_method=$lt_deplibs_check_method
13921 # Command to use when deplibs_check_method == file_magic.
13922 file_magic_cmd=$lt_file_magic_cmd
13924 # Flag that allows shared libraries with undefined symbols to be built.
13925 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13927 # Flag that forces no undefined symbols.
13928 no_undefined_flag=$lt_no_undefined_flag_CXX
13930 # Commands used to finish a libtool library installation in a directory.
13931 finish_cmds=$lt_finish_cmds
13933 # Same as above, but a single script fragment to be evaled but not shown.
13934 finish_eval=$lt_finish_eval
13936 # Take the output of nm and produce a listing of raw symbols and C names.
13937 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13939 # Transform the output of nm in a proper C declaration
13940 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13942 # Transform the output of nm in a C name address pair
13943 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13945 # This is the shared library runtime path variable.
13946 runpath_var=$runpath_var
13948 # This is the shared library path variable.
13949 shlibpath_var=$shlibpath_var
13951 # Is shlibpath searched before the hard-coded library search path?
13952 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13954 # How to hardcode a shared library path into an executable.
13955 hardcode_action=$hardcode_action_CXX
13957 # Whether we should hardcode library paths into libraries.
13958 hardcode_into_libs=$hardcode_into_libs
13960 # Flag to hardcode \$libdir into a binary during linking.
13961 # This must work even if \$libdir does not exist.
13962 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13964 # If ld is used when linking, flag to hardcode \$libdir into
13965 # a binary during linking. This must work even if \$libdir does
13967 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13969 # Whether we need a single -rpath flag with a separated argument.
13970 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13972 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13973 # resulting binary.
13974 hardcode_direct=$hardcode_direct_CXX
13976 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13977 # resulting binary.
13978 hardcode_minus_L=$hardcode_minus_L_CXX
13980 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13981 # the resulting binary.
13982 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13984 # Set to yes if building a shared library automatically hardcodes DIR into the library
13985 # and all subsequent libraries and executables linked against it.
13986 hardcode_automatic=$hardcode_automatic_CXX
13988 # Variables whose values should be saved in libtool wrapper scripts and
13989 # restored at relink time.
13990 variables_saved_for_relink="$variables_saved_for_relink"
13992 # Whether libtool must link a program against all its dependency libraries.
13993 link_all_deplibs=$link_all_deplibs_CXX
13995 # Compile-time system search path for libraries
13996 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13998 # Run-time system search path for libraries
13999 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14001 # Fix the shell variable \$srcfile for the compiler.
14002 fix_srcfile_path="$fix_srcfile_path_CXX"
14004 # Set to yes if exported symbols are required.
14005 always_export_symbols=$always_export_symbols_CXX
14007 # The commands to list exported symbols.
14008 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14010 # The commands to extract the exported symbol list from a shared archive.
14011 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14013 # Symbols that should not be listed in the preloaded symbols.
14014 exclude_expsyms=$lt_exclude_expsyms_CXX
14016 # Symbols that must always be exported.
14017 include_expsyms=$lt_include_expsyms_CXX
14019 # ### END LIBTOOL TAG CONFIG: $tagname
14025 # If there is no Makefile yet, we rely on a make rule to execute
14026 # `config.status --recheck' to rerun these tests and create the
14027 # libtool script then.
14028 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14029 if test -f "$ltmain_in"; then
14030 test -f Makefile && make "$ltmain"
14036 ac_cpp='$CPP $CPPFLAGS'
14037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14045 with_gnu_ldcxx=$with_gnu_ld
14046 with_gnu_ld=$lt_save_with_gnu_ld
14047 lt_cv_path_LDCXX=$lt_cv_path_LD
14048 lt_cv_path_LD=$lt_save_path_LD
14049 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14050 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14058 if test -n "$F77" && test "X$F77" != "Xno"; then
14061 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14062 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14063 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14066 archive_cmds_need_lc_F77=no
14067 allow_undefined_flag_F77=
14068 always_export_symbols_F77=no
14069 archive_expsym_cmds_F77=
14070 export_dynamic_flag_spec_F77=
14071 hardcode_direct_F77=no
14072 hardcode_libdir_flag_spec_F77=
14073 hardcode_libdir_flag_spec_ld_F77=
14074 hardcode_libdir_separator_F77=
14075 hardcode_minus_L_F77=no
14076 hardcode_automatic_F77=no
14078 module_expsym_cmds_F77=
14079 link_all_deplibs_F77=unknown
14080 old_archive_cmds_F77=$old_archive_cmds
14081 no_undefined_flag_F77=
14082 whole_archive_flag_spec_F77=
14083 enable_shared_with_static_runtimes_F77=no
14085 # Source file extension for f77 test sources.
14088 # Object file extension for compiled f77 test sources.
14092 # Code to be used in simple compile tests
14093 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14095 # Code to be used in simple link tests
14096 lt_simple_link_test_code=" program t\n end\n"
14098 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14100 # If no C compiler was specified, use CC.
14103 # Allow CC to be a program name with arguments.
14107 # save warnings/boilerplate of simple test code
14108 ac_outfile=conftest.$ac_objext
14109 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14110 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
14111 _lt_compiler_boilerplate=`cat conftest.err`
14114 ac_outfile=conftest.$ac_objext
14115 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14116 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
14117 _lt_linker_boilerplate=`cat conftest.err`
14121 # Allow CC to be a program name with arguments.
14126 for cc_temp in $compiler""; do
14128 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14129 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14134 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14137 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14138 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14139 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14140 echo "${ECHO_T}$can_build_shared" >&6; }
14142 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14143 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14144 test "$can_build_shared" = "no" && enable_shared=no
14146 # On AIX, shared libraries and static libraries use the same namespace, and
14147 # are all built from PIC.
14150 test "$enable_shared" = yes && enable_static=no
14151 if test -n "$RANLIB"; then
14152 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14153 postinstall_cmds='$RANLIB $lib'
14157 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14158 test "$enable_shared" = yes && enable_static=no
14162 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14163 echo "${ECHO_T}$enable_shared" >&6; }
14165 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14166 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14167 # Make sure either enable_shared or enable_static is yes.
14168 test "$enable_shared" = yes || enable_static=yes
14169 { echo "$as_me:$LINENO: result: $enable_static" >&5
14170 echo "${ECHO_T}$enable_static" >&6; }
14172 test "$ld_shlibs_F77" = no && can_build_shared=no
14177 lt_prog_compiler_wl_F77=
14178 lt_prog_compiler_pic_F77=
14179 lt_prog_compiler_static_F77=
14181 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14182 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14184 if test "$GCC" = yes; then
14185 lt_prog_compiler_wl_F77='-Wl,'
14186 lt_prog_compiler_static_F77='-static'
14190 # All AIX code is PIC.
14191 if test "$host_cpu" = ia64; then
14192 # AIX 5 now supports IA64 processor
14193 lt_prog_compiler_static_F77='-Bstatic'
14198 # FIXME: we need at least 68020 code to build shared libraries, but
14199 # adding the `-m68020' flag to GCC prevents building anything better,
14201 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14204 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14205 # PIC is the default for these OSes.
14208 mingw* | pw32* | os2*)
14209 # This hack is so that the source file can tell whether it is being
14210 # built for inclusion in a dll (and should export symbols for example).
14211 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14214 darwin* | rhapsody*)
14215 # PIC is the default on this platform
14216 # Common symbols not allowed in MH_DYLIB files
14217 lt_prog_compiler_pic_F77='-fno-common'
14221 # Just because we use GCC doesn't mean we suddenly get shared libraries
14222 # on systems that don't support them.
14223 lt_prog_compiler_can_build_shared_F77=no
14228 if test -d /usr/nec; then
14229 lt_prog_compiler_pic_F77=-Kconform_pic
14234 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14235 # not for PA HP-UX.
14241 lt_prog_compiler_pic_F77='-fPIC'
14247 lt_prog_compiler_pic_F77='-fPIC'
14251 # PORTME Check for flag to pass linker flags through the system compiler.
14254 lt_prog_compiler_wl_F77='-Wl,'
14255 if test "$host_cpu" = ia64; then
14256 # AIX 5 now supports IA64 processor
14257 lt_prog_compiler_static_F77='-Bstatic'
14259 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14263 # PIC is the default on this platform
14264 # Common symbols not allowed in MH_DYLIB files
14265 case $cc_basename in
14267 lt_prog_compiler_pic_F77='-qnocommon'
14268 lt_prog_compiler_wl_F77='-Wl,'
14273 mingw* | pw32* | os2*)
14274 # This hack is so that the source file can tell whether it is being
14275 # built for inclusion in a dll (and should export symbols for example).
14276 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14279 hpux9* | hpux10* | hpux11*)
14280 lt_prog_compiler_wl_F77='-Wl,'
14281 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14282 # not for PA HP-UX.
14288 lt_prog_compiler_pic_F77='+Z'
14291 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14292 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14295 irix5* | irix6* | nonstopux*)
14296 lt_prog_compiler_wl_F77='-Wl,'
14297 # PIC (with -KPIC) is the default.
14298 lt_prog_compiler_static_F77='-non_shared'
14302 lt_prog_compiler_pic_F77='-KPIC'
14303 lt_prog_compiler_static_F77='-Bstatic'
14307 case $cc_basename in
14309 lt_prog_compiler_wl_F77='-Wl,'
14310 lt_prog_compiler_pic_F77='-KPIC'
14311 lt_prog_compiler_static_F77='-static'
14313 pgcc* | pgf77* | pgf90* | pgf95*)
14314 # Portland Group compilers (*not* the Pentium gcc compiler,
14315 # which looks to be a dead project)
14316 lt_prog_compiler_wl_F77='-Wl,'
14317 lt_prog_compiler_pic_F77='-fpic'
14318 lt_prog_compiler_static_F77='-Bstatic'
14321 lt_prog_compiler_wl_F77='-Wl,'
14322 # All Alpha code is PIC.
14323 lt_prog_compiler_static_F77='-non_shared'
14328 osf3* | osf4* | osf5*)
14329 lt_prog_compiler_wl_F77='-Wl,'
14330 # All OSF/1 code is PIC.
14331 lt_prog_compiler_static_F77='-non_shared'
14335 lt_prog_compiler_pic_F77='-Kpic'
14336 lt_prog_compiler_static_F77='-dn'
14340 lt_prog_compiler_pic_F77='-KPIC'
14341 lt_prog_compiler_static_F77='-Bstatic'
14342 case $cc_basename in
14343 f77* | f90* | f95*)
14344 lt_prog_compiler_wl_F77='-Qoption ld ';;
14346 lt_prog_compiler_wl_F77='-Wl,';;
14351 lt_prog_compiler_wl_F77='-Qoption ld '
14352 lt_prog_compiler_pic_F77='-PIC'
14353 lt_prog_compiler_static_F77='-Bstatic'
14356 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14357 lt_prog_compiler_wl_F77='-Wl,'
14358 lt_prog_compiler_pic_F77='-KPIC'
14359 lt_prog_compiler_static_F77='-Bstatic'
14363 if test -d /usr/nec ;then
14364 lt_prog_compiler_pic_F77='-Kconform_pic'
14365 lt_prog_compiler_static_F77='-Bstatic'
14370 lt_prog_compiler_wl_F77='-Wl,'
14371 lt_prog_compiler_can_build_shared_F77=no
14375 lt_prog_compiler_pic_F77='-pic'
14376 lt_prog_compiler_static_F77='-Bstatic'
14380 lt_prog_compiler_can_build_shared_F77=no
14385 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14386 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14389 # Check to make sure the PIC flag actually works.
14391 if test -n "$lt_prog_compiler_pic_F77"; then
14393 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14394 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14395 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14396 echo $ECHO_N "(cached) $ECHO_C" >&6
14398 lt_prog_compiler_pic_works_F77=no
14399 ac_outfile=conftest.$ac_objext
14400 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14401 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14402 # Insert the option either (1) after the last *FLAGS variable, or
14403 # (2) before a word containing "conftest.", or (3) at the end.
14404 # Note that $ac_compile itself does not contain backslashes and begins
14405 # with a dollar sign (not a hyphen), so the echo should work correctly.
14406 # The option is referenced via a variable to avoid confusing sed.
14407 lt_compile=`echo "$ac_compile" | $SED \
14408 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14409 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14410 -e 's:$: $lt_compiler_flag:'`
14411 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14412 (eval "$lt_compile" 2>conftest.err)
14414 cat conftest.err >&5
14415 echo "$as_me:__oline__: \$? = $ac_status" >&5
14416 if (exit $ac_status) && test -s "$ac_outfile"; then
14417 # The compiler can only warn and ignore the option if not recognized
14418 # So say no if there are warnings other than the usual output.
14419 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
14420 $SED '/^$/d' conftest.err >conftest.er2
14421 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
14422 lt_prog_compiler_pic_works_F77=yes
14428 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14429 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14431 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14432 case $lt_prog_compiler_pic_F77 in
14434 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14437 lt_prog_compiler_pic_F77=
14438 lt_prog_compiler_can_build_shared_F77=no
14443 # For platforms which do not support PIC, -DPIC is meaningless:
14445 lt_prog_compiler_pic_F77=
14448 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14452 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14453 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14454 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14455 echo $ECHO_N "(cached) $ECHO_C" >&6
14457 lt_cv_prog_compiler_c_o_F77=no
14458 $rm -r conftest 2>/dev/null
14462 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14464 lt_compiler_flag="-o out/conftest2.$ac_objext"
14465 # Insert the option either (1) after the last *FLAGS variable, or
14466 # (2) before a word containing "conftest.", or (3) at the end.
14467 # Note that $ac_compile itself does not contain backslashes and begins
14468 # with a dollar sign (not a hyphen), so the echo should work correctly.
14469 lt_compile=`echo "$ac_compile" | $SED \
14470 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14471 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14472 -e 's:$: $lt_compiler_flag:'`
14473 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14474 (eval "$lt_compile" 2>out/conftest.err)
14476 cat out/conftest.err >&5
14477 echo "$as_me:__oline__: \$? = $ac_status" >&5
14478 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14480 # The compiler can only warn and ignore the option if not recognized
14481 # So say no if there are warnings
14482 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
14483 $SED '/^$/d' out/conftest.err >out/conftest.er2
14484 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14485 lt_cv_prog_compiler_c_o_F77=yes
14490 # SGI C++ compiler will create directory out/ii_files/ for
14491 # template instantiation
14492 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14493 $rm out/* && rmdir out
14499 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14500 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14503 hard_links="nottested"
14504 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14505 # do not overwrite the value of need_locks provided by the user
14506 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14507 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14510 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14512 ln conftest.a conftest.b 2>&5 || hard_links=no
14513 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14514 { echo "$as_me:$LINENO: result: $hard_links" >&5
14515 echo "${ECHO_T}$hard_links" >&6; }
14516 if test "$hard_links" = no; then
14517 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14518 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14525 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14526 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14529 allow_undefined_flag_F77=
14530 enable_shared_with_static_runtimes_F77=no
14532 archive_expsym_cmds_F77=
14533 old_archive_From_new_cmds_F77=
14534 old_archive_from_expsyms_cmds_F77=
14535 export_dynamic_flag_spec_F77=
14536 whole_archive_flag_spec_F77=
14537 thread_safe_flag_spec_F77=
14538 hardcode_libdir_flag_spec_F77=
14539 hardcode_libdir_flag_spec_ld_F77=
14540 hardcode_libdir_separator_F77=
14541 hardcode_direct_F77=no
14542 hardcode_minus_L_F77=no
14543 hardcode_shlibpath_var_F77=unsupported
14544 link_all_deplibs_F77=unknown
14545 hardcode_automatic_F77=no
14547 module_expsym_cmds_F77=
14548 always_export_symbols_F77=no
14549 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14550 # include_expsyms should be a list of space-separated symbols to be *always*
14551 # included in the symbol list
14552 include_expsyms_F77=
14553 # exclude_expsyms can be an extended regexp of symbols to exclude
14554 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14555 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14556 # as well as any symbol that contains `d'.
14557 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14558 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14559 # platforms (ab)use it in PIC code, but their linkers get confused if
14560 # the symbol is explicitly referenced. Since portable code cannot
14561 # rely on this symbol name, it's probably fine to never include it in
14562 # preloaded symbol tables.
14563 extract_expsyms_cmds=
14564 # Just being paranoid about ensuring that cc_basename is set.
14565 for cc_temp in $compiler""; do
14567 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14568 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14573 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14576 cygwin* | mingw* | pw32*)
14577 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14578 # When not using gcc, we currently assume that we are using
14579 # Microsoft Visual C++.
14580 if test "$GCC" != yes; then
14590 if test "$with_gnu_ld" = yes; then
14591 # If archive_cmds runs LD, not CC, wlarc should be empty
14594 # Set some defaults for GNU ld with shared library support. These
14595 # are reset later if shared libraries are not supported. Putting them
14596 # here allows them to be overridden if necessary.
14597 runpath_var=LD_RUN_PATH
14598 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14599 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14600 # ancient GNU ld didn't support --whole-archive et. al.
14601 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14602 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14604 whole_archive_flag_spec_F77=
14606 supports_anon_versioning=no
14607 case `$LD -v 2>/dev/null` in
14608 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14609 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14610 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14611 *\ 2.11.*) ;; # other 2.11 versions
14612 *) supports_anon_versioning=yes ;;
14615 # See if GNU ld supports shared libraries.
14617 aix3* | aix4* | aix5*)
14618 # On AIX/PPC, the GNU linker is very broken
14619 if test "$host_cpu" != ia64; then
14623 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14624 *** to be unable to reliably create shared libraries on AIX.
14625 *** Therefore, libtool is disabling shared libraries support. If you
14626 *** really care for shared libraries, you may want to modify your PATH
14627 *** so that a non-GNU linker is found, and then restart.
14634 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)'
14635 hardcode_libdir_flag_spec_F77='-L$libdir'
14636 hardcode_minus_L_F77=yes
14638 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14639 # that the semantics of dynamic libraries on AmigaOS, at least up
14640 # to version 4, is to share data among multiple programs linked
14641 # with the same dynamic library. Since this doesn't match the
14642 # behavior of shared libraries on other platforms, we can't use
14648 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14649 allow_undefined_flag_F77=unsupported
14650 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14651 # support --undefined. This deserves some investigation. FIXME
14652 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14658 cygwin* | mingw* | pw32*)
14659 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14660 # as there is no search path for DLLs.
14661 hardcode_libdir_flag_spec_F77='-L$libdir'
14662 allow_undefined_flag_F77=unsupported
14663 always_export_symbols_F77=no
14664 enable_shared_with_static_runtimes_F77=yes
14665 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14667 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14668 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14669 # If the export-symbols file already is a .def file (1st line
14670 # is EXPORTS), use it as is; otherwise, prepend...
14671 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14672 cp $export_symbols $output_objdir/$soname.def;
14674 echo EXPORTS > $output_objdir/$soname.def;
14675 cat $export_symbols >> $output_objdir/$soname.def;
14677 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14684 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14686 case $cc_basename,$host_cpu in
14687 pgcc*) # Portland Group C compiler
14688 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'
14689 tmp_addflag=' $pic_flag'
14691 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14692 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'
14693 tmp_addflag=' $pic_flag -Mnomain' ;;
14694 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14695 tmp_addflag=' -i_dynamic' ;;
14696 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14697 tmp_addflag=' -i_dynamic -nofor_main' ;;
14698 ifc* | ifort*) # Intel Fortran compiler
14699 tmp_addflag=' -nofor_main' ;;
14701 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14703 if test $supports_anon_versioning = yes; then
14704 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14705 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14706 $echo "local: *; };" >> $output_objdir/$libname.ver~
14707 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14709 link_all_deplibs_F77=no
14715 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14716 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14717 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14720 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14721 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14726 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14730 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14731 *** create shared libraries on Solaris systems. Therefore, libtool
14732 *** is disabling shared libraries support. We urge you to upgrade GNU
14733 *** binutils to release 2.9.1 or newer. Another option is to modify
14734 *** your PATH or compiler configuration so that the native linker is
14735 *** used, and then restart.
14738 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14739 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14740 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14747 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14749 hardcode_direct_F77=yes
14750 hardcode_shlibpath_var_F77=no
14754 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14755 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14756 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14763 if test "$ld_shlibs_F77" = no; then
14765 hardcode_libdir_flag_spec_F77=
14766 export_dynamic_flag_spec_F77=
14767 whole_archive_flag_spec_F77=
14770 # PORTME fill in a description of your system's linker (not GNU ld)
14773 allow_undefined_flag_F77=unsupported
14774 always_export_symbols_F77=yes
14775 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'
14776 # Note: this linker hardcodes the directories in LIBPATH if there
14777 # are no directories specified by -L.
14778 hardcode_minus_L_F77=yes
14779 if test "$GCC" = yes && test -z "$link_static_flag"; then
14780 # Neither direct hardcoding nor static linking is supported with a
14782 hardcode_direct_F77=unsupported
14787 if test "$host_cpu" = ia64; then
14788 # On IA64, the linker does run time linking by default, so we don't
14789 # have to do anything special.
14790 aix_use_runtimelinking=no
14791 exp_sym_flag='-Bexport'
14794 # If we're using GNU nm, then we don't want the "-C" option.
14795 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14796 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14797 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'
14799 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'
14801 aix_use_runtimelinking=no
14803 # Test if we are trying to use run time linking or normal
14804 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14805 # need to do runtime linking.
14806 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14807 for ld_flag in $LDFLAGS; do
14808 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14809 aix_use_runtimelinking=yes
14815 exp_sym_flag='-bexport'
14816 no_entry_flag='-bnoentry'
14819 # When large executables or shared objects are built, AIX ld can
14820 # have problems creating the table of contents. If linking a library
14821 # or program results in "error TOC overflow" add -mminimal-toc to
14822 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14823 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14825 archive_cmds_F77=''
14826 hardcode_direct_F77=yes
14827 hardcode_libdir_separator_F77=':'
14828 link_all_deplibs_F77=yes
14830 if test "$GCC" = yes; then
14831 case $host_os in aix4.[012]|aix4.[012].*)
14832 # We only want to do this on AIX 4.2 and lower, the check
14833 # below for broken collect2 doesn't work under 4.3+
14834 collect2name=`${CC} -print-prog-name=collect2`
14835 if test -f "$collect2name" && \
14836 strings "$collect2name" | grep resolve_lib_name >/dev/null
14838 # We have reworked collect2
14839 hardcode_direct_F77=yes
14841 # We have old collect2
14842 hardcode_direct_F77=unsupported
14843 # It fails to find uninstalled libraries when the uninstalled
14844 # path is not listed in the libpath. Setting hardcode_minus_L
14845 # to unsupported forces relinking
14846 hardcode_minus_L_F77=yes
14847 hardcode_libdir_flag_spec_F77='-L$libdir'
14848 hardcode_libdir_separator_F77=
14851 shared_flag='-shared'
14852 if test "$aix_use_runtimelinking" = yes; then
14853 shared_flag="$shared_flag "'${wl}-G'
14857 if test "$host_cpu" = ia64; then
14858 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14859 # chokes on -Wl,-G. The following line is correct:
14862 if test "$aix_use_runtimelinking" = yes; then
14863 shared_flag='${wl}-G'
14865 shared_flag='${wl}-bM:SRE'
14870 # It seems that -bexpall does not export symbols beginning with
14871 # underscore (_), so it is better to generate a list of symbols to export.
14872 always_export_symbols_F77=yes
14873 if test "$aix_use_runtimelinking" = yes; then
14874 # Warning - without using the other runtime loading flags (-brtl),
14875 # -berok will link without error, but may produce a broken library.
14876 allow_undefined_flag_F77='-berok'
14877 # Determine the default libpath from the value encoded in an empty executable.
14878 cat >conftest.$ac_ext <<_ACEOF
14883 rm -f conftest.$ac_objext conftest$ac_exeext
14884 if { (ac_try="$ac_link"
14885 case "(($ac_try" in
14886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14887 *) ac_try_echo=$ac_try;;
14889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14890 (eval "$ac_link") 2>conftest.er1
14892 grep -v '^ *+' conftest.er1 >conftest.err
14894 cat conftest.err >&5
14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); } && {
14897 test -z "$ac_f77_werror_flag" ||
14898 test ! -s conftest.err
14899 } && test -s conftest$ac_exeext &&
14900 $as_test_x conftest$ac_exeext; then
14902 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14904 # Check for a 64-bit object if we didn't find anything.
14905 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14908 echo "$as_me: failed program was:" >&5
14909 sed 's/^/| /' conftest.$ac_ext >&5
14914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14915 conftest$ac_exeext conftest.$ac_ext
14916 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14918 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14919 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14921 if test "$host_cpu" = ia64; then
14922 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14923 allow_undefined_flag_F77="-z nodefs"
14924 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14926 # Determine the default libpath from the value encoded in an empty executable.
14927 cat >conftest.$ac_ext <<_ACEOF
14932 rm -f conftest.$ac_objext conftest$ac_exeext
14933 if { (ac_try="$ac_link"
14934 case "(($ac_try" in
14935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14936 *) ac_try_echo=$ac_try;;
14938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14939 (eval "$ac_link") 2>conftest.er1
14941 grep -v '^ *+' conftest.er1 >conftest.err
14943 cat conftest.err >&5
14944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14945 (exit $ac_status); } && {
14946 test -z "$ac_f77_werror_flag" ||
14947 test ! -s conftest.err
14948 } && test -s conftest$ac_exeext &&
14949 $as_test_x conftest$ac_exeext; then
14951 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14953 # Check for a 64-bit object if we didn't find anything.
14954 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14957 echo "$as_me: failed program was:" >&5
14958 sed 's/^/| /' conftest.$ac_ext >&5
14963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14964 conftest$ac_exeext conftest.$ac_ext
14965 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14967 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14968 # Warning - without using the other run time loading flags,
14969 # -berok will link without error, but may produce a broken library.
14970 no_undefined_flag_F77=' ${wl}-bernotok'
14971 allow_undefined_flag_F77=' ${wl}-berok'
14972 # -bexpall does not export symbols beginning with underscore (_)
14973 always_export_symbols_F77=yes
14974 # Exported symbols can be pulled into shared objects from archives
14975 whole_archive_flag_spec_F77=' '
14976 archive_cmds_need_lc_F77=yes
14977 # This is similar to how AIX traditionally builds its shared libraries.
14978 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14984 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)'
14985 hardcode_libdir_flag_spec_F77='-L$libdir'
14986 hardcode_minus_L_F77=yes
14987 # see comment about different semantics on the GNU ld section
14992 export_dynamic_flag_spec_F77=-rdynamic
14995 cygwin* | mingw* | pw32*)
14996 # When not using gcc, we currently assume that we are using
14997 # Microsoft Visual C++.
14998 # hardcode_libdir_flag_spec is actually meaningless, as there is
14999 # no search path for DLLs.
15000 hardcode_libdir_flag_spec_F77=' '
15001 allow_undefined_flag_F77=unsupported
15002 # Tell ltmain to make .lib files, not .a files.
15004 # Tell ltmain to make .dll files, not .so files.
15006 # FIXME: Setting linknames here is a bad hack.
15007 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15008 # The linker will automatically build a .lib file if we build a DLL.
15009 old_archive_From_new_cmds_F77='true'
15010 # FIXME: Should let the user specify the lib program.
15011 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15012 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15013 enable_shared_with_static_runtimes_F77=yes
15016 darwin* | rhapsody*)
15018 rhapsody* | darwin1.[012])
15019 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15022 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15023 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15025 case ${MACOSX_DEPLOYMENT_TARGET} in
15027 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15030 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15036 archive_cmds_need_lc_F77=no
15037 hardcode_direct_F77=no
15038 hardcode_automatic_F77=yes
15039 hardcode_shlibpath_var_F77=unsupported
15040 whole_archive_flag_spec_F77=''
15041 link_all_deplibs_F77=yes
15042 if test "$GCC" = yes ; then
15043 output_verbose_link_cmd='echo'
15044 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15045 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15046 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15047 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}'
15048 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}'
15050 case $cc_basename in
15052 output_verbose_link_cmd='echo'
15053 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15054 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15055 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15056 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15057 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}'
15067 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15068 hardcode_libdir_flag_spec_F77='-L$libdir'
15069 hardcode_shlibpath_var_F77=no
15076 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15077 # support. Future versions do this automatically, but an explicit c++rt0.o
15078 # does not break anything, and helps significantly (at the cost of a little
15081 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15082 hardcode_libdir_flag_spec_F77='-R$libdir'
15083 hardcode_direct_F77=yes
15084 hardcode_shlibpath_var_F77=no
15087 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15089 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15090 hardcode_direct_F77=yes
15091 hardcode_minus_L_F77=yes
15092 hardcode_shlibpath_var_F77=no
15095 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15096 freebsd* | kfreebsd*-gnu | dragonfly*)
15097 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15098 hardcode_libdir_flag_spec_F77='-R$libdir'
15099 hardcode_direct_F77=yes
15100 hardcode_shlibpath_var_F77=no
15104 if test "$GCC" = yes; then
15105 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'
15107 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'
15109 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15110 hardcode_libdir_separator_F77=:
15111 hardcode_direct_F77=yes
15113 # hardcode_minus_L: Not really in the search PATH,
15114 # but as the default location of the library.
15115 hardcode_minus_L_F77=yes
15116 export_dynamic_flag_spec_F77='${wl}-E'
15120 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15123 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15126 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15132 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15135 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15139 if test "$with_gnu_ld" = no; then
15142 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15143 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15144 hardcode_libdir_separator_F77=:
15145 hardcode_direct_F77=no
15146 hardcode_shlibpath_var_F77=no
15149 hardcode_libdir_flag_spec_F77='-L$libdir'
15150 hardcode_direct_F77=no
15151 hardcode_shlibpath_var_F77=no
15153 # hardcode_minus_L: Not really in the search PATH,
15154 # but as the default location of the library.
15155 hardcode_minus_L_F77=yes
15158 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15159 hardcode_libdir_separator_F77=:
15160 hardcode_direct_F77=yes
15161 export_dynamic_flag_spec_F77='${wl}-E'
15163 # hardcode_minus_L: Not really in the search PATH,
15164 # but as the default location of the library.
15165 hardcode_minus_L_F77=yes
15171 irix5* | irix6* | nonstopux*)
15172 if test "$GCC" = yes; then
15173 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'
15175 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'
15176 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15178 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15179 hardcode_libdir_separator_F77=:
15180 link_all_deplibs_F77=yes
15183 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
15184 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15185 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15187 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15189 hardcode_libdir_flag_spec_F77='-R$libdir'
15190 hardcode_direct_F77=yes
15191 hardcode_shlibpath_var_F77=no
15195 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15196 hardcode_direct_F77=yes
15197 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15198 hardcode_libdir_separator_F77=:
15199 hardcode_shlibpath_var_F77=no
15203 hardcode_direct_F77=yes
15204 hardcode_shlibpath_var_F77=no
15205 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15206 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15207 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15208 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15209 export_dynamic_flag_spec_F77='${wl}-E'
15212 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15213 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15214 hardcode_libdir_flag_spec_F77='-R$libdir'
15217 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15218 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15225 hardcode_libdir_flag_spec_F77='-L$libdir'
15226 hardcode_minus_L_F77=yes
15227 allow_undefined_flag_F77=unsupported
15228 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'
15229 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15233 if test "$GCC" = yes; then
15234 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15235 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'
15237 allow_undefined_flag_F77=' -expect_unresolved \*'
15238 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'
15240 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15241 hardcode_libdir_separator_F77=:
15244 osf4* | osf5*) # as osf3* with the addition of -msym flag
15245 if test "$GCC" = yes; then
15246 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15247 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'
15248 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15250 allow_undefined_flag_F77=' -expect_unresolved \*'
15251 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'
15252 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~
15253 $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'
15255 # Both c and cxx compiler support -rpath directly
15256 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15258 hardcode_libdir_separator_F77=:
15262 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15263 hardcode_shlibpath_var_F77=no
15264 export_dynamic_flag_spec_F77='${wl}-Bexport'
15265 runpath_var=LD_RUN_PATH
15266 hardcode_runpath_var=yes
15270 no_undefined_flag_F77=' -z text'
15271 if test "$GCC" = yes; then
15273 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15274 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15275 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15278 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15279 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15280 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15282 hardcode_libdir_flag_spec_F77='-R$libdir'
15283 hardcode_shlibpath_var_F77=no
15285 solaris2.[0-5] | solaris2.[0-5].*) ;;
15287 # The compiler driver will combine linker options so we
15288 # cannot just pass the convience library names through
15289 # without $wl, iff we do not link with $LD.
15290 # Luckily, gcc supports the same syntax we need for Sun Studio.
15291 # Supported since Solaris 2.6 (maybe 2.5.1?)
15294 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15296 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15299 link_all_deplibs_F77=yes
15303 if test "x$host_vendor" = xsequent; then
15304 # Use $CC to link under sequent, because it throws in some extra .o
15305 # files that make .init and .fini sections work.
15306 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15308 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15310 hardcode_libdir_flag_spec_F77='-L$libdir'
15311 hardcode_direct_F77=yes
15312 hardcode_minus_L_F77=yes
15313 hardcode_shlibpath_var_F77=no
15317 case $host_vendor in
15319 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15320 hardcode_direct_F77=yes # is this really true???
15323 ## LD is ld it makes a PLAMLIB
15324 ## CC just makes a GrossModule.
15325 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15326 reload_cmds_F77='$CC -r -o $output$reload_objs'
15327 hardcode_direct_F77=no
15330 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15331 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15334 runpath_var='LD_RUN_PATH'
15335 hardcode_shlibpath_var_F77=no
15339 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15340 hardcode_shlibpath_var_F77=no
15341 export_dynamic_flag_spec_F77='-Bexport'
15345 if test -d /usr/nec; then
15346 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15347 hardcode_shlibpath_var_F77=no
15348 runpath_var=LD_RUN_PATH
15349 hardcode_runpath_var=yes
15355 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15356 hardcode_direct_F77=yes
15357 hardcode_minus_L_F77=no
15358 hardcode_shlibpath_var_F77=no
15359 hardcode_runpath_var=yes
15360 runpath_var=LD_RUN_PATH
15363 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15364 no_undefined_flag_F77='${wl}-z ${wl}text'
15365 if test "$GCC" = yes; then
15366 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15368 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15370 runpath_var='LD_RUN_PATH'
15371 hardcode_shlibpath_var_F77=no
15375 no_undefined_flag_F77=' -z text'
15376 # $CC -shared without GNU ld will not create a library from C++
15377 # object files and a static libstdc++, better avoid it by now
15378 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15379 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15380 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15381 hardcode_libdir_flag_spec_F77=
15382 hardcode_shlibpath_var_F77=no
15383 runpath_var='LD_RUN_PATH'
15387 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15388 hardcode_libdir_flag_spec_F77='-L$libdir'
15389 hardcode_shlibpath_var_F77=no
15398 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15399 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15400 test "$ld_shlibs_F77" = no && can_build_shared=no
15402 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15403 if test "$GCC" = yes; then
15404 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15408 # Do we need to explicitly link libc?
15410 case "x$archive_cmds_need_lc_F77" in
15412 # Assume -lc should be added
15413 archive_cmds_need_lc_F77=yes
15415 if test "$enable_shared" = yes && test "$GCC" = yes; then
15416 case $archive_cmds_F77 in
15418 # FIXME: we may have to deal with multi-command sequences.
15421 # Test whether the compiler implicitly links with -lc since on some
15422 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15423 # to ld, don't add -lc before -lgcc.
15424 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15425 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15427 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15430 (eval $ac_compile) 2>&5
15432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 (exit $ac_status); } 2>conftest.err; then
15436 libobjs=conftest.$ac_objext
15438 wl=$lt_prog_compiler_wl_F77
15444 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15445 allow_undefined_flag_F77=
15446 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15447 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450 (exit $ac_status); }
15452 archive_cmds_need_lc_F77=no
15454 archive_cmds_need_lc_F77=yes
15456 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15458 cat conftest.err 1>&5
15461 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15462 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15469 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15470 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15471 library_names_spec=
15472 libname_spec='lib$name'
15476 postuninstall_cmds=
15480 shlibpath_overrides_runpath=unknown
15482 dynamic_linker="$host_os ld.so"
15483 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15484 if test "$GCC" = yes; then
15485 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15486 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15487 # if the path contains ";" then we assume it to be the separator
15488 # otherwise default to the standard path separator (i.e. ":") - it is
15489 # assumed that no part of a normal pathname contains ";" but that should
15490 # okay in the real world where ";" in dirpaths is itself problematic.
15491 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15493 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15496 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15498 need_lib_prefix=unknown
15499 hardcode_into_libs=no
15501 # when you set need_version to no, make sure it does not cause -set_version
15502 # flags to be left without arguments
15503 need_version=unknown
15508 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15509 shlibpath_var=LIBPATH
15511 # AIX 3 has no versioning support, so we append a major version to the name.
15512 soname_spec='${libname}${release}${shared_ext}$major'
15519 hardcode_into_libs=yes
15520 if test "$host_cpu" = ia64; then
15521 # AIX 5 supports IA64
15522 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15523 shlibpath_var=LD_LIBRARY_PATH
15525 # With GCC up to 2.95.x, collect2 would create an import file
15526 # for dependence libraries. The import file would start with
15527 # the line `#! .'. This would cause the generated library to
15528 # depend on `.', always an invalid library. This was fixed in
15529 # development snapshots of GCC prior to 3.0.
15531 aix4 | aix4.[01] | aix4.[01].*)
15532 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15534 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15537 can_build_shared=no
15541 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15542 # soname into executable. Probably we can add versioning support to
15543 # collect2, so additional links can be useful in future.
15544 if test "$aix_use_runtimelinking" = yes; then
15545 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15546 # instead of lib<name>.a to let people know that these are not
15547 # typical AIX shared libraries.
15548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15550 # We preserve .a as extension for shared libraries through AIX4.2
15551 # and later when we are not doing run time linking.
15552 library_names_spec='${libname}${release}.a $libname.a'
15553 soname_spec='${libname}${release}${shared_ext}$major'
15555 shlibpath_var=LIBPATH
15560 library_names_spec='$libname.ixlibrary $libname.a'
15561 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15562 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'
15566 library_names_spec='${libname}${shared_ext}'
15567 dynamic_linker="$host_os ld.so"
15568 shlibpath_var=LIBRARY_PATH
15574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15575 soname_spec='${libname}${release}${shared_ext}$major'
15576 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15577 shlibpath_var=LD_LIBRARY_PATH
15578 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15579 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15580 # the default ld.so.conf also contains /usr/contrib/lib and
15581 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15582 # libtool to hard-code these into programs
15585 cygwin* | mingw* | pw32*)
15586 version_type=windows
15591 case $GCC,$host_os in
15592 yes,cygwin* | yes,mingw* | yes,pw32*)
15593 library_names_spec='$libname.dll.a'
15594 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15595 postinstall_cmds='base_file=`basename \${file}`~
15596 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15597 dldir=$destdir/`dirname \$dlpath`~
15598 test -d \$dldir || mkdir -p \$dldir~
15599 $install_prog $dir/$dlname \$dldir/$dlname~
15600 chmod a+x \$dldir/$dlname'
15601 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15602 dlpath=$dir/\$dldll~
15604 shlibpath_overrides_runpath=yes
15608 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15609 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15610 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15613 # MinGW DLLs use traditional 'lib' prefix
15614 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15615 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15616 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15617 # It is most probably a Windows format PATH printed by
15618 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15619 # path with ; separators, and with drive letters. We can handle the
15620 # drive letters (cygwin fileutils understands them), so leave them,
15621 # especially as we might pass files found there to a mingw objdump,
15622 # which wouldn't understand a cygwinified path. Ahh.
15623 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15625 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15629 # pw32 DLLs use 'pw' prefix rather than 'lib'
15630 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15636 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15639 dynamic_linker='Win32 ld.exe'
15640 # FIXME: first we should search . and the directory the executable is in
15644 darwin* | rhapsody*)
15645 dynamic_linker="$host_os dyld"
15646 version_type=darwin
15649 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15650 soname_spec='${libname}${release}${major}$shared_ext'
15651 shlibpath_overrides_runpath=yes
15652 shlibpath_var=DYLD_LIBRARY_PATH
15653 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15654 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15655 if test "$GCC" = yes; then
15656 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15658 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15660 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15668 soname_spec='${libname}${release}${shared_ext}$major'
15669 shlibpath_var=LD_LIBRARY_PATH
15680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15681 soname_spec='${libname}${release}${shared_ext}$major'
15682 shlibpath_var=LD_LIBRARY_PATH
15683 shlibpath_overrides_runpath=no
15684 hardcode_into_libs=yes
15685 dynamic_linker='GNU ld.so'
15688 freebsd* | dragonfly*)
15689 # DragonFly does not have aout. When/if they implement a new
15690 # versioning mechanism, adjust this.
15691 if test -x /usr/bin/objformat; then
15692 objformat=`/usr/bin/objformat`
15695 freebsd[123]*) objformat=aout ;;
15696 *) objformat=elf ;;
15699 version_type=freebsd-$objformat
15700 case $version_type in
15702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15707 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15711 shlibpath_var=LD_LIBRARY_PATH
15714 shlibpath_overrides_runpath=yes
15716 freebsd3.[01]* | freebsdelf3.[01]*)
15717 shlibpath_overrides_runpath=yes
15718 hardcode_into_libs=yes
15721 shlibpath_overrides_runpath=no
15722 hardcode_into_libs=yes
15731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15732 soname_spec='${libname}${release}${shared_ext}$major'
15733 shlibpath_var=LD_LIBRARY_PATH
15734 hardcode_into_libs=yes
15737 hpux9* | hpux10* | hpux11*)
15738 # Give a soname corresponding to the major version so that dld.sl refuses to
15739 # link against other versions.
15746 hardcode_into_libs=yes
15747 dynamic_linker="$host_os dld.so"
15748 shlibpath_var=LD_LIBRARY_PATH
15749 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15751 soname_spec='${libname}${release}${shared_ext}$major'
15752 if test "X$HPUX_IA64_MODE" = X32; then
15753 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15755 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15757 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15761 hardcode_into_libs=yes
15762 dynamic_linker="$host_os dld.sl"
15763 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15764 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15766 soname_spec='${libname}${release}${shared_ext}$major'
15767 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15768 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15772 dynamic_linker="$host_os dld.sl"
15773 shlibpath_var=SHLIB_PATH
15774 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15776 soname_spec='${libname}${release}${shared_ext}$major'
15779 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15780 postinstall_cmds='chmod 555 $lib'
15783 irix5* | irix6* | nonstopux*)
15785 nonstopux*) version_type=nonstopux ;;
15787 if test "$lt_cv_prog_gnu_ld" = yes; then
15795 soname_spec='${libname}${release}${shared_ext}$major'
15796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15798 irix5* | nonstopux*)
15799 libsuff= shlibsuff=
15802 case $LD in # libtool.m4 will add one of these switches to LD
15803 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15804 libsuff= shlibsuff= libmagic=32-bit;;
15805 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15806 libsuff=32 shlibsuff=N32 libmagic=N32;;
15807 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15808 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15809 *) libsuff= shlibsuff= libmagic=never-match;;
15813 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15814 shlibpath_overrides_runpath=no
15815 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15816 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15817 hardcode_into_libs=yes
15820 # No shared lib support for Linux oldld, aout, or coff.
15821 linux*oldld* | linux*aout* | linux*coff*)
15825 # This must be Linux ELF.
15830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15831 soname_spec='${libname}${release}${shared_ext}$major'
15832 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15833 shlibpath_var=LD_LIBRARY_PATH
15834 shlibpath_overrides_runpath=no
15835 # This implies no fast_install, which is unacceptable.
15836 # Some rework will be needed to allow for fast_install
15837 # before this can be enabled.
15838 hardcode_into_libs=yes
15840 # Append ld.so.conf contents to the search path
15841 if test -f /etc/ld.so.conf; then
15842 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15843 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15846 # We used to test for /lib/ld.so.1 and disable shared libraries on
15847 # powerpc, because MkLinux only supported shared libraries with the
15848 # GNU dynamic linker. Since this was broken with cross compilers,
15849 # most powerpc-linux boxes support dynamic linking these days and
15850 # people can always --disable-shared, the test was removed, and we
15851 # assume the GNU/Linux dynamic linker is in use.
15852 dynamic_linker='GNU/Linux ld.so'
15859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15860 soname_spec='${libname}${release}${shared_ext}$major'
15861 shlibpath_var=LD_LIBRARY_PATH
15862 shlibpath_overrides_runpath=no
15863 hardcode_into_libs=yes
15864 dynamic_linker='NetBSD ld.elf_so'
15871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15872 soname_spec='${libname}${release}${shared_ext}$major'
15873 shlibpath_var=LD_LIBRARY_PATH
15874 shlibpath_overrides_runpath=no
15875 hardcode_into_libs=yes
15876 dynamic_linker='GNU ld.so'
15883 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15885 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15886 dynamic_linker='NetBSD (a.out) ld.so'
15888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15889 soname_spec='${libname}${release}${shared_ext}$major'
15890 dynamic_linker='NetBSD ld.elf_so'
15892 shlibpath_var=LD_LIBRARY_PATH
15893 shlibpath_overrides_runpath=yes
15894 hardcode_into_libs=yes
15899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15900 shlibpath_var=LD_LIBRARY_PATH
15901 shlibpath_overrides_runpath=yes
15908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15909 soname_spec='${libname}${release}${shared_ext}$major'
15910 shlibpath_var=LD_LIBRARY_PATH
15911 shlibpath_overrides_runpath=yes
15917 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15919 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15920 *) need_version=no ;;
15922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15923 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15924 shlibpath_var=LD_LIBRARY_PATH
15925 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15927 openbsd2.[89] | openbsd2.[89].*)
15928 shlibpath_overrides_runpath=no
15931 shlibpath_overrides_runpath=yes
15935 shlibpath_overrides_runpath=yes
15940 libname_spec='$name'
15943 library_names_spec='$libname${shared_ext} $libname.a'
15944 dynamic_linker='OS/2 ld.exe'
15945 shlibpath_var=LIBPATH
15948 osf3* | osf4* | osf5*)
15952 soname_spec='${libname}${release}${shared_ext}$major'
15953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15954 shlibpath_var=LD_LIBRARY_PATH
15955 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15956 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15961 soname_spec='${libname}${release}${shared_ext}$major'
15962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15963 shlibpath_var=LD_LIBRARY_PATH
15970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15971 soname_spec='${libname}${release}${shared_ext}$major'
15972 shlibpath_var=LD_LIBRARY_PATH
15973 shlibpath_overrides_runpath=yes
15974 hardcode_into_libs=yes
15975 # ldd complains unless libraries are executable
15976 postinstall_cmds='chmod +x $lib'
15981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15982 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15983 shlibpath_var=LD_LIBRARY_PATH
15984 shlibpath_overrides_runpath=yes
15985 if test "$with_gnu_ld" = yes; then
15991 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15994 soname_spec='${libname}${release}${shared_ext}$major'
15995 shlibpath_var=LD_LIBRARY_PATH
15996 case $host_vendor in
15998 shlibpath_overrides_runpath=no
16000 export_dynamic_flag_spec='${wl}-Blargedynsym'
16001 runpath_var=LD_RUN_PATH
16009 shlibpath_overrides_runpath=no
16010 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16016 if test -d /usr/nec ;then
16018 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16019 soname_spec='$libname${shared_ext}.$major'
16020 shlibpath_var=LD_LIBRARY_PATH
16026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16027 soname_spec='${libname}${release}${shared_ext}$major'
16028 shlibpath_var=LD_LIBRARY_PATH
16035 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16036 echo "${ECHO_T}$dynamic_linker" >&6; }
16037 test "$dynamic_linker" = no && can_build_shared=no
16039 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16040 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16041 hardcode_action_F77=
16042 if test -n "$hardcode_libdir_flag_spec_F77" || \
16043 test -n "$runpath_var_F77" || \
16044 test "X$hardcode_automatic_F77" = "Xyes" ; then
16046 # We can hardcode non-existant directories.
16047 if test "$hardcode_direct_F77" != no &&
16048 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16049 # have to relink, otherwise we might link with an installed library
16050 # when we should be linking with a yet-to-be-installed one
16051 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16052 test "$hardcode_minus_L_F77" != no; then
16053 # Linking always hardcodes the temporary library directory.
16054 hardcode_action_F77=relink
16056 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16057 hardcode_action_F77=immediate
16060 # We cannot hardcode anything, or else we can only hardcode existing
16062 hardcode_action_F77=unsupported
16064 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16065 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16067 if test "$hardcode_action_F77" = relink; then
16068 # Fast installation is not supported
16069 enable_fast_install=no
16070 elif test "$shlibpath_overrides_runpath" = yes ||
16071 test "$enable_shared" = no; then
16072 # Fast installation is not necessary
16073 enable_fast_install=needless
16078 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16079 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16080 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16081 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16082 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16083 { echo "$as_me:$LINENO: result: yes" >&5
16084 echo "${ECHO_T}yes" >&6; }
16086 # FIXME - insert some real tests, host_os isn't really good enough
16089 if test -n "$STRIP" ; then
16090 striplib="$STRIP -x"
16091 { echo "$as_me:$LINENO: result: yes" >&5
16092 echo "${ECHO_T}yes" >&6; }
16094 { echo "$as_me:$LINENO: result: no" >&5
16095 echo "${ECHO_T}no" >&6; }
16099 { echo "$as_me:$LINENO: result: no" >&5
16100 echo "${ECHO_T}no" >&6; }
16107 # The else clause should only fire when bootstrapping the
16108 # libtool distribution, otherwise you forgot to ship ltmain.sh
16109 # with your package, and you will get complaints that there are
16110 # no rules to generate ltmain.sh.
16111 if test -f "$ltmain"; then
16112 # See if we are running on zsh, and set the options which allow our commands through
16113 # without removal of \ escapes.
16114 if test -n "${ZSH_VERSION+set}" ; then
16115 setopt NO_GLOB_SUBST
16117 # Now quote all the things that may contain metacharacters while being
16118 # careful not to overquote the AC_SUBSTed values. We take copies of the
16119 # variables and quote the copies for generation of the libtool script.
16120 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16122 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16123 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16124 deplibs_check_method reload_flag reload_cmds need_locks \
16125 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16126 lt_cv_sys_global_symbol_to_c_name_address \
16127 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16128 old_postinstall_cmds old_postuninstall_cmds \
16132 lt_prog_compiler_wl_F77 \
16133 lt_prog_compiler_pic_F77 \
16134 lt_prog_compiler_static_F77 \
16135 lt_prog_compiler_no_builtin_flag_F77 \
16136 export_dynamic_flag_spec_F77 \
16137 thread_safe_flag_spec_F77 \
16138 whole_archive_flag_spec_F77 \
16139 enable_shared_with_static_runtimes_F77 \
16140 old_archive_cmds_F77 \
16141 old_archive_from_new_cmds_F77 \
16142 predep_objects_F77 \
16143 postdep_objects_F77 \
16146 compiler_lib_search_path_F77 \
16148 archive_expsym_cmds_F77 \
16149 postinstall_cmds_F77 \
16150 postuninstall_cmds_F77 \
16151 old_archive_from_expsyms_cmds_F77 \
16152 allow_undefined_flag_F77 \
16153 no_undefined_flag_F77 \
16154 export_symbols_cmds_F77 \
16155 hardcode_libdir_flag_spec_F77 \
16156 hardcode_libdir_flag_spec_ld_F77 \
16157 hardcode_libdir_separator_F77 \
16158 hardcode_automatic_F77 \
16160 module_expsym_cmds_F77 \
16161 lt_cv_prog_compiler_c_o_F77 \
16162 exclude_expsyms_F77 \
16163 include_expsyms_F77; do
16166 old_archive_cmds_F77 | \
16167 old_archive_from_new_cmds_F77 | \
16168 archive_cmds_F77 | \
16169 archive_expsym_cmds_F77 | \
16170 module_cmds_F77 | \
16171 module_expsym_cmds_F77 | \
16172 old_archive_from_expsyms_cmds_F77 | \
16173 export_symbols_cmds_F77 | \
16174 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16175 postinstall_cmds | postuninstall_cmds | \
16176 old_postinstall_cmds | old_postuninstall_cmds | \
16177 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16178 # Double-quote double-evaled strings.
16179 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16182 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16188 *'\$0 --fallback-echo"')
16189 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16195 cat <<__EOF__ >> "$cfgfile"
16196 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16198 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16200 # Shell to use when invoking shell scripts.
16203 # Whether or not to build shared libraries.
16204 build_libtool_libs=$enable_shared
16206 # Whether or not to build static libraries.
16207 build_old_libs=$enable_static
16209 # Whether or not to add -lc for building shared libraries.
16210 build_libtool_need_lc=$archive_cmds_need_lc_F77
16212 # Whether or not to disallow shared libs when runtime libs are static
16213 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16215 # Whether or not to optimize for fast installation.
16216 fast_install=$enable_fast_install
16219 host_alias=$host_alias
16223 # The build system.
16224 build_alias=$build_alias
16228 # An echo program that does not interpret backslashes.
16233 AR_FLAGS=$lt_AR_FLAGS
16238 # A language-specific compiler.
16239 CC=$lt_compiler_F77
16241 # Is the compiler the GNU C compiler?
16247 # The linker used to build libraries.
16250 # Whether we need hard or soft links.
16253 # A BSD-compatible nm program.
16256 # A symbol stripping program
16259 # Used to examine libraries when file_magic_cmd begins "file"
16260 MAGIC_CMD=$MAGIC_CMD
16262 # Used on cygwin: DLL creation program.
16265 # Used on cygwin: object dumper.
16268 # Used on cygwin: assembler.
16271 # The name of the directory that contains temporary libtool files.
16274 # How to create reloadable object files.
16275 reload_flag=$lt_reload_flag
16276 reload_cmds=$lt_reload_cmds
16278 # How to pass a linker flag through the compiler.
16279 wl=$lt_lt_prog_compiler_wl_F77
16281 # Object file suffix (normally "o").
16282 objext="$ac_objext"
16284 # Old archive suffix (normally "a").
16287 # Shared library suffix (normally ".so").
16288 shrext_cmds='$shrext_cmds'
16290 # Executable file suffix (normally "").
16293 # Additional compiler flags for building library objects.
16294 pic_flag=$lt_lt_prog_compiler_pic_F77
16297 # What is the maximum length of a command?
16298 max_cmd_len=$lt_cv_sys_max_cmd_len
16300 # Does compiler simultaneously support -c and -o options?
16301 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16303 # Must we lock files when doing compilation?
16304 need_locks=$lt_need_locks
16306 # Do we need the lib prefix for modules?
16307 need_lib_prefix=$need_lib_prefix
16309 # Do we need a version for libraries?
16310 need_version=$need_version
16312 # Whether dlopen is supported.
16313 dlopen_support=$enable_dlopen
16315 # Whether dlopen of programs is supported.
16316 dlopen_self=$enable_dlopen_self
16318 # Whether dlopen of statically linked programs is supported.
16319 dlopen_self_static=$enable_dlopen_self_static
16321 # Compiler flag to prevent dynamic linking.
16322 link_static_flag=$lt_lt_prog_compiler_static_F77
16324 # Compiler flag to turn off builtin functions.
16325 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16327 # Compiler flag to allow reflexive dlopens.
16328 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16330 # Compiler flag to generate shared objects directly from archives.
16331 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16333 # Compiler flag to generate thread-safe objects.
16334 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16336 # Library versioning type.
16337 version_type=$version_type
16339 # Format of library name prefix.
16340 libname_spec=$lt_libname_spec
16342 # List of archive names. First name is the real one, the rest are links.
16343 # The last name is the one that the linker finds with -lNAME.
16344 library_names_spec=$lt_library_names_spec
16346 # The coded name of the library, if different from the real name.
16347 soname_spec=$lt_soname_spec
16349 # Commands used to build and install an old-style archive.
16351 old_archive_cmds=$lt_old_archive_cmds_F77
16352 old_postinstall_cmds=$lt_old_postinstall_cmds
16353 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16355 # Create an old-style archive from a shared archive.
16356 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16358 # Create a temporary old-style archive to link instead of a shared archive.
16359 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16361 # Commands used to build and install a shared archive.
16362 archive_cmds=$lt_archive_cmds_F77
16363 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16364 postinstall_cmds=$lt_postinstall_cmds
16365 postuninstall_cmds=$lt_postuninstall_cmds
16367 # Commands used to build a loadable module (assumed same as above if empty)
16368 module_cmds=$lt_module_cmds_F77
16369 module_expsym_cmds=$lt_module_expsym_cmds_F77
16371 # Commands to strip libraries.
16372 old_striplib=$lt_old_striplib
16373 striplib=$lt_striplib
16375 # Dependencies to place before the objects being linked to create a
16377 predep_objects=$lt_predep_objects_F77
16379 # Dependencies to place after the objects being linked to create a
16381 postdep_objects=$lt_postdep_objects_F77
16383 # Dependencies to place before the objects being linked to create a
16385 predeps=$lt_predeps_F77
16387 # Dependencies to place after the objects being linked to create a
16389 postdeps=$lt_postdeps_F77
16391 # The library search path used internally by the compiler when linking
16392 # a shared library.
16393 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16395 # Method to check whether dependent libraries are shared objects.
16396 deplibs_check_method=$lt_deplibs_check_method
16398 # Command to use when deplibs_check_method == file_magic.
16399 file_magic_cmd=$lt_file_magic_cmd
16401 # Flag that allows shared libraries with undefined symbols to be built.
16402 allow_undefined_flag=$lt_allow_undefined_flag_F77
16404 # Flag that forces no undefined symbols.
16405 no_undefined_flag=$lt_no_undefined_flag_F77
16407 # Commands used to finish a libtool library installation in a directory.
16408 finish_cmds=$lt_finish_cmds
16410 # Same as above, but a single script fragment to be evaled but not shown.
16411 finish_eval=$lt_finish_eval
16413 # Take the output of nm and produce a listing of raw symbols and C names.
16414 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16416 # Transform the output of nm in a proper C declaration
16417 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16419 # Transform the output of nm in a C name address pair
16420 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16422 # This is the shared library runtime path variable.
16423 runpath_var=$runpath_var
16425 # This is the shared library path variable.
16426 shlibpath_var=$shlibpath_var
16428 # Is shlibpath searched before the hard-coded library search path?
16429 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16431 # How to hardcode a shared library path into an executable.
16432 hardcode_action=$hardcode_action_F77
16434 # Whether we should hardcode library paths into libraries.
16435 hardcode_into_libs=$hardcode_into_libs
16437 # Flag to hardcode \$libdir into a binary during linking.
16438 # This must work even if \$libdir does not exist.
16439 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16441 # If ld is used when linking, flag to hardcode \$libdir into
16442 # a binary during linking. This must work even if \$libdir does
16444 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16446 # Whether we need a single -rpath flag with a separated argument.
16447 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16449 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16450 # resulting binary.
16451 hardcode_direct=$hardcode_direct_F77
16453 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16454 # resulting binary.
16455 hardcode_minus_L=$hardcode_minus_L_F77
16457 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16458 # the resulting binary.
16459 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16461 # Set to yes if building a shared library automatically hardcodes DIR into the library
16462 # and all subsequent libraries and executables linked against it.
16463 hardcode_automatic=$hardcode_automatic_F77
16465 # Variables whose values should be saved in libtool wrapper scripts and
16466 # restored at relink time.
16467 variables_saved_for_relink="$variables_saved_for_relink"
16469 # Whether libtool must link a program against all its dependency libraries.
16470 link_all_deplibs=$link_all_deplibs_F77
16472 # Compile-time system search path for libraries
16473 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16475 # Run-time system search path for libraries
16476 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16478 # Fix the shell variable \$srcfile for the compiler.
16479 fix_srcfile_path="$fix_srcfile_path_F77"
16481 # Set to yes if exported symbols are required.
16482 always_export_symbols=$always_export_symbols_F77
16484 # The commands to list exported symbols.
16485 export_symbols_cmds=$lt_export_symbols_cmds_F77
16487 # The commands to extract the exported symbol list from a shared archive.
16488 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16490 # Symbols that should not be listed in the preloaded symbols.
16491 exclude_expsyms=$lt_exclude_expsyms_F77
16493 # Symbols that must always be exported.
16494 include_expsyms=$lt_include_expsyms_F77
16496 # ### END LIBTOOL TAG CONFIG: $tagname
16502 # If there is no Makefile yet, we rely on a make rule to execute
16503 # `config.status --recheck' to rerun these tests and create the
16504 # libtool script then.
16505 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16506 if test -f "$ltmain_in"; then
16507 test -f Makefile && make "$ltmain"
16513 ac_cpp='$CPP $CPPFLAGS'
16514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16526 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16529 # Source file extension for Java test sources.
16532 # Object file extension for compiled Java test sources.
16536 # Code to be used in simple compile tests
16537 lt_simple_compile_test_code="class foo {}\n"
16539 # Code to be used in simple link tests
16540 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16542 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16544 # If no C compiler was specified, use CC.
16547 # Allow CC to be a program name with arguments.
16551 # save warnings/boilerplate of simple test code
16552 ac_outfile=conftest.$ac_objext
16553 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16554 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16555 _lt_compiler_boilerplate=`cat conftest.err`
16558 ac_outfile=conftest.$ac_objext
16559 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16560 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16561 _lt_linker_boilerplate=`cat conftest.err`
16565 # Allow CC to be a program name with arguments.
16570 for cc_temp in $compiler""; do
16572 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16573 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16578 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16581 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16582 archive_cmds_need_lc_GCJ=no
16584 old_archive_cmds_GCJ=$old_archive_cmds
16587 ## There is no encapsulation within the following macros, do not change
16588 ## the running order or otherwise move them around unless you know exactly
16589 ## what you are doing...
16591 lt_prog_compiler_no_builtin_flag_GCJ=
16593 if test "$GCC" = yes; then
16594 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16597 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16598 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16599 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16600 echo $ECHO_N "(cached) $ECHO_C" >&6
16602 lt_cv_prog_compiler_rtti_exceptions=no
16603 ac_outfile=conftest.$ac_objext
16604 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16605 lt_compiler_flag="-fno-rtti -fno-exceptions"
16606 # Insert the option either (1) after the last *FLAGS variable, or
16607 # (2) before a word containing "conftest.", or (3) at the end.
16608 # Note that $ac_compile itself does not contain backslashes and begins
16609 # with a dollar sign (not a hyphen), so the echo should work correctly.
16610 # The option is referenced via a variable to avoid confusing sed.
16611 lt_compile=`echo "$ac_compile" | $SED \
16612 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16613 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16614 -e 's:$: $lt_compiler_flag:'`
16615 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16616 (eval "$lt_compile" 2>conftest.err)
16618 cat conftest.err >&5
16619 echo "$as_me:__oline__: \$? = $ac_status" >&5
16620 if (exit $ac_status) && test -s "$ac_outfile"; then
16621 # The compiler can only warn and ignore the option if not recognized
16622 # So say no if there are warnings other than the usual output.
16623 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16624 $SED '/^$/d' conftest.err >conftest.er2
16625 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16626 lt_cv_prog_compiler_rtti_exceptions=yes
16632 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16633 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16635 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16636 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16643 lt_prog_compiler_wl_GCJ=
16644 lt_prog_compiler_pic_GCJ=
16645 lt_prog_compiler_static_GCJ=
16647 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16648 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16650 if test "$GCC" = yes; then
16651 lt_prog_compiler_wl_GCJ='-Wl,'
16652 lt_prog_compiler_static_GCJ='-static'
16656 # All AIX code is PIC.
16657 if test "$host_cpu" = ia64; then
16658 # AIX 5 now supports IA64 processor
16659 lt_prog_compiler_static_GCJ='-Bstatic'
16664 # FIXME: we need at least 68020 code to build shared libraries, but
16665 # adding the `-m68020' flag to GCC prevents building anything better,
16667 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16670 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16671 # PIC is the default for these OSes.
16674 mingw* | pw32* | os2*)
16675 # This hack is so that the source file can tell whether it is being
16676 # built for inclusion in a dll (and should export symbols for example).
16677 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16680 darwin* | rhapsody*)
16681 # PIC is the default on this platform
16682 # Common symbols not allowed in MH_DYLIB files
16683 lt_prog_compiler_pic_GCJ='-fno-common'
16687 # Just because we use GCC doesn't mean we suddenly get shared libraries
16688 # on systems that don't support them.
16689 lt_prog_compiler_can_build_shared_GCJ=no
16694 if test -d /usr/nec; then
16695 lt_prog_compiler_pic_GCJ=-Kconform_pic
16700 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16701 # not for PA HP-UX.
16707 lt_prog_compiler_pic_GCJ='-fPIC'
16713 lt_prog_compiler_pic_GCJ='-fPIC'
16717 # PORTME Check for flag to pass linker flags through the system compiler.
16720 lt_prog_compiler_wl_GCJ='-Wl,'
16721 if test "$host_cpu" = ia64; then
16722 # AIX 5 now supports IA64 processor
16723 lt_prog_compiler_static_GCJ='-Bstatic'
16725 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16729 # PIC is the default on this platform
16730 # Common symbols not allowed in MH_DYLIB files
16731 case $cc_basename in
16733 lt_prog_compiler_pic_GCJ='-qnocommon'
16734 lt_prog_compiler_wl_GCJ='-Wl,'
16739 mingw* | pw32* | os2*)
16740 # This hack is so that the source file can tell whether it is being
16741 # built for inclusion in a dll (and should export symbols for example).
16742 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16745 hpux9* | hpux10* | hpux11*)
16746 lt_prog_compiler_wl_GCJ='-Wl,'
16747 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16748 # not for PA HP-UX.
16754 lt_prog_compiler_pic_GCJ='+Z'
16757 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16758 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16761 irix5* | irix6* | nonstopux*)
16762 lt_prog_compiler_wl_GCJ='-Wl,'
16763 # PIC (with -KPIC) is the default.
16764 lt_prog_compiler_static_GCJ='-non_shared'
16768 lt_prog_compiler_pic_GCJ='-KPIC'
16769 lt_prog_compiler_static_GCJ='-Bstatic'
16773 case $cc_basename in
16775 lt_prog_compiler_wl_GCJ='-Wl,'
16776 lt_prog_compiler_pic_GCJ='-KPIC'
16777 lt_prog_compiler_static_GCJ='-static'
16779 pgcc* | pgf77* | pgf90* | pgf95*)
16780 # Portland Group compilers (*not* the Pentium gcc compiler,
16781 # which looks to be a dead project)
16782 lt_prog_compiler_wl_GCJ='-Wl,'
16783 lt_prog_compiler_pic_GCJ='-fpic'
16784 lt_prog_compiler_static_GCJ='-Bstatic'
16787 lt_prog_compiler_wl_GCJ='-Wl,'
16788 # All Alpha code is PIC.
16789 lt_prog_compiler_static_GCJ='-non_shared'
16794 osf3* | osf4* | osf5*)
16795 lt_prog_compiler_wl_GCJ='-Wl,'
16796 # All OSF/1 code is PIC.
16797 lt_prog_compiler_static_GCJ='-non_shared'
16801 lt_prog_compiler_pic_GCJ='-Kpic'
16802 lt_prog_compiler_static_GCJ='-dn'
16806 lt_prog_compiler_pic_GCJ='-KPIC'
16807 lt_prog_compiler_static_GCJ='-Bstatic'
16808 case $cc_basename in
16809 f77* | f90* | f95*)
16810 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16812 lt_prog_compiler_wl_GCJ='-Wl,';;
16817 lt_prog_compiler_wl_GCJ='-Qoption ld '
16818 lt_prog_compiler_pic_GCJ='-PIC'
16819 lt_prog_compiler_static_GCJ='-Bstatic'
16822 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16823 lt_prog_compiler_wl_GCJ='-Wl,'
16824 lt_prog_compiler_pic_GCJ='-KPIC'
16825 lt_prog_compiler_static_GCJ='-Bstatic'
16829 if test -d /usr/nec ;then
16830 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16831 lt_prog_compiler_static_GCJ='-Bstatic'
16836 lt_prog_compiler_wl_GCJ='-Wl,'
16837 lt_prog_compiler_can_build_shared_GCJ=no
16841 lt_prog_compiler_pic_GCJ='-pic'
16842 lt_prog_compiler_static_GCJ='-Bstatic'
16846 lt_prog_compiler_can_build_shared_GCJ=no
16851 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16852 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16855 # Check to make sure the PIC flag actually works.
16857 if test -n "$lt_prog_compiler_pic_GCJ"; then
16859 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16860 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16861 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16862 echo $ECHO_N "(cached) $ECHO_C" >&6
16864 lt_prog_compiler_pic_works_GCJ=no
16865 ac_outfile=conftest.$ac_objext
16866 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16867 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16868 # Insert the option either (1) after the last *FLAGS variable, or
16869 # (2) before a word containing "conftest.", or (3) at the end.
16870 # Note that $ac_compile itself does not contain backslashes and begins
16871 # with a dollar sign (not a hyphen), so the echo should work correctly.
16872 # The option is referenced via a variable to avoid confusing sed.
16873 lt_compile=`echo "$ac_compile" | $SED \
16874 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16875 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16876 -e 's:$: $lt_compiler_flag:'`
16877 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16878 (eval "$lt_compile" 2>conftest.err)
16880 cat conftest.err >&5
16881 echo "$as_me:__oline__: \$? = $ac_status" >&5
16882 if (exit $ac_status) && test -s "$ac_outfile"; then
16883 # The compiler can only warn and ignore the option if not recognized
16884 # So say no if there are warnings other than the usual output.
16885 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16886 $SED '/^$/d' conftest.err >conftest.er2
16887 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16888 lt_prog_compiler_pic_works_GCJ=yes
16894 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16895 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16897 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16898 case $lt_prog_compiler_pic_GCJ in
16900 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16903 lt_prog_compiler_pic_GCJ=
16904 lt_prog_compiler_can_build_shared_GCJ=no
16909 # For platforms which do not support PIC, -DPIC is meaningless:
16911 lt_prog_compiler_pic_GCJ=
16914 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16918 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16919 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16920 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16921 echo $ECHO_N "(cached) $ECHO_C" >&6
16923 lt_cv_prog_compiler_c_o_GCJ=no
16924 $rm -r conftest 2>/dev/null
16928 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16930 lt_compiler_flag="-o out/conftest2.$ac_objext"
16931 # Insert the option either (1) after the last *FLAGS variable, or
16932 # (2) before a word containing "conftest.", or (3) at the end.
16933 # Note that $ac_compile itself does not contain backslashes and begins
16934 # with a dollar sign (not a hyphen), so the echo should work correctly.
16935 lt_compile=`echo "$ac_compile" | $SED \
16936 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16937 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16938 -e 's:$: $lt_compiler_flag:'`
16939 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16940 (eval "$lt_compile" 2>out/conftest.err)
16942 cat out/conftest.err >&5
16943 echo "$as_me:__oline__: \$? = $ac_status" >&5
16944 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16946 # The compiler can only warn and ignore the option if not recognized
16947 # So say no if there are warnings
16948 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16949 $SED '/^$/d' out/conftest.err >out/conftest.er2
16950 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16951 lt_cv_prog_compiler_c_o_GCJ=yes
16956 # SGI C++ compiler will create directory out/ii_files/ for
16957 # template instantiation
16958 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16959 $rm out/* && rmdir out
16965 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16966 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16969 hard_links="nottested"
16970 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16971 # do not overwrite the value of need_locks provided by the user
16972 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16973 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16976 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16978 ln conftest.a conftest.b 2>&5 || hard_links=no
16979 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16980 { echo "$as_me:$LINENO: result: $hard_links" >&5
16981 echo "${ECHO_T}$hard_links" >&6; }
16982 if test "$hard_links" = no; then
16983 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16984 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16991 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16992 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16995 allow_undefined_flag_GCJ=
16996 enable_shared_with_static_runtimes_GCJ=no
16998 archive_expsym_cmds_GCJ=
16999 old_archive_From_new_cmds_GCJ=
17000 old_archive_from_expsyms_cmds_GCJ=
17001 export_dynamic_flag_spec_GCJ=
17002 whole_archive_flag_spec_GCJ=
17003 thread_safe_flag_spec_GCJ=
17004 hardcode_libdir_flag_spec_GCJ=
17005 hardcode_libdir_flag_spec_ld_GCJ=
17006 hardcode_libdir_separator_GCJ=
17007 hardcode_direct_GCJ=no
17008 hardcode_minus_L_GCJ=no
17009 hardcode_shlibpath_var_GCJ=unsupported
17010 link_all_deplibs_GCJ=unknown
17011 hardcode_automatic_GCJ=no
17013 module_expsym_cmds_GCJ=
17014 always_export_symbols_GCJ=no
17015 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17016 # include_expsyms should be a list of space-separated symbols to be *always*
17017 # included in the symbol list
17018 include_expsyms_GCJ=
17019 # exclude_expsyms can be an extended regexp of symbols to exclude
17020 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17021 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17022 # as well as any symbol that contains `d'.
17023 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17024 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17025 # platforms (ab)use it in PIC code, but their linkers get confused if
17026 # the symbol is explicitly referenced. Since portable code cannot
17027 # rely on this symbol name, it's probably fine to never include it in
17028 # preloaded symbol tables.
17029 extract_expsyms_cmds=
17030 # Just being paranoid about ensuring that cc_basename is set.
17031 for cc_temp in $compiler""; do
17033 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17034 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17039 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17042 cygwin* | mingw* | pw32*)
17043 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17044 # When not using gcc, we currently assume that we are using
17045 # Microsoft Visual C++.
17046 if test "$GCC" != yes; then
17056 if test "$with_gnu_ld" = yes; then
17057 # If archive_cmds runs LD, not CC, wlarc should be empty
17060 # Set some defaults for GNU ld with shared library support. These
17061 # are reset later if shared libraries are not supported. Putting them
17062 # here allows them to be overridden if necessary.
17063 runpath_var=LD_RUN_PATH
17064 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17065 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17066 # ancient GNU ld didn't support --whole-archive et. al.
17067 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17068 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17070 whole_archive_flag_spec_GCJ=
17072 supports_anon_versioning=no
17073 case `$LD -v 2>/dev/null` in
17074 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17075 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17076 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17077 *\ 2.11.*) ;; # other 2.11 versions
17078 *) supports_anon_versioning=yes ;;
17081 # See if GNU ld supports shared libraries.
17083 aix3* | aix4* | aix5*)
17084 # On AIX/PPC, the GNU linker is very broken
17085 if test "$host_cpu" != ia64; then
17089 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17090 *** to be unable to reliably create shared libraries on AIX.
17091 *** Therefore, libtool is disabling shared libraries support. If you
17092 *** really care for shared libraries, you may want to modify your PATH
17093 *** so that a non-GNU linker is found, and then restart.
17100 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)'
17101 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17102 hardcode_minus_L_GCJ=yes
17104 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17105 # that the semantics of dynamic libraries on AmigaOS, at least up
17106 # to version 4, is to share data among multiple programs linked
17107 # with the same dynamic library. Since this doesn't match the
17108 # behavior of shared libraries on other platforms, we can't use
17114 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17115 allow_undefined_flag_GCJ=unsupported
17116 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17117 # support --undefined. This deserves some investigation. FIXME
17118 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17124 cygwin* | mingw* | pw32*)
17125 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17126 # as there is no search path for DLLs.
17127 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17128 allow_undefined_flag_GCJ=unsupported
17129 always_export_symbols_GCJ=no
17130 enable_shared_with_static_runtimes_GCJ=yes
17131 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17133 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17134 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17135 # If the export-symbols file already is a .def file (1st line
17136 # is EXPORTS), use it as is; otherwise, prepend...
17137 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17138 cp $export_symbols $output_objdir/$soname.def;
17140 echo EXPORTS > $output_objdir/$soname.def;
17141 cat $export_symbols >> $output_objdir/$soname.def;
17143 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17150 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17152 case $cc_basename,$host_cpu in
17153 pgcc*) # Portland Group C compiler
17154 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'
17155 tmp_addflag=' $pic_flag'
17157 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17158 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'
17159 tmp_addflag=' $pic_flag -Mnomain' ;;
17160 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17161 tmp_addflag=' -i_dynamic' ;;
17162 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17163 tmp_addflag=' -i_dynamic -nofor_main' ;;
17164 ifc* | ifort*) # Intel Fortran compiler
17165 tmp_addflag=' -nofor_main' ;;
17167 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17169 if test $supports_anon_versioning = yes; then
17170 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17171 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17172 $echo "local: *; };" >> $output_objdir/$libname.ver~
17173 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17175 link_all_deplibs_GCJ=no
17181 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
17182 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17183 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17186 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17187 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17192 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17196 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17197 *** create shared libraries on Solaris systems. Therefore, libtool
17198 *** is disabling shared libraries support. We urge you to upgrade GNU
17199 *** binutils to release 2.9.1 or newer. Another option is to modify
17200 *** your PATH or compiler configuration so that the native linker is
17201 *** used, and then restart.
17204 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17205 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17206 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17213 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17215 hardcode_direct_GCJ=yes
17216 hardcode_shlibpath_var_GCJ=no
17220 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17221 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17222 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17229 if test "$ld_shlibs_GCJ" = no; then
17231 hardcode_libdir_flag_spec_GCJ=
17232 export_dynamic_flag_spec_GCJ=
17233 whole_archive_flag_spec_GCJ=
17236 # PORTME fill in a description of your system's linker (not GNU ld)
17239 allow_undefined_flag_GCJ=unsupported
17240 always_export_symbols_GCJ=yes
17241 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'
17242 # Note: this linker hardcodes the directories in LIBPATH if there
17243 # are no directories specified by -L.
17244 hardcode_minus_L_GCJ=yes
17245 if test "$GCC" = yes && test -z "$link_static_flag"; then
17246 # Neither direct hardcoding nor static linking is supported with a
17248 hardcode_direct_GCJ=unsupported
17253 if test "$host_cpu" = ia64; then
17254 # On IA64, the linker does run time linking by default, so we don't
17255 # have to do anything special.
17256 aix_use_runtimelinking=no
17257 exp_sym_flag='-Bexport'
17260 # If we're using GNU nm, then we don't want the "-C" option.
17261 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17262 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17263 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'
17265 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'
17267 aix_use_runtimelinking=no
17269 # Test if we are trying to use run time linking or normal
17270 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17271 # need to do runtime linking.
17272 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17273 for ld_flag in $LDFLAGS; do
17274 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17275 aix_use_runtimelinking=yes
17281 exp_sym_flag='-bexport'
17282 no_entry_flag='-bnoentry'
17285 # When large executables or shared objects are built, AIX ld can
17286 # have problems creating the table of contents. If linking a library
17287 # or program results in "error TOC overflow" add -mminimal-toc to
17288 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17289 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17291 archive_cmds_GCJ=''
17292 hardcode_direct_GCJ=yes
17293 hardcode_libdir_separator_GCJ=':'
17294 link_all_deplibs_GCJ=yes
17296 if test "$GCC" = yes; then
17297 case $host_os in aix4.[012]|aix4.[012].*)
17298 # We only want to do this on AIX 4.2 and lower, the check
17299 # below for broken collect2 doesn't work under 4.3+
17300 collect2name=`${CC} -print-prog-name=collect2`
17301 if test -f "$collect2name" && \
17302 strings "$collect2name" | grep resolve_lib_name >/dev/null
17304 # We have reworked collect2
17305 hardcode_direct_GCJ=yes
17307 # We have old collect2
17308 hardcode_direct_GCJ=unsupported
17309 # It fails to find uninstalled libraries when the uninstalled
17310 # path is not listed in the libpath. Setting hardcode_minus_L
17311 # to unsupported forces relinking
17312 hardcode_minus_L_GCJ=yes
17313 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17314 hardcode_libdir_separator_GCJ=
17317 shared_flag='-shared'
17318 if test "$aix_use_runtimelinking" = yes; then
17319 shared_flag="$shared_flag "'${wl}-G'
17323 if test "$host_cpu" = ia64; then
17324 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17325 # chokes on -Wl,-G. The following line is correct:
17328 if test "$aix_use_runtimelinking" = yes; then
17329 shared_flag='${wl}-G'
17331 shared_flag='${wl}-bM:SRE'
17336 # It seems that -bexpall does not export symbols beginning with
17337 # underscore (_), so it is better to generate a list of symbols to export.
17338 always_export_symbols_GCJ=yes
17339 if test "$aix_use_runtimelinking" = yes; then
17340 # Warning - without using the other runtime loading flags (-brtl),
17341 # -berok will link without error, but may produce a broken library.
17342 allow_undefined_flag_GCJ='-berok'
17343 # Determine the default libpath from the value encoded in an empty executable.
17344 cat >conftest.$ac_ext <<_ACEOF
17347 cat confdefs.h >>conftest.$ac_ext
17348 cat >>conftest.$ac_ext <<_ACEOF
17349 /* end confdefs.h. */
17359 rm -f conftest.$ac_objext conftest$ac_exeext
17360 if { (ac_try="$ac_link"
17361 case "(($ac_try" in
17362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17363 *) ac_try_echo=$ac_try;;
17365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17366 (eval "$ac_link") 2>conftest.er1
17368 grep -v '^ *+' conftest.er1 >conftest.err
17370 cat conftest.err >&5
17371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372 (exit $ac_status); } && {
17373 test -z "$ac_c_werror_flag" ||
17374 test ! -s conftest.err
17375 } && test -s conftest$ac_exeext &&
17376 $as_test_x conftest$ac_exeext; then
17378 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17380 # Check for a 64-bit object if we didn't find anything.
17381 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17384 echo "$as_me: failed program was:" >&5
17385 sed 's/^/| /' conftest.$ac_ext >&5
17390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17391 conftest$ac_exeext conftest.$ac_ext
17392 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17394 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17395 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17397 if test "$host_cpu" = ia64; then
17398 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17399 allow_undefined_flag_GCJ="-z nodefs"
17400 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
17402 # Determine the default libpath from the value encoded in an empty executable.
17403 cat >conftest.$ac_ext <<_ACEOF
17406 cat confdefs.h >>conftest.$ac_ext
17407 cat >>conftest.$ac_ext <<_ACEOF
17408 /* end confdefs.h. */
17418 rm -f conftest.$ac_objext conftest$ac_exeext
17419 if { (ac_try="$ac_link"
17420 case "(($ac_try" in
17421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17422 *) ac_try_echo=$ac_try;;
17424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17425 (eval "$ac_link") 2>conftest.er1
17427 grep -v '^ *+' conftest.er1 >conftest.err
17429 cat conftest.err >&5
17430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431 (exit $ac_status); } && {
17432 test -z "$ac_c_werror_flag" ||
17433 test ! -s conftest.err
17434 } && test -s conftest$ac_exeext &&
17435 $as_test_x conftest$ac_exeext; then
17437 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17439 # Check for a 64-bit object if we didn't find anything.
17440 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17443 echo "$as_me: failed program was:" >&5
17444 sed 's/^/| /' conftest.$ac_ext >&5
17449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17450 conftest$ac_exeext conftest.$ac_ext
17451 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17453 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17454 # Warning - without using the other run time loading flags,
17455 # -berok will link without error, but may produce a broken library.
17456 no_undefined_flag_GCJ=' ${wl}-bernotok'
17457 allow_undefined_flag_GCJ=' ${wl}-berok'
17458 # -bexpall does not export symbols beginning with underscore (_)
17459 always_export_symbols_GCJ=yes
17460 # Exported symbols can be pulled into shared objects from archives
17461 whole_archive_flag_spec_GCJ=' '
17462 archive_cmds_need_lc_GCJ=yes
17463 # This is similar to how AIX traditionally builds its shared libraries.
17464 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17470 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)'
17471 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17472 hardcode_minus_L_GCJ=yes
17473 # see comment about different semantics on the GNU ld section
17478 export_dynamic_flag_spec_GCJ=-rdynamic
17481 cygwin* | mingw* | pw32*)
17482 # When not using gcc, we currently assume that we are using
17483 # Microsoft Visual C++.
17484 # hardcode_libdir_flag_spec is actually meaningless, as there is
17485 # no search path for DLLs.
17486 hardcode_libdir_flag_spec_GCJ=' '
17487 allow_undefined_flag_GCJ=unsupported
17488 # Tell ltmain to make .lib files, not .a files.
17490 # Tell ltmain to make .dll files, not .so files.
17492 # FIXME: Setting linknames here is a bad hack.
17493 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17494 # The linker will automatically build a .lib file if we build a DLL.
17495 old_archive_From_new_cmds_GCJ='true'
17496 # FIXME: Should let the user specify the lib program.
17497 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17498 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17499 enable_shared_with_static_runtimes_GCJ=yes
17502 darwin* | rhapsody*)
17504 rhapsody* | darwin1.[012])
17505 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17508 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17509 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17511 case ${MACOSX_DEPLOYMENT_TARGET} in
17513 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17516 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17522 archive_cmds_need_lc_GCJ=no
17523 hardcode_direct_GCJ=no
17524 hardcode_automatic_GCJ=yes
17525 hardcode_shlibpath_var_GCJ=unsupported
17526 whole_archive_flag_spec_GCJ=''
17527 link_all_deplibs_GCJ=yes
17528 if test "$GCC" = yes ; then
17529 output_verbose_link_cmd='echo'
17530 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17531 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17532 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17533 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}'
17534 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17536 case $cc_basename in
17538 output_verbose_link_cmd='echo'
17539 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17540 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17541 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17542 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17543 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}'
17553 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17554 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17555 hardcode_shlibpath_var_GCJ=no
17562 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17563 # support. Future versions do this automatically, but an explicit c++rt0.o
17564 # does not break anything, and helps significantly (at the cost of a little
17567 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17568 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17569 hardcode_direct_GCJ=yes
17570 hardcode_shlibpath_var_GCJ=no
17573 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17575 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17576 hardcode_direct_GCJ=yes
17577 hardcode_minus_L_GCJ=yes
17578 hardcode_shlibpath_var_GCJ=no
17581 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17582 freebsd* | kfreebsd*-gnu | dragonfly*)
17583 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17584 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17585 hardcode_direct_GCJ=yes
17586 hardcode_shlibpath_var_GCJ=no
17590 if test "$GCC" = yes; then
17591 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'
17593 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'
17595 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17596 hardcode_libdir_separator_GCJ=:
17597 hardcode_direct_GCJ=yes
17599 # hardcode_minus_L: Not really in the search PATH,
17600 # but as the default location of the library.
17601 hardcode_minus_L_GCJ=yes
17602 export_dynamic_flag_spec_GCJ='${wl}-E'
17606 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17609 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17612 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17618 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17621 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17625 if test "$with_gnu_ld" = no; then
17628 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17629 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17630 hardcode_libdir_separator_GCJ=:
17631 hardcode_direct_GCJ=no
17632 hardcode_shlibpath_var_GCJ=no
17635 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17636 hardcode_direct_GCJ=no
17637 hardcode_shlibpath_var_GCJ=no
17639 # hardcode_minus_L: Not really in the search PATH,
17640 # but as the default location of the library.
17641 hardcode_minus_L_GCJ=yes
17644 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17645 hardcode_libdir_separator_GCJ=:
17646 hardcode_direct_GCJ=yes
17647 export_dynamic_flag_spec_GCJ='${wl}-E'
17649 # hardcode_minus_L: Not really in the search PATH,
17650 # but as the default location of the library.
17651 hardcode_minus_L_GCJ=yes
17657 irix5* | irix6* | nonstopux*)
17658 if test "$GCC" = yes; then
17659 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'
17661 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'
17662 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17664 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17665 hardcode_libdir_separator_GCJ=:
17666 link_all_deplibs_GCJ=yes
17669 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
17670 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17671 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17673 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17675 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17676 hardcode_direct_GCJ=yes
17677 hardcode_shlibpath_var_GCJ=no
17681 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17682 hardcode_direct_GCJ=yes
17683 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17684 hardcode_libdir_separator_GCJ=:
17685 hardcode_shlibpath_var_GCJ=no
17689 hardcode_direct_GCJ=yes
17690 hardcode_shlibpath_var_GCJ=no
17691 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17692 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17693 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17694 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17695 export_dynamic_flag_spec_GCJ='${wl}-E'
17698 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17699 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17700 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17703 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17704 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17711 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17712 hardcode_minus_L_GCJ=yes
17713 allow_undefined_flag_GCJ=unsupported
17714 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'
17715 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17719 if test "$GCC" = yes; then
17720 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17721 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'
17723 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17724 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'
17726 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17727 hardcode_libdir_separator_GCJ=:
17730 osf4* | osf5*) # as osf3* with the addition of -msym flag
17731 if test "$GCC" = yes; then
17732 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17733 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'
17734 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17736 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17737 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'
17738 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~
17739 $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'
17741 # Both c and cxx compiler support -rpath directly
17742 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17744 hardcode_libdir_separator_GCJ=:
17748 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17749 hardcode_shlibpath_var_GCJ=no
17750 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17751 runpath_var=LD_RUN_PATH
17752 hardcode_runpath_var=yes
17756 no_undefined_flag_GCJ=' -z text'
17757 if test "$GCC" = yes; then
17759 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17760 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17761 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17764 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17765 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17766 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17768 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17769 hardcode_shlibpath_var_GCJ=no
17771 solaris2.[0-5] | solaris2.[0-5].*) ;;
17773 # The compiler driver will combine linker options so we
17774 # cannot just pass the convience library names through
17775 # without $wl, iff we do not link with $LD.
17776 # Luckily, gcc supports the same syntax we need for Sun Studio.
17777 # Supported since Solaris 2.6 (maybe 2.5.1?)
17780 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17782 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17785 link_all_deplibs_GCJ=yes
17789 if test "x$host_vendor" = xsequent; then
17790 # Use $CC to link under sequent, because it throws in some extra .o
17791 # files that make .init and .fini sections work.
17792 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17794 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17796 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17797 hardcode_direct_GCJ=yes
17798 hardcode_minus_L_GCJ=yes
17799 hardcode_shlibpath_var_GCJ=no
17803 case $host_vendor in
17805 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17806 hardcode_direct_GCJ=yes # is this really true???
17809 ## LD is ld it makes a PLAMLIB
17810 ## CC just makes a GrossModule.
17811 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17812 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17813 hardcode_direct_GCJ=no
17816 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17817 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17820 runpath_var='LD_RUN_PATH'
17821 hardcode_shlibpath_var_GCJ=no
17825 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17826 hardcode_shlibpath_var_GCJ=no
17827 export_dynamic_flag_spec_GCJ='-Bexport'
17831 if test -d /usr/nec; then
17832 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17833 hardcode_shlibpath_var_GCJ=no
17834 runpath_var=LD_RUN_PATH
17835 hardcode_runpath_var=yes
17841 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17842 hardcode_direct_GCJ=yes
17843 hardcode_minus_L_GCJ=no
17844 hardcode_shlibpath_var_GCJ=no
17845 hardcode_runpath_var=yes
17846 runpath_var=LD_RUN_PATH
17849 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17850 no_undefined_flag_GCJ='${wl}-z ${wl}text'
17851 if test "$GCC" = yes; then
17852 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17854 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17856 runpath_var='LD_RUN_PATH'
17857 hardcode_shlibpath_var_GCJ=no
17861 no_undefined_flag_GCJ=' -z text'
17862 # $CC -shared without GNU ld will not create a library from C++
17863 # object files and a static libstdc++, better avoid it by now
17864 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17865 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17866 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17867 hardcode_libdir_flag_spec_GCJ=
17868 hardcode_shlibpath_var_GCJ=no
17869 runpath_var='LD_RUN_PATH'
17873 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17874 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17875 hardcode_shlibpath_var_GCJ=no
17884 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17885 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17886 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17888 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17889 if test "$GCC" = yes; then
17890 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17894 # Do we need to explicitly link libc?
17896 case "x$archive_cmds_need_lc_GCJ" in
17898 # Assume -lc should be added
17899 archive_cmds_need_lc_GCJ=yes
17901 if test "$enable_shared" = yes && test "$GCC" = yes; then
17902 case $archive_cmds_GCJ in
17904 # FIXME: we may have to deal with multi-command sequences.
17907 # Test whether the compiler implicitly links with -lc since on some
17908 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17909 # to ld, don't add -lc before -lgcc.
17910 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17911 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17913 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17916 (eval $ac_compile) 2>&5
17918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919 (exit $ac_status); } 2>conftest.err; then
17922 libobjs=conftest.$ac_objext
17924 wl=$lt_prog_compiler_wl_GCJ
17930 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17931 allow_undefined_flag_GCJ=
17932 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17933 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936 (exit $ac_status); }
17938 archive_cmds_need_lc_GCJ=no
17940 archive_cmds_need_lc_GCJ=yes
17942 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17944 cat conftest.err 1>&5
17947 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17948 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17955 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17956 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17957 library_names_spec=
17958 libname_spec='lib$name'
17962 postuninstall_cmds=
17966 shlibpath_overrides_runpath=unknown
17968 dynamic_linker="$host_os ld.so"
17969 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17970 if test "$GCC" = yes; then
17971 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17972 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17973 # if the path contains ";" then we assume it to be the separator
17974 # otherwise default to the standard path separator (i.e. ":") - it is
17975 # assumed that no part of a normal pathname contains ";" but that should
17976 # okay in the real world where ";" in dirpaths is itself problematic.
17977 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17979 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17982 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17984 need_lib_prefix=unknown
17985 hardcode_into_libs=no
17987 # when you set need_version to no, make sure it does not cause -set_version
17988 # flags to be left without arguments
17989 need_version=unknown
17994 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17995 shlibpath_var=LIBPATH
17997 # AIX 3 has no versioning support, so we append a major version to the name.
17998 soname_spec='${libname}${release}${shared_ext}$major'
18005 hardcode_into_libs=yes
18006 if test "$host_cpu" = ia64; then
18007 # AIX 5 supports IA64
18008 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18009 shlibpath_var=LD_LIBRARY_PATH
18011 # With GCC up to 2.95.x, collect2 would create an import file
18012 # for dependence libraries. The import file would start with
18013 # the line `#! .'. This would cause the generated library to
18014 # depend on `.', always an invalid library. This was fixed in
18015 # development snapshots of GCC prior to 3.0.
18017 aix4 | aix4.[01] | aix4.[01].*)
18018 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18020 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18023 can_build_shared=no
18027 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18028 # soname into executable. Probably we can add versioning support to
18029 # collect2, so additional links can be useful in future.
18030 if test "$aix_use_runtimelinking" = yes; then
18031 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18032 # instead of lib<name>.a to let people know that these are not
18033 # typical AIX shared libraries.
18034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18036 # We preserve .a as extension for shared libraries through AIX4.2
18037 # and later when we are not doing run time linking.
18038 library_names_spec='${libname}${release}.a $libname.a'
18039 soname_spec='${libname}${release}${shared_ext}$major'
18041 shlibpath_var=LIBPATH
18046 library_names_spec='$libname.ixlibrary $libname.a'
18047 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18048 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'
18052 library_names_spec='${libname}${shared_ext}'
18053 dynamic_linker="$host_os ld.so"
18054 shlibpath_var=LIBRARY_PATH
18060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18061 soname_spec='${libname}${release}${shared_ext}$major'
18062 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18063 shlibpath_var=LD_LIBRARY_PATH
18064 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18065 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18066 # the default ld.so.conf also contains /usr/contrib/lib and
18067 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18068 # libtool to hard-code these into programs
18071 cygwin* | mingw* | pw32*)
18072 version_type=windows
18077 case $GCC,$host_os in
18078 yes,cygwin* | yes,mingw* | yes,pw32*)
18079 library_names_spec='$libname.dll.a'
18080 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18081 postinstall_cmds='base_file=`basename \${file}`~
18082 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18083 dldir=$destdir/`dirname \$dlpath`~
18084 test -d \$dldir || mkdir -p \$dldir~
18085 $install_prog $dir/$dlname \$dldir/$dlname~
18086 chmod a+x \$dldir/$dlname'
18087 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18088 dlpath=$dir/\$dldll~
18090 shlibpath_overrides_runpath=yes
18094 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18095 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18096 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18099 # MinGW DLLs use traditional 'lib' prefix
18100 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18101 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18102 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18103 # It is most probably a Windows format PATH printed by
18104 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18105 # path with ; separators, and with drive letters. We can handle the
18106 # drive letters (cygwin fileutils understands them), so leave them,
18107 # especially as we might pass files found there to a mingw objdump,
18108 # which wouldn't understand a cygwinified path. Ahh.
18109 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18111 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18115 # pw32 DLLs use 'pw' prefix rather than 'lib'
18116 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18122 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18125 dynamic_linker='Win32 ld.exe'
18126 # FIXME: first we should search . and the directory the executable is in
18130 darwin* | rhapsody*)
18131 dynamic_linker="$host_os dyld"
18132 version_type=darwin
18135 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18136 soname_spec='${libname}${release}${major}$shared_ext'
18137 shlibpath_overrides_runpath=yes
18138 shlibpath_var=DYLD_LIBRARY_PATH
18139 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18140 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18141 if test "$GCC" = yes; then
18142 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18144 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18146 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18154 soname_spec='${libname}${release}${shared_ext}$major'
18155 shlibpath_var=LD_LIBRARY_PATH
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 shlibpath_var=LD_LIBRARY_PATH
18169 shlibpath_overrides_runpath=no
18170 hardcode_into_libs=yes
18171 dynamic_linker='GNU ld.so'
18174 freebsd* | dragonfly*)
18175 # DragonFly does not have aout. When/if they implement a new
18176 # versioning mechanism, adjust this.
18177 if test -x /usr/bin/objformat; then
18178 objformat=`/usr/bin/objformat`
18181 freebsd[123]*) objformat=aout ;;
18182 *) objformat=elf ;;
18185 version_type=freebsd-$objformat
18186 case $version_type in
18188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18193 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18197 shlibpath_var=LD_LIBRARY_PATH
18200 shlibpath_overrides_runpath=yes
18202 freebsd3.[01]* | freebsdelf3.[01]*)
18203 shlibpath_overrides_runpath=yes
18204 hardcode_into_libs=yes
18207 shlibpath_overrides_runpath=no
18208 hardcode_into_libs=yes
18217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18218 soname_spec='${libname}${release}${shared_ext}$major'
18219 shlibpath_var=LD_LIBRARY_PATH
18220 hardcode_into_libs=yes
18223 hpux9* | hpux10* | hpux11*)
18224 # Give a soname corresponding to the major version so that dld.sl refuses to
18225 # link against other versions.
18232 hardcode_into_libs=yes
18233 dynamic_linker="$host_os dld.so"
18234 shlibpath_var=LD_LIBRARY_PATH
18235 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18237 soname_spec='${libname}${release}${shared_ext}$major'
18238 if test "X$HPUX_IA64_MODE" = X32; then
18239 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18241 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18243 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18247 hardcode_into_libs=yes
18248 dynamic_linker="$host_os dld.sl"
18249 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18250 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18252 soname_spec='${libname}${release}${shared_ext}$major'
18253 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18254 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18258 dynamic_linker="$host_os dld.sl"
18259 shlibpath_var=SHLIB_PATH
18260 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18262 soname_spec='${libname}${release}${shared_ext}$major'
18265 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18266 postinstall_cmds='chmod 555 $lib'
18269 irix5* | irix6* | nonstopux*)
18271 nonstopux*) version_type=nonstopux ;;
18273 if test "$lt_cv_prog_gnu_ld" = yes; then
18281 soname_spec='${libname}${release}${shared_ext}$major'
18282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18284 irix5* | nonstopux*)
18285 libsuff= shlibsuff=
18288 case $LD in # libtool.m4 will add one of these switches to LD
18289 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18290 libsuff= shlibsuff= libmagic=32-bit;;
18291 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18292 libsuff=32 shlibsuff=N32 libmagic=N32;;
18293 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18294 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18295 *) libsuff= shlibsuff= libmagic=never-match;;
18299 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18300 shlibpath_overrides_runpath=no
18301 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18302 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18303 hardcode_into_libs=yes
18306 # No shared lib support for Linux oldld, aout, or coff.
18307 linux*oldld* | linux*aout* | linux*coff*)
18311 # This must be Linux ELF.
18316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18317 soname_spec='${libname}${release}${shared_ext}$major'
18318 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18319 shlibpath_var=LD_LIBRARY_PATH
18320 shlibpath_overrides_runpath=no
18321 # This implies no fast_install, which is unacceptable.
18322 # Some rework will be needed to allow for fast_install
18323 # before this can be enabled.
18324 hardcode_into_libs=yes
18326 # Append ld.so.conf contents to the search path
18327 if test -f /etc/ld.so.conf; then
18328 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18329 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18332 # We used to test for /lib/ld.so.1 and disable shared libraries on
18333 # powerpc, because MkLinux only supported shared libraries with the
18334 # GNU dynamic linker. Since this was broken with cross compilers,
18335 # most powerpc-linux boxes support dynamic linking these days and
18336 # people can always --disable-shared, the test was removed, and we
18337 # assume the GNU/Linux dynamic linker is in use.
18338 dynamic_linker='GNU/Linux ld.so'
18345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18346 soname_spec='${libname}${release}${shared_ext}$major'
18347 shlibpath_var=LD_LIBRARY_PATH
18348 shlibpath_overrides_runpath=no
18349 hardcode_into_libs=yes
18350 dynamic_linker='NetBSD ld.elf_so'
18357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18358 soname_spec='${libname}${release}${shared_ext}$major'
18359 shlibpath_var=LD_LIBRARY_PATH
18360 shlibpath_overrides_runpath=no
18361 hardcode_into_libs=yes
18362 dynamic_linker='GNU ld.so'
18369 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18371 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18372 dynamic_linker='NetBSD (a.out) ld.so'
18374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18375 soname_spec='${libname}${release}${shared_ext}$major'
18376 dynamic_linker='NetBSD ld.elf_so'
18378 shlibpath_var=LD_LIBRARY_PATH
18379 shlibpath_overrides_runpath=yes
18380 hardcode_into_libs=yes
18385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18386 shlibpath_var=LD_LIBRARY_PATH
18387 shlibpath_overrides_runpath=yes
18394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18395 soname_spec='${libname}${release}${shared_ext}$major'
18396 shlibpath_var=LD_LIBRARY_PATH
18397 shlibpath_overrides_runpath=yes
18403 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18405 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18406 *) need_version=no ;;
18408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18409 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18410 shlibpath_var=LD_LIBRARY_PATH
18411 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18413 openbsd2.[89] | openbsd2.[89].*)
18414 shlibpath_overrides_runpath=no
18417 shlibpath_overrides_runpath=yes
18421 shlibpath_overrides_runpath=yes
18426 libname_spec='$name'
18429 library_names_spec='$libname${shared_ext} $libname.a'
18430 dynamic_linker='OS/2 ld.exe'
18431 shlibpath_var=LIBPATH
18434 osf3* | osf4* | osf5*)
18438 soname_spec='${libname}${release}${shared_ext}$major'
18439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18440 shlibpath_var=LD_LIBRARY_PATH
18441 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18442 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18447 soname_spec='${libname}${release}${shared_ext}$major'
18448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18449 shlibpath_var=LD_LIBRARY_PATH
18456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18457 soname_spec='${libname}${release}${shared_ext}$major'
18458 shlibpath_var=LD_LIBRARY_PATH
18459 shlibpath_overrides_runpath=yes
18460 hardcode_into_libs=yes
18461 # ldd complains unless libraries are executable
18462 postinstall_cmds='chmod +x $lib'
18467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18468 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18469 shlibpath_var=LD_LIBRARY_PATH
18470 shlibpath_overrides_runpath=yes
18471 if test "$with_gnu_ld" = yes; then
18477 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18480 soname_spec='${libname}${release}${shared_ext}$major'
18481 shlibpath_var=LD_LIBRARY_PATH
18482 case $host_vendor in
18484 shlibpath_overrides_runpath=no
18486 export_dynamic_flag_spec='${wl}-Blargedynsym'
18487 runpath_var=LD_RUN_PATH
18495 shlibpath_overrides_runpath=no
18496 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18502 if test -d /usr/nec ;then
18504 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18505 soname_spec='$libname${shared_ext}.$major'
18506 shlibpath_var=LD_LIBRARY_PATH
18512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18513 soname_spec='${libname}${release}${shared_ext}$major'
18514 shlibpath_var=LD_LIBRARY_PATH
18521 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18522 echo "${ECHO_T}$dynamic_linker" >&6; }
18523 test "$dynamic_linker" = no && can_build_shared=no
18525 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18526 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18527 hardcode_action_GCJ=
18528 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18529 test -n "$runpath_var_GCJ" || \
18530 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18532 # We can hardcode non-existant directories.
18533 if test "$hardcode_direct_GCJ" != no &&
18534 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18535 # have to relink, otherwise we might link with an installed library
18536 # when we should be linking with a yet-to-be-installed one
18537 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18538 test "$hardcode_minus_L_GCJ" != no; then
18539 # Linking always hardcodes the temporary library directory.
18540 hardcode_action_GCJ=relink
18542 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18543 hardcode_action_GCJ=immediate
18546 # We cannot hardcode anything, or else we can only hardcode existing
18548 hardcode_action_GCJ=unsupported
18550 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18551 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18553 if test "$hardcode_action_GCJ" = relink; then
18554 # Fast installation is not supported
18555 enable_fast_install=no
18556 elif test "$shlibpath_overrides_runpath" = yes ||
18557 test "$enable_shared" = no; then
18558 # Fast installation is not necessary
18559 enable_fast_install=needless
18564 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18565 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
18566 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18567 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18568 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18569 { echo "$as_me:$LINENO: result: yes" >&5
18570 echo "${ECHO_T}yes" >&6; }
18572 # FIXME - insert some real tests, host_os isn't really good enough
18575 if test -n "$STRIP" ; then
18576 striplib="$STRIP -x"
18577 { echo "$as_me:$LINENO: result: yes" >&5
18578 echo "${ECHO_T}yes" >&6; }
18580 { echo "$as_me:$LINENO: result: no" >&5
18581 echo "${ECHO_T}no" >&6; }
18585 { echo "$as_me:$LINENO: result: no" >&5
18586 echo "${ECHO_T}no" >&6; }
18591 if test "x$enable_dlopen" != xyes; then
18592 enable_dlopen=unknown
18593 enable_dlopen_self=unknown
18594 enable_dlopen_self_static=unknown
18601 lt_cv_dlopen="load_add_on"
18603 lt_cv_dlopen_self=yes
18607 lt_cv_dlopen="LoadLibrary"
18612 lt_cv_dlopen="dlopen"
18617 # if libdl is installed we need to link against it
18618 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18619 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
18620 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18621 echo $ECHO_N "(cached) $ECHO_C" >&6
18623 ac_check_lib_save_LIBS=$LIBS
18625 cat >conftest.$ac_ext <<_ACEOF
18628 cat confdefs.h >>conftest.$ac_ext
18629 cat >>conftest.$ac_ext <<_ACEOF
18630 /* end confdefs.h. */
18632 /* Override any GCC internal prototype to avoid an error.
18633 Use char because int might match the return type of a GCC
18634 builtin and then its argument prototype would still apply. */
18647 rm -f conftest.$ac_objext conftest$ac_exeext
18648 if { (ac_try="$ac_link"
18649 case "(($ac_try" in
18650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18651 *) ac_try_echo=$ac_try;;
18653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18654 (eval "$ac_link") 2>conftest.er1
18656 grep -v '^ *+' conftest.er1 >conftest.err
18658 cat conftest.err >&5
18659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660 (exit $ac_status); } && {
18661 test -z "$ac_c_werror_flag" ||
18662 test ! -s conftest.err
18663 } && test -s conftest$ac_exeext &&
18664 $as_test_x conftest$ac_exeext; then
18665 ac_cv_lib_dl_dlopen=yes
18667 echo "$as_me: failed program was:" >&5
18668 sed 's/^/| /' conftest.$ac_ext >&5
18670 ac_cv_lib_dl_dlopen=no
18673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18674 conftest$ac_exeext conftest.$ac_ext
18675 LIBS=$ac_check_lib_save_LIBS
18677 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18678 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
18679 if test $ac_cv_lib_dl_dlopen = yes; then
18680 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18683 lt_cv_dlopen="dyld"
18685 lt_cv_dlopen_self=yes
18692 { echo "$as_me:$LINENO: checking for shl_load" >&5
18693 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
18694 if test "${ac_cv_func_shl_load+set}" = set; then
18695 echo $ECHO_N "(cached) $ECHO_C" >&6
18697 cat >conftest.$ac_ext <<_ACEOF
18700 cat confdefs.h >>conftest.$ac_ext
18701 cat >>conftest.$ac_ext <<_ACEOF
18702 /* end confdefs.h. */
18703 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18705 #define shl_load innocuous_shl_load
18707 /* System header to define __stub macros and hopefully few prototypes,
18708 which can conflict with char shl_load (); below.
18709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18710 <limits.h> exists even on freestanding compilers. */
18713 # include <limits.h>
18715 # include <assert.h>
18720 /* Override any GCC internal prototype to avoid an error.
18721 Use char because int might match the return type of a GCC
18722 builtin and then its argument prototype would still apply. */
18727 /* The GNU C library defines this for functions which it implements
18728 to always fail with ENOSYS. Some functions are actually named
18729 something starting with __ and the normal name is an alias. */
18730 #if defined __stub_shl_load || defined __stub___shl_load
18737 return shl_load ();
18742 rm -f conftest.$ac_objext conftest$ac_exeext
18743 if { (ac_try="$ac_link"
18744 case "(($ac_try" in
18745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18746 *) ac_try_echo=$ac_try;;
18748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18749 (eval "$ac_link") 2>conftest.er1
18751 grep -v '^ *+' conftest.er1 >conftest.err
18753 cat conftest.err >&5
18754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18755 (exit $ac_status); } && {
18756 test -z "$ac_c_werror_flag" ||
18757 test ! -s conftest.err
18758 } && test -s conftest$ac_exeext &&
18759 $as_test_x conftest$ac_exeext; then
18760 ac_cv_func_shl_load=yes
18762 echo "$as_me: failed program was:" >&5
18763 sed 's/^/| /' conftest.$ac_ext >&5
18765 ac_cv_func_shl_load=no
18768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18769 conftest$ac_exeext conftest.$ac_ext
18771 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18772 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
18773 if test $ac_cv_func_shl_load = yes; then
18774 lt_cv_dlopen="shl_load"
18776 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18777 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
18778 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18779 echo $ECHO_N "(cached) $ECHO_C" >&6
18781 ac_check_lib_save_LIBS=$LIBS
18783 cat >conftest.$ac_ext <<_ACEOF
18786 cat confdefs.h >>conftest.$ac_ext
18787 cat >>conftest.$ac_ext <<_ACEOF
18788 /* end confdefs.h. */
18790 /* Override any GCC internal prototype to avoid an error.
18791 Use char because int might match the return type of a GCC
18792 builtin and then its argument prototype would still apply. */
18800 return shl_load ();
18805 rm -f conftest.$ac_objext conftest$ac_exeext
18806 if { (ac_try="$ac_link"
18807 case "(($ac_try" in
18808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18809 *) ac_try_echo=$ac_try;;
18811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18812 (eval "$ac_link") 2>conftest.er1
18814 grep -v '^ *+' conftest.er1 >conftest.err
18816 cat conftest.err >&5
18817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18818 (exit $ac_status); } && {
18819 test -z "$ac_c_werror_flag" ||
18820 test ! -s conftest.err
18821 } && test -s conftest$ac_exeext &&
18822 $as_test_x conftest$ac_exeext; then
18823 ac_cv_lib_dld_shl_load=yes
18825 echo "$as_me: failed program was:" >&5
18826 sed 's/^/| /' conftest.$ac_ext >&5
18828 ac_cv_lib_dld_shl_load=no
18831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18832 conftest$ac_exeext conftest.$ac_ext
18833 LIBS=$ac_check_lib_save_LIBS
18835 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18836 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
18837 if test $ac_cv_lib_dld_shl_load = yes; then
18838 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18840 { echo "$as_me:$LINENO: checking for dlopen" >&5
18841 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
18842 if test "${ac_cv_func_dlopen+set}" = set; then
18843 echo $ECHO_N "(cached) $ECHO_C" >&6
18845 cat >conftest.$ac_ext <<_ACEOF
18848 cat confdefs.h >>conftest.$ac_ext
18849 cat >>conftest.$ac_ext <<_ACEOF
18850 /* end confdefs.h. */
18851 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18852 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18853 #define dlopen innocuous_dlopen
18855 /* System header to define __stub macros and hopefully few prototypes,
18856 which can conflict with char dlopen (); below.
18857 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18858 <limits.h> exists even on freestanding compilers. */
18861 # include <limits.h>
18863 # include <assert.h>
18868 /* Override any GCC internal prototype to avoid an error.
18869 Use char because int might match the return type of a GCC
18870 builtin and then its argument prototype would still apply. */
18875 /* The GNU C library defines this for functions which it implements
18876 to always fail with ENOSYS. Some functions are actually named
18877 something starting with __ and the normal name is an alias. */
18878 #if defined __stub_dlopen || defined __stub___dlopen
18890 rm -f conftest.$ac_objext conftest$ac_exeext
18891 if { (ac_try="$ac_link"
18892 case "(($ac_try" in
18893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18894 *) ac_try_echo=$ac_try;;
18896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18897 (eval "$ac_link") 2>conftest.er1
18899 grep -v '^ *+' conftest.er1 >conftest.err
18901 cat conftest.err >&5
18902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903 (exit $ac_status); } && {
18904 test -z "$ac_c_werror_flag" ||
18905 test ! -s conftest.err
18906 } && test -s conftest$ac_exeext &&
18907 $as_test_x conftest$ac_exeext; then
18908 ac_cv_func_dlopen=yes
18910 echo "$as_me: failed program was:" >&5
18911 sed 's/^/| /' conftest.$ac_ext >&5
18913 ac_cv_func_dlopen=no
18916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18917 conftest$ac_exeext conftest.$ac_ext
18919 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18920 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
18921 if test $ac_cv_func_dlopen = yes; then
18922 lt_cv_dlopen="dlopen"
18924 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18925 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
18926 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18927 echo $ECHO_N "(cached) $ECHO_C" >&6
18929 ac_check_lib_save_LIBS=$LIBS
18931 cat >conftest.$ac_ext <<_ACEOF
18934 cat confdefs.h >>conftest.$ac_ext
18935 cat >>conftest.$ac_ext <<_ACEOF
18936 /* end confdefs.h. */
18938 /* Override any GCC internal prototype to avoid an error.
18939 Use char because int might match the return type of a GCC
18940 builtin and then its argument prototype would still apply. */
18953 rm -f conftest.$ac_objext conftest$ac_exeext
18954 if { (ac_try="$ac_link"
18955 case "(($ac_try" in
18956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18957 *) ac_try_echo=$ac_try;;
18959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18960 (eval "$ac_link") 2>conftest.er1
18962 grep -v '^ *+' conftest.er1 >conftest.err
18964 cat conftest.err >&5
18965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966 (exit $ac_status); } && {
18967 test -z "$ac_c_werror_flag" ||
18968 test ! -s conftest.err
18969 } && test -s conftest$ac_exeext &&
18970 $as_test_x conftest$ac_exeext; then
18971 ac_cv_lib_dl_dlopen=yes
18973 echo "$as_me: failed program was:" >&5
18974 sed 's/^/| /' conftest.$ac_ext >&5
18976 ac_cv_lib_dl_dlopen=no
18979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18980 conftest$ac_exeext conftest.$ac_ext
18981 LIBS=$ac_check_lib_save_LIBS
18983 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18984 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
18985 if test $ac_cv_lib_dl_dlopen = yes; then
18986 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18988 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18989 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
18990 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18991 echo $ECHO_N "(cached) $ECHO_C" >&6
18993 ac_check_lib_save_LIBS=$LIBS
18994 LIBS="-lsvld $LIBS"
18995 cat >conftest.$ac_ext <<_ACEOF
18998 cat confdefs.h >>conftest.$ac_ext
18999 cat >>conftest.$ac_ext <<_ACEOF
19000 /* end confdefs.h. */
19002 /* Override any GCC internal prototype to avoid an error.
19003 Use char because int might match the return type of a GCC
19004 builtin and then its argument prototype would still apply. */
19017 rm -f conftest.$ac_objext conftest$ac_exeext
19018 if { (ac_try="$ac_link"
19019 case "(($ac_try" in
19020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19021 *) ac_try_echo=$ac_try;;
19023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19024 (eval "$ac_link") 2>conftest.er1
19026 grep -v '^ *+' conftest.er1 >conftest.err
19028 cat conftest.err >&5
19029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19030 (exit $ac_status); } && {
19031 test -z "$ac_c_werror_flag" ||
19032 test ! -s conftest.err
19033 } && test -s conftest$ac_exeext &&
19034 $as_test_x conftest$ac_exeext; then
19035 ac_cv_lib_svld_dlopen=yes
19037 echo "$as_me: failed program was:" >&5
19038 sed 's/^/| /' conftest.$ac_ext >&5
19040 ac_cv_lib_svld_dlopen=no
19043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19044 conftest$ac_exeext conftest.$ac_ext
19045 LIBS=$ac_check_lib_save_LIBS
19047 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19048 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
19049 if test $ac_cv_lib_svld_dlopen = yes; then
19050 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19052 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19053 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
19054 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19055 echo $ECHO_N "(cached) $ECHO_C" >&6
19057 ac_check_lib_save_LIBS=$LIBS
19059 cat >conftest.$ac_ext <<_ACEOF
19062 cat confdefs.h >>conftest.$ac_ext
19063 cat >>conftest.$ac_ext <<_ACEOF
19064 /* end confdefs.h. */
19066 /* Override any GCC internal prototype to avoid an error.
19067 Use char because int might match the return type of a GCC
19068 builtin and then its argument prototype would still apply. */
19076 return dld_link ();
19081 rm -f conftest.$ac_objext conftest$ac_exeext
19082 if { (ac_try="$ac_link"
19083 case "(($ac_try" in
19084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19085 *) ac_try_echo=$ac_try;;
19087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19088 (eval "$ac_link") 2>conftest.er1
19090 grep -v '^ *+' conftest.er1 >conftest.err
19092 cat conftest.err >&5
19093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094 (exit $ac_status); } && {
19095 test -z "$ac_c_werror_flag" ||
19096 test ! -s conftest.err
19097 } && test -s conftest$ac_exeext &&
19098 $as_test_x conftest$ac_exeext; then
19099 ac_cv_lib_dld_dld_link=yes
19101 echo "$as_me: failed program was:" >&5
19102 sed 's/^/| /' conftest.$ac_ext >&5
19104 ac_cv_lib_dld_dld_link=no
19107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19108 conftest$ac_exeext conftest.$ac_ext
19109 LIBS=$ac_check_lib_save_LIBS
19111 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19112 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
19113 if test $ac_cv_lib_dld_dld_link = yes; then
19114 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19135 if test "x$lt_cv_dlopen" != xno; then
19141 case $lt_cv_dlopen in
19143 save_CPPFLAGS="$CPPFLAGS"
19144 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19146 save_LDFLAGS="$LDFLAGS"
19147 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19150 LIBS="$lt_cv_dlopen_libs $LIBS"
19152 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19153 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
19154 if test "${lt_cv_dlopen_self+set}" = set; then
19155 echo $ECHO_N "(cached) $ECHO_C" >&6
19157 if test "$cross_compiling" = yes; then :
19158 lt_cv_dlopen_self=cross
19160 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19161 lt_status=$lt_dlunknown
19162 cat > conftest.$ac_ext <<EOF
19163 #line __oline__ "configure"
19164 #include "confdefs.h"
19173 # define LT_DLGLOBAL RTLD_GLOBAL
19176 # define LT_DLGLOBAL DL_GLOBAL
19178 # define LT_DLGLOBAL 0
19182 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19183 find out it does not work in some platform. */
19184 #ifndef LT_DLLAZY_OR_NOW
19186 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19189 # define LT_DLLAZY_OR_NOW DL_LAZY
19192 # define LT_DLLAZY_OR_NOW RTLD_NOW
19195 # define LT_DLLAZY_OR_NOW DL_NOW
19197 # define LT_DLLAZY_OR_NOW 0
19205 extern "C" void exit (int);
19208 void fnord() { int i=42;}
19211 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19212 int status = $lt_dlunknown;
19216 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19217 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19218 /* dlclose (self); */
19224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19225 (eval $ac_link) 2>&5
19227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19229 (./conftest; exit; ) >&5 2>/dev/null
19231 case x$lt_status in
19232 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19233 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19234 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19237 # compilation failed
19238 lt_cv_dlopen_self=no
19245 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19246 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
19248 if test "x$lt_cv_dlopen_self" = xyes; then
19249 LDFLAGS="$LDFLAGS $link_static_flag"
19250 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19251 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
19252 if test "${lt_cv_dlopen_self_static+set}" = set; then
19253 echo $ECHO_N "(cached) $ECHO_C" >&6
19255 if test "$cross_compiling" = yes; then :
19256 lt_cv_dlopen_self_static=cross
19258 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19259 lt_status=$lt_dlunknown
19260 cat > conftest.$ac_ext <<EOF
19261 #line __oline__ "configure"
19262 #include "confdefs.h"
19271 # define LT_DLGLOBAL RTLD_GLOBAL
19274 # define LT_DLGLOBAL DL_GLOBAL
19276 # define LT_DLGLOBAL 0
19280 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19281 find out it does not work in some platform. */
19282 #ifndef LT_DLLAZY_OR_NOW
19284 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19287 # define LT_DLLAZY_OR_NOW DL_LAZY
19290 # define LT_DLLAZY_OR_NOW RTLD_NOW
19293 # define LT_DLLAZY_OR_NOW DL_NOW
19295 # define LT_DLLAZY_OR_NOW 0
19303 extern "C" void exit (int);
19306 void fnord() { int i=42;}
19309 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19310 int status = $lt_dlunknown;
19314 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19315 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19316 /* dlclose (self); */
19322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19323 (eval $ac_link) 2>&5
19325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19327 (./conftest; exit; ) >&5 2>/dev/null
19329 case x$lt_status in
19330 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19331 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19332 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19335 # compilation failed
19336 lt_cv_dlopen_self_static=no
19343 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19344 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
19347 CPPFLAGS="$save_CPPFLAGS"
19348 LDFLAGS="$save_LDFLAGS"
19353 case $lt_cv_dlopen_self in
19354 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19355 *) enable_dlopen_self=unknown ;;
19358 case $lt_cv_dlopen_self_static in
19359 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19360 *) enable_dlopen_self_static=unknown ;;
19365 # The else clause should only fire when bootstrapping the
19366 # libtool distribution, otherwise you forgot to ship ltmain.sh
19367 # with your package, and you will get complaints that there are
19368 # no rules to generate ltmain.sh.
19369 if test -f "$ltmain"; then
19370 # See if we are running on zsh, and set the options which allow our commands through
19371 # without removal of \ escapes.
19372 if test -n "${ZSH_VERSION+set}" ; then
19373 setopt NO_GLOB_SUBST
19375 # Now quote all the things that may contain metacharacters while being
19376 # careful not to overquote the AC_SUBSTed values. We take copies of the
19377 # variables and quote the copies for generation of the libtool script.
19378 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19380 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19381 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19382 deplibs_check_method reload_flag reload_cmds need_locks \
19383 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19384 lt_cv_sys_global_symbol_to_c_name_address \
19385 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19386 old_postinstall_cmds old_postuninstall_cmds \
19390 lt_prog_compiler_wl_GCJ \
19391 lt_prog_compiler_pic_GCJ \
19392 lt_prog_compiler_static_GCJ \
19393 lt_prog_compiler_no_builtin_flag_GCJ \
19394 export_dynamic_flag_spec_GCJ \
19395 thread_safe_flag_spec_GCJ \
19396 whole_archive_flag_spec_GCJ \
19397 enable_shared_with_static_runtimes_GCJ \
19398 old_archive_cmds_GCJ \
19399 old_archive_from_new_cmds_GCJ \
19400 predep_objects_GCJ \
19401 postdep_objects_GCJ \
19404 compiler_lib_search_path_GCJ \
19406 archive_expsym_cmds_GCJ \
19407 postinstall_cmds_GCJ \
19408 postuninstall_cmds_GCJ \
19409 old_archive_from_expsyms_cmds_GCJ \
19410 allow_undefined_flag_GCJ \
19411 no_undefined_flag_GCJ \
19412 export_symbols_cmds_GCJ \
19413 hardcode_libdir_flag_spec_GCJ \
19414 hardcode_libdir_flag_spec_ld_GCJ \
19415 hardcode_libdir_separator_GCJ \
19416 hardcode_automatic_GCJ \
19418 module_expsym_cmds_GCJ \
19419 lt_cv_prog_compiler_c_o_GCJ \
19420 exclude_expsyms_GCJ \
19421 include_expsyms_GCJ; do
19424 old_archive_cmds_GCJ | \
19425 old_archive_from_new_cmds_GCJ | \
19426 archive_cmds_GCJ | \
19427 archive_expsym_cmds_GCJ | \
19428 module_cmds_GCJ | \
19429 module_expsym_cmds_GCJ | \
19430 old_archive_from_expsyms_cmds_GCJ | \
19431 export_symbols_cmds_GCJ | \
19432 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19433 postinstall_cmds | postuninstall_cmds | \
19434 old_postinstall_cmds | old_postuninstall_cmds | \
19435 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19436 # Double-quote double-evaled strings.
19437 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19440 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19446 *'\$0 --fallback-echo"')
19447 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19453 cat <<__EOF__ >> "$cfgfile"
19454 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19456 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19458 # Shell to use when invoking shell scripts.
19461 # Whether or not to build shared libraries.
19462 build_libtool_libs=$enable_shared
19464 # Whether or not to build static libraries.
19465 build_old_libs=$enable_static
19467 # Whether or not to add -lc for building shared libraries.
19468 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19470 # Whether or not to disallow shared libs when runtime libs are static
19471 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19473 # Whether or not to optimize for fast installation.
19474 fast_install=$enable_fast_install
19477 host_alias=$host_alias
19481 # The build system.
19482 build_alias=$build_alias
19486 # An echo program that does not interpret backslashes.
19491 AR_FLAGS=$lt_AR_FLAGS
19496 # A language-specific compiler.
19497 CC=$lt_compiler_GCJ
19499 # Is the compiler the GNU C compiler?
19505 # The linker used to build libraries.
19508 # Whether we need hard or soft links.
19511 # A BSD-compatible nm program.
19514 # A symbol stripping program
19517 # Used to examine libraries when file_magic_cmd begins "file"
19518 MAGIC_CMD=$MAGIC_CMD
19520 # Used on cygwin: DLL creation program.
19523 # Used on cygwin: object dumper.
19526 # Used on cygwin: assembler.
19529 # The name of the directory that contains temporary libtool files.
19532 # How to create reloadable object files.
19533 reload_flag=$lt_reload_flag
19534 reload_cmds=$lt_reload_cmds
19536 # How to pass a linker flag through the compiler.
19537 wl=$lt_lt_prog_compiler_wl_GCJ
19539 # Object file suffix (normally "o").
19540 objext="$ac_objext"
19542 # Old archive suffix (normally "a").
19545 # Shared library suffix (normally ".so").
19546 shrext_cmds='$shrext_cmds'
19548 # Executable file suffix (normally "").
19551 # Additional compiler flags for building library objects.
19552 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19555 # What is the maximum length of a command?
19556 max_cmd_len=$lt_cv_sys_max_cmd_len
19558 # Does compiler simultaneously support -c and -o options?
19559 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19561 # Must we lock files when doing compilation?
19562 need_locks=$lt_need_locks
19564 # Do we need the lib prefix for modules?
19565 need_lib_prefix=$need_lib_prefix
19567 # Do we need a version for libraries?
19568 need_version=$need_version
19570 # Whether dlopen is supported.
19571 dlopen_support=$enable_dlopen
19573 # Whether dlopen of programs is supported.
19574 dlopen_self=$enable_dlopen_self
19576 # Whether dlopen of statically linked programs is supported.
19577 dlopen_self_static=$enable_dlopen_self_static
19579 # Compiler flag to prevent dynamic linking.
19580 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19582 # Compiler flag to turn off builtin functions.
19583 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19585 # Compiler flag to allow reflexive dlopens.
19586 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19588 # Compiler flag to generate shared objects directly from archives.
19589 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19591 # Compiler flag to generate thread-safe objects.
19592 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19594 # Library versioning type.
19595 version_type=$version_type
19597 # Format of library name prefix.
19598 libname_spec=$lt_libname_spec
19600 # List of archive names. First name is the real one, the rest are links.
19601 # The last name is the one that the linker finds with -lNAME.
19602 library_names_spec=$lt_library_names_spec
19604 # The coded name of the library, if different from the real name.
19605 soname_spec=$lt_soname_spec
19607 # Commands used to build and install an old-style archive.
19609 old_archive_cmds=$lt_old_archive_cmds_GCJ
19610 old_postinstall_cmds=$lt_old_postinstall_cmds
19611 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19613 # Create an old-style archive from a shared archive.
19614 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19616 # Create a temporary old-style archive to link instead of a shared archive.
19617 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19619 # Commands used to build and install a shared archive.
19620 archive_cmds=$lt_archive_cmds_GCJ
19621 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19622 postinstall_cmds=$lt_postinstall_cmds
19623 postuninstall_cmds=$lt_postuninstall_cmds
19625 # Commands used to build a loadable module (assumed same as above if empty)
19626 module_cmds=$lt_module_cmds_GCJ
19627 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19629 # Commands to strip libraries.
19630 old_striplib=$lt_old_striplib
19631 striplib=$lt_striplib
19633 # Dependencies to place before the objects being linked to create a
19635 predep_objects=$lt_predep_objects_GCJ
19637 # Dependencies to place after the objects being linked to create a
19639 postdep_objects=$lt_postdep_objects_GCJ
19641 # Dependencies to place before the objects being linked to create a
19643 predeps=$lt_predeps_GCJ
19645 # Dependencies to place after the objects being linked to create a
19647 postdeps=$lt_postdeps_GCJ
19649 # The library search path used internally by the compiler when linking
19650 # a shared library.
19651 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19653 # Method to check whether dependent libraries are shared objects.
19654 deplibs_check_method=$lt_deplibs_check_method
19656 # Command to use when deplibs_check_method == file_magic.
19657 file_magic_cmd=$lt_file_magic_cmd
19659 # Flag that allows shared libraries with undefined symbols to be built.
19660 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19662 # Flag that forces no undefined symbols.
19663 no_undefined_flag=$lt_no_undefined_flag_GCJ
19665 # Commands used to finish a libtool library installation in a directory.
19666 finish_cmds=$lt_finish_cmds
19668 # Same as above, but a single script fragment to be evaled but not shown.
19669 finish_eval=$lt_finish_eval
19671 # Take the output of nm and produce a listing of raw symbols and C names.
19672 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19674 # Transform the output of nm in a proper C declaration
19675 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19677 # Transform the output of nm in a C name address pair
19678 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19680 # This is the shared library runtime path variable.
19681 runpath_var=$runpath_var
19683 # This is the shared library path variable.
19684 shlibpath_var=$shlibpath_var
19686 # Is shlibpath searched before the hard-coded library search path?
19687 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19689 # How to hardcode a shared library path into an executable.
19690 hardcode_action=$hardcode_action_GCJ
19692 # Whether we should hardcode library paths into libraries.
19693 hardcode_into_libs=$hardcode_into_libs
19695 # Flag to hardcode \$libdir into a binary during linking.
19696 # This must work even if \$libdir does not exist.
19697 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19699 # If ld is used when linking, flag to hardcode \$libdir into
19700 # a binary during linking. This must work even if \$libdir does
19702 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19704 # Whether we need a single -rpath flag with a separated argument.
19705 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19707 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19708 # resulting binary.
19709 hardcode_direct=$hardcode_direct_GCJ
19711 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19712 # resulting binary.
19713 hardcode_minus_L=$hardcode_minus_L_GCJ
19715 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19716 # the resulting binary.
19717 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19719 # Set to yes if building a shared library automatically hardcodes DIR into the library
19720 # and all subsequent libraries and executables linked against it.
19721 hardcode_automatic=$hardcode_automatic_GCJ
19723 # Variables whose values should be saved in libtool wrapper scripts and
19724 # restored at relink time.
19725 variables_saved_for_relink="$variables_saved_for_relink"
19727 # Whether libtool must link a program against all its dependency libraries.
19728 link_all_deplibs=$link_all_deplibs_GCJ
19730 # Compile-time system search path for libraries
19731 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19733 # Run-time system search path for libraries
19734 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19736 # Fix the shell variable \$srcfile for the compiler.
19737 fix_srcfile_path="$fix_srcfile_path_GCJ"
19739 # Set to yes if exported symbols are required.
19740 always_export_symbols=$always_export_symbols_GCJ
19742 # The commands to list exported symbols.
19743 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19745 # The commands to extract the exported symbol list from a shared archive.
19746 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19748 # Symbols that should not be listed in the preloaded symbols.
19749 exclude_expsyms=$lt_exclude_expsyms_GCJ
19751 # Symbols that must always be exported.
19752 include_expsyms=$lt_include_expsyms_GCJ
19754 # ### END LIBTOOL TAG CONFIG: $tagname
19760 # If there is no Makefile yet, we rely on a make rule to execute
19761 # `config.status --recheck' to rerun these tests and create the
19762 # libtool script then.
19763 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19764 if test -f "$ltmain_in"; then
19765 test -f Makefile && make "$ltmain"
19771 ac_cpp='$CPP $CPPFLAGS'
19772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19786 # Source file extension for RC test sources.
19789 # Object file extension for compiled RC test sources.
19793 # Code to be used in simple compile tests
19794 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19796 # Code to be used in simple link tests
19797 lt_simple_link_test_code="$lt_simple_compile_test_code"
19799 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19801 # If no C compiler was specified, use CC.
19804 # Allow CC to be a program name with arguments.
19808 # save warnings/boilerplate of simple test code
19809 ac_outfile=conftest.$ac_objext
19810 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19811 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19812 _lt_compiler_boilerplate=`cat conftest.err`
19815 ac_outfile=conftest.$ac_objext
19816 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19817 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19818 _lt_linker_boilerplate=`cat conftest.err`
19822 # Allow CC to be a program name with arguments.
19827 for cc_temp in $compiler""; do
19829 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19830 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19835 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19837 lt_cv_prog_compiler_c_o_RC=yes
19839 # The else clause should only fire when bootstrapping the
19840 # libtool distribution, otherwise you forgot to ship ltmain.sh
19841 # with your package, and you will get complaints that there are
19842 # no rules to generate ltmain.sh.
19843 if test -f "$ltmain"; then
19844 # See if we are running on zsh, and set the options which allow our commands through
19845 # without removal of \ escapes.
19846 if test -n "${ZSH_VERSION+set}" ; then
19847 setopt NO_GLOB_SUBST
19849 # Now quote all the things that may contain metacharacters while being
19850 # careful not to overquote the AC_SUBSTed values. We take copies of the
19851 # variables and quote the copies for generation of the libtool script.
19852 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19854 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19855 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19856 deplibs_check_method reload_flag reload_cmds need_locks \
19857 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19858 lt_cv_sys_global_symbol_to_c_name_address \
19859 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19860 old_postinstall_cmds old_postuninstall_cmds \
19864 lt_prog_compiler_wl_RC \
19865 lt_prog_compiler_pic_RC \
19866 lt_prog_compiler_static_RC \
19867 lt_prog_compiler_no_builtin_flag_RC \
19868 export_dynamic_flag_spec_RC \
19869 thread_safe_flag_spec_RC \
19870 whole_archive_flag_spec_RC \
19871 enable_shared_with_static_runtimes_RC \
19872 old_archive_cmds_RC \
19873 old_archive_from_new_cmds_RC \
19874 predep_objects_RC \
19875 postdep_objects_RC \
19878 compiler_lib_search_path_RC \
19880 archive_expsym_cmds_RC \
19881 postinstall_cmds_RC \
19882 postuninstall_cmds_RC \
19883 old_archive_from_expsyms_cmds_RC \
19884 allow_undefined_flag_RC \
19885 no_undefined_flag_RC \
19886 export_symbols_cmds_RC \
19887 hardcode_libdir_flag_spec_RC \
19888 hardcode_libdir_flag_spec_ld_RC \
19889 hardcode_libdir_separator_RC \
19890 hardcode_automatic_RC \
19892 module_expsym_cmds_RC \
19893 lt_cv_prog_compiler_c_o_RC \
19894 exclude_expsyms_RC \
19895 include_expsyms_RC; do
19898 old_archive_cmds_RC | \
19899 old_archive_from_new_cmds_RC | \
19900 archive_cmds_RC | \
19901 archive_expsym_cmds_RC | \
19903 module_expsym_cmds_RC | \
19904 old_archive_from_expsyms_cmds_RC | \
19905 export_symbols_cmds_RC | \
19906 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19907 postinstall_cmds | postuninstall_cmds | \
19908 old_postinstall_cmds | old_postuninstall_cmds | \
19909 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19910 # Double-quote double-evaled strings.
19911 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19914 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19920 *'\$0 --fallback-echo"')
19921 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19927 cat <<__EOF__ >> "$cfgfile"
19928 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19930 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19932 # Shell to use when invoking shell scripts.
19935 # Whether or not to build shared libraries.
19936 build_libtool_libs=$enable_shared
19938 # Whether or not to build static libraries.
19939 build_old_libs=$enable_static
19941 # Whether or not to add -lc for building shared libraries.
19942 build_libtool_need_lc=$archive_cmds_need_lc_RC
19944 # Whether or not to disallow shared libs when runtime libs are static
19945 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19947 # Whether or not to optimize for fast installation.
19948 fast_install=$enable_fast_install
19951 host_alias=$host_alias
19955 # The build system.
19956 build_alias=$build_alias
19960 # An echo program that does not interpret backslashes.
19965 AR_FLAGS=$lt_AR_FLAGS
19970 # A language-specific compiler.
19973 # Is the compiler the GNU C compiler?
19979 # The linker used to build libraries.
19982 # Whether we need hard or soft links.
19985 # A BSD-compatible nm program.
19988 # A symbol stripping program
19991 # Used to examine libraries when file_magic_cmd begins "file"
19992 MAGIC_CMD=$MAGIC_CMD
19994 # Used on cygwin: DLL creation program.
19997 # Used on cygwin: object dumper.
20000 # Used on cygwin: assembler.
20003 # The name of the directory that contains temporary libtool files.
20006 # How to create reloadable object files.
20007 reload_flag=$lt_reload_flag
20008 reload_cmds=$lt_reload_cmds
20010 # How to pass a linker flag through the compiler.
20011 wl=$lt_lt_prog_compiler_wl_RC
20013 # Object file suffix (normally "o").
20014 objext="$ac_objext"
20016 # Old archive suffix (normally "a").
20019 # Shared library suffix (normally ".so").
20020 shrext_cmds='$shrext_cmds'
20022 # Executable file suffix (normally "").
20025 # Additional compiler flags for building library objects.
20026 pic_flag=$lt_lt_prog_compiler_pic_RC
20029 # What is the maximum length of a command?
20030 max_cmd_len=$lt_cv_sys_max_cmd_len
20032 # Does compiler simultaneously support -c and -o options?
20033 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20035 # Must we lock files when doing compilation?
20036 need_locks=$lt_need_locks
20038 # Do we need the lib prefix for modules?
20039 need_lib_prefix=$need_lib_prefix
20041 # Do we need a version for libraries?
20042 need_version=$need_version
20044 # Whether dlopen is supported.
20045 dlopen_support=$enable_dlopen
20047 # Whether dlopen of programs is supported.
20048 dlopen_self=$enable_dlopen_self
20050 # Whether dlopen of statically linked programs is supported.
20051 dlopen_self_static=$enable_dlopen_self_static
20053 # Compiler flag to prevent dynamic linking.
20054 link_static_flag=$lt_lt_prog_compiler_static_RC
20056 # Compiler flag to turn off builtin functions.
20057 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20059 # Compiler flag to allow reflexive dlopens.
20060 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20062 # Compiler flag to generate shared objects directly from archives.
20063 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20065 # Compiler flag to generate thread-safe objects.
20066 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20068 # Library versioning type.
20069 version_type=$version_type
20071 # Format of library name prefix.
20072 libname_spec=$lt_libname_spec
20074 # List of archive names. First name is the real one, the rest are links.
20075 # The last name is the one that the linker finds with -lNAME.
20076 library_names_spec=$lt_library_names_spec
20078 # The coded name of the library, if different from the real name.
20079 soname_spec=$lt_soname_spec
20081 # Commands used to build and install an old-style archive.
20083 old_archive_cmds=$lt_old_archive_cmds_RC
20084 old_postinstall_cmds=$lt_old_postinstall_cmds
20085 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20087 # Create an old-style archive from a shared archive.
20088 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20090 # Create a temporary old-style archive to link instead of a shared archive.
20091 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20093 # Commands used to build and install a shared archive.
20094 archive_cmds=$lt_archive_cmds_RC
20095 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20096 postinstall_cmds=$lt_postinstall_cmds
20097 postuninstall_cmds=$lt_postuninstall_cmds
20099 # Commands used to build a loadable module (assumed same as above if empty)
20100 module_cmds=$lt_module_cmds_RC
20101 module_expsym_cmds=$lt_module_expsym_cmds_RC
20103 # Commands to strip libraries.
20104 old_striplib=$lt_old_striplib
20105 striplib=$lt_striplib
20107 # Dependencies to place before the objects being linked to create a
20109 predep_objects=$lt_predep_objects_RC
20111 # Dependencies to place after the objects being linked to create a
20113 postdep_objects=$lt_postdep_objects_RC
20115 # Dependencies to place before the objects being linked to create a
20117 predeps=$lt_predeps_RC
20119 # Dependencies to place after the objects being linked to create a
20121 postdeps=$lt_postdeps_RC
20123 # The library search path used internally by the compiler when linking
20124 # a shared library.
20125 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20127 # Method to check whether dependent libraries are shared objects.
20128 deplibs_check_method=$lt_deplibs_check_method
20130 # Command to use when deplibs_check_method == file_magic.
20131 file_magic_cmd=$lt_file_magic_cmd
20133 # Flag that allows shared libraries with undefined symbols to be built.
20134 allow_undefined_flag=$lt_allow_undefined_flag_RC
20136 # Flag that forces no undefined symbols.
20137 no_undefined_flag=$lt_no_undefined_flag_RC
20139 # Commands used to finish a libtool library installation in a directory.
20140 finish_cmds=$lt_finish_cmds
20142 # Same as above, but a single script fragment to be evaled but not shown.
20143 finish_eval=$lt_finish_eval
20145 # Take the output of nm and produce a listing of raw symbols and C names.
20146 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20148 # Transform the output of nm in a proper C declaration
20149 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20151 # Transform the output of nm in a C name address pair
20152 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20154 # This is the shared library runtime path variable.
20155 runpath_var=$runpath_var
20157 # This is the shared library path variable.
20158 shlibpath_var=$shlibpath_var
20160 # Is shlibpath searched before the hard-coded library search path?
20161 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20163 # How to hardcode a shared library path into an executable.
20164 hardcode_action=$hardcode_action_RC
20166 # Whether we should hardcode library paths into libraries.
20167 hardcode_into_libs=$hardcode_into_libs
20169 # Flag to hardcode \$libdir into a binary during linking.
20170 # This must work even if \$libdir does not exist.
20171 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20173 # If ld is used when linking, flag to hardcode \$libdir into
20174 # a binary during linking. This must work even if \$libdir does
20176 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20178 # Whether we need a single -rpath flag with a separated argument.
20179 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20181 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20182 # resulting binary.
20183 hardcode_direct=$hardcode_direct_RC
20185 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20186 # resulting binary.
20187 hardcode_minus_L=$hardcode_minus_L_RC
20189 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20190 # the resulting binary.
20191 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20193 # Set to yes if building a shared library automatically hardcodes DIR into the library
20194 # and all subsequent libraries and executables linked against it.
20195 hardcode_automatic=$hardcode_automatic_RC
20197 # Variables whose values should be saved in libtool wrapper scripts and
20198 # restored at relink time.
20199 variables_saved_for_relink="$variables_saved_for_relink"
20201 # Whether libtool must link a program against all its dependency libraries.
20202 link_all_deplibs=$link_all_deplibs_RC
20204 # Compile-time system search path for libraries
20205 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20207 # Run-time system search path for libraries
20208 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20210 # Fix the shell variable \$srcfile for the compiler.
20211 fix_srcfile_path="$fix_srcfile_path_RC"
20213 # Set to yes if exported symbols are required.
20214 always_export_symbols=$always_export_symbols_RC
20216 # The commands to list exported symbols.
20217 export_symbols_cmds=$lt_export_symbols_cmds_RC
20219 # The commands to extract the exported symbol list from a shared archive.
20220 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20222 # Symbols that should not be listed in the preloaded symbols.
20223 exclude_expsyms=$lt_exclude_expsyms_RC
20225 # Symbols that must always be exported.
20226 include_expsyms=$lt_include_expsyms_RC
20228 # ### END LIBTOOL TAG CONFIG: $tagname
20234 # If there is no Makefile yet, we rely on a make rule to execute
20235 # `config.status --recheck' to rerun these tests and create the
20236 # libtool script then.
20237 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20238 if test -f "$ltmain_in"; then
20239 test -f Makefile && make "$ltmain"
20245 ac_cpp='$CPP $CPPFLAGS'
20246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20255 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20256 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20257 { (exit 1); exit 1; }; }
20261 # Append the new tag name to the list of available tags.
20262 if test -n "$tagname" ; then
20263 available_tags="$available_tags $tagname"
20269 # Now substitute the updated list of available tags.
20270 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20271 mv "${ofile}T" "$ofile"
20275 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20276 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20277 { (exit 1); exit 1; }; }
20283 # This can be used to rebuild libtool when needed
20284 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20286 # Always use our own libtool.
20287 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20289 # Prevent multiple expansion
20310 LIBTOOL="$LIBTOOL --silent"
20312 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20313 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20314 if test "${ac_cv_header_stdc+set}" = set; then
20315 echo $ECHO_N "(cached) $ECHO_C" >&6
20317 cat >conftest.$ac_ext <<_ACEOF
20320 cat confdefs.h >>conftest.$ac_ext
20321 cat >>conftest.$ac_ext <<_ACEOF
20322 /* end confdefs.h. */
20323 #include <stdlib.h>
20324 #include <stdarg.h>
20325 #include <string.h>
20336 rm -f conftest.$ac_objext
20337 if { (ac_try="$ac_compile"
20338 case "(($ac_try" in
20339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20340 *) ac_try_echo=$ac_try;;
20342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20343 (eval "$ac_compile") 2>conftest.er1
20345 grep -v '^ *+' conftest.er1 >conftest.err
20347 cat conftest.err >&5
20348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20349 (exit $ac_status); } && {
20350 test -z "$ac_c_werror_flag" ||
20351 test ! -s conftest.err
20352 } && test -s conftest.$ac_objext; then
20353 ac_cv_header_stdc=yes
20355 echo "$as_me: failed program was:" >&5
20356 sed 's/^/| /' conftest.$ac_ext >&5
20358 ac_cv_header_stdc=no
20361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20363 if test $ac_cv_header_stdc = yes; then
20364 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20365 cat >conftest.$ac_ext <<_ACEOF
20368 cat confdefs.h >>conftest.$ac_ext
20369 cat >>conftest.$ac_ext <<_ACEOF
20370 /* end confdefs.h. */
20371 #include <string.h>
20374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20375 $EGREP "memchr" >/dev/null 2>&1; then
20378 ac_cv_header_stdc=no
20384 if test $ac_cv_header_stdc = yes; then
20385 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20386 cat >conftest.$ac_ext <<_ACEOF
20389 cat confdefs.h >>conftest.$ac_ext
20390 cat >>conftest.$ac_ext <<_ACEOF
20391 /* end confdefs.h. */
20392 #include <stdlib.h>
20395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20396 $EGREP "free" >/dev/null 2>&1; then
20399 ac_cv_header_stdc=no
20405 if test $ac_cv_header_stdc = yes; then
20406 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20407 if test "$cross_compiling" = yes; then
20410 cat >conftest.$ac_ext <<_ACEOF
20413 cat confdefs.h >>conftest.$ac_ext
20414 cat >>conftest.$ac_ext <<_ACEOF
20415 /* end confdefs.h. */
20417 #include <stdlib.h>
20418 #if ((' ' & 0x0FF) == 0x020)
20419 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20420 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20422 # define ISLOWER(c) \
20423 (('a' <= (c) && (c) <= 'i') \
20424 || ('j' <= (c) && (c) <= 'r') \
20425 || ('s' <= (c) && (c) <= 'z'))
20426 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20429 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20434 for (i = 0; i < 256; i++)
20435 if (XOR (islower (i), ISLOWER (i))
20436 || toupper (i) != TOUPPER (i))
20441 rm -f conftest$ac_exeext
20442 if { (ac_try="$ac_link"
20443 case "(($ac_try" in
20444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20445 *) ac_try_echo=$ac_try;;
20447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20448 (eval "$ac_link") 2>&5
20450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20451 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20452 { (case "(($ac_try" in
20453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20454 *) ac_try_echo=$ac_try;;
20456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20457 (eval "$ac_try") 2>&5
20459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460 (exit $ac_status); }; }; then
20463 echo "$as_me: program exited with status $ac_status" >&5
20464 echo "$as_me: failed program was:" >&5
20465 sed 's/^/| /' conftest.$ac_ext >&5
20467 ( exit $ac_status )
20468 ac_cv_header_stdc=no
20470 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20476 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20477 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20478 if test $ac_cv_header_stdc = yes; then
20480 cat >>confdefs.h <<\_ACEOF
20481 @%:@define STDC_HEADERS 1
20487 GAIM_MIN=pidgin_version_min
20492 # tell pkgconfig to look in the same prefix we're installing this to,
20493 # as that's likely where gaim will be found if it's not in the default
20495 PREFIX=$ac_default_prefix
20496 if test "$prefix" != "NONE"; then
20500 PKG_CONFIG_PATH="$PKG_CONFIG_PATH":"$PREFIX/lib/pkgconfig"
20501 export PKG_CONFIG_PATH
20504 # Check whether --enable-debug was given.
20505 if test "${enable_debug+set}" = set; then
20506 enableval=$enable_debug;
20512 if test "$enable_debug" = yes; then
20514 cat >>confdefs.h <<\_ACEOF
20523 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20524 if test -n "$ac_tool_prefix"; then
20525 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20526 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20527 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20529 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20530 echo $ECHO_N "(cached) $ECHO_C" >&6
20532 case $PKG_CONFIG in
20534 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20538 for as_dir in $PATH
20541 test -z "$as_dir" && as_dir=.
20542 for ac_exec_ext in '' $ac_executable_extensions; do
20543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20544 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20555 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20556 if test -n "$PKG_CONFIG"; then
20557 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20558 echo "${ECHO_T}$PKG_CONFIG" >&6; }
20560 { echo "$as_me:$LINENO: result: no" >&5
20561 echo "${ECHO_T}no" >&6; }
20566 if test -z "$ac_cv_path_PKG_CONFIG"; then
20567 ac_pt_PKG_CONFIG=$PKG_CONFIG
20568 # Extract the first word of "pkg-config", so it can be a program name with args.
20569 set dummy pkg-config; ac_word=$2
20570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20572 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20573 echo $ECHO_N "(cached) $ECHO_C" >&6
20575 case $ac_pt_PKG_CONFIG in
20577 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20581 for as_dir in $PATH
20584 test -z "$as_dir" && as_dir=.
20585 for ac_exec_ext in '' $ac_executable_extensions; do
20586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20587 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20598 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20599 if test -n "$ac_pt_PKG_CONFIG"; then
20600 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20601 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
20603 { echo "$as_me:$LINENO: result: no" >&5
20604 echo "${ECHO_T}no" >&6; }
20607 if test "x$ac_pt_PKG_CONFIG" = x; then
20610 case $cross_compiling:$ac_tool_warned in
20612 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20613 whose name does not start with the host triplet. If you think this
20614 configuration is useful to you, please write to autoconf@gnu.org." >&5
20615 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20616 whose name does not start with the host triplet. If you think this
20617 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20618 ac_tool_warned=yes ;;
20620 PKG_CONFIG=$ac_pt_PKG_CONFIG
20623 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20627 if test -n "$PKG_CONFIG"; then
20628 _pkg_min_version=0.9.0
20629 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20630 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
20631 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20632 { echo "$as_me:$LINENO: result: yes" >&5
20633 echo "${ECHO_T}yes" >&6; }
20635 { echo "$as_me:$LINENO: result: no" >&5
20636 echo "${ECHO_T}no" >&6; }
20643 { echo "$as_me:$LINENO: checking for libpurple" >&5
20644 echo $ECHO_N "checking for libpurple... $ECHO_C" >&6; }
20646 if test -n "$PKG_CONFIG"; then
20647 if test -n "$libpurple_CFLAGS"; then
20648 pkg_cv_libpurple_CFLAGS="$libpurple_CFLAGS"
20650 if test -n "$PKG_CONFIG" && \
20651 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pidgin >= 2.0.0\"") >&5
20652 ($PKG_CONFIG --exists --print-errors "pidgin >= 2.0.0") 2>&5
20654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655 (exit $ac_status); }; then
20656 pkg_cv_libpurple_CFLAGS=`$PKG_CONFIG --cflags "pidgin >= 2.0.0" 2>/dev/null`
20664 if test -n "$PKG_CONFIG"; then
20665 if test -n "$libpurple_LIBS"; then
20666 pkg_cv_libpurple_LIBS="$libpurple_LIBS"
20668 if test -n "$PKG_CONFIG" && \
20669 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pidgin >= 2.0.0\"") >&5
20670 ($PKG_CONFIG --exists --print-errors "pidgin >= 2.0.0") 2>&5
20672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20673 (exit $ac_status); }; then
20674 pkg_cv_libpurple_LIBS=`$PKG_CONFIG --libs "pidgin >= 2.0.0" 2>/dev/null`
20685 if test $pkg_failed = yes; then
20687 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20688 _pkg_short_errors_supported=yes
20690 _pkg_short_errors_supported=no
20692 if test $_pkg_short_errors_supported = yes; then
20693 libpurple_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pidgin >= 2.0.0"`
20695 libpurple_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pidgin >= 2.0.0"`
20697 # Put the nasty error message in config.log where it belongs
20698 echo "$libpurple_PKG_ERRORS" >&5
20700 { { echo "$as_me:$LINENO: error: Package requirements (pidgin >= 2.0.0) were not met:
20702 $libpurple_PKG_ERRORS
20704 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20705 installed software in a non-standard prefix.
20707 Alternatively, you may set the environment variables libpurple_CFLAGS
20708 and libpurple_LIBS to avoid the need to call pkg-config.
20709 See the pkg-config man page for more details.
20711 echo "$as_me: error: Package requirements (pidgin >= 2.0.0) were not met:
20713 $libpurple_PKG_ERRORS
20715 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20716 installed software in a non-standard prefix.
20718 Alternatively, you may set the environment variables libpurple_CFLAGS
20719 and libpurple_LIBS to avoid the need to call pkg-config.
20720 See the pkg-config man page for more details.
20722 { (exit 1); exit 1; }; }
20723 elif test $pkg_failed = untried; then
20724 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
20725 is in your PATH or set the PKG_CONFIG environment variable to the full
20726 path to pkg-config.
20728 Alternatively, you may set the environment variables libpurple_CFLAGS
20729 and libpurple_LIBS to avoid the need to call pkg-config.
20730 See the pkg-config man page for more details.
20732 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20733 See \`config.log' for more details." >&5
20734 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
20735 is in your PATH or set the PKG_CONFIG environment variable to the full
20736 path to pkg-config.
20738 Alternatively, you may set the environment variables libpurple_CFLAGS
20739 and libpurple_LIBS to avoid the need to call pkg-config.
20740 See the pkg-config man page for more details.
20742 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20743 See \`config.log' for more details." >&2;}
20744 { (exit 1); exit 1; }; }
20746 libpurple_CFLAGS=$pkg_cv_libpurple_CFLAGS
20747 libpurple_LIBS=$pkg_cv_libpurple_LIBS
20748 { echo "$as_me:$LINENO: result: yes" >&5
20749 echo "${ECHO_T}yes" >&6; }
20752 cat >>confdefs.h <<\_ACEOF
20753 @%:@define HAVE_PIDGIN 1
20759 PIDGIN_CFLAGS=`$PKG_CONFIG --cflags purple`
20760 PIDGIN_LIBS=`$PKG_CONFIG --libs purple`
20765 { echo "$as_me:$LINENO: checking for inet_aton" >&5
20766 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
20767 if test "${ac_cv_func_inet_aton+set}" = set; then
20768 echo $ECHO_N "(cached) $ECHO_C" >&6
20770 cat >conftest.$ac_ext <<_ACEOF
20773 cat confdefs.h >>conftest.$ac_ext
20774 cat >>conftest.$ac_ext <<_ACEOF
20775 /* end confdefs.h. */
20776 /* Define inet_aton to an innocuous variant, in case <limits.h> declares inet_aton.
20777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20778 #define inet_aton innocuous_inet_aton
20780 /* System header to define __stub macros and hopefully few prototypes,
20781 which can conflict with char inet_aton (); below.
20782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20783 <limits.h> exists even on freestanding compilers. */
20786 # include <limits.h>
20788 # include <assert.h>
20793 /* Override any GCC internal prototype to avoid an error.
20794 Use char because int might match the return type of a GCC
20795 builtin and then its argument prototype would still apply. */
20800 /* The GNU C library defines this for functions which it implements
20801 to always fail with ENOSYS. Some functions are actually named
20802 something starting with __ and the normal name is an alias. */
20803 #if defined __stub_inet_aton || defined __stub___inet_aton
20810 return inet_aton ();
20815 rm -f conftest.$ac_objext conftest$ac_exeext
20816 if { (ac_try="$ac_link"
20817 case "(($ac_try" in
20818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20819 *) ac_try_echo=$ac_try;;
20821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20822 (eval "$ac_link") 2>conftest.er1
20824 grep -v '^ *+' conftest.er1 >conftest.err
20826 cat conftest.err >&5
20827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20828 (exit $ac_status); } && {
20829 test -z "$ac_c_werror_flag" ||
20830 test ! -s conftest.err
20831 } && test -s conftest$ac_exeext &&
20832 $as_test_x conftest$ac_exeext; then
20833 ac_cv_func_inet_aton=yes
20835 echo "$as_me: failed program was:" >&5
20836 sed 's/^/| /' conftest.$ac_ext >&5
20838 ac_cv_func_inet_aton=no
20841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20842 conftest$ac_exeext conftest.$ac_ext
20844 { echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton" >&5
20845 echo "${ECHO_T}$ac_cv_func_inet_aton" >&6; }
20846 if test $ac_cv_func_inet_aton = yes; then
20850 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
20851 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
20852 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
20853 echo $ECHO_N "(cached) $ECHO_C" >&6
20855 ac_check_lib_save_LIBS=$LIBS
20856 LIBS="-lresolv $LIBS"
20857 cat >conftest.$ac_ext <<_ACEOF
20860 cat confdefs.h >>conftest.$ac_ext
20861 cat >>conftest.$ac_ext <<_ACEOF
20862 /* end confdefs.h. */
20864 /* Override any GCC internal prototype to avoid an error.
20865 Use char because int might match the return type of a GCC
20866 builtin and then its argument prototype would still apply. */
20874 return inet_aton ();
20879 rm -f conftest.$ac_objext conftest$ac_exeext
20880 if { (ac_try="$ac_link"
20881 case "(($ac_try" in
20882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20883 *) ac_try_echo=$ac_try;;
20885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20886 (eval "$ac_link") 2>conftest.er1
20888 grep -v '^ *+' conftest.er1 >conftest.err
20890 cat conftest.err >&5
20891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892 (exit $ac_status); } && {
20893 test -z "$ac_c_werror_flag" ||
20894 test ! -s conftest.err
20895 } && test -s conftest$ac_exeext &&
20896 $as_test_x conftest$ac_exeext; then
20897 ac_cv_lib_resolv_inet_aton=yes
20899 echo "$as_me: failed program was:" >&5
20900 sed 's/^/| /' conftest.$ac_ext >&5
20902 ac_cv_lib_resolv_inet_aton=no
20905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20906 conftest$ac_exeext conftest.$ac_ext
20907 LIBS=$ac_check_lib_save_LIBS
20909 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
20910 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
20911 if test $ac_cv_lib_resolv_inet_aton = yes; then
20912 cat >>confdefs.h <<_ACEOF
20913 @%:@define HAVE_LIBRESOLV 1
20916 LIBS="-lresolv $LIBS"
20919 { { echo "$as_me:$LINENO: error: inet_aton not found" >&5
20920 echo "$as_me: error: inet_aton not found" >&2;}
20921 { (exit 1); exit 1; }; }
20927 SIPE_LIBA=`$PKG_CONFIG sipe --variable=libarchive`
20930 # Check whether --enable-static-sipe was given.
20931 if test "${enable_static_sipe+set}" = set; then
20932 enableval=$enable_static_sipe; sipe_static="yes"
20940 if test $sipe_static = yes; then
20942 SIPE_STATIC_FALSE='#'
20944 SIPE_STATIC_TRUE='#'
20949 # substitutions and generated files
20950 ac_config_files="$ac_config_files src/config.h Makefile pixmaps/Makefile pixmaps/16/Makefile pixmaps/22/Makefile pixmaps/48/Makefile src/Makefile"
20953 cat >confcache <<\_ACEOF
20954 # This file is a shell script that caches the results of configure
20955 # tests run on this system so they can be shared between configure
20956 # scripts and configure runs, see configure's option --config-cache.
20957 # It is not useful on other systems. If it contains results you don't
20958 # want to keep, you may remove or edit it.
20960 # config.status only pays attention to the cache file if you give it
20961 # the --recheck option to rerun configure.
20963 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20964 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20965 # following values.
20969 # The following way of writing the cache mishandles newlines in values,
20970 # but we know of no workaround that is simple, portable, and efficient.
20971 # So, we kill variables containing newlines.
20972 # Ultrix sh set writes to stderr and can't be redirected directly,
20973 # and sets the high bit in the cache file unless we assign to the vars.
20975 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20976 eval ac_val=\$$ac_var
20980 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20981 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20984 _ | IFS | as_nl) ;; #(
20985 *) $as_unset $ac_var ;;
20991 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20992 *${as_nl}ac_space=\ *)
20993 # `set' does not quote correctly, so add quotes (double-quote
20994 # substitution turns \\\\ into \\, and sed turns \\ into \).
20997 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21000 # `set' quotes correctly as required by POSIX, so do not add quotes.
21001 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21010 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21012 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21014 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21015 if test -w "$cache_file"; then
21016 test "x$cache_file" != "x/dev/null" &&
21017 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21018 echo "$as_me: updating cache $cache_file" >&6;}
21019 cat confcache >$cache_file
21021 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21022 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21027 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21028 # Let make expand exec_prefix.
21029 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21031 # Transform confdefs.h into DEFS.
21032 # Protect against shell expansion while executing Makefile rules.
21033 # Protect against Makefile macro expansion.
21035 # If the first sed substitution is executed (which looks for macros that
21036 # take arguments), then branch to the quote section. Otherwise,
21037 # look for a macro that doesn't take arguments.
21041 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
21043 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
21047 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21060 DEFS=`sed -n "$ac_script" confdefs.h`
21065 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
21066 # 1. Remove the extension, and $U if already installed.
21067 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21068 ac_i=`echo "$ac_i" | sed "$ac_script"`
21069 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21070 # will be set to the directory where LIBOBJS objects are built.
21071 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21072 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21074 LIB@&t@OBJS=$ac_libobjs
21076 LTLIBOBJS=$ac_ltlibobjs
21079 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21080 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21081 Usually this means the macro was only invoked conditionally." >&5
21082 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21083 Usually this means the macro was only invoked conditionally." >&2;}
21084 { (exit 1); exit 1; }; }
21086 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21087 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21088 Usually this means the macro was only invoked conditionally." >&5
21089 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21090 Usually this means the macro was only invoked conditionally." >&2;}
21091 { (exit 1); exit 1; }; }
21093 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21094 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21095 Usually this means the macro was only invoked conditionally." >&5
21096 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21097 Usually this means the macro was only invoked conditionally." >&2;}
21098 { (exit 1); exit 1; }; }
21100 if test -z "${SIPE_STATIC_TRUE}" && test -z "${SIPE_STATIC_FALSE}"; then
21101 { { echo "$as_me:$LINENO: error: conditional \"SIPE_STATIC\" was never defined.
21102 Usually this means the macro was only invoked conditionally." >&5
21103 echo "$as_me: error: conditional \"SIPE_STATIC\" was never defined.
21104 Usually this means the macro was only invoked conditionally." >&2;}
21105 { (exit 1); exit 1; }; }
21108 : ${CONFIG_STATUS=./config.status}
21109 ac_clean_files_save=$ac_clean_files
21110 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21111 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21112 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21113 cat >$CONFIG_STATUS <<_ACEOF
21115 # Generated by $as_me.
21116 # Run this file to recreate the current configuration.
21117 # Compiler output produced by configure, useful for debugging
21118 # configure, is in config.log if it exists.
21121 ac_cs_recheck=false
21123 SHELL=\${CONFIG_SHELL-$SHELL}
21126 cat >>$CONFIG_STATUS <<\_ACEOF
21127 ## --------------------- ##
21128 ## M4sh Initialization. ##
21129 ## --------------------- ##
21131 # Be more Bourne compatible
21132 DUALCASE=1; export DUALCASE # for MKS sh
21133 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21136 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21137 # is contrary to our usage. Disable this feature.
21138 alias -g '${1+"$@"}'='"$@"'
21139 setopt NO_GLOB_SUBST
21141 case `(set -o) 2>/dev/null` in
21142 *posix*) set -o posix ;;
21151 # Avoid depending upon Character Ranges.
21152 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21153 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21154 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21155 as_cr_digits='0123456789'
21156 as_cr_alnum=$as_cr_Letters$as_cr_digits
21158 # The user is always right.
21159 if test "${PATH_SEPARATOR+set}" != set; then
21160 echo "#! /bin/sh" >conf$$.sh
21161 echo "exit 0" >>conf$$.sh
21163 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21171 # Support unset when possible.
21172 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21180 # We need space, tab and new line, in precisely that order. Quoting is
21181 # there to prevent editors from complaining about space-tab.
21182 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21183 # splitting by setting IFS to empty value.)
21188 # Find who we are. Look in the path if we contain no directory separator.
21190 *[\\/]* ) as_myself=$0 ;;
21191 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21192 for as_dir in $PATH
21195 test -z "$as_dir" && as_dir=.
21196 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21202 # We did not find ourselves, most probably we were run as `sh COMMAND'
21203 # in which case we are not to be found in the path.
21204 if test "x$as_myself" = x; then
21207 if test ! -f "$as_myself"; then
21208 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21209 { (exit 1); exit 1; }
21212 # Work around bugs in pre-3.0 UWIN ksh.
21213 for as_var in ENV MAIL MAILPATH
21214 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21222 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21223 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21224 LC_TELEPHONE LC_TIME
21226 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21227 eval $as_var=C; export $as_var
21229 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21233 # Required to use basename.
21234 if expr a : '\(a\)' >/dev/null 2>&1 &&
21235 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21241 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21242 as_basename=basename
21248 # Name of the executable.
21249 as_me=`$as_basename -- "$0" ||
21250 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21251 X"$0" : 'X\(//\)$' \| \
21252 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21254 sed '/^.*\/\([^/][^/]*\)\/*$/{
21273 as_lineno_1=$LINENO
21274 as_lineno_2=$LINENO
21275 test "x$as_lineno_1" != "x$as_lineno_2" &&
21276 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21278 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21279 # uniformly replaced by the line number. The first 'sed' inserts a
21280 # line-number line after each line using $LINENO; the second 'sed'
21281 # does the real work. The second script uses 'N' to pair each
21282 # line-number line with the line containing $LINENO, and appends
21283 # trailing '-' during substitution so that $LINENO is not a special
21284 # case at line end.
21285 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21286 # scripts with optimization help from Paolo Bonzini. Blame Lee
21287 # E. McMahon (1931-1989) for sed's syntax. :-)
21299 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21302 ' >$as_me.lineno &&
21303 chmod +x "$as_me.lineno" ||
21304 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21305 { (exit 1); exit 1; }; }
21307 # Don't try to exec as it changes $[0], causing all sort of problems
21308 # (the dirname of $[0] is not the place where we might find the
21309 # original and so on. Autoconf is especially sensitive to this).
21310 . "./$as_me.lineno"
21311 # Exit status is that of the last command.
21316 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21322 ECHO_C= ECHO_N= ECHO_T=
21323 case `echo -n x` in
21325 case `echo 'x\c'` in
21326 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21333 if expr a : '\(a\)' >/dev/null 2>&1 &&
21334 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21340 rm -f conf$$ conf$$.exe conf$$.file
21341 if test -d conf$$.dir; then
21342 rm -f conf$$.dir/conf$$.file
21348 if ln -s conf$$.file conf$$ 2>/dev/null; then
21350 # ... but there are two gotchas:
21351 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21352 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21353 # In both cases, we have to default to `cp -p'.
21354 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21356 elif ln conf$$.file conf$$ 2>/dev/null; then
21361 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21362 rmdir conf$$.dir 2>/dev/null
21364 if mkdir -p . 2>/dev/null; then
21367 test -d ./-p && rmdir ./-p
21371 if test -x / >/dev/null 2>&1; then
21372 as_test_x='test -x'
21374 if ls -dL / >/dev/null 2>&1; then
21381 if test -d "$1"; then
21387 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21388 ???[sx]*):;;*)false;;esac;fi
21392 as_executable_p=$as_test_x
21394 # Sed expression to map a string onto a valid CPP name.
21395 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21397 # Sed expression to map a string onto a valid variable name.
21398 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21403 # Save the log message, to keep $[0] and so on meaningful, and to
21404 # report actual input values of CONFIG_FILES etc. instead of their
21405 # values after options handling.
21407 This file was extended by $as_me, which was
21408 generated by GNU Autoconf 2.61. Invocation command line was
21410 CONFIG_FILES = $CONFIG_FILES
21411 CONFIG_HEADERS = $CONFIG_HEADERS
21412 CONFIG_LINKS = $CONFIG_LINKS
21413 CONFIG_COMMANDS = $CONFIG_COMMANDS
21416 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21421 cat >>$CONFIG_STATUS <<_ACEOF
21422 # Files that config.status was made for.
21423 config_files="$ac_config_files"
21424 config_commands="$ac_config_commands"
21428 cat >>$CONFIG_STATUS <<\_ACEOF
21430 \`$as_me' instantiates files from templates according to the
21431 current configuration.
21433 Usage: $0 [OPTIONS] [FILE]...
21435 -h, --help print this help, then exit
21436 -V, --version print version number and configuration settings, then exit
21437 -q, --quiet do not print progress messages
21438 -d, --debug don't remove temporary files
21439 --recheck update $as_me by reconfiguring in the same conditions
21440 --file=FILE[:TEMPLATE]
21441 instantiate the configuration file FILE
21443 Configuration files:
21446 Configuration commands:
21449 Report bugs to <bug-autoconf@gnu.org>."
21452 cat >>$CONFIG_STATUS <<_ACEOF
21455 configured by $0, generated by GNU Autoconf 2.61,
21456 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21458 Copyright (C) 2006 Free Software Foundation, Inc.
21459 This config.status script is free software; the Free Software Foundation
21460 gives unlimited permission to copy, distribute and modify it."
21467 cat >>$CONFIG_STATUS <<\_ACEOF
21468 # If no file are specified by the user, then we need to provide default
21469 # value. By we need to know if files were specified by the user.
21475 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21476 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21487 # Handling of the options.
21488 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21490 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21491 echo "$ac_cs_version"; exit ;;
21492 --debug | --debu | --deb | --de | --d | -d )
21494 --file | --fil | --fi | --f )
21496 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21497 ac_need_defaults=false;;
21498 --he | --h | --help | --hel | -h )
21499 echo "$ac_cs_usage"; exit ;;
21500 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21501 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21504 # This is an error.
21505 -*) { echo "$as_me: error: unrecognized option: $1
21506 Try \`$0 --help' for more information." >&2
21507 { (exit 1); exit 1; }; } ;;
21509 *) ac_config_targets="$ac_config_targets $1"
21510 ac_need_defaults=false ;;
21516 ac_configure_extra_args=
21518 if $ac_cs_silent; then
21520 ac_configure_extra_args="$ac_configure_extra_args --silent"
21524 cat >>$CONFIG_STATUS <<_ACEOF
21525 if \$ac_cs_recheck; then
21526 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21527 CONFIG_SHELL=$SHELL
21528 export CONFIG_SHELL
21529 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21533 cat >>$CONFIG_STATUS <<\_ACEOF
21537 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
21538 @%:@@%:@ Running $as_me. @%:@@%:@
21544 cat >>$CONFIG_STATUS <<_ACEOF
21548 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21552 cat >>$CONFIG_STATUS <<\_ACEOF
21554 # Handling of arguments.
21555 for ac_config_target in $ac_config_targets
21557 case $ac_config_target in
21558 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21559 "src/config.h") CONFIG_FILES="$CONFIG_FILES src/config.h" ;;
21560 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21561 "pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/Makefile" ;;
21562 "pixmaps/16/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/16/Makefile" ;;
21563 "pixmaps/22/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/22/Makefile" ;;
21564 "pixmaps/48/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/48/Makefile" ;;
21565 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21567 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21568 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21569 { (exit 1); exit 1; }; };;
21574 # If the user did not use the arguments to specify the items to instantiate,
21575 # then the envvar interface is used. Set only those that are not.
21576 # We use the long form for the default assignment because of an extremely
21577 # bizarre bug on SunOS 4.1.3.
21578 if $ac_need_defaults; then
21579 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21580 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21583 # Have a temporary directory for convenience. Make it in the build tree
21584 # simply because there is no reason against having it here, and in addition,
21585 # creating and moving files from /tmp can sometimes cause problems.
21586 # Hook for its removal unless debugging.
21587 # Note that there is a small window in which the directory will not be cleaned:
21588 # after its creation but before its name has been assigned to `$tmp'.
21592 trap 'exit_status=$?
21593 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21595 trap '{ (exit 1); exit 1; }' 1 2 13 15
21597 # Create a (secure) tmp directory for tmp files.
21600 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21601 test -n "$tmp" && test -d "$tmp"
21604 tmp=./conf$$-$RANDOM
21605 (umask 077 && mkdir "$tmp")
21608 echo "$me: cannot create a temporary directory in ." >&2
21609 { (exit 1); exit 1; }
21613 # Set up the sed scripts for CONFIG_FILES section.
21616 # No need to generate the scripts if there are no CONFIG_FILES.
21617 # This happens for instance when ./config.status config.h
21618 if test -n "$CONFIG_FILES"; then
21625 for ac_last_try in false false false false false :; do
21626 cat >conf$$subs.sed <<_ACEOF
21627 SHELL!$SHELL$ac_delim
21628 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21629 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21630 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21631 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21632 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21633 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21634 exec_prefix!$exec_prefix$ac_delim
21635 prefix!$prefix$ac_delim
21636 program_transform_name!$program_transform_name$ac_delim
21637 bindir!$bindir$ac_delim
21638 sbindir!$sbindir$ac_delim
21639 libexecdir!$libexecdir$ac_delim
21640 datarootdir!$datarootdir$ac_delim
21641 datadir!$datadir$ac_delim
21642 sysconfdir!$sysconfdir$ac_delim
21643 sharedstatedir!$sharedstatedir$ac_delim
21644 localstatedir!$localstatedir$ac_delim
21645 includedir!$includedir$ac_delim
21646 oldincludedir!$oldincludedir$ac_delim
21647 docdir!$docdir$ac_delim
21648 infodir!$infodir$ac_delim
21649 htmldir!$htmldir$ac_delim
21650 dvidir!$dvidir$ac_delim
21651 pdfdir!$pdfdir$ac_delim
21652 psdir!$psdir$ac_delim
21653 libdir!$libdir$ac_delim
21654 localedir!$localedir$ac_delim
21655 mandir!$mandir$ac_delim
21656 DEFS!$DEFS$ac_delim
21657 ECHO_C!$ECHO_C$ac_delim
21658 ECHO_N!$ECHO_N$ac_delim
21659 ECHO_T!$ECHO_T$ac_delim
21660 LIBS!$LIBS$ac_delim
21661 build_alias!$build_alias$ac_delim
21662 host_alias!$host_alias$ac_delim
21663 target_alias!$target_alias$ac_delim
21664 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21665 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21666 INSTALL_DATA!$INSTALL_DATA$ac_delim
21667 CYGPATH_W!$CYGPATH_W$ac_delim
21668 PACKAGE!$PACKAGE$ac_delim
21669 VERSION!$VERSION$ac_delim
21670 ACLOCAL!$ACLOCAL$ac_delim
21671 AUTOCONF!$AUTOCONF$ac_delim
21672 AUTOMAKE!$AUTOMAKE$ac_delim
21673 AUTOHEADER!$AUTOHEADER$ac_delim
21674 MAKEINFO!$MAKEINFO$ac_delim
21675 install_sh!$install_sh$ac_delim
21676 STRIP!$STRIP$ac_delim
21677 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21678 mkdir_p!$mkdir_p$ac_delim
21680 SET_MAKE!$SET_MAKE$ac_delim
21681 am__leading_dot!$am__leading_dot$ac_delim
21682 AMTAR!$AMTAR$ac_delim
21683 am__tar!$am__tar$ac_delim
21684 am__untar!$am__untar$ac_delim
21686 CFLAGS!$CFLAGS$ac_delim
21687 LDFLAGS!$LDFLAGS$ac_delim
21688 CPPFLAGS!$CPPFLAGS$ac_delim
21689 ac_ct_CC!$ac_ct_CC$ac_delim
21690 EXEEXT!$EXEEXT$ac_delim
21691 OBJEXT!$OBJEXT$ac_delim
21692 DEPDIR!$DEPDIR$ac_delim
21693 am__include!$am__include$ac_delim
21694 am__quote!$am__quote$ac_delim
21695 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21696 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21697 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21698 CCDEPMODE!$CCDEPMODE$ac_delim
21699 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21700 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21701 build!$build$ac_delim
21702 build_cpu!$build_cpu$ac_delim
21703 build_vendor!$build_vendor$ac_delim
21704 build_os!$build_os$ac_delim
21705 host!$host$ac_delim
21706 host_cpu!$host_cpu$ac_delim
21707 host_vendor!$host_vendor$ac_delim
21708 host_os!$host_os$ac_delim
21709 GREP!$GREP$ac_delim
21710 EGREP!$EGREP$ac_delim
21711 LN_S!$LN_S$ac_delim
21712 ECHO!$ECHO$ac_delim
21714 RANLIB!$RANLIB$ac_delim
21717 CXXFLAGS!$CXXFLAGS$ac_delim
21718 ac_ct_CXX!$ac_ct_CXX$ac_delim
21719 CXXDEPMODE!$CXXDEPMODE$ac_delim
21720 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21721 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21722 CXXCPP!$CXXCPP$ac_delim
21726 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21728 elif $ac_last_try; then
21729 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21730 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21731 { (exit 1); exit 1; }; }
21733 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21737 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21738 if test -n "$ac_eof"; then
21739 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21740 ac_eof=`expr $ac_eof + 1`
21743 cat >>$CONFIG_STATUS <<_ACEOF
21744 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21745 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21748 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21749 s/^/s,@/; s/!/@,|#_!!_#|/
21752 s/'"$ac_delim"'$/,g/; t
21754 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21755 ' >>$CONFIG_STATUS <conf$$subs.sed
21756 rm -f conf$$subs.sed
21757 cat >>$CONFIG_STATUS <<_ACEOF
21763 for ac_last_try in false false false false false :; do
21764 cat >conf$$subs.sed <<_ACEOF
21765 FFLAGS!$FFLAGS$ac_delim
21766 ac_ct_F77!$ac_ct_F77$ac_delim
21767 LIBTOOL!$LIBTOOL$ac_delim
21768 PIDGIN_MIN!$PIDGIN_MIN$ac_delim
21769 PIDGIN_MAX!$PIDGIN_MAX$ac_delim
21770 PKG_CONFIG!$PKG_CONFIG$ac_delim
21771 libpurple_CFLAGS!$libpurple_CFLAGS$ac_delim
21772 libpurple_LIBS!$libpurple_LIBS$ac_delim
21773 PIDGIN_CFLAGS!$PIDGIN_CFLAGS$ac_delim
21774 PIDGIN_LIBS!$PIDGIN_LIBS$ac_delim
21775 SIPE_LIBA!$SIPE_LIBA$ac_delim
21776 SIPE_STATIC_TRUE!$SIPE_STATIC_TRUE$ac_delim
21777 SIPE_STATIC_FALSE!$SIPE_STATIC_FALSE$ac_delim
21778 LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim
21779 LTLIBOBJS!$LTLIBOBJS$ac_delim
21782 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 15; then
21784 elif $ac_last_try; then
21785 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21786 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21787 { (exit 1); exit 1; }; }
21789 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21793 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21794 if test -n "$ac_eof"; then
21795 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21796 ac_eof=`expr $ac_eof + 1`
21799 cat >>$CONFIG_STATUS <<_ACEOF
21800 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21801 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21804 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21805 s/^/s,@/; s/!/@,|#_!!_#|/
21808 s/'"$ac_delim"'$/,g/; t
21810 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21811 ' >>$CONFIG_STATUS <conf$$subs.sed
21812 rm -f conf$$subs.sed
21813 cat >>$CONFIG_STATUS <<_ACEOF
21820 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21821 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21822 # trailing colons and then remove the whole line if VPATH becomes empty
21823 # (actually we leave an empty line to preserve line numbers).
21824 if test "x$srcdir" = x.; then
21825 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21826 s/:*\$(srcdir):*/:/
21827 s/:*\${srcdir}:*/:/
21829 s/^\([^=]*=[ ]*\):*/\1/
21835 cat >>$CONFIG_STATUS <<\_ACEOF
21836 fi # test -n "$CONFIG_FILES"
21839 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
21842 :[FHLC]) ac_mode=$ac_tag; continue;;
21844 case $ac_mode$ac_tag in
21846 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21847 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21848 { (exit 1); exit 1; }; };;
21849 :[FH]-) ac_tag=-:-;;
21850 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21867 -) ac_f="$tmp/stdin";;
21868 *) # Look for the file first in the build tree, then in the source tree
21869 # (if the path is not absolute). The absolute path cannot be DOS-style,
21870 # because $ac_f cannot contain `:'.
21874 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21876 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21877 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21878 { (exit 1); exit 1; }; };;
21880 ac_file_inputs="$ac_file_inputs $ac_f"
21883 # Let's still pretend it is `configure' which instantiates (i.e., don't
21884 # use $as_me), people would be surprised to read:
21885 # /* config.h. Generated by config.status. */
21886 configure_input="Generated from "`IFS=:
21887 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21888 if test x"$ac_file" != x-; then
21889 configure_input="$ac_file. $configure_input"
21890 { echo "$as_me:$LINENO: creating $ac_file" >&5
21891 echo "$as_me: creating $ac_file" >&6;}
21895 *:-:* | *:-) cat >"$tmp/stdin";;
21900 ac_dir=`$as_dirname -- "$ac_file" ||
21901 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21902 X"$ac_file" : 'X\(//\)[^/]' \| \
21903 X"$ac_file" : 'X\(//\)$' \| \
21904 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21906 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21910 /^X\(\/\/\)[^/].*/{
21925 -*) as_dir=./$as_dir;;
21927 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21931 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21932 *) as_qdir=$as_dir;;
21934 as_dirs="'$as_qdir' $as_dirs"
21935 as_dir=`$as_dirname -- "$as_dir" ||
21936 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21937 X"$as_dir" : 'X\(//\)[^/]' \| \
21938 X"$as_dir" : 'X\(//\)$' \| \
21939 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21941 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21945 /^X\(\/\/\)[^/].*/{
21958 test -d "$as_dir" && break
21960 test -z "$as_dirs" || eval "mkdir $as_dirs"
21961 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21962 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21963 { (exit 1); exit 1; }; }; }
21967 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21969 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21970 # A ".." for each directory in $ac_dir_suffix.
21971 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21972 case $ac_top_builddir_sub in
21973 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21974 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21977 ac_abs_top_builddir=$ac_pwd
21978 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21979 # for backward compatibility:
21980 ac_top_builddir=$ac_top_build_prefix
21983 .) # We are building in place.
21985 ac_top_srcdir=$ac_top_builddir_sub
21986 ac_abs_top_srcdir=$ac_pwd ;;
21987 [\\/]* | ?:[\\/]* ) # Absolute name.
21988 ac_srcdir=$srcdir$ac_dir_suffix;
21989 ac_top_srcdir=$srcdir
21990 ac_abs_top_srcdir=$srcdir ;;
21991 *) # Relative name.
21992 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21993 ac_top_srcdir=$ac_top_build_prefix$srcdir
21994 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21996 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22006 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22007 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22011 cat >>$CONFIG_STATUS <<\_ACEOF
22012 # If the template does not know about datarootdir, expand it.
22013 # FIXME: This hack should be removed a few years after 2.60.
22014 ac_datarootdir_hack=; ac_datarootdir_seen=
22016 case `sed -n '/datarootdir/ {
22025 ' $ac_file_inputs` in
22026 *datarootdir*) ac_datarootdir_seen=yes;;
22027 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22028 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22029 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22031 cat >>$CONFIG_STATUS <<_ACEOF
22032 ac_datarootdir_hack='
22033 s&@datadir@&$datadir&g
22034 s&@docdir@&$docdir&g
22035 s&@infodir@&$infodir&g
22036 s&@localedir@&$localedir&g
22037 s&@mandir@&$mandir&g
22038 s&\\\${datarootdir}&$datarootdir&g' ;;
22042 # Neutralize VPATH when `$srcdir' = `.'.
22043 # Shell code in configure.ac might set extrasub.
22044 # FIXME: do we really want to maintain this feature?
22045 cat >>$CONFIG_STATUS <<_ACEOF
22049 cat >>$CONFIG_STATUS <<\_ACEOF
22051 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22052 s&@configure_input@&$configure_input&;t t
22053 s&@top_builddir@&$ac_top_builddir_sub&;t t
22054 s&@srcdir@&$ac_srcdir&;t t
22055 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22056 s&@top_srcdir@&$ac_top_srcdir&;t t
22057 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22058 s&@builddir@&$ac_builddir&;t t
22059 s&@abs_builddir@&$ac_abs_builddir&;t t
22060 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22061 s&@INSTALL@&$ac_INSTALL&;t t
22062 $ac_datarootdir_hack
22063 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22065 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22066 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22067 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22068 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22069 which seems to be undefined. Please make sure it is defined." >&5
22070 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22071 which seems to be undefined. Please make sure it is defined." >&2;}
22075 -) cat "$tmp/out"; rm -f "$tmp/out";;
22076 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22081 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22082 echo "$as_me: executing $ac_file commands" >&6;}
22087 case $ac_file$ac_mode in
22088 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22089 # Strip MF so we end up with the name of the file.
22090 mf=`echo "$mf" | sed -e 's/:.*$//'`
22091 # Check whether this is an Automake generated Makefile or not.
22092 # We used to match only the files named `Makefile.in', but
22093 # some people rename them; so instead we look at the file content.
22094 # Grep'ing the first line is not enough: some people post-process
22095 # each Makefile.in and add a new line on top of each file to say so.
22096 # So let's grep whole file.
22097 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22098 dirpart=`$as_dirname -- "$mf" ||
22099 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22100 X"$mf" : 'X\(//\)[^/]' \| \
22101 X"$mf" : 'X\(//\)$' \| \
22102 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22108 /^X\(\/\/\)[^/].*/{
22124 # Extract the definition of DEPDIR, am__include, and am__quote
22125 # from the Makefile without running `make'.
22126 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22127 test -z "$DEPDIR" && continue
22128 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22129 test -z "am__include" && continue
22130 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22131 # When using ansi2knr, U may be empty or an underscore; expand it
22132 U=`sed -n 's/^U = //p' < "$mf"`
22133 # Find all dependency output files, they are included files with
22134 # $(DEPDIR) in their names. We invoke sed twice because it is the
22135 # simplest approach to changing $(DEPDIR) to its actual value in the
22137 for file in `sed -n "
22138 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22139 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22140 # Make sure the directory exists.
22141 test -f "$dirpart/$file" && continue
22142 fdir=`$as_dirname -- "$file" ||
22143 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22144 X"$file" : 'X\(//\)[^/]' \| \
22145 X"$file" : 'X\(//\)$' \| \
22146 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22152 /^X\(\/\/\)[^/].*/{
22165 { as_dir=$dirpart/$fdir
22167 -*) as_dir=./$as_dir;;
22169 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22173 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22174 *) as_qdir=$as_dir;;
22176 as_dirs="'$as_qdir' $as_dirs"
22177 as_dir=`$as_dirname -- "$as_dir" ||
22178 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22179 X"$as_dir" : 'X\(//\)[^/]' \| \
22180 X"$as_dir" : 'X\(//\)$' \| \
22181 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22187 /^X\(\/\/\)[^/].*/{
22200 test -d "$as_dir" && break
22202 test -z "$as_dirs" || eval "mkdir $as_dirs"
22203 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22204 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22205 { (exit 1); exit 1; }; }; }
22206 # echo "creating $dirpart/$file"
22207 echo '# dummy' > "$dirpart/$file"
22216 { (exit 0); exit 0; }
22218 chmod +x $CONFIG_STATUS
22219 ac_clean_files=$ac_clean_files_save
22222 # configure is writing to config.log, and then calls config.status.
22223 # config.status does its own redirection, appending to config.log.
22224 # Unfortunately, on DOS this fails, as config.log is still kept open
22225 # by configure, so config.status won't be able to write to it; its
22226 # output is simply discarded. So we exec the FD to /dev/null,
22227 # effectively closing config.log, so it can be properly (re)opened and
22228 # appended to by config.status. When coming back to configure, we
22229 # need to make the FD available again.
22230 if test "$no_create" != yes; then
22232 ac_config_status_args=
22233 test "$silent" = yes &&
22234 ac_config_status_args="$ac_config_status_args --quiet"
22236 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22238 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22239 # would make configure fail if this is the last instruction.
22240 $ac_cs_success || { (exit 1); exit 1; }
22246 echo -n "Simple Exchange linking mode... : "
22247 if test "$sipe_static" = "yes" ; then
22249 echo "Simple Exchange library... : $SIPE_LIBA"
22255 echo configure complete, now run \`make\`