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
807 GST_PLUGIN_VERSION_RELEASE
808 GST_PLUGIN_VERSION_MAJOR
809 GST_PLUGIN_VERSION_MINOR
810 GST_PLUGIN_VERSION_MICRO
811 GST_PLUGIN_VERSION_NANO
815 MAINTAINER_MODE_FALSE
829 INSTALL_STRIP_PROGRAM
898 ac_precious_vars='build_alias
915 # Initialize some variables set by options.
917 ac_init_version=false
918 # The variables have the same names as the options, with
919 # dashes changed to underlines.
927 program_transform_name=s,x,x,
935 # Installation directory options.
936 # These are left unexpanded so users can "make install exec_prefix=/foo"
937 # and all the variables that are supposed to be based on exec_prefix
938 # by default will actually change.
939 # Use braces instead of parens because sh, perl, etc. also accept them.
940 # (The list follows the same order as the GNU Coding Standards.)
941 bindir='${exec_prefix}/bin'
942 sbindir='${exec_prefix}/sbin'
943 libexecdir='${exec_prefix}/libexec'
944 datarootdir='${prefix}/share'
945 datadir='${datarootdir}'
946 sysconfdir='${prefix}/etc'
947 sharedstatedir='${prefix}/com'
948 localstatedir='${prefix}/var'
949 includedir='${prefix}/include'
950 oldincludedir='/usr/include'
951 docdir='${datarootdir}/doc/${PACKAGE}'
952 infodir='${datarootdir}/info'
957 libdir='${exec_prefix}/lib'
958 localedir='${datarootdir}/locale'
959 mandir='${datarootdir}/man'
965 # If the previous option needs an argument, assign it.
966 if test -n "$ac_prev"; then
967 eval $ac_prev=\$ac_option
973 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
977 # Accept the important Cygnus configure options, so we can diagnose typos.
979 case $ac_dashdash$ac_option in
983 -bindir | --bindir | --bindi | --bind | --bin | --bi)
985 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
988 -build | --build | --buil | --bui | --bu)
989 ac_prev=build_alias ;;
990 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
991 build_alias=$ac_optarg ;;
993 -cache-file | --cache-file | --cache-fil | --cache-fi \
994 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
995 ac_prev=cache_file ;;
996 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
997 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
998 cache_file=$ac_optarg ;;
1000 --config-cache | -C)
1001 cache_file=config.cache ;;
1003 -datadir | --datadir | --datadi | --datad)
1005 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1006 datadir=$ac_optarg ;;
1008 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1009 | --dataroo | --dataro | --datar)
1010 ac_prev=datarootdir ;;
1011 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1012 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1013 datarootdir=$ac_optarg ;;
1015 -disable-* | --disable-*)
1016 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1017 # Reject names that are not valid shell variable names.
1018 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1019 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1020 { (exit 1); exit 1; }; }
1021 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1022 eval enable_$ac_feature=no ;;
1024 -docdir | --docdir | --docdi | --doc | --do)
1026 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1027 docdir=$ac_optarg ;;
1029 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1031 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1032 dvidir=$ac_optarg ;;
1034 -enable-* | --enable-*)
1035 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1036 # Reject names that are not valid shell variable names.
1037 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1038 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1039 { (exit 1); exit 1; }; }
1040 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1041 eval enable_$ac_feature=\$ac_optarg ;;
1043 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1044 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1045 | --exec | --exe | --ex)
1046 ac_prev=exec_prefix ;;
1047 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1048 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1049 | --exec=* | --exe=* | --ex=*)
1050 exec_prefix=$ac_optarg ;;
1052 -gas | --gas | --ga | --g)
1053 # Obsolete; use --with-gas.
1056 -help | --help | --hel | --he | -h)
1057 ac_init_help=long ;;
1058 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1059 ac_init_help=recursive ;;
1060 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1061 ac_init_help=short ;;
1063 -host | --host | --hos | --ho)
1064 ac_prev=host_alias ;;
1065 -host=* | --host=* | --hos=* | --ho=*)
1066 host_alias=$ac_optarg ;;
1068 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1070 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1072 htmldir=$ac_optarg ;;
1074 -includedir | --includedir | --includedi | --included | --include \
1075 | --includ | --inclu | --incl | --inc)
1076 ac_prev=includedir ;;
1077 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1078 | --includ=* | --inclu=* | --incl=* | --inc=*)
1079 includedir=$ac_optarg ;;
1081 -infodir | --infodir | --infodi | --infod | --info | --inf)
1083 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1084 infodir=$ac_optarg ;;
1086 -libdir | --libdir | --libdi | --libd)
1088 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1089 libdir=$ac_optarg ;;
1091 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1092 | --libexe | --libex | --libe)
1093 ac_prev=libexecdir ;;
1094 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1095 | --libexe=* | --libex=* | --libe=*)
1096 libexecdir=$ac_optarg ;;
1098 -localedir | --localedir | --localedi | --localed | --locale)
1099 ac_prev=localedir ;;
1100 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1101 localedir=$ac_optarg ;;
1103 -localstatedir | --localstatedir | --localstatedi | --localstated \
1104 | --localstate | --localstat | --localsta | --localst | --locals)
1105 ac_prev=localstatedir ;;
1106 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1107 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1108 localstatedir=$ac_optarg ;;
1110 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1112 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1113 mandir=$ac_optarg ;;
1115 -nfp | --nfp | --nf)
1116 # Obsolete; use --without-fp.
1119 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1120 | --no-cr | --no-c | -n)
1123 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1124 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1127 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1128 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1129 | --oldin | --oldi | --old | --ol | --o)
1130 ac_prev=oldincludedir ;;
1131 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1132 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1133 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1134 oldincludedir=$ac_optarg ;;
1136 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1138 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1139 prefix=$ac_optarg ;;
1141 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1142 | --program-pre | --program-pr | --program-p)
1143 ac_prev=program_prefix ;;
1144 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1145 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1146 program_prefix=$ac_optarg ;;
1148 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1149 | --program-suf | --program-su | --program-s)
1150 ac_prev=program_suffix ;;
1151 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1152 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1153 program_suffix=$ac_optarg ;;
1155 -program-transform-name | --program-transform-name \
1156 | --program-transform-nam | --program-transform-na \
1157 | --program-transform-n | --program-transform- \
1158 | --program-transform | --program-transfor \
1159 | --program-transfo | --program-transf \
1160 | --program-trans | --program-tran \
1161 | --progr-tra | --program-tr | --program-t)
1162 ac_prev=program_transform_name ;;
1163 -program-transform-name=* | --program-transform-name=* \
1164 | --program-transform-nam=* | --program-transform-na=* \
1165 | --program-transform-n=* | --program-transform-=* \
1166 | --program-transform=* | --program-transfor=* \
1167 | --program-transfo=* | --program-transf=* \
1168 | --program-trans=* | --program-tran=* \
1169 | --progr-tra=* | --program-tr=* | --program-t=*)
1170 program_transform_name=$ac_optarg ;;
1172 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1174 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1175 pdfdir=$ac_optarg ;;
1177 -psdir | --psdir | --psdi | --psd | --ps)
1179 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1182 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1183 | -silent | --silent | --silen | --sile | --sil)
1186 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1188 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1190 sbindir=$ac_optarg ;;
1192 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1193 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1194 | --sharedst | --shareds | --shared | --share | --shar \
1196 ac_prev=sharedstatedir ;;
1197 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1198 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1199 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1201 sharedstatedir=$ac_optarg ;;
1203 -site | --site | --sit)
1205 -site=* | --site=* | --sit=*)
1208 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1210 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1211 srcdir=$ac_optarg ;;
1213 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1214 | --syscon | --sysco | --sysc | --sys | --sy)
1215 ac_prev=sysconfdir ;;
1216 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1217 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1218 sysconfdir=$ac_optarg ;;
1220 -target | --target | --targe | --targ | --tar | --ta | --t)
1221 ac_prev=target_alias ;;
1222 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1223 target_alias=$ac_optarg ;;
1225 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1228 -version | --version | --versio | --versi | --vers | -V)
1229 ac_init_version=: ;;
1232 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1233 # Reject names that are not valid shell variable names.
1234 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1235 { echo "$as_me: error: invalid package name: $ac_package" >&2
1236 { (exit 1); exit 1; }; }
1237 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1238 eval with_$ac_package=\$ac_optarg ;;
1240 -without-* | --without-*)
1241 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1242 # Reject names that are not valid shell variable names.
1243 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1244 { echo "$as_me: error: invalid package name: $ac_package" >&2
1245 { (exit 1); exit 1; }; }
1246 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1247 eval with_$ac_package=no ;;
1250 # Obsolete; use --with-x.
1253 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1254 | --x-incl | --x-inc | --x-in | --x-i)
1255 ac_prev=x_includes ;;
1256 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1257 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1258 x_includes=$ac_optarg ;;
1260 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1261 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1262 ac_prev=x_libraries ;;
1263 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1264 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1265 x_libraries=$ac_optarg ;;
1267 -*) { echo "$as_me: error: unrecognized option: $ac_option
1268 Try \`$0 --help' for more information." >&2
1269 { (exit 1); exit 1; }; }
1273 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1274 # Reject names that are not valid shell variable names.
1275 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1276 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1277 { (exit 1); exit 1; }; }
1278 eval $ac_envvar=\$ac_optarg
1279 export $ac_envvar ;;
1282 # FIXME: should be removed in autoconf 3.0.
1283 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1284 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1285 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1286 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1292 if test -n "$ac_prev"; then
1293 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1294 { echo "$as_me: error: missing argument to $ac_option" >&2
1295 { (exit 1); exit 1; }; }
1298 # Be sure to have absolute directory names.
1299 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1300 datadir sysconfdir sharedstatedir localstatedir includedir \
1301 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1302 libdir localedir mandir
1304 eval ac_val=\$$ac_var
1306 [\\/$]* | ?:[\\/]* ) continue;;
1307 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1309 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1310 { (exit 1); exit 1; }; }
1313 # There might be people who depend on the old broken behavior: `$host'
1314 # used to hold the argument of --host etc.
1315 # FIXME: To remove some day.
1318 target=$target_alias
1320 # FIXME: To remove some day.
1321 if test "x$host_alias" != x; then
1322 if test "x$build_alias" = x; then
1323 cross_compiling=maybe
1324 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1325 If a cross compiler is detected then cross compile mode will be used." >&2
1326 elif test "x$build_alias" != "x$host_alias"; then
1332 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1334 test "$silent" = yes && exec 6>/dev/null
1337 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1338 ac_ls_di=`ls -di .` &&
1339 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1340 { echo "$as_me: error: Working directory cannot be determined" >&2
1341 { (exit 1); exit 1; }; }
1342 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1343 { echo "$as_me: error: pwd does not report name of working directory" >&2
1344 { (exit 1); exit 1; }; }
1347 # Find the source files, if location was not specified.
1348 if test -z "$srcdir"; then
1349 ac_srcdir_defaulted=yes
1350 # Try the directory containing this script, then the parent directory.
1351 ac_confdir=`$as_dirname -- "$0" ||
1352 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1353 X"$0" : 'X\(//\)[^/]' \| \
1354 X"$0" : 'X\(//\)$' \| \
1355 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1375 if test ! -r "$srcdir/$ac_unique_file"; then
1379 ac_srcdir_defaulted=no
1381 if test ! -r "$srcdir/$ac_unique_file"; then
1382 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1383 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1384 { (exit 1); exit 1; }; }
1386 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1388 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1389 { (exit 1); exit 1; }; }
1391 # When building in place, set srcdir=.
1392 if test "$ac_abs_confdir" = "$ac_pwd"; then
1395 # Remove unnecessary trailing slashes from srcdir.
1396 # Double slashes in file names in object file debugging info
1397 # mess up M-x gdb in Emacs.
1399 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1401 for ac_var in $ac_precious_vars; do
1402 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1403 eval ac_env_${ac_var}_value=\$${ac_var}
1404 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1405 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1409 # Report the --help message.
1411 if test "$ac_init_help" = "long"; then
1412 # Omit some internal or obsolete options to make the list less imposing.
1413 # This message is too long to be a string in the A/UX 3.1 sh.
1415 \`configure' configures this package to adapt to many kinds of systems.
1417 Usage: $0 [OPTION]... [VAR=VALUE]...
1419 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1420 VAR=VALUE. See below for descriptions of some of the useful variables.
1422 Defaults for the options are specified in brackets.
1425 -h, --help display this help and exit
1426 --help=short display options specific to this package
1427 --help=recursive display the short help of all the included packages
1428 -V, --version display version information and exit
1429 -q, --quiet, --silent do not print \`checking...' messages
1430 --cache-file=FILE cache test results in FILE [disabled]
1431 -C, --config-cache alias for \`--cache-file=config.cache'
1432 -n, --no-create do not create output files
1433 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1435 Installation directories:
1436 --prefix=PREFIX install architecture-independent files in PREFIX
1437 [$ac_default_prefix]
1438 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1441 By default, \`make install' will install all the files in
1442 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1443 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1444 for instance \`--prefix=\$HOME'.
1446 For better control, use the options below.
1448 Fine tuning of the installation directories:
1449 --bindir=DIR user executables [EPREFIX/bin]
1450 --sbindir=DIR system admin executables [EPREFIX/sbin]
1451 --libexecdir=DIR program executables [EPREFIX/libexec]
1452 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1453 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1454 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1455 --libdir=DIR object code libraries [EPREFIX/lib]
1456 --includedir=DIR C header files [PREFIX/include]
1457 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1458 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1459 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1460 --infodir=DIR info documentation [DATAROOTDIR/info]
1461 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1462 --mandir=DIR man documentation [DATAROOTDIR/man]
1463 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/PACKAGE@:>@
1464 --htmldir=DIR html documentation [DOCDIR]
1465 --dvidir=DIR dvi documentation [DOCDIR]
1466 --pdfdir=DIR pdf documentation [DOCDIR]
1467 --psdir=DIR ps documentation [DOCDIR]
1473 --program-prefix=PREFIX prepend PREFIX to installed program names
1474 --program-suffix=SUFFIX append SUFFIX to installed program names
1475 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1478 --build=BUILD configure for building on BUILD [guessed]
1479 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1483 if test -n "$ac_init_help"; then
1488 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1489 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1490 --enable-maintainer-mode enable make rules and dependencies not useful
1491 (and sometimes confusing) to the casual installer
1492 --disable-dependency-tracking speeds up one-time build
1493 --enable-dependency-tracking do not reject slow dependency extractors
1494 --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@
1495 --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@
1496 --enable-fast-install@<:@=PKGS@:>@
1497 optimize for fast installation @<:@default=yes@:>@
1498 --disable-libtool-lock avoid locking (might break parallel builds)
1501 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1502 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1503 --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
1504 --with-pic try to use only PIC/non-PIC objects @<:@default=use
1506 --with-tags@<:@=TAGS@:>@ include additional configurations @<:@automatic@:>@
1508 Some influential environment variables:
1509 CC C compiler command
1510 CFLAGS C compiler flags
1511 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1512 nonstandard directory <lib dir>
1513 LIBS libraries to pass to the linker, e.g. -l<library>
1514 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1515 you have headers in a nonstandard directory <include dir>
1517 CXX C++ compiler command
1518 CXXFLAGS C++ compiler flags
1519 CXXCPP C++ preprocessor
1520 F77 Fortran 77 compiler command
1521 FFLAGS Fortran 77 compiler flags
1523 Use these variables to override the choices made by `configure' or to help
1524 it to find libraries and programs with nonstandard names/locations.
1530 if test "$ac_init_help" = "recursive"; then
1531 # If there are subdirs, report their specific --help.
1532 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1533 test -d "$ac_dir" || continue
1537 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1540 # A ".." for each directory in $ac_dir_suffix.
1541 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1542 case $ac_top_builddir_sub in
1543 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1544 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1547 ac_abs_top_builddir=$ac_pwd
1548 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1549 # for backward compatibility:
1550 ac_top_builddir=$ac_top_build_prefix
1553 .) # We are building in place.
1555 ac_top_srcdir=$ac_top_builddir_sub
1556 ac_abs_top_srcdir=$ac_pwd ;;
1557 [\\/]* | ?:[\\/]* ) # Absolute name.
1558 ac_srcdir=$srcdir$ac_dir_suffix;
1559 ac_top_srcdir=$srcdir
1560 ac_abs_top_srcdir=$srcdir ;;
1562 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1563 ac_top_srcdir=$ac_top_build_prefix$srcdir
1564 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1566 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1568 cd "$ac_dir" || { ac_status=$?; continue; }
1569 # Check for guested configure.
1570 if test -f "$ac_srcdir/configure.gnu"; then
1572 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1573 elif test -f "$ac_srcdir/configure"; then
1575 $SHELL "$ac_srcdir/configure" --help=recursive
1577 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1579 cd "$ac_pwd" || { ac_status=$?; break; }
1583 test -n "$ac_init_help" && exit $ac_status
1584 if $ac_init_version; then
1587 generated by GNU Autoconf 2.61
1589 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1590 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1591 This configure script is free software; the Free Software Foundation
1592 gives unlimited permission to copy, distribute and modify it.
1596 cat >config.log <<_ACEOF
1597 This file contains any messages produced by compilers while
1598 running configure, to aid debugging if configure makes a mistake.
1600 It was created by $as_me, which was
1601 generated by GNU Autoconf 2.61. Invocation command line was
1609 @%:@@%:@ --------- @%:@@%:@
1610 @%:@@%:@ Platform. @%:@@%:@
1611 @%:@@%:@ --------- @%:@@%:@
1613 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1614 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1615 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1616 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1617 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1619 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1620 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1622 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1623 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1624 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1625 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1626 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1627 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1628 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1636 test -z "$as_dir" && as_dir=.
1637 echo "PATH: $as_dir"
1646 @%:@@%:@ ----------- @%:@@%:@
1647 @%:@@%:@ Core tests. @%:@@%:@
1648 @%:@@%:@ ----------- @%:@@%:@
1653 # Keep a trace of the command line.
1654 # Strip out --no-create and --no-recursion so they do not pile up.
1655 # Strip out --silent because we don't want to record it for future runs.
1656 # Also quote any args containing shell meta-characters.
1657 # Make two passes to allow for proper duplicate-argument suppression.
1661 ac_must_keep_next=false
1667 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1668 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1669 | -silent | --silent | --silen | --sile | --sil)
1672 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1675 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1677 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1678 if test $ac_must_keep_next = true; then
1679 ac_must_keep_next=false # Got value, back to normal.
1682 *=* | --config-cache | -C | -disable-* | --disable-* \
1683 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1684 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1685 | -with-* | --with-* | -without-* | --without-* | --x)
1686 case "$ac_configure_args0 " in
1687 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1690 -* ) ac_must_keep_next=true ;;
1693 ac_configure_args="$ac_configure_args '$ac_arg'"
1698 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1699 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1701 # When interrupted or exit'd, cleanup temporary files, and complete
1702 # config.log. We remove comments because anyway the quotes in there
1703 # would cause problems or look ugly.
1704 # WARNING: Use '\'' to represent an apostrophe within the trap.
1705 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1706 trap 'exit_status=$?
1707 # Save into config.log some information that might help in debugging.
1712 @%:@@%:@ ---------------- @%:@@%:@
1713 @%:@@%:@ Cache variables. @%:@@%:@
1714 @%:@@%:@ ---------------- @%:@@%:@
1717 # The following way of writing the cache mishandles newlines in values,
1719 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1720 eval ac_val=\$$ac_var
1724 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1725 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1728 _ | IFS | as_nl) ;; #(
1729 *) $as_unset $ac_var ;;
1734 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1735 *${as_nl}ac_space=\ *)
1737 "s/'\''/'\''\\\\'\'''\''/g;
1738 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1741 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1749 @%:@@%:@ ----------------- @%:@@%:@
1750 @%:@@%:@ Output variables. @%:@@%:@
1751 @%:@@%:@ ----------------- @%:@@%:@
1754 for ac_var in $ac_subst_vars
1756 eval ac_val=\$$ac_var
1758 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1760 echo "$ac_var='\''$ac_val'\''"
1764 if test -n "$ac_subst_files"; then
1766 @%:@@%:@ ------------------- @%:@@%:@
1767 @%:@@%:@ File substitutions. @%:@@%:@
1768 @%:@@%:@ ------------------- @%:@@%:@
1771 for ac_var in $ac_subst_files
1773 eval ac_val=\$$ac_var
1775 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1777 echo "$ac_var='\''$ac_val'\''"
1782 if test -s confdefs.h; then
1784 @%:@@%:@ ----------- @%:@@%:@
1785 @%:@@%:@ confdefs.h. @%:@@%:@
1786 @%:@@%:@ ----------- @%:@@%:@
1792 test "$ac_signal" != 0 &&
1793 echo "$as_me: caught signal $ac_signal"
1794 echo "$as_me: exit $exit_status"
1796 rm -f core *.core core.conftest.* &&
1797 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1800 for ac_signal in 1 2 13 15; do
1801 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1805 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1806 rm -f -r conftest* confdefs.h
1808 # Predefined preprocessor variables.
1810 cat >>confdefs.h <<_ACEOF
1811 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
1815 cat >>confdefs.h <<_ACEOF
1816 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1820 cat >>confdefs.h <<_ACEOF
1821 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1825 cat >>confdefs.h <<_ACEOF
1826 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
1830 cat >>confdefs.h <<_ACEOF
1831 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1835 # Let the site file select an alternate cache file if it wants to.
1836 # Prefer explicitly selected file to automatically selected ones.
1837 if test -n "$CONFIG_SITE"; then
1838 set x "$CONFIG_SITE"
1839 elif test "x$prefix" != xNONE; then
1840 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1842 set x "$ac_default_prefix/share/config.site" \
1843 "$ac_default_prefix/etc/config.site"
1848 if test -r "$ac_site_file"; then
1849 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1850 echo "$as_me: loading site script $ac_site_file" >&6;}
1851 sed 's/^/| /' "$ac_site_file" >&5
1856 if test -r "$cache_file"; then
1857 # Some versions of bash will fail to source /dev/null (special
1858 # files actually), so we avoid doing that.
1859 if test -f "$cache_file"; then
1860 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1861 echo "$as_me: loading cache $cache_file" >&6;}
1863 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1864 *) . "./$cache_file";;
1868 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1869 echo "$as_me: creating cache $cache_file" >&6;}
1873 # Check that the precious variables saved in the cache have kept the same
1875 ac_cache_corrupted=false
1876 for ac_var in $ac_precious_vars; do
1877 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1878 eval ac_new_set=\$ac_env_${ac_var}_set
1879 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1880 eval ac_new_val=\$ac_env_${ac_var}_value
1881 case $ac_old_set,$ac_new_set in
1883 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1884 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1885 ac_cache_corrupted=: ;;
1887 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1888 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1889 ac_cache_corrupted=: ;;
1892 if test "x$ac_old_val" != "x$ac_new_val"; then
1893 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1894 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1895 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1896 echo "$as_me: former value: $ac_old_val" >&2;}
1897 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1898 echo "$as_me: current value: $ac_new_val" >&2;}
1899 ac_cache_corrupted=:
1902 # Pass precious variables to config.status.
1903 if test "$ac_new_set" = set; then
1905 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1906 *) ac_arg=$ac_var=$ac_new_val ;;
1908 case " $ac_configure_args " in
1909 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1910 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1914 if $ac_cache_corrupted; then
1915 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1916 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1917 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1918 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1919 { (exit 1); exit 1; }; }
1939 ac_cpp='$CPP $CPPFLAGS'
1940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1948 GST_PLUGIN_VERSION_MAJOR=0
1949 GST_PLUGIN_VERSION_MINOR=9
1950 GST_PLUGIN_VERSION_MICRO=7
1952 GST_PLUGIN_VERSION_NANO=$NANO
1953 if test "x$NANO" = "x" || test "x$NANO" = "x0";
1955 { echo "$as_me:$LINENO: configuring gst-davinci for release" >&5
1956 echo "$as_me: configuring gst-davinci for release" >&6;}
1958 GST_PLUGIN_VERSION_RELEASE=1
1959 GST_PLUGIN_TRUNK="no"
1961 { echo "$as_me:$LINENO: configuring gst-davinci for development with nano $NANO" >&5
1962 echo "$as_me: configuring gst-davinci for development with nano $NANO" >&6;}
1964 GST_PLUGIN_VERSION_RELEASE=`date +%Y%m%d_%H%M%S`
1965 GST_PLUGIN_TRUNK="yes"
1968 GST_PLUGIN_VERSION=$VERSION
1970 cat >>confdefs.h <<_ACEOF
1971 @%:@define GST_PLUGIN_VERSION "$GST_PLUGIN_VERSION"
1976 cat >>confdefs.h <<_ACEOF
1977 @%:@define GST_PLUGIN_VERSION_RELEASE "$GST_PLUGIN_VERSION_RELEASE"
1987 cat >>confdefs.h <<_ACEOF
1988 @%:@define PACKAGE "$PACKAGE"
1993 cat >>confdefs.h <<_ACEOF
1994 @%:@define VERSION "$VERSION"
2000 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2001 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2002 # Check whether --enable-maintainer-mode was given.
2003 if test "${enable_maintainer_mode+set}" = set; then
2004 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2006 USE_MAINTAINER_MODE=no
2009 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2010 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2011 if test $USE_MAINTAINER_MODE = yes; then
2012 MAINTAINER_MODE_TRUE=
2013 MAINTAINER_MODE_FALSE='#'
2015 MAINTAINER_MODE_TRUE='#'
2016 MAINTAINER_MODE_FALSE=
2019 MAINT=$MAINTAINER_MODE_TRUE
2023 am__api_version='1.10'
2026 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2027 if test -f "$ac_dir/install-sh"; then
2029 ac_install_sh="$ac_aux_dir/install-sh -c"
2031 elif test -f "$ac_dir/install.sh"; then
2033 ac_install_sh="$ac_aux_dir/install.sh -c"
2035 elif test -f "$ac_dir/shtool"; then
2037 ac_install_sh="$ac_aux_dir/shtool install -c"
2041 if test -z "$ac_aux_dir"; then
2042 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2043 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2044 { (exit 1); exit 1; }; }
2047 # These three variables are undocumented and unsupported,
2048 # and are intended to be withdrawn in a future Autoconf release.
2049 # They can cause serious problems if a builder's source tree is in a directory
2050 # whose full name contains unusual characters.
2051 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2052 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2053 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2056 # Find a good install program. We prefer a C program (faster),
2057 # so one script is as good as another. But avoid the broken or
2058 # incompatible versions:
2059 # SysV /etc/install, /usr/sbin/install
2060 # SunOS /usr/etc/install
2061 # IRIX /sbin/install
2063 # AmigaOS /C/install, which installs bootblocks on floppy discs
2064 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2065 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2066 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2067 # OS/2's system install, which has a completely different semantic
2068 # ./install, which can be erroneously created by make from ./install.sh.
2069 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2070 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2071 if test -z "$INSTALL"; then
2072 if test "${ac_cv_path_install+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
2075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2079 test -z "$as_dir" && as_dir=.
2080 # Account for people who put trailing slashes in PATH elements.
2082 ./ | .// | /cC/* | \
2083 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2084 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2087 # OSF1 and SCO ODT 3.0 have their own names for install.
2088 # Don't use installbsd from OSF since it installs stuff as root
2090 for ac_prog in ginstall scoinst install; do
2091 for ac_exec_ext in '' $ac_executable_extensions; do
2092 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2093 if test $ac_prog = install &&
2094 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2095 # AIX install. It has an incompatible calling convention.
2097 elif test $ac_prog = install &&
2098 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2099 # program-specific install script used by HP pwplus--don't use.
2102 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2115 if test "${ac_cv_path_install+set}" = set; then
2116 INSTALL=$ac_cv_path_install
2118 # As a last resort, use the slow shell script. Don't cache a
2119 # value for INSTALL within a source directory, because that will
2120 # break other packages using the cache if that directory is
2121 # removed, or if the value is a relative name.
2122 INSTALL=$ac_install_sh
2125 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2126 echo "${ECHO_T}$INSTALL" >&6; }
2128 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2129 # It thinks the first close brace ends the variable substitution.
2130 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2132 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2134 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2136 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2137 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2140 echo timestamp > conftest.file
2141 # Do `set' in a subshell so we don't clobber the current shell's
2142 # arguments. Must try -L first in case configure is actually a
2143 # symlink; some systems play weird games with the mod time of symlinks
2144 # (eg FreeBSD returns the mod time of the symlink's containing
2147 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2148 if test "$*" = "X"; then
2150 set X `ls -t $srcdir/configure conftest.file`
2153 if test "$*" != "X $srcdir/configure conftest.file" \
2154 && test "$*" != "X conftest.file $srcdir/configure"; then
2156 # If neither matched, then we have a broken ls. This can happen
2157 # if, for instance, CONFIG_SHELL is bash and it inherits a
2158 # broken ls alias from the environment. This has actually
2159 # happened. Such a system could not be considered "sane".
2160 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2161 alias in your environment" >&5
2162 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2163 alias in your environment" >&2;}
2164 { (exit 1); exit 1; }; }
2167 test "$2" = conftest.file
2173 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2174 Check your system clock" >&5
2175 echo "$as_me: error: newly created file is older than distributed files!
2176 Check your system clock" >&2;}
2177 { (exit 1); exit 1; }; }
2179 { echo "$as_me:$LINENO: result: yes" >&5
2180 echo "${ECHO_T}yes" >&6; }
2181 test "$program_prefix" != NONE &&
2182 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2183 # Use a double $ so make ignores it.
2184 test "$program_suffix" != NONE &&
2185 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2186 # Double any \ or $. echo might interpret backslashes.
2187 # By default was `s,x,x', remove it if useless.
2188 cat <<\_ACEOF >conftest.sed
2189 s/[\\$]/&&/g;s/;s,x,x,$//
2191 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2194 # expand $ac_aux_dir to an absolute path
2195 am_aux_dir=`cd $ac_aux_dir && pwd`
2197 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2198 # Use eval to expand $SHELL
2199 if eval "$MISSING --run true"; then
2200 am_missing_run="$MISSING --run "
2203 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2204 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2207 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2208 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2209 if test -z "$MKDIR_P"; then
2210 if test "${ac_cv_path_mkdir+set}" = set; then
2211 echo $ECHO_N "(cached) $ECHO_C" >&6
2213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2214 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2217 test -z "$as_dir" && as_dir=.
2218 for ac_prog in mkdir gmkdir; do
2219 for ac_exec_ext in '' $ac_executable_extensions; do
2220 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2221 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2222 'mkdir (GNU coreutils) '* | \
2223 'mkdir (coreutils) '* | \
2224 'mkdir (fileutils) '4.1*)
2225 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2235 if test "${ac_cv_path_mkdir+set}" = set; then
2236 MKDIR_P="$ac_cv_path_mkdir -p"
2238 # As a last resort, use the slow shell script. Don't cache a
2239 # value for MKDIR_P within a source directory, because that will
2240 # break other packages using the cache if that directory is
2241 # removed, or if the value is a relative name.
2242 test -d ./--version && rmdir ./--version
2243 MKDIR_P="$ac_install_sh -d"
2246 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2247 echo "${ECHO_T}$MKDIR_P" >&6; }
2251 [\\/$]* | ?:[\\/]*) ;;
2252 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2255 for ac_prog in gawk mawk nawk awk
2257 # Extract the first word of "$ac_prog", so it can be a program name with args.
2258 set dummy $ac_prog; ac_word=$2
2259 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2261 if test "${ac_cv_prog_AWK+set}" = set; then
2262 echo $ECHO_N "(cached) $ECHO_C" >&6
2264 if test -n "$AWK"; then
2265 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2271 test -z "$as_dir" && as_dir=.
2272 for ac_exec_ext in '' $ac_executable_extensions; do
2273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2274 ac_cv_prog_AWK="$ac_prog"
2275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2285 if test -n "$AWK"; then
2286 { echo "$as_me:$LINENO: result: $AWK" >&5
2287 echo "${ECHO_T}$AWK" >&6; }
2289 { echo "$as_me:$LINENO: result: no" >&5
2290 echo "${ECHO_T}no" >&6; }
2294 test -n "$AWK" && break
2297 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2298 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2299 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2300 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2301 echo $ECHO_N "(cached) $ECHO_C" >&6
2303 cat >conftest.make <<\_ACEOF
2306 @echo '@@@%%%=$(MAKE)=@@@%%%'
2308 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2309 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2311 eval ac_cv_prog_make_${ac_make}_set=yes;;
2313 eval ac_cv_prog_make_${ac_make}_set=no;;
2317 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2318 { echo "$as_me:$LINENO: result: yes" >&5
2319 echo "${ECHO_T}yes" >&6; }
2322 { echo "$as_me:$LINENO: result: no" >&5
2323 echo "${ECHO_T}no" >&6; }
2324 SET_MAKE="MAKE=${MAKE-make}"
2327 rm -rf .tst 2>/dev/null
2328 mkdir .tst 2>/dev/null
2329 if test -d .tst; then
2334 rmdir .tst 2>/dev/null
2336 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2337 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2338 # is not polluted with repeated "-I."
2339 am__isrc=' -I$(srcdir)'
2340 # test to see if srcdir already configured
2341 if test -f $srcdir/config.status; then
2342 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2343 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2344 { (exit 1); exit 1; }; }
2348 # test whether we have cygpath
2349 if test -z "$CYGPATH_W"; then
2350 if (cygpath --version) >/dev/null 2>/dev/null; then
2351 CYGPATH_W='cygpath -w'
2358 # Define the identity of the package.
2363 cat >>confdefs.h <<_ACEOF
2364 @%:@define PACKAGE "$PACKAGE"
2368 cat >>confdefs.h <<_ACEOF
2369 @%:@define VERSION "$VERSION"
2372 # Some tools Automake needs.
2374 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2377 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2380 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2383 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2386 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2388 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2390 # Installed binaries are usually stripped using `strip' when the user
2391 # run `make install-strip'. However `strip' might not be the right
2392 # tool to use in cross-compilation environments, therefore Automake
2393 # will honor the `STRIP' environment variable to overrule this program.
2394 if test "$cross_compiling" != no; then
2395 if test -n "$ac_tool_prefix"; then
2396 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2397 set dummy ${ac_tool_prefix}strip; ac_word=$2
2398 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2400 if test "${ac_cv_prog_STRIP+set}" = set; then
2401 echo $ECHO_N "(cached) $ECHO_C" >&6
2403 if test -n "$STRIP"; then
2404 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410 test -z "$as_dir" && as_dir=.
2411 for ac_exec_ext in '' $ac_executable_extensions; do
2412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2413 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2423 STRIP=$ac_cv_prog_STRIP
2424 if test -n "$STRIP"; then
2425 { echo "$as_me:$LINENO: result: $STRIP" >&5
2426 echo "${ECHO_T}$STRIP" >&6; }
2428 { echo "$as_me:$LINENO: result: no" >&5
2429 echo "${ECHO_T}no" >&6; }
2434 if test -z "$ac_cv_prog_STRIP"; then
2436 # Extract the first word of "strip", so it can be a program name with args.
2437 set dummy strip; ac_word=$2
2438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2440 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2441 echo $ECHO_N "(cached) $ECHO_C" >&6
2443 if test -n "$ac_ct_STRIP"; then
2444 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450 test -z "$as_dir" && as_dir=.
2451 for ac_exec_ext in '' $ac_executable_extensions; do
2452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2453 ac_cv_prog_ac_ct_STRIP="strip"
2454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2463 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2464 if test -n "$ac_ct_STRIP"; then
2465 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2466 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2468 { echo "$as_me:$LINENO: result: no" >&5
2469 echo "${ECHO_T}no" >&6; }
2472 if test "x$ac_ct_STRIP" = x; then
2475 case $cross_compiling:$ac_tool_warned in
2477 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2478 whose name does not start with the host triplet. If you think this
2479 configuration is useful to you, please write to autoconf@gnu.org." >&5
2480 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2481 whose name does not start with the host triplet. If you think this
2482 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2483 ac_tool_warned=yes ;;
2488 STRIP="$ac_cv_prog_STRIP"
2492 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2494 # We need awk for the "check" target. The system "awk" is bad on
2496 # Always define AMTAR for backward compatibility.
2498 AMTAR=${AMTAR-"${am_missing_run}tar"}
2500 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2507 ac_config_headers="$ac_config_headers config.h"
2510 ACLOCAL_AMFLAGS="-I m4"
2514 ac_cpp='$CPP $CPPFLAGS'
2515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2518 if test -n "$ac_tool_prefix"; then
2519 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2520 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2523 if test "${ac_cv_prog_CC+set}" = set; then
2524 echo $ECHO_N "(cached) $ECHO_C" >&6
2526 if test -n "$CC"; then
2527 ac_cv_prog_CC="$CC" # Let the user override the test.
2529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2533 test -z "$as_dir" && as_dir=.
2534 for ac_exec_ext in '' $ac_executable_extensions; do
2535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2536 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2547 if test -n "$CC"; then
2548 { echo "$as_me:$LINENO: result: $CC" >&5
2549 echo "${ECHO_T}$CC" >&6; }
2551 { echo "$as_me:$LINENO: result: no" >&5
2552 echo "${ECHO_T}no" >&6; }
2557 if test -z "$ac_cv_prog_CC"; then
2559 # Extract the first word of "gcc", so it can be a program name with args.
2560 set dummy gcc; ac_word=$2
2561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2563 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2564 echo $ECHO_N "(cached) $ECHO_C" >&6
2566 if test -n "$ac_ct_CC"; then
2567 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2573 test -z "$as_dir" && as_dir=.
2574 for ac_exec_ext in '' $ac_executable_extensions; do
2575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2576 ac_cv_prog_ac_ct_CC="gcc"
2577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2586 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2587 if test -n "$ac_ct_CC"; then
2588 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2589 echo "${ECHO_T}$ac_ct_CC" >&6; }
2591 { echo "$as_me:$LINENO: result: no" >&5
2592 echo "${ECHO_T}no" >&6; }
2595 if test "x$ac_ct_CC" = x; then
2598 case $cross_compiling:$ac_tool_warned in
2600 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2601 whose name does not start with the host triplet. If you think this
2602 configuration is useful to you, please write to autoconf@gnu.org." >&5
2603 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2604 whose name does not start with the host triplet. If you think this
2605 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2606 ac_tool_warned=yes ;;
2614 if test -z "$CC"; then
2615 if test -n "$ac_tool_prefix"; then
2616 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2617 set dummy ${ac_tool_prefix}cc; ac_word=$2
2618 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2620 if test "${ac_cv_prog_CC+set}" = set; then
2621 echo $ECHO_N "(cached) $ECHO_C" >&6
2623 if test -n "$CC"; then
2624 ac_cv_prog_CC="$CC" # Let the user override the test.
2626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630 test -z "$as_dir" && as_dir=.
2631 for ac_exec_ext in '' $ac_executable_extensions; do
2632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2633 ac_cv_prog_CC="${ac_tool_prefix}cc"
2634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2644 if test -n "$CC"; then
2645 { echo "$as_me:$LINENO: result: $CC" >&5
2646 echo "${ECHO_T}$CC" >&6; }
2648 { echo "$as_me:$LINENO: result: no" >&5
2649 echo "${ECHO_T}no" >&6; }
2655 if test -z "$CC"; then
2656 # Extract the first word of "cc", so it can be a program name with args.
2657 set dummy cc; ac_word=$2
2658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2660 if test "${ac_cv_prog_CC+set}" = set; then
2661 echo $ECHO_N "(cached) $ECHO_C" >&6
2663 if test -n "$CC"; then
2664 ac_cv_prog_CC="$CC" # Let the user override the test.
2667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2671 test -z "$as_dir" && as_dir=.
2672 for ac_exec_ext in '' $ac_executable_extensions; do
2673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2674 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2675 ac_prog_rejected=yes
2679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2686 if test $ac_prog_rejected = yes; then
2687 # We found a bogon in the path, so make sure we never use it.
2688 set dummy $ac_cv_prog_CC
2690 if test $@%:@ != 0; then
2691 # We chose a different compiler from the bogus one.
2692 # However, it has the same basename, so the bogon will be chosen
2693 # first if we set CC to just the basename; use the full file name.
2695 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2701 if test -n "$CC"; then
2702 { echo "$as_me:$LINENO: result: $CC" >&5
2703 echo "${ECHO_T}$CC" >&6; }
2705 { echo "$as_me:$LINENO: result: no" >&5
2706 echo "${ECHO_T}no" >&6; }
2711 if test -z "$CC"; then
2712 if test -n "$ac_tool_prefix"; then
2713 for ac_prog in cl.exe
2715 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2716 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2719 if test "${ac_cv_prog_CC+set}" = set; then
2720 echo $ECHO_N "(cached) $ECHO_C" >&6
2722 if test -n "$CC"; then
2723 ac_cv_prog_CC="$CC" # Let the user override the test.
2725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2729 test -z "$as_dir" && as_dir=.
2730 for ac_exec_ext in '' $ac_executable_extensions; do
2731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2732 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2743 if test -n "$CC"; then
2744 { echo "$as_me:$LINENO: result: $CC" >&5
2745 echo "${ECHO_T}$CC" >&6; }
2747 { echo "$as_me:$LINENO: result: no" >&5
2748 echo "${ECHO_T}no" >&6; }
2752 test -n "$CC" && break
2755 if test -z "$CC"; then
2757 for ac_prog in cl.exe
2759 # Extract the first word of "$ac_prog", so it can be a program name with args.
2760 set dummy $ac_prog; ac_word=$2
2761 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2763 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2764 echo $ECHO_N "(cached) $ECHO_C" >&6
2766 if test -n "$ac_ct_CC"; then
2767 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2773 test -z "$as_dir" && as_dir=.
2774 for ac_exec_ext in '' $ac_executable_extensions; do
2775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2776 ac_cv_prog_ac_ct_CC="$ac_prog"
2777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2786 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2787 if test -n "$ac_ct_CC"; then
2788 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2789 echo "${ECHO_T}$ac_ct_CC" >&6; }
2791 { echo "$as_me:$LINENO: result: no" >&5
2792 echo "${ECHO_T}no" >&6; }
2796 test -n "$ac_ct_CC" && break
2799 if test "x$ac_ct_CC" = x; then
2802 case $cross_compiling:$ac_tool_warned in
2804 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2805 whose name does not start with the host triplet. If you think this
2806 configuration is useful to you, please write to autoconf@gnu.org." >&5
2807 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2808 whose name does not start with the host triplet. If you think this
2809 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2810 ac_tool_warned=yes ;;
2819 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2820 See \`config.log' for more details." >&5
2821 echo "$as_me: error: no acceptable C compiler found in \$PATH
2822 See \`config.log' for more details." >&2;}
2823 { (exit 1); exit 1; }; }
2825 # Provide some information about the compiler.
2826 echo "$as_me:$LINENO: checking for C compiler version" >&5
2827 ac_compiler=`set X $ac_compile; echo $2`
2828 { (ac_try="$ac_compiler --version >&5"
2830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2831 *) ac_try_echo=$ac_try;;
2833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2834 (eval "$ac_compiler --version >&5") 2>&5
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); }
2838 { (ac_try="$ac_compiler -v >&5"
2840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2841 *) ac_try_echo=$ac_try;;
2843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2844 (eval "$ac_compiler -v >&5") 2>&5
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); }
2848 { (ac_try="$ac_compiler -V >&5"
2850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2851 *) ac_try_echo=$ac_try;;
2853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2854 (eval "$ac_compiler -V >&5") 2>&5
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); }
2859 cat >conftest.$ac_ext <<_ACEOF
2862 cat confdefs.h >>conftest.$ac_ext
2863 cat >>conftest.$ac_ext <<_ACEOF
2864 /* end confdefs.h. */
2874 ac_clean_files_save=$ac_clean_files
2875 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2876 # Try to create an executable without -o first, disregard a.out.
2877 # It will help us diagnose broken compilers, and finding out an intuition
2879 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2880 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2881 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2883 # List of possible output files, starting from the most likely.
2884 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2885 # only as a last resort. b.out is created by i960 compilers.
2886 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2888 # The IRIX 6 linker writes into existing files which may not be
2889 # executable, retaining their permissions. Remove them first so a
2890 # subsequent execution test works.
2892 for ac_file in $ac_files
2895 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2896 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2901 if { (ac_try="$ac_link_default"
2903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904 *) ac_try_echo=$ac_try;;
2906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2907 (eval "$ac_link_default") 2>&5
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); }; then
2911 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2912 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2913 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2914 # so that the user can short-circuit this test for compilers unknown to
2916 for ac_file in $ac_files ''
2918 test -f "$ac_file" || continue
2920 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2923 # We found the default executable, but exeext='' is most
2927 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2929 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2931 # We set ac_cv_exeext here because the later test for it is not
2932 # safe: cross compilers may not add the suffix if given an `-o'
2933 # argument, so we may need to know it at that point already.
2934 # Even if this section looks crufty: it has the advantage of
2941 test "$ac_cv_exeext" = no && ac_cv_exeext=
2947 { echo "$as_me:$LINENO: result: $ac_file" >&5
2948 echo "${ECHO_T}$ac_file" >&6; }
2949 if test -z "$ac_file"; then
2950 echo "$as_me: failed program was:" >&5
2951 sed 's/^/| /' conftest.$ac_ext >&5
2953 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2954 See \`config.log' for more details." >&5
2955 echo "$as_me: error: C compiler cannot create executables
2956 See \`config.log' for more details." >&2;}
2957 { (exit 77); exit 77; }; }
2960 ac_exeext=$ac_cv_exeext
2962 # Check that the compiler produces executables we can run. If not, either
2963 # the compiler is broken, or we cross compile.
2964 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2965 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2966 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2967 # If not cross compiling, check that we can run a simple program.
2968 if test "$cross_compiling" != yes; then
2969 if { ac_try='./$ac_file'
2970 { (case "(($ac_try" in
2971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2972 *) ac_try_echo=$ac_try;;
2974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2975 (eval "$ac_try") 2>&5
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); }; }; then
2981 if test "$cross_compiling" = maybe; then
2984 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2985 If you meant to cross compile, use \`--host'.
2986 See \`config.log' for more details." >&5
2987 echo "$as_me: error: cannot run C compiled programs.
2988 If you meant to cross compile, use \`--host'.
2989 See \`config.log' for more details." >&2;}
2990 { (exit 1); exit 1; }; }
2994 { echo "$as_me:$LINENO: result: yes" >&5
2995 echo "${ECHO_T}yes" >&6; }
2997 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2998 ac_clean_files=$ac_clean_files_save
2999 # Check that the compiler produces executables we can run. If not, either
3000 # the compiler is broken, or we cross compile.
3001 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3002 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3003 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3004 echo "${ECHO_T}$cross_compiling" >&6; }
3006 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3007 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3008 if { (ac_try="$ac_link"
3010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3011 *) ac_try_echo=$ac_try;;
3013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3014 (eval "$ac_link") 2>&5
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); }; then
3018 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3019 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3020 # work properly (i.e., refer to `conftest.exe'), while it won't with
3022 for ac_file in conftest.exe conftest conftest.*; do
3023 test -f "$ac_file" || continue
3025 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3026 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3032 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3033 See \`config.log' for more details." >&5
3034 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3035 See \`config.log' for more details." >&2;}
3036 { (exit 1); exit 1; }; }
3039 rm -f conftest$ac_cv_exeext
3040 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3041 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3043 rm -f conftest.$ac_ext
3044 EXEEXT=$ac_cv_exeext
3046 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3047 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3048 if test "${ac_cv_objext+set}" = set; then
3049 echo $ECHO_N "(cached) $ECHO_C" >&6
3051 cat >conftest.$ac_ext <<_ACEOF
3054 cat confdefs.h >>conftest.$ac_ext
3055 cat >>conftest.$ac_ext <<_ACEOF
3056 /* end confdefs.h. */
3066 rm -f conftest.o conftest.obj
3067 if { (ac_try="$ac_compile"
3069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070 *) ac_try_echo=$ac_try;;
3072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3073 (eval "$ac_compile") 2>&5
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); }; then
3077 for ac_file in conftest.o conftest.obj conftest.*; do
3078 test -f "$ac_file" || continue;
3080 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3081 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3086 echo "$as_me: failed program was:" >&5
3087 sed 's/^/| /' conftest.$ac_ext >&5
3089 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3090 See \`config.log' for more details." >&5
3091 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3092 See \`config.log' for more details." >&2;}
3093 { (exit 1); exit 1; }; }
3096 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3098 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3099 echo "${ECHO_T}$ac_cv_objext" >&6; }
3100 OBJEXT=$ac_cv_objext
3102 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3103 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3104 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3105 echo $ECHO_N "(cached) $ECHO_C" >&6
3107 cat >conftest.$ac_ext <<_ACEOF
3110 cat confdefs.h >>conftest.$ac_ext
3111 cat >>conftest.$ac_ext <<_ACEOF
3112 /* end confdefs.h. */
3125 rm -f conftest.$ac_objext
3126 if { (ac_try="$ac_compile"
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132 (eval "$ac_compile") 2>conftest.er1
3134 grep -v '^ *+' conftest.er1 >conftest.err
3136 cat conftest.err >&5
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); } && {
3139 test -z "$ac_c_werror_flag" ||
3140 test ! -s conftest.err
3141 } && test -s conftest.$ac_objext; then
3144 echo "$as_me: failed program was:" >&5
3145 sed 's/^/| /' conftest.$ac_ext >&5
3150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3151 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3154 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3155 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3156 GCC=`test $ac_compiler_gnu = yes && echo yes`
3157 ac_test_CFLAGS=${CFLAGS+set}
3158 ac_save_CFLAGS=$CFLAGS
3159 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3160 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3161 if test "${ac_cv_prog_cc_g+set}" = set; then
3162 echo $ECHO_N "(cached) $ECHO_C" >&6
3164 ac_save_c_werror_flag=$ac_c_werror_flag
3165 ac_c_werror_flag=yes
3168 cat >conftest.$ac_ext <<_ACEOF
3171 cat confdefs.h >>conftest.$ac_ext
3172 cat >>conftest.$ac_ext <<_ACEOF
3173 /* end confdefs.h. */
3183 rm -f conftest.$ac_objext
3184 if { (ac_try="$ac_compile"
3186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187 *) ac_try_echo=$ac_try;;
3189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3190 (eval "$ac_compile") 2>conftest.er1
3192 grep -v '^ *+' conftest.er1 >conftest.err
3194 cat conftest.err >&5
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); } && {
3197 test -z "$ac_c_werror_flag" ||
3198 test ! -s conftest.err
3199 } && test -s conftest.$ac_objext; then
3202 echo "$as_me: failed program was:" >&5
3203 sed 's/^/| /' conftest.$ac_ext >&5
3206 cat >conftest.$ac_ext <<_ACEOF
3209 cat confdefs.h >>conftest.$ac_ext
3210 cat >>conftest.$ac_ext <<_ACEOF
3211 /* end confdefs.h. */
3221 rm -f conftest.$ac_objext
3222 if { (ac_try="$ac_compile"
3224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225 *) ac_try_echo=$ac_try;;
3227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3228 (eval "$ac_compile") 2>conftest.er1
3230 grep -v '^ *+' conftest.er1 >conftest.err
3232 cat conftest.err >&5
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); } && {
3235 test -z "$ac_c_werror_flag" ||
3236 test ! -s conftest.err
3237 } && test -s conftest.$ac_objext; then
3240 echo "$as_me: failed program was:" >&5
3241 sed 's/^/| /' conftest.$ac_ext >&5
3243 ac_c_werror_flag=$ac_save_c_werror_flag
3245 cat >conftest.$ac_ext <<_ACEOF
3248 cat confdefs.h >>conftest.$ac_ext
3249 cat >>conftest.$ac_ext <<_ACEOF
3250 /* end confdefs.h. */
3260 rm -f conftest.$ac_objext
3261 if { (ac_try="$ac_compile"
3263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3264 *) ac_try_echo=$ac_try;;
3266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3267 (eval "$ac_compile") 2>conftest.er1
3269 grep -v '^ *+' conftest.er1 >conftest.err
3271 cat conftest.err >&5
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); } && {
3274 test -z "$ac_c_werror_flag" ||
3275 test ! -s conftest.err
3276 } && test -s conftest.$ac_objext; then
3279 echo "$as_me: failed program was:" >&5
3280 sed 's/^/| /' conftest.$ac_ext >&5
3285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3292 ac_c_werror_flag=$ac_save_c_werror_flag
3294 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3295 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3296 if test "$ac_test_CFLAGS" = set; then
3297 CFLAGS=$ac_save_CFLAGS
3298 elif test $ac_cv_prog_cc_g = yes; then
3299 if test "$GCC" = yes; then
3305 if test "$GCC" = yes; then
3311 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3312 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3313 if test "${ac_cv_prog_cc_c89+set}" = set; then
3314 echo $ECHO_N "(cached) $ECHO_C" >&6
3316 ac_cv_prog_cc_c89=no
3318 cat >conftest.$ac_ext <<_ACEOF
3321 cat confdefs.h >>conftest.$ac_ext
3322 cat >>conftest.$ac_ext <<_ACEOF
3323 /* end confdefs.h. */
3326 #include <sys/types.h>
3327 #include <sys/stat.h>
3328 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3329 struct buf { int x; };
3330 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3331 static char *e (p, i)
3337 static char *f (char * (*g) (char **, int), char **p, ...)
3342 s = g (p, va_arg (v,int));
3347 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3348 function prototypes and stuff, but not '\xHH' hex character constants.
3349 These don't provoke an error unfortunately, instead are silently treated
3350 as 'x'. The following induces an error, until -std is added to get
3351 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3352 array size at least. It's necessary to write '\x00'==0 to get something
3353 that's true only with -std. */
3354 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3356 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3357 inside strings and character constants. */
3359 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3361 int test (int i, double x);
3362 struct s1 {int (*f) (int a);};
3363 struct s2 {int (*f) (double a);};
3364 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3370 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3375 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3376 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3378 CC="$ac_save_CC $ac_arg"
3379 rm -f conftest.$ac_objext
3380 if { (ac_try="$ac_compile"
3382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383 *) ac_try_echo=$ac_try;;
3385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3386 (eval "$ac_compile") 2>conftest.er1
3388 grep -v '^ *+' conftest.er1 >conftest.err
3390 cat conftest.err >&5
3391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); } && {
3393 test -z "$ac_c_werror_flag" ||
3394 test ! -s conftest.err
3395 } && test -s conftest.$ac_objext; then
3396 ac_cv_prog_cc_c89=$ac_arg
3398 echo "$as_me: failed program was:" >&5
3399 sed 's/^/| /' conftest.$ac_ext >&5
3404 rm -f core conftest.err conftest.$ac_objext
3405 test "x$ac_cv_prog_cc_c89" != "xno" && break
3407 rm -f conftest.$ac_ext
3412 case "x$ac_cv_prog_cc_c89" in
3414 { echo "$as_me:$LINENO: result: none needed" >&5
3415 echo "${ECHO_T}none needed" >&6; } ;;
3417 { echo "$as_me:$LINENO: result: unsupported" >&5
3418 echo "${ECHO_T}unsupported" >&6; } ;;
3420 CC="$CC $ac_cv_prog_cc_c89"
3421 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3422 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3427 ac_cpp='$CPP $CPPFLAGS'
3428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3431 DEPDIR="${am__leading_dot}deps"
3433 ac_config_commands="$ac_config_commands depfiles"
3436 am_make=${MAKE-make}
3437 cat > confinc << 'END'
3442 # If we don't find an include directive, just comment out the code.
3443 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3444 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3448 # First try GNU make style include.
3449 echo "include confinc" > confmf
3450 # We grep out `Entering directory' and `Leaving directory'
3451 # messages which can occur if `w' ends up in MAKEFLAGS.
3452 # In particular we don't look at `^make:' because GNU make might
3453 # be invoked under some other name (usually "gmake"), in which
3454 # case it prints its new name instead of `make'.
3455 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3460 # Now try BSD make style include.
3461 if test "$am__include" = "#"; then
3462 echo '.include "confinc"' > confmf
3463 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3464 am__include=.include
3471 { echo "$as_me:$LINENO: result: $_am_result" >&5
3472 echo "${ECHO_T}$_am_result" >&6; }
3473 rm -f confinc confmf
3475 # Check whether --enable-dependency-tracking was given.
3476 if test "${enable_dependency_tracking+set}" = set; then
3477 enableval=$enable_dependency_tracking;
3480 if test "x$enable_dependency_tracking" != xno; then
3481 am_depcomp="$ac_aux_dir/depcomp"
3484 if test "x$enable_dependency_tracking" != xno; then
3494 depcc="$CC" am_compiler_list=
3496 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3497 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3498 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3499 echo $ECHO_N "(cached) $ECHO_C" >&6
3501 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3502 # We make a subdir and do the tests there. Otherwise we can end up
3503 # making bogus files that we don't know about and never remove. For
3504 # instance it was reported that on HP-UX the gcc test will end up
3505 # making a dummy file named `D' -- because `-MD' means `put the output
3508 # Copy depcomp to subdir because otherwise we won't find it if we're
3509 # using a relative directory.
3510 cp "$am_depcomp" conftest.dir
3512 # We will build objects and dependencies in a subdirectory because
3513 # it helps to detect inapplicable dependency modes. For instance
3514 # both Tru64's cc and ICC support -MD to output dependencies as a
3515 # side effect of compilation, but ICC will put the dependencies in
3516 # the current directory while Tru64 will put them in the object
3520 am_cv_CC_dependencies_compiler_type=none
3521 if test "$am_compiler_list" = ""; then
3522 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3524 for depmode in $am_compiler_list; do
3525 # Setup a source with many dependencies, because some compilers
3526 # like to wrap large dependency lists on column 80 (with \), and
3527 # we should not choose a depcomp mode which is confused by this.
3529 # We need to recreate these files for each test, as the compiler may
3530 # overwrite some of them when testing with obscure command lines.
3531 # This happens at least with the AIX C compiler.
3533 for i in 1 2 3 4 5 6; do
3534 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3535 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3536 # Solaris 8's {/usr,}/bin/sh.
3537 touch sub/conftst$i.h
3539 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3543 # after this tag, mechanisms are not by side-effect, so they'll
3544 # only be used when explicitly requested
3545 if test "x$enable_dependency_tracking" = xyes; then
3553 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3554 # mode. It turns out that the SunPro C++ compiler does not properly
3555 # handle `-M -o', and we need to detect this.
3556 if depmode=$depmode \
3557 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3558 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3559 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3560 >/dev/null 2>conftest.err &&
3561 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3562 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3563 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3564 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3565 # icc doesn't choke on unknown options, it will just issue warnings
3566 # or remarks (even with -Werror). So we grep stderr for any message
3567 # that says an option was ignored or not supported.
3568 # When given -MP, icc 7.0 and 7.1 complain thusly:
3569 # icc: Command line warning: ignoring option '-M'; no argument required
3570 # The diagnosis changed in icc 8.0:
3571 # icc: Command line remark: option '-MP' not supported
3572 if (grep 'ignoring option' conftest.err ||
3573 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3574 am_cv_CC_dependencies_compiler_type=$depmode
3583 am_cv_CC_dependencies_compiler_type=none
3587 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3588 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3589 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3592 test "x$enable_dependency_tracking" != xno \
3593 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3595 am__fastdepCC_FALSE='#'
3597 am__fastdepCC_TRUE='#'
3598 am__fastdepCC_FALSE=
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-static was given.
3627 if test "${enable_static+set}" = set; then
3628 enableval=$enable_static; p=${PACKAGE-default}
3630 yes) enable_static=yes ;;
3631 no) enable_static=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
3650 # Check whether --enable-fast-install was given.
3651 if test "${enable_fast_install+set}" = set; then
3652 enableval=$enable_fast_install; p=${PACKAGE-default}
3654 yes) enable_fast_install=yes ;;
3655 no) enable_fast_install=no ;;
3657 enable_fast_install=no
3658 # Look at the argument we got. We use all the common list separators.
3659 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3660 for pkg in $enableval; do
3662 if test "X$pkg" = "X$p"; then
3663 enable_fast_install=yes
3670 enable_fast_install=yes
3674 # Make sure we can run config.sub.
3675 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3676 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3677 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3678 { (exit 1); exit 1; }; }
3680 { echo "$as_me:$LINENO: checking build system type" >&5
3681 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3682 if test "${ac_cv_build+set}" = set; then
3683 echo $ECHO_N "(cached) $ECHO_C" >&6
3685 ac_build_alias=$build_alias
3686 test "x$ac_build_alias" = x &&
3687 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3688 test "x$ac_build_alias" = x &&
3689 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3690 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3691 { (exit 1); exit 1; }; }
3692 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3693 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3694 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3695 { (exit 1); exit 1; }; }
3698 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3699 echo "${ECHO_T}$ac_cv_build" >&6; }
3700 case $ac_cv_build in
3702 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3703 echo "$as_me: error: invalid value of canonical build" >&2;}
3704 { (exit 1); exit 1; }; };;
3707 ac_save_IFS=$IFS; IFS='-'
3713 # Remember, the first character of IFS is used to create $*,
3714 # except with old shells:
3717 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3720 { echo "$as_me:$LINENO: checking host system type" >&5
3721 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3722 if test "${ac_cv_host+set}" = set; then
3723 echo $ECHO_N "(cached) $ECHO_C" >&6
3725 if test "x$host_alias" = x; then
3726 ac_cv_host=$ac_cv_build
3728 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3729 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3730 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3731 { (exit 1); exit 1; }; }
3735 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3736 echo "${ECHO_T}$ac_cv_host" >&6; }
3739 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3740 echo "$as_me: error: invalid value of canonical host" >&2;}
3741 { (exit 1); exit 1; }; };;
3744 ac_save_IFS=$IFS; IFS='-'
3750 # Remember, the first character of IFS is used to create $*,
3751 # except with old shells:
3754 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3757 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3758 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3759 if test "${lt_cv_path_SED+set}" = set; then
3760 echo $ECHO_N "(cached) $ECHO_C" >&6
3762 # Loop through the user's path and test for sed and gsed.
3763 # Then use that list of sed's as ones to test for truncation.
3764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768 test -z "$as_dir" && as_dir=.
3769 for lt_ac_prog in sed gsed; do
3770 for ac_exec_ext in '' $ac_executable_extensions; do
3771 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3772 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3780 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3781 # along with /bin/sed that truncates output.
3782 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3783 test ! -f $lt_ac_sed && continue
3784 cat /dev/null > conftest.in
3786 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3787 # Check for GNU sed and select it if it is found.
3788 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3789 lt_cv_path_SED=$lt_ac_sed
3793 cat conftest.in conftest.in >conftest.tmp
3794 mv conftest.tmp conftest.in
3795 cp conftest.in conftest.nl
3797 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3798 cmp -s conftest.out conftest.nl || break
3799 # 10000 chars as input seems more than enough
3800 test $lt_ac_count -gt 10 && break
3801 lt_ac_count=`expr $lt_ac_count + 1`
3802 if test $lt_ac_count -gt $lt_ac_max; then
3803 lt_ac_max=$lt_ac_count
3804 lt_cv_path_SED=$lt_ac_sed
3813 { echo "$as_me:$LINENO: result: $SED" >&5
3814 echo "${ECHO_T}$SED" >&6; }
3816 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3817 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3818 if test "${ac_cv_path_GREP+set}" = set; then
3819 echo $ECHO_N "(cached) $ECHO_C" >&6
3821 # Extract the first word of "grep ggrep" to use in msg output
3822 if test -z "$GREP"; then
3823 set dummy grep ggrep; ac_prog_name=$2
3824 if test "${ac_cv_path_GREP+set}" = set; then
3825 echo $ECHO_N "(cached) $ECHO_C" >&6
3827 ac_path_GREP_found=false
3828 # Loop through the user's path and test for each of PROGNAME-LIST
3829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3830 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3833 test -z "$as_dir" && as_dir=.
3834 for ac_prog in grep ggrep; do
3835 for ac_exec_ext in '' $ac_executable_extensions; do
3836 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3837 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3838 # Check for GNU ac_path_GREP and select it if it is found.
3839 # Check for GNU $ac_path_GREP
3840 case `"$ac_path_GREP" --version 2>&1` in
3842 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3845 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3848 cat "conftest.in" "conftest.in" >"conftest.tmp"
3849 mv "conftest.tmp" "conftest.in"
3850 cp "conftest.in" "conftest.nl"
3851 echo 'GREP' >> "conftest.nl"
3852 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3853 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3854 ac_count=`expr $ac_count + 1`
3855 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3856 # Best one so far, save it but keep looking for a better one
3857 ac_cv_path_GREP="$ac_path_GREP"
3858 ac_path_GREP_max=$ac_count
3860 # 10*(2^10) chars as input seems more than enough
3861 test $ac_count -gt 10 && break
3863 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3867 $ac_path_GREP_found && break 3
3877 GREP="$ac_cv_path_GREP"
3878 if test -z "$GREP"; then
3879 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3880 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3881 { (exit 1); exit 1; }; }
3885 ac_cv_path_GREP=$GREP
3890 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3891 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3892 GREP="$ac_cv_path_GREP"
3895 { echo "$as_me:$LINENO: checking for egrep" >&5
3896 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3897 if test "${ac_cv_path_EGREP+set}" = set; then
3898 echo $ECHO_N "(cached) $ECHO_C" >&6
3900 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3901 then ac_cv_path_EGREP="$GREP -E"
3903 # Extract the first word of "egrep" to use in msg output
3904 if test -z "$EGREP"; then
3905 set dummy egrep; ac_prog_name=$2
3906 if test "${ac_cv_path_EGREP+set}" = set; then
3907 echo $ECHO_N "(cached) $ECHO_C" >&6
3909 ac_path_EGREP_found=false
3910 # Loop through the user's path and test for each of PROGNAME-LIST
3911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3915 test -z "$as_dir" && as_dir=.
3916 for ac_prog in egrep; do
3917 for ac_exec_ext in '' $ac_executable_extensions; do
3918 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3919 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3920 # Check for GNU ac_path_EGREP and select it if it is found.
3921 # Check for GNU $ac_path_EGREP
3922 case `"$ac_path_EGREP" --version 2>&1` in
3924 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3927 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3930 cat "conftest.in" "conftest.in" >"conftest.tmp"
3931 mv "conftest.tmp" "conftest.in"
3932 cp "conftest.in" "conftest.nl"
3933 echo 'EGREP' >> "conftest.nl"
3934 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3935 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3936 ac_count=`expr $ac_count + 1`
3937 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3938 # Best one so far, save it but keep looking for a better one
3939 ac_cv_path_EGREP="$ac_path_EGREP"
3940 ac_path_EGREP_max=$ac_count
3942 # 10*(2^10) chars as input seems more than enough
3943 test $ac_count -gt 10 && break
3945 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3949 $ac_path_EGREP_found && break 3
3959 EGREP="$ac_cv_path_EGREP"
3960 if test -z "$EGREP"; then
3961 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3962 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3963 { (exit 1); exit 1; }; }
3967 ac_cv_path_EGREP=$EGREP
3973 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3974 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3975 EGREP="$ac_cv_path_EGREP"
3979 # Check whether --with-gnu-ld was given.
3980 if test "${with_gnu_ld+set}" = set; then
3981 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3987 if test "$GCC" = yes; then
3988 # Check if gcc -print-prog-name=ld gives a path.
3989 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3990 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3993 # gcc leaves a trailing carriage return which upsets mingw
3994 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3996 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3999 # Accept absolute paths.
4001 re_direlt='/[^/][^/]*/\.\./'
4002 # Canonicalize the pathname of ld
4003 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4004 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4005 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4007 test -z "$LD" && LD="$ac_prog"
4010 # If it fails, then pretend we aren't using GCC.
4014 # If it is relative, then search for the first ld in PATH.
4018 elif test "$with_gnu_ld" = yes; then
4019 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4020 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4022 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4023 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4025 if test "${lt_cv_path_LD+set}" = set; then
4026 echo $ECHO_N "(cached) $ECHO_C" >&6
4028 if test -z "$LD"; then
4029 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4030 for ac_dir in $PATH; do
4032 test -z "$ac_dir" && ac_dir=.
4033 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4034 lt_cv_path_LD="$ac_dir/$ac_prog"
4035 # Check to see if the program is GNU ld. I'd rather use --version,
4036 # but apparently some variants of GNU ld only accept -v.
4037 # Break only if it was the GNU/non-GNU ld that we prefer.
4038 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4039 *GNU* | *'with BFD'*)
4040 test "$with_gnu_ld" != no && break
4043 test "$with_gnu_ld" != yes && break
4050 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4055 if test -n "$LD"; then
4056 { echo "$as_me:$LINENO: result: $LD" >&5
4057 echo "${ECHO_T}$LD" >&6; }
4059 { echo "$as_me:$LINENO: result: no" >&5
4060 echo "${ECHO_T}no" >&6; }
4062 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4063 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4064 { (exit 1); exit 1; }; }
4065 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4066 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4067 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4068 echo $ECHO_N "(cached) $ECHO_C" >&6
4070 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4071 case `$LD -v 2>&1 </dev/null` in
4072 *GNU* | *'with BFD'*)
4073 lt_cv_prog_gnu_ld=yes
4076 lt_cv_prog_gnu_ld=no
4080 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4081 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4082 with_gnu_ld=$lt_cv_prog_gnu_ld
4085 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4086 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4087 if test "${lt_cv_ld_reload_flag+set}" = set; then
4088 echo $ECHO_N "(cached) $ECHO_C" >&6
4090 lt_cv_ld_reload_flag='-r'
4092 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4093 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4094 reload_flag=$lt_cv_ld_reload_flag
4095 case $reload_flag in
4097 *) reload_flag=" $reload_flag" ;;
4099 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4102 if test "$GCC" = yes; then
4103 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4105 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4110 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4111 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4112 if test "${lt_cv_path_NM+set}" = set; then
4113 echo $ECHO_N "(cached) $ECHO_C" >&6
4115 if test -n "$NM"; then
4116 # Let the user override the test.
4119 lt_nm_to_check="${ac_tool_prefix}nm"
4120 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4121 lt_nm_to_check="$lt_nm_to_check nm"
4123 for lt_tmp_nm in $lt_nm_to_check; do
4124 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4125 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4127 test -z "$ac_dir" && ac_dir=.
4128 tmp_nm="$ac_dir/$lt_tmp_nm"
4129 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4130 # Check to see if the nm accepts a BSD-compat flag.
4131 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4132 # nm: unknown option "B" ignored
4133 # Tru64's nm complains that /dev/null is an invalid object file
4134 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4135 */dev/null* | *'Invalid file or object type'*)
4136 lt_cv_path_NM="$tmp_nm -B"
4140 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4142 lt_cv_path_NM="$tmp_nm -p"
4146 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4147 continue # so that we can try to find one that supports BSD flags
4156 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4159 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4160 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4163 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4164 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4166 if test "$LN_S" = "ln -s"; then
4167 { echo "$as_me:$LINENO: result: yes" >&5
4168 echo "${ECHO_T}yes" >&6; }
4170 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4171 echo "${ECHO_T}no, using $LN_S" >&6; }
4174 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4175 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4176 if test "${lt_cv_deplibs_check_method+set}" = set; then
4177 echo $ECHO_N "(cached) $ECHO_C" >&6
4179 lt_cv_file_magic_cmd='$MAGIC_CMD'
4180 lt_cv_file_magic_test_file=
4181 lt_cv_deplibs_check_method='unknown'
4182 # Need to set the preceding variable on all platforms that support
4183 # interlibrary dependencies.
4184 # 'none' -- dependencies not supported.
4185 # `unknown' -- same as none, but documents that we really don't know.
4186 # 'pass_all' -- all dependencies passed with no checks.
4187 # 'test_compile' -- check by making test program.
4188 # 'file_magic [[regex]]' -- check by looking for files in library path
4189 # which responds to the $file_magic_cmd with a given extended regex.
4190 # If you have `file' or equivalent on your system and you're not sure
4191 # whether `pass_all' will *always* work, you probably want this one.
4195 lt_cv_deplibs_check_method=pass_all
4199 lt_cv_deplibs_check_method=pass_all
4203 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4204 lt_cv_file_magic_cmd='/usr/bin/file -L'
4205 lt_cv_file_magic_test_file=/shlib/libc.so
4209 # func_win32_libid is a shell function defined in ltmain.sh
4210 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4211 lt_cv_file_magic_cmd='func_win32_libid'
4215 # Base MSYS/MinGW do not provide the 'file' command needed by
4216 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4217 # unless we find 'file', for example because we are cross-compiling.
4218 if ( file / ) >/dev/null 2>&1; then
4219 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4220 lt_cv_file_magic_cmd='func_win32_libid'
4222 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4223 lt_cv_file_magic_cmd='$OBJDUMP -f'
4227 darwin* | rhapsody*)
4228 lt_cv_deplibs_check_method=pass_all
4231 freebsd* | dragonfly*)
4232 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4235 # Not sure whether the presence of OpenBSD here was a mistake.
4236 # Let's accept both of them until this is cleared up.
4237 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4238 lt_cv_file_magic_cmd=/usr/bin/file
4239 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4243 lt_cv_deplibs_check_method=pass_all
4248 lt_cv_deplibs_check_method=pass_all
4251 hpux10.20* | hpux11*)
4252 lt_cv_file_magic_cmd=/usr/bin/file
4255 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4256 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4259 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]'
4260 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4263 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4264 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4270 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4271 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4274 irix5* | irix6* | nonstopux*)
4276 *-32|*"-32 ") libmagic=32-bit;;
4277 *-n32|*"-n32 ") libmagic=N32;;
4278 *-64|*"-64 ") libmagic=64-bit;;
4279 *) libmagic=never-match;;
4281 lt_cv_deplibs_check_method=pass_all
4284 # This must be Linux ELF.
4285 linux* | k*bsd*-gnu)
4286 lt_cv_deplibs_check_method=pass_all
4289 netbsd* | netbsdelf*-gnu)
4290 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4291 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4293 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4298 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4299 lt_cv_file_magic_cmd=/usr/bin/file
4300 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4304 lt_cv_deplibs_check_method=unknown
4308 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4309 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4311 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4315 osf3* | osf4* | osf5*)
4316 lt_cv_deplibs_check_method=pass_all
4320 lt_cv_deplibs_check_method=pass_all
4324 lt_cv_deplibs_check_method=pass_all
4328 case $host_vendor in
4330 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]'
4331 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4334 lt_cv_deplibs_check_method=pass_all
4337 lt_cv_file_magic_cmd='/bin/file'
4338 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4341 lt_cv_file_magic_cmd='/bin/file'
4342 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4343 lt_cv_file_magic_test_file=/lib/libc.so
4346 lt_cv_deplibs_check_method=pass_all
4349 lt_cv_deplibs_check_method=pass_all
4354 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4355 lt_cv_deplibs_check_method=pass_all
4360 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4361 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4362 file_magic_cmd=$lt_cv_file_magic_cmd
4363 deplibs_check_method=$lt_cv_deplibs_check_method
4364 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4369 # If no C compiler was specified, use CC.
4372 # If no C compiler flags were specified, use CFLAGS.
4373 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4375 # Allow CC to be a program name with arguments.
4379 # Check whether --enable-libtool-lock was given.
4380 if test "${enable_libtool_lock+set}" = set; then
4381 enableval=$enable_libtool_lock;
4384 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4386 # Some flags need to be propagated to the compiler or linker for good
4390 # Find out which ABI we are using.
4391 echo 'int i;' > conftest.$ac_ext
4392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4393 (eval $ac_compile) 2>&5
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); }; then
4397 case `/usr/bin/file conftest.$ac_objext` in
4409 # Find out which ABI we are using.
4410 echo '#line __oline__ "configure"' > conftest.$ac_ext
4411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4412 (eval $ac_compile) 2>&5
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); }; then
4416 if test "$lt_cv_prog_gnu_ld" = yes; then
4417 case `/usr/bin/file conftest.$ac_objext` in
4419 LD="${LD-ld} -melf32bsmip"
4422 LD="${LD-ld} -melf32bmipn32"
4425 LD="${LD-ld} -melf64bmip"
4429 case `/usr/bin/file conftest.$ac_objext` in
4445 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4446 s390*-*linux*|sparc*-*linux*)
4447 # Find out which ABI we are using.
4448 echo 'int i;' > conftest.$ac_ext
4449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4450 (eval $ac_compile) 2>&5
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); }; then
4454 case `/usr/bin/file conftest.o` in
4457 x86_64-*kfreebsd*-gnu)
4458 LD="${LD-ld} -m elf_i386_fbsd"
4461 LD="${LD-ld} -m elf_i386"
4463 ppc64-*linux*|powerpc64-*linux*)
4464 LD="${LD-ld} -m elf32ppclinux"
4467 LD="${LD-ld} -m elf_s390"
4470 LD="${LD-ld} -m elf32_sparc"
4476 x86_64-*kfreebsd*-gnu)
4477 LD="${LD-ld} -m elf_x86_64_fbsd"
4480 LD="${LD-ld} -m elf_x86_64"
4482 ppc*-*linux*|powerpc*-*linux*)
4483 LD="${LD-ld} -m elf64ppc"
4486 LD="${LD-ld} -m elf64_s390"
4489 LD="${LD-ld} -m elf64_sparc"
4499 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4500 SAVE_CFLAGS="$CFLAGS"
4501 CFLAGS="$CFLAGS -belf"
4502 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4503 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4504 if test "${lt_cv_cc_needs_belf+set}" = set; then
4505 echo $ECHO_N "(cached) $ECHO_C" >&6
4508 ac_cpp='$CPP $CPPFLAGS'
4509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4513 cat >conftest.$ac_ext <<_ACEOF
4516 cat confdefs.h >>conftest.$ac_ext
4517 cat >>conftest.$ac_ext <<_ACEOF
4518 /* end confdefs.h. */
4528 rm -f conftest.$ac_objext conftest$ac_exeext
4529 if { (ac_try="$ac_link"
4531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4532 *) ac_try_echo=$ac_try;;
4534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4535 (eval "$ac_link") 2>conftest.er1
4537 grep -v '^ *+' conftest.er1 >conftest.err
4539 cat conftest.err >&5
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); } && {
4542 test -z "$ac_c_werror_flag" ||
4543 test ! -s conftest.err
4544 } && test -s conftest$ac_exeext &&
4545 $as_test_x conftest$ac_exeext; then
4546 lt_cv_cc_needs_belf=yes
4548 echo "$as_me: failed program was:" >&5
4549 sed 's/^/| /' conftest.$ac_ext >&5
4551 lt_cv_cc_needs_belf=no
4554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4555 conftest$ac_exeext conftest.$ac_ext
4557 ac_cpp='$CPP $CPPFLAGS'
4558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4563 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4564 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4565 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4566 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4567 CFLAGS="$SAVE_CFLAGS"
4571 # Find out which ABI we are using.
4572 echo 'int i;' > conftest.$ac_ext
4573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4574 (eval $ac_compile) 2>&5
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); }; then
4578 case `/usr/bin/file conftest.o` in
4580 case $lt_cv_prog_gnu_ld in
4581 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4583 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4597 need_locks="$enable_libtool_lock"
4601 ac_cpp='$CPP $CPPFLAGS'
4602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4605 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4606 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4607 # On Suns, sometimes $CPP names a directory.
4608 if test -n "$CPP" && test -d "$CPP"; then
4611 if test -z "$CPP"; then
4612 if test "${ac_cv_prog_CPP+set}" = set; then
4613 echo $ECHO_N "(cached) $ECHO_C" >&6
4615 # Double quotes because CPP needs to be expanded
4616 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4619 for ac_c_preproc_warn_flag in '' yes
4621 # Use a header file that comes with gcc, so configuring glibc
4622 # with a fresh cross-compiler works.
4623 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4624 # <limits.h> exists even on freestanding compilers.
4625 # On the NeXT, cc -E runs the code through the compiler's parser,
4626 # not just through cpp. "Syntax error" is here to catch this case.
4627 cat >conftest.$ac_ext <<_ACEOF
4630 cat confdefs.h >>conftest.$ac_ext
4631 cat >>conftest.$ac_ext <<_ACEOF
4632 /* end confdefs.h. */
4634 @%:@ include <limits.h>
4636 @%:@ include <assert.h>
4640 if { (ac_try="$ac_cpp conftest.$ac_ext"
4642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4643 *) ac_try_echo=$ac_try;;
4645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4648 grep -v '^ *+' conftest.er1 >conftest.err
4650 cat conftest.err >&5
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); } >/dev/null && {
4653 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4654 test ! -s conftest.err
4658 echo "$as_me: failed program was:" >&5
4659 sed 's/^/| /' conftest.$ac_ext >&5
4661 # Broken: fails on valid input.
4665 rm -f conftest.err conftest.$ac_ext
4667 # OK, works on sane cases. Now check whether nonexistent headers
4668 # can be detected and how.
4669 cat >conftest.$ac_ext <<_ACEOF
4672 cat confdefs.h >>conftest.$ac_ext
4673 cat >>conftest.$ac_ext <<_ACEOF
4674 /* end confdefs.h. */
4675 @%:@include <ac_nonexistent.h>
4677 if { (ac_try="$ac_cpp conftest.$ac_ext"
4679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4680 *) ac_try_echo=$ac_try;;
4682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4685 grep -v '^ *+' conftest.er1 >conftest.err
4687 cat conftest.err >&5
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); } >/dev/null && {
4690 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4691 test ! -s conftest.err
4693 # Broken: success on invalid input.
4696 echo "$as_me: failed program was:" >&5
4697 sed 's/^/| /' conftest.$ac_ext >&5
4699 # Passes both tests.
4704 rm -f conftest.err conftest.$ac_ext
4707 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4708 rm -f conftest.err conftest.$ac_ext
4709 if $ac_preproc_ok; then
4721 { echo "$as_me:$LINENO: result: $CPP" >&5
4722 echo "${ECHO_T}$CPP" >&6; }
4724 for ac_c_preproc_warn_flag in '' yes
4726 # Use a header file that comes with gcc, so configuring glibc
4727 # with a fresh cross-compiler works.
4728 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4729 # <limits.h> exists even on freestanding compilers.
4730 # On the NeXT, cc -E runs the code through the compiler's parser,
4731 # not just through cpp. "Syntax error" is here to catch this case.
4732 cat >conftest.$ac_ext <<_ACEOF
4735 cat confdefs.h >>conftest.$ac_ext
4736 cat >>conftest.$ac_ext <<_ACEOF
4737 /* end confdefs.h. */
4739 @%:@ include <limits.h>
4741 @%:@ include <assert.h>
4745 if { (ac_try="$ac_cpp conftest.$ac_ext"
4747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4748 *) ac_try_echo=$ac_try;;
4750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4753 grep -v '^ *+' conftest.er1 >conftest.err
4755 cat conftest.err >&5
4756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757 (exit $ac_status); } >/dev/null && {
4758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4759 test ! -s conftest.err
4763 echo "$as_me: failed program was:" >&5
4764 sed 's/^/| /' conftest.$ac_ext >&5
4766 # Broken: fails on valid input.
4770 rm -f conftest.err conftest.$ac_ext
4772 # OK, works on sane cases. Now check whether nonexistent headers
4773 # can be detected and how.
4774 cat >conftest.$ac_ext <<_ACEOF
4777 cat confdefs.h >>conftest.$ac_ext
4778 cat >>conftest.$ac_ext <<_ACEOF
4779 /* end confdefs.h. */
4780 @%:@include <ac_nonexistent.h>
4782 if { (ac_try="$ac_cpp conftest.$ac_ext"
4784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4785 *) ac_try_echo=$ac_try;;
4787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4788 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4790 grep -v '^ *+' conftest.er1 >conftest.err
4792 cat conftest.err >&5
4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); } >/dev/null && {
4795 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4796 test ! -s conftest.err
4798 # Broken: success on invalid input.
4801 echo "$as_me: failed program was:" >&5
4802 sed 's/^/| /' conftest.$ac_ext >&5
4804 # Passes both tests.
4809 rm -f conftest.err conftest.$ac_ext
4812 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4813 rm -f conftest.err conftest.$ac_ext
4814 if $ac_preproc_ok; then
4817 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4818 See \`config.log' for more details." >&5
4819 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4820 See \`config.log' for more details." >&2;}
4821 { (exit 1); exit 1; }; }
4825 ac_cpp='$CPP $CPPFLAGS'
4826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4831 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4832 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4833 if test "${ac_cv_header_stdc+set}" = set; then
4834 echo $ECHO_N "(cached) $ECHO_C" >&6
4836 cat >conftest.$ac_ext <<_ACEOF
4839 cat confdefs.h >>conftest.$ac_ext
4840 cat >>conftest.$ac_ext <<_ACEOF
4841 /* end confdefs.h. */
4855 rm -f conftest.$ac_objext
4856 if { (ac_try="$ac_compile"
4858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4859 *) ac_try_echo=$ac_try;;
4861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4862 (eval "$ac_compile") 2>conftest.er1
4864 grep -v '^ *+' conftest.er1 >conftest.err
4866 cat conftest.err >&5
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); } && {
4869 test -z "$ac_c_werror_flag" ||
4870 test ! -s conftest.err
4871 } && test -s conftest.$ac_objext; then
4872 ac_cv_header_stdc=yes
4874 echo "$as_me: failed program was:" >&5
4875 sed 's/^/| /' conftest.$ac_ext >&5
4877 ac_cv_header_stdc=no
4880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4882 if test $ac_cv_header_stdc = yes; then
4883 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4884 cat >conftest.$ac_ext <<_ACEOF
4887 cat confdefs.h >>conftest.$ac_ext
4888 cat >>conftest.$ac_ext <<_ACEOF
4889 /* end confdefs.h. */
4893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4894 $EGREP "memchr" >/dev/null 2>&1; then
4897 ac_cv_header_stdc=no
4903 if test $ac_cv_header_stdc = yes; then
4904 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4905 cat >conftest.$ac_ext <<_ACEOF
4908 cat confdefs.h >>conftest.$ac_ext
4909 cat >>conftest.$ac_ext <<_ACEOF
4910 /* end confdefs.h. */
4914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4915 $EGREP "free" >/dev/null 2>&1; then
4918 ac_cv_header_stdc=no
4924 if test $ac_cv_header_stdc = yes; then
4925 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4926 if test "$cross_compiling" = yes; then
4929 cat >conftest.$ac_ext <<_ACEOF
4932 cat confdefs.h >>conftest.$ac_ext
4933 cat >>conftest.$ac_ext <<_ACEOF
4934 /* end confdefs.h. */
4937 #if ((' ' & 0x0FF) == 0x020)
4938 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4939 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4941 # define ISLOWER(c) \
4942 (('a' <= (c) && (c) <= 'i') \
4943 || ('j' <= (c) && (c) <= 'r') \
4944 || ('s' <= (c) && (c) <= 'z'))
4945 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4948 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4953 for (i = 0; i < 256; i++)
4954 if (XOR (islower (i), ISLOWER (i))
4955 || toupper (i) != TOUPPER (i))
4960 rm -f conftest$ac_exeext
4961 if { (ac_try="$ac_link"
4963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4964 *) ac_try_echo=$ac_try;;
4966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4967 (eval "$ac_link") 2>&5
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4971 { (case "(($ac_try" in
4972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4973 *) ac_try_echo=$ac_try;;
4975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4976 (eval "$ac_try") 2>&5
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); }; }; then
4982 echo "$as_me: program exited with status $ac_status" >&5
4983 echo "$as_me: failed program was:" >&5
4984 sed 's/^/| /' conftest.$ac_ext >&5
4987 ac_cv_header_stdc=no
4989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4995 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4996 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4997 if test $ac_cv_header_stdc = yes; then
4999 cat >>confdefs.h <<\_ACEOF
5000 @%:@define STDC_HEADERS 1
5005 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5015 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5016 inttypes.h stdint.h unistd.h
5018 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5019 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5022 echo $ECHO_N "(cached) $ECHO_C" >&6
5024 cat >conftest.$ac_ext <<_ACEOF
5027 cat confdefs.h >>conftest.$ac_ext
5028 cat >>conftest.$ac_ext <<_ACEOF
5029 /* end confdefs.h. */
5030 $ac_includes_default
5032 @%:@include <$ac_header>
5034 rm -f conftest.$ac_objext
5035 if { (ac_try="$ac_compile"
5037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5038 *) ac_try_echo=$ac_try;;
5040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5041 (eval "$ac_compile") 2>conftest.er1
5043 grep -v '^ *+' conftest.er1 >conftest.err
5045 cat conftest.err >&5
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); } && {
5048 test -z "$ac_c_werror_flag" ||
5049 test ! -s conftest.err
5050 } && test -s conftest.$ac_objext; then
5051 eval "$as_ac_Header=yes"
5053 echo "$as_me: failed program was:" >&5
5054 sed 's/^/| /' conftest.$ac_ext >&5
5056 eval "$as_ac_Header=no"
5059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5061 ac_res=`eval echo '${'$as_ac_Header'}'`
5062 { echo "$as_me:$LINENO: result: $ac_res" >&5
5063 echo "${ECHO_T}$ac_res" >&6; }
5064 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5065 cat >>confdefs.h <<_ACEOF
5066 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5075 for ac_header in dlfcn.h
5077 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5079 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5082 echo $ECHO_N "(cached) $ECHO_C" >&6
5084 ac_res=`eval echo '${'$as_ac_Header'}'`
5085 { echo "$as_me:$LINENO: result: $ac_res" >&5
5086 echo "${ECHO_T}$ac_res" >&6; }
5088 # Is the header compilable?
5089 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5090 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5091 cat >conftest.$ac_ext <<_ACEOF
5094 cat confdefs.h >>conftest.$ac_ext
5095 cat >>conftest.$ac_ext <<_ACEOF
5096 /* end confdefs.h. */
5097 $ac_includes_default
5098 @%:@include <$ac_header>
5100 rm -f conftest.$ac_objext
5101 if { (ac_try="$ac_compile"
5103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5104 *) ac_try_echo=$ac_try;;
5106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5107 (eval "$ac_compile") 2>conftest.er1
5109 grep -v '^ *+' conftest.er1 >conftest.err
5111 cat conftest.err >&5
5112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113 (exit $ac_status); } && {
5114 test -z "$ac_c_werror_flag" ||
5115 test ! -s conftest.err
5116 } && test -s conftest.$ac_objext; then
5117 ac_header_compiler=yes
5119 echo "$as_me: failed program was:" >&5
5120 sed 's/^/| /' conftest.$ac_ext >&5
5122 ac_header_compiler=no
5125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5126 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5127 echo "${ECHO_T}$ac_header_compiler" >&6; }
5129 # Is the header present?
5130 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5131 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5132 cat >conftest.$ac_ext <<_ACEOF
5135 cat confdefs.h >>conftest.$ac_ext
5136 cat >>conftest.$ac_ext <<_ACEOF
5137 /* end confdefs.h. */
5138 @%:@include <$ac_header>
5140 if { (ac_try="$ac_cpp conftest.$ac_ext"
5142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5143 *) ac_try_echo=$ac_try;;
5145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5146 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5148 grep -v '^ *+' conftest.er1 >conftest.err
5150 cat conftest.err >&5
5151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152 (exit $ac_status); } >/dev/null && {
5153 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5154 test ! -s conftest.err
5156 ac_header_preproc=yes
5158 echo "$as_me: failed program was:" >&5
5159 sed 's/^/| /' conftest.$ac_ext >&5
5161 ac_header_preproc=no
5164 rm -f conftest.err conftest.$ac_ext
5165 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5166 echo "${ECHO_T}$ac_header_preproc" >&6; }
5168 # So? What about this header?
5169 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5171 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5172 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5173 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5174 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5175 ac_header_preproc=yes
5178 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5179 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5180 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5181 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5182 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5183 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5184 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5185 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5187 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5188 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5189 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5193 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5196 echo $ECHO_N "(cached) $ECHO_C" >&6
5198 eval "$as_ac_Header=\$ac_header_preproc"
5200 ac_res=`eval echo '${'$as_ac_Header'}'`
5201 { echo "$as_me:$LINENO: result: $ac_res" >&5
5202 echo "${ECHO_T}$ac_res" >&6; }
5205 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5206 cat >>confdefs.h <<_ACEOF
5207 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5215 ac_cpp='$CXXCPP $CPPFLAGS'
5216 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5217 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5218 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5219 if test -z "$CXX"; then
5220 if test -n "$CCC"; then
5223 if test -n "$ac_tool_prefix"; then
5224 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5226 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5227 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5230 if test "${ac_cv_prog_CXX+set}" = set; then
5231 echo $ECHO_N "(cached) $ECHO_C" >&6
5233 if test -n "$CXX"; then
5234 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5240 test -z "$as_dir" && as_dir=.
5241 for ac_exec_ext in '' $ac_executable_extensions; do
5242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5243 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5254 if test -n "$CXX"; then
5255 { echo "$as_me:$LINENO: result: $CXX" >&5
5256 echo "${ECHO_T}$CXX" >&6; }
5258 { echo "$as_me:$LINENO: result: no" >&5
5259 echo "${ECHO_T}no" >&6; }
5263 test -n "$CXX" && break
5266 if test -z "$CXX"; then
5268 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5270 # Extract the first word of "$ac_prog", so it can be a program name with args.
5271 set dummy $ac_prog; ac_word=$2
5272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5274 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5275 echo $ECHO_N "(cached) $ECHO_C" >&6
5277 if test -n "$ac_ct_CXX"; then
5278 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5284 test -z "$as_dir" && as_dir=.
5285 for ac_exec_ext in '' $ac_executable_extensions; do
5286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5287 ac_cv_prog_ac_ct_CXX="$ac_prog"
5288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5297 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5298 if test -n "$ac_ct_CXX"; then
5299 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5300 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5302 { echo "$as_me:$LINENO: result: no" >&5
5303 echo "${ECHO_T}no" >&6; }
5307 test -n "$ac_ct_CXX" && break
5310 if test "x$ac_ct_CXX" = x; then
5313 case $cross_compiling:$ac_tool_warned in
5315 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5316 whose name does not start with the host triplet. If you think this
5317 configuration is useful to you, please write to autoconf@gnu.org." >&5
5318 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5319 whose name does not start with the host triplet. If you think this
5320 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5321 ac_tool_warned=yes ;;
5329 # Provide some information about the compiler.
5330 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5331 ac_compiler=`set X $ac_compile; echo $2`
5332 { (ac_try="$ac_compiler --version >&5"
5334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5335 *) ac_try_echo=$ac_try;;
5337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5338 (eval "$ac_compiler --version >&5") 2>&5
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); }
5342 { (ac_try="$ac_compiler -v >&5"
5344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5345 *) ac_try_echo=$ac_try;;
5347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5348 (eval "$ac_compiler -v >&5") 2>&5
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); }
5352 { (ac_try="$ac_compiler -V >&5"
5354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5355 *) ac_try_echo=$ac_try;;
5357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5358 (eval "$ac_compiler -V >&5") 2>&5
5360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361 (exit $ac_status); }
5363 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5364 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5365 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5366 echo $ECHO_N "(cached) $ECHO_C" >&6
5368 cat >conftest.$ac_ext <<_ACEOF
5371 cat confdefs.h >>conftest.$ac_ext
5372 cat >>conftest.$ac_ext <<_ACEOF
5373 /* end confdefs.h. */
5386 rm -f conftest.$ac_objext
5387 if { (ac_try="$ac_compile"
5389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5390 *) ac_try_echo=$ac_try;;
5392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5393 (eval "$ac_compile") 2>conftest.er1
5395 grep -v '^ *+' conftest.er1 >conftest.err
5397 cat conftest.err >&5
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); } && {
5400 test -z "$ac_cxx_werror_flag" ||
5401 test ! -s conftest.err
5402 } && test -s conftest.$ac_objext; then
5405 echo "$as_me: failed program was:" >&5
5406 sed 's/^/| /' conftest.$ac_ext >&5
5411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5412 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5415 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5416 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5417 GXX=`test $ac_compiler_gnu = yes && echo yes`
5418 ac_test_CXXFLAGS=${CXXFLAGS+set}
5419 ac_save_CXXFLAGS=$CXXFLAGS
5420 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5421 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5422 if test "${ac_cv_prog_cxx_g+set}" = set; then
5423 echo $ECHO_N "(cached) $ECHO_C" >&6
5425 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5426 ac_cxx_werror_flag=yes
5429 cat >conftest.$ac_ext <<_ACEOF
5432 cat confdefs.h >>conftest.$ac_ext
5433 cat >>conftest.$ac_ext <<_ACEOF
5434 /* end confdefs.h. */
5444 rm -f conftest.$ac_objext
5445 if { (ac_try="$ac_compile"
5447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5448 *) ac_try_echo=$ac_try;;
5450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5451 (eval "$ac_compile") 2>conftest.er1
5453 grep -v '^ *+' conftest.er1 >conftest.err
5455 cat conftest.err >&5
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); } && {
5458 test -z "$ac_cxx_werror_flag" ||
5459 test ! -s conftest.err
5460 } && test -s conftest.$ac_objext; then
5461 ac_cv_prog_cxx_g=yes
5463 echo "$as_me: failed program was:" >&5
5464 sed 's/^/| /' conftest.$ac_ext >&5
5467 cat >conftest.$ac_ext <<_ACEOF
5470 cat confdefs.h >>conftest.$ac_ext
5471 cat >>conftest.$ac_ext <<_ACEOF
5472 /* end confdefs.h. */
5482 rm -f conftest.$ac_objext
5483 if { (ac_try="$ac_compile"
5485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5486 *) ac_try_echo=$ac_try;;
5488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5489 (eval "$ac_compile") 2>conftest.er1
5491 grep -v '^ *+' conftest.er1 >conftest.err
5493 cat conftest.err >&5
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); } && {
5496 test -z "$ac_cxx_werror_flag" ||
5497 test ! -s conftest.err
5498 } && test -s conftest.$ac_objext; then
5501 echo "$as_me: failed program was:" >&5
5502 sed 's/^/| /' conftest.$ac_ext >&5
5504 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5506 cat >conftest.$ac_ext <<_ACEOF
5509 cat confdefs.h >>conftest.$ac_ext
5510 cat >>conftest.$ac_ext <<_ACEOF
5511 /* end confdefs.h. */
5521 rm -f conftest.$ac_objext
5522 if { (ac_try="$ac_compile"
5524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5525 *) ac_try_echo=$ac_try;;
5527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5528 (eval "$ac_compile") 2>conftest.er1
5530 grep -v '^ *+' conftest.er1 >conftest.err
5532 cat conftest.err >&5
5533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534 (exit $ac_status); } && {
5535 test -z "$ac_cxx_werror_flag" ||
5536 test ! -s conftest.err
5537 } && test -s conftest.$ac_objext; then
5538 ac_cv_prog_cxx_g=yes
5540 echo "$as_me: failed program was:" >&5
5541 sed 's/^/| /' conftest.$ac_ext >&5
5546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5553 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5555 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5556 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5557 if test "$ac_test_CXXFLAGS" = set; then
5558 CXXFLAGS=$ac_save_CXXFLAGS
5559 elif test $ac_cv_prog_cxx_g = yes; then
5560 if test "$GXX" = yes; then
5566 if test "$GXX" = yes; then
5573 ac_cpp='$CXXCPP $CPPFLAGS'
5574 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5575 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5576 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5578 depcc="$CXX" am_compiler_list=
5580 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5581 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5582 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5583 echo $ECHO_N "(cached) $ECHO_C" >&6
5585 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5586 # We make a subdir and do the tests there. Otherwise we can end up
5587 # making bogus files that we don't know about and never remove. For
5588 # instance it was reported that on HP-UX the gcc test will end up
5589 # making a dummy file named `D' -- because `-MD' means `put the output
5592 # Copy depcomp to subdir because otherwise we won't find it if we're
5593 # using a relative directory.
5594 cp "$am_depcomp" conftest.dir
5596 # We will build objects and dependencies in a subdirectory because
5597 # it helps to detect inapplicable dependency modes. For instance
5598 # both Tru64's cc and ICC support -MD to output dependencies as a
5599 # side effect of compilation, but ICC will put the dependencies in
5600 # the current directory while Tru64 will put them in the object
5604 am_cv_CXX_dependencies_compiler_type=none
5605 if test "$am_compiler_list" = ""; then
5606 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5608 for depmode in $am_compiler_list; do
5609 # Setup a source with many dependencies, because some compilers
5610 # like to wrap large dependency lists on column 80 (with \), and
5611 # we should not choose a depcomp mode which is confused by this.
5613 # We need to recreate these files for each test, as the compiler may
5614 # overwrite some of them when testing with obscure command lines.
5615 # This happens at least with the AIX C compiler.
5617 for i in 1 2 3 4 5 6; do
5618 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5619 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5620 # Solaris 8's {/usr,}/bin/sh.
5621 touch sub/conftst$i.h
5623 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5627 # after this tag, mechanisms are not by side-effect, so they'll
5628 # only be used when explicitly requested
5629 if test "x$enable_dependency_tracking" = xyes; then
5637 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5638 # mode. It turns out that the SunPro C++ compiler does not properly
5639 # handle `-M -o', and we need to detect this.
5640 if depmode=$depmode \
5641 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5642 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5643 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5644 >/dev/null 2>conftest.err &&
5645 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5646 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5647 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5648 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5649 # icc doesn't choke on unknown options, it will just issue warnings
5650 # or remarks (even with -Werror). So we grep stderr for any message
5651 # that says an option was ignored or not supported.
5652 # When given -MP, icc 7.0 and 7.1 complain thusly:
5653 # icc: Command line warning: ignoring option '-M'; no argument required
5654 # The diagnosis changed in icc 8.0:
5655 # icc: Command line remark: option '-MP' not supported
5656 if (grep 'ignoring option' conftest.err ||
5657 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5658 am_cv_CXX_dependencies_compiler_type=$depmode
5667 am_cv_CXX_dependencies_compiler_type=none
5671 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5672 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5673 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5676 test "x$enable_dependency_tracking" != xno \
5677 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5678 am__fastdepCXX_TRUE=
5679 am__fastdepCXX_FALSE='#'
5681 am__fastdepCXX_TRUE='#'
5682 am__fastdepCXX_FALSE=
5688 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5689 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5690 (test "X$CXX" != "Xg++"))) ; then
5692 ac_cpp='$CXXCPP $CPPFLAGS'
5693 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5694 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5695 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5696 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5697 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5698 if test -z "$CXXCPP"; then
5699 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5700 echo $ECHO_N "(cached) $ECHO_C" >&6
5702 # Double quotes because CXXCPP needs to be expanded
5703 for CXXCPP in "$CXX -E" "/lib/cpp"
5706 for ac_cxx_preproc_warn_flag in '' yes
5708 # Use a header file that comes with gcc, so configuring glibc
5709 # with a fresh cross-compiler works.
5710 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5711 # <limits.h> exists even on freestanding compilers.
5712 # On the NeXT, cc -E runs the code through the compiler's parser,
5713 # not just through cpp. "Syntax error" is here to catch this case.
5714 cat >conftest.$ac_ext <<_ACEOF
5717 cat confdefs.h >>conftest.$ac_ext
5718 cat >>conftest.$ac_ext <<_ACEOF
5719 /* end confdefs.h. */
5721 @%:@ include <limits.h>
5723 @%:@ include <assert.h>
5727 if { (ac_try="$ac_cpp conftest.$ac_ext"
5729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5730 *) ac_try_echo=$ac_try;;
5732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5735 grep -v '^ *+' conftest.er1 >conftest.err
5737 cat conftest.err >&5
5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); } >/dev/null && {
5740 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5741 test ! -s conftest.err
5745 echo "$as_me: failed program was:" >&5
5746 sed 's/^/| /' conftest.$ac_ext >&5
5748 # Broken: fails on valid input.
5752 rm -f conftest.err conftest.$ac_ext
5754 # OK, works on sane cases. Now check whether nonexistent headers
5755 # can be detected and how.
5756 cat >conftest.$ac_ext <<_ACEOF
5759 cat confdefs.h >>conftest.$ac_ext
5760 cat >>conftest.$ac_ext <<_ACEOF
5761 /* end confdefs.h. */
5762 @%:@include <ac_nonexistent.h>
5764 if { (ac_try="$ac_cpp conftest.$ac_ext"
5766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5767 *) ac_try_echo=$ac_try;;
5769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5770 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5772 grep -v '^ *+' conftest.er1 >conftest.err
5774 cat conftest.err >&5
5775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776 (exit $ac_status); } >/dev/null && {
5777 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5778 test ! -s conftest.err
5780 # Broken: success on invalid input.
5783 echo "$as_me: failed program was:" >&5
5784 sed 's/^/| /' conftest.$ac_ext >&5
5786 # Passes both tests.
5791 rm -f conftest.err conftest.$ac_ext
5794 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5795 rm -f conftest.err conftest.$ac_ext
5796 if $ac_preproc_ok; then
5801 ac_cv_prog_CXXCPP=$CXXCPP
5804 CXXCPP=$ac_cv_prog_CXXCPP
5806 ac_cv_prog_CXXCPP=$CXXCPP
5808 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5809 echo "${ECHO_T}$CXXCPP" >&6; }
5811 for ac_cxx_preproc_warn_flag in '' yes
5813 # Use a header file that comes with gcc, so configuring glibc
5814 # with a fresh cross-compiler works.
5815 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5816 # <limits.h> exists even on freestanding compilers.
5817 # On the NeXT, cc -E runs the code through the compiler's parser,
5818 # not just through cpp. "Syntax error" is here to catch this case.
5819 cat >conftest.$ac_ext <<_ACEOF
5822 cat confdefs.h >>conftest.$ac_ext
5823 cat >>conftest.$ac_ext <<_ACEOF
5824 /* end confdefs.h. */
5826 @%:@ include <limits.h>
5828 @%:@ include <assert.h>
5832 if { (ac_try="$ac_cpp conftest.$ac_ext"
5834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5835 *) ac_try_echo=$ac_try;;
5837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5838 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5840 grep -v '^ *+' conftest.er1 >conftest.err
5842 cat conftest.err >&5
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); } >/dev/null && {
5845 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5846 test ! -s conftest.err
5850 echo "$as_me: failed program was:" >&5
5851 sed 's/^/| /' conftest.$ac_ext >&5
5853 # Broken: fails on valid input.
5857 rm -f conftest.err conftest.$ac_ext
5859 # OK, works on sane cases. Now check whether nonexistent headers
5860 # can be detected and how.
5861 cat >conftest.$ac_ext <<_ACEOF
5864 cat confdefs.h >>conftest.$ac_ext
5865 cat >>conftest.$ac_ext <<_ACEOF
5866 /* end confdefs.h. */
5867 @%:@include <ac_nonexistent.h>
5869 if { (ac_try="$ac_cpp conftest.$ac_ext"
5871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5872 *) ac_try_echo=$ac_try;;
5874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5875 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5877 grep -v '^ *+' conftest.er1 >conftest.err
5879 cat conftest.err >&5
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); } >/dev/null && {
5882 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5883 test ! -s conftest.err
5885 # Broken: success on invalid input.
5888 echo "$as_me: failed program was:" >&5
5889 sed 's/^/| /' conftest.$ac_ext >&5
5891 # Passes both tests.
5896 rm -f conftest.err conftest.$ac_ext
5899 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5900 rm -f conftest.err conftest.$ac_ext
5901 if $ac_preproc_ok; then
5904 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5905 See \`config.log' for more details." >&5
5906 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5907 See \`config.log' for more details." >&2;}
5908 { (exit 1); exit 1; }; }
5912 ac_cpp='$CXXCPP $CPPFLAGS'
5913 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5914 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5915 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5921 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5922 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5923 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5924 if test -n "$ac_tool_prefix"; then
5925 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
5927 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5928 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5931 if test "${ac_cv_prog_F77+set}" = set; then
5932 echo $ECHO_N "(cached) $ECHO_C" >&6
5934 if test -n "$F77"; then
5935 ac_cv_prog_F77="$F77" # Let the user override the test.
5937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5941 test -z "$as_dir" && as_dir=.
5942 for ac_exec_ext in '' $ac_executable_extensions; do
5943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5944 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5955 if test -n "$F77"; then
5956 { echo "$as_me:$LINENO: result: $F77" >&5
5957 echo "${ECHO_T}$F77" >&6; }
5959 { echo "$as_me:$LINENO: result: no" >&5
5960 echo "${ECHO_T}no" >&6; }
5964 test -n "$F77" && break
5967 if test -z "$F77"; then
5969 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
5971 # Extract the first word of "$ac_prog", so it can be a program name with args.
5972 set dummy $ac_prog; ac_word=$2
5973 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5975 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5976 echo $ECHO_N "(cached) $ECHO_C" >&6
5978 if test -n "$ac_ct_F77"; then
5979 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5985 test -z "$as_dir" && as_dir=.
5986 for ac_exec_ext in '' $ac_executable_extensions; do
5987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5988 ac_cv_prog_ac_ct_F77="$ac_prog"
5989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5998 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5999 if test -n "$ac_ct_F77"; then
6000 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6001 echo "${ECHO_T}$ac_ct_F77" >&6; }
6003 { echo "$as_me:$LINENO: result: no" >&5
6004 echo "${ECHO_T}no" >&6; }
6008 test -n "$ac_ct_F77" && break
6011 if test "x$ac_ct_F77" = x; then
6014 case $cross_compiling:$ac_tool_warned in
6016 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6017 whose name does not start with the host triplet. If you think this
6018 configuration is useful to you, please write to autoconf@gnu.org." >&5
6019 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6020 whose name does not start with the host triplet. If you think this
6021 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6022 ac_tool_warned=yes ;;
6029 # Provide some information about the compiler.
6030 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6031 ac_compiler=`set X $ac_compile; echo $2`
6032 { (ac_try="$ac_compiler --version >&5"
6034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6035 *) ac_try_echo=$ac_try;;
6037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6038 (eval "$ac_compiler --version >&5") 2>&5
6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); }
6042 { (ac_try="$ac_compiler -v >&5"
6044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6045 *) ac_try_echo=$ac_try;;
6047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6048 (eval "$ac_compiler -v >&5") 2>&5
6050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); }
6052 { (ac_try="$ac_compiler -V >&5"
6054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6055 *) ac_try_echo=$ac_try;;
6057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6058 (eval "$ac_compiler -V >&5") 2>&5
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); }
6064 # If we don't use `.F' as extension, the preprocessor is not run on the
6065 # input file. (Note that this only needs to work for GNU compilers.)
6068 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6069 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6070 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
6073 cat >conftest.$ac_ext <<_ACEOF
6081 rm -f conftest.$ac_objext
6082 if { (ac_try="$ac_compile"
6084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6085 *) ac_try_echo=$ac_try;;
6087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6088 (eval "$ac_compile") 2>conftest.er1
6090 grep -v '^ *+' conftest.er1 >conftest.err
6092 cat conftest.err >&5
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); } && {
6095 test -z "$ac_f77_werror_flag" ||
6096 test ! -s conftest.err
6097 } && test -s conftest.$ac_objext; then
6100 echo "$as_me: failed program was:" >&5
6101 sed 's/^/| /' conftest.$ac_ext >&5
6106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6107 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6110 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6111 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6113 ac_test_FFLAGS=${FFLAGS+set}
6114 ac_save_FFLAGS=$FFLAGS
6116 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6117 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6118 if test "${ac_cv_prog_f77_g+set}" = set; then
6119 echo $ECHO_N "(cached) $ECHO_C" >&6
6122 cat >conftest.$ac_ext <<_ACEOF
6127 rm -f conftest.$ac_objext
6128 if { (ac_try="$ac_compile"
6130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6131 *) ac_try_echo=$ac_try;;
6133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6134 (eval "$ac_compile") 2>conftest.er1
6136 grep -v '^ *+' conftest.er1 >conftest.err
6138 cat conftest.err >&5
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); } && {
6141 test -z "$ac_f77_werror_flag" ||
6142 test ! -s conftest.err
6143 } && test -s conftest.$ac_objext; then
6144 ac_cv_prog_f77_g=yes
6146 echo "$as_me: failed program was:" >&5
6147 sed 's/^/| /' conftest.$ac_ext >&5
6152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6155 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6156 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6157 if test "$ac_test_FFLAGS" = set; then
6158 FFLAGS=$ac_save_FFLAGS
6159 elif test $ac_cv_prog_f77_g = yes; then
6160 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6166 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6173 G77=`test $ac_compiler_gnu = yes && echo yes`
6175 ac_cpp='$CPP $CPPFLAGS'
6176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6182 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6183 # find the maximum length of command line arguments
6184 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6185 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6186 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6187 echo $ECHO_N "(cached) $ECHO_C" >&6
6194 # On DJGPP, this test can blow up pretty badly due to problems in libc
6195 # (any single argument exceeding 2000 bytes causes a buffer overrun
6196 # during glob expansion). Even if it were fixed, the result of this
6197 # check would be larger than it should be.
6198 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6202 # Under GNU Hurd, this test is not required because there is
6203 # no limit to the length of command line arguments.
6204 # Libtool will interpret -1 as no limit whatsoever
6205 lt_cv_sys_max_cmd_len=-1;
6209 # On Win9x/ME, this test blows up -- it succeeds, but takes
6210 # about 5 minutes as the teststring grows exponentially.
6211 # Worse, since 9x/ME are not pre-emptively multitasking,
6212 # you end up with a "frozen" computer, even though with patience
6213 # the test eventually succeeds (with a max line length of 256k).
6214 # Instead, let's just punt: use the minimum linelength reported by
6215 # all of the supported platforms: 8192 (on NT/2K/XP).
6216 lt_cv_sys_max_cmd_len=8192;
6220 # On AmigaOS with pdksh, this test takes hours, literally.
6221 # So we just punt and use a minimum line length of 8192.
6222 lt_cv_sys_max_cmd_len=8192;
6225 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6226 # This has been around since 386BSD, at least. Likely further.
6227 if test -x /sbin/sysctl; then
6228 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6229 elif test -x /usr/sbin/sysctl; then
6230 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6232 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6234 # And add a safety zone
6235 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6236 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6240 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6241 lt_cv_sys_max_cmd_len=196608
6245 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6246 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6247 # nice to cause kernel panics so lets avoid the loop below.
6248 # First set a reasonable default.
6249 lt_cv_sys_max_cmd_len=16384
6251 if test -x /sbin/sysconfig; then
6252 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6253 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6258 lt_cv_sys_max_cmd_len=102400
6260 sysv5* | sco5v6* | sysv4.2uw2*)
6261 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6262 if test -n "$kargmax"; then
6263 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6265 lt_cv_sys_max_cmd_len=32768
6269 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6270 if test -n "$lt_cv_sys_max_cmd_len"; then
6271 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6272 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6274 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6275 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6276 = "XX$teststring") >/dev/null 2>&1 &&
6277 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6278 lt_cv_sys_max_cmd_len=$new_result &&
6279 test $i != 17 # 1/2 MB should be enough
6282 teststring=$teststring$teststring
6285 # Add a significant safety factor because C++ compilers can tack on massive
6286 # amounts of additional arguments before passing them to the linker.
6287 # It appears as though 1/2 is a usable value.
6288 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6295 if test -n $lt_cv_sys_max_cmd_len ; then
6296 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6297 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6299 { echo "$as_me:$LINENO: result: none" >&5
6300 echo "${ECHO_T}none" >&6; }
6307 # Check for command to grab the raw symbol name followed by C symbol from nm.
6308 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6309 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6310 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6311 echo $ECHO_N "(cached) $ECHO_C" >&6
6314 # These are sane defaults that work on at least a few old systems.
6315 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6317 # Character class describing NM global symbol codes.
6318 symcode='[BCDEGRST]'
6320 # Regexp to match symbols that can be accessed directly from C.
6321 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6323 # Transform an extracted symbol line into a proper C declaration
6324 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6326 # Transform an extracted symbol line into symbol name and symbol address
6327 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'"
6329 # Define system-specific variables.
6334 cygwin* | mingw* | pw32*)
6335 symcode='[ABCDGISTW]'
6337 hpux*) # Its linker distinguishes data from code symbols
6338 if test "$host_cpu" = ia64; then
6339 symcode='[ABCDEGRST]'
6341 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6342 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6344 linux* | k*bsd*-gnu)
6345 if test "$host_cpu" = ia64; then
6346 symcode='[ABCDGIRSTW]'
6347 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6348 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'"
6352 symcode='[BCDEGRST]'
6355 symcode='[BCDEGQRST]'
6366 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6374 # Handle CRLF in mingw tool chain
6378 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6382 # If we're using GNU nm, then use its standard symbol codes.
6383 case `$NM -V 2>&1` in
6384 *GNU* | *'with BFD'*)
6385 symcode='[ABCDGIRSTW]' ;;
6388 # Try without a prefix undercore, then with it.
6389 for ac_symprfx in "" "_"; do
6391 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6392 symxfrm="\\1 $ac_symprfx\\2 \\2"
6394 # Write the raw and C identifiers.
6395 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6397 # Check to see that the pipe works correctly.
6401 cat > conftest.$ac_ext <<EOF
6406 void nm_test_func(){}
6410 int main(){nm_test_var='a';nm_test_func();return(0);}
6413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6414 (eval $ac_compile) 2>&5
6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); }; then
6418 # Now try to grab the symbols.
6420 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6421 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424 (exit $ac_status); } && test -s "$nlist"; then
6425 # Try sorting and uniquifying the output.
6426 if sort "$nlist" | uniq > "$nlist"T; then
6427 mv -f "$nlist"T "$nlist"
6432 # Make sure that we snagged all the symbols we need.
6433 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6434 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6435 cat <<EOF > conftest.$ac_ext
6441 # Now generate the symbol file.
6442 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6444 cat <<EOF >> conftest.$ac_ext
6445 #if defined (__STDC__) && __STDC__
6446 # define lt_ptr_t void *
6448 # define lt_ptr_t char *
6452 /* The mapping between symbol names and symbols. */
6457 lt_preloaded_symbols[] =
6460 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6461 cat <<\EOF >> conftest.$ac_ext
6469 # Now try linking the two files.
6470 mv conftest.$ac_objext conftstm.$ac_objext
6471 lt_save_LIBS="$LIBS"
6472 lt_save_CFLAGS="$CFLAGS"
6473 LIBS="conftstm.$ac_objext"
6474 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6476 (eval $ac_link) 2>&5
6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6482 LIBS="$lt_save_LIBS"
6483 CFLAGS="$lt_save_CFLAGS"
6485 echo "cannot find nm_test_func in $nlist" >&5
6488 echo "cannot find nm_test_var in $nlist" >&5
6491 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6494 echo "$progname: failed program was:" >&5
6495 cat conftest.$ac_ext >&5
6497 rm -rf conftest* conftst*
6499 # Do not use the global_symbol_pipe unless it works.
6500 if test "$pipe_works" = yes; then
6503 lt_cv_sys_global_symbol_pipe=
6509 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6510 lt_cv_sys_global_symbol_to_cdecl=
6512 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6513 { echo "$as_me:$LINENO: result: failed" >&5
6514 echo "${ECHO_T}failed" >&6; }
6516 { echo "$as_me:$LINENO: result: ok" >&5
6517 echo "${ECHO_T}ok" >&6; }
6520 { echo "$as_me:$LINENO: checking for objdir" >&5
6521 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6522 if test "${lt_cv_objdir+set}" = set; then
6523 echo $ECHO_N "(cached) $ECHO_C" >&6
6525 rm -f .libs 2>/dev/null
6526 mkdir .libs 2>/dev/null
6527 if test -d .libs; then
6530 # MS-DOS does not allow filenames that begin with a dot.
6533 rmdir .libs 2>/dev/null
6535 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6536 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6537 objdir=$lt_cv_objdir
6545 # AIX sometimes has problems with the GCC collect2 program. For some
6546 # reason, if we set the COLLECT_NAMES environment variable, the problems
6547 # vanish in a puff of smoke.
6548 if test "X${COLLECT_NAMES+set}" != Xset; then
6550 export COLLECT_NAMES
6555 # Sed substitution that helps us do robust quoting. It backslashifies
6556 # metacharacters that are still active within double-quoted strings.
6557 Xsed='sed -e 1s/^X//'
6558 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6560 # Same as above, but do not quote variable references.
6561 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6563 # Sed substitution to delay expansion of an escaped shell variable in a
6564 # double_quote_subst'ed string.
6565 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6567 # Sed substitution to avoid accidental globbing in evaled expressions
6568 no_glob_subst='s/\*/\\\*/g'
6574 default_ofile=libtool
6575 can_build_shared=yes
6577 # All known linkers require a `.a' archive for static linking (except MSVC,
6578 # which needs '.lib').
6580 ltmain="$ac_aux_dir/ltmain.sh"
6581 ofile="$default_ofile"
6582 with_gnu_ld="$lt_cv_prog_gnu_ld"
6584 if test -n "$ac_tool_prefix"; then
6585 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6586 set dummy ${ac_tool_prefix}ar; ac_word=$2
6587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6589 if test "${ac_cv_prog_AR+set}" = set; then
6590 echo $ECHO_N "(cached) $ECHO_C" >&6
6592 if test -n "$AR"; then
6593 ac_cv_prog_AR="$AR" # Let the user override the test.
6595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599 test -z "$as_dir" && as_dir=.
6600 for ac_exec_ext in '' $ac_executable_extensions; do
6601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6602 ac_cv_prog_AR="${ac_tool_prefix}ar"
6603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6613 if test -n "$AR"; then
6614 { echo "$as_me:$LINENO: result: $AR" >&5
6615 echo "${ECHO_T}$AR" >&6; }
6617 { echo "$as_me:$LINENO: result: no" >&5
6618 echo "${ECHO_T}no" >&6; }
6623 if test -z "$ac_cv_prog_AR"; then
6625 # Extract the first word of "ar", so it can be a program name with args.
6626 set dummy ar; ac_word=$2
6627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6629 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6630 echo $ECHO_N "(cached) $ECHO_C" >&6
6632 if test -n "$ac_ct_AR"; then
6633 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639 test -z "$as_dir" && as_dir=.
6640 for ac_exec_ext in '' $ac_executable_extensions; do
6641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6642 ac_cv_prog_ac_ct_AR="ar"
6643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6652 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6653 if test -n "$ac_ct_AR"; then
6654 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6655 echo "${ECHO_T}$ac_ct_AR" >&6; }
6657 { echo "$as_me:$LINENO: result: no" >&5
6658 echo "${ECHO_T}no" >&6; }
6661 if test "x$ac_ct_AR" = x; then
6664 case $cross_compiling:$ac_tool_warned in
6666 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6667 whose name does not start with the host triplet. If you think this
6668 configuration is useful to you, please write to autoconf@gnu.org." >&5
6669 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6670 whose name does not start with the host triplet. If you think this
6671 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6672 ac_tool_warned=yes ;;
6680 if test -n "$ac_tool_prefix"; then
6681 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6682 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6683 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6685 if test "${ac_cv_prog_RANLIB+set}" = set; then
6686 echo $ECHO_N "(cached) $ECHO_C" >&6
6688 if test -n "$RANLIB"; then
6689 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6695 test -z "$as_dir" && as_dir=.
6696 for ac_exec_ext in '' $ac_executable_extensions; do
6697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6698 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6708 RANLIB=$ac_cv_prog_RANLIB
6709 if test -n "$RANLIB"; then
6710 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6711 echo "${ECHO_T}$RANLIB" >&6; }
6713 { echo "$as_me:$LINENO: result: no" >&5
6714 echo "${ECHO_T}no" >&6; }
6719 if test -z "$ac_cv_prog_RANLIB"; then
6720 ac_ct_RANLIB=$RANLIB
6721 # Extract the first word of "ranlib", so it can be a program name with args.
6722 set dummy ranlib; ac_word=$2
6723 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6725 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6726 echo $ECHO_N "(cached) $ECHO_C" >&6
6728 if test -n "$ac_ct_RANLIB"; then
6729 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6735 test -z "$as_dir" && as_dir=.
6736 for ac_exec_ext in '' $ac_executable_extensions; do
6737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6738 ac_cv_prog_ac_ct_RANLIB="ranlib"
6739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6748 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6749 if test -n "$ac_ct_RANLIB"; then
6750 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6751 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6753 { echo "$as_me:$LINENO: result: no" >&5
6754 echo "${ECHO_T}no" >&6; }
6757 if test "x$ac_ct_RANLIB" = x; then
6760 case $cross_compiling:$ac_tool_warned in
6762 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6763 whose name does not start with the host triplet. If you think this
6764 configuration is useful to you, please write to autoconf@gnu.org." >&5
6765 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6766 whose name does not start with the host triplet. If you think this
6767 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6768 ac_tool_warned=yes ;;
6770 RANLIB=$ac_ct_RANLIB
6773 RANLIB="$ac_cv_prog_RANLIB"
6776 if test -n "$ac_tool_prefix"; then
6777 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6778 set dummy ${ac_tool_prefix}strip; ac_word=$2
6779 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6781 if test "${ac_cv_prog_STRIP+set}" = set; then
6782 echo $ECHO_N "(cached) $ECHO_C" >&6
6784 if test -n "$STRIP"; then
6785 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6791 test -z "$as_dir" && as_dir=.
6792 for ac_exec_ext in '' $ac_executable_extensions; do
6793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6794 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6804 STRIP=$ac_cv_prog_STRIP
6805 if test -n "$STRIP"; then
6806 { echo "$as_me:$LINENO: result: $STRIP" >&5
6807 echo "${ECHO_T}$STRIP" >&6; }
6809 { echo "$as_me:$LINENO: result: no" >&5
6810 echo "${ECHO_T}no" >&6; }
6815 if test -z "$ac_cv_prog_STRIP"; then
6817 # Extract the first word of "strip", so it can be a program name with args.
6818 set dummy strip; ac_word=$2
6819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6821 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6822 echo $ECHO_N "(cached) $ECHO_C" >&6
6824 if test -n "$ac_ct_STRIP"; then
6825 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6831 test -z "$as_dir" && as_dir=.
6832 for ac_exec_ext in '' $ac_executable_extensions; do
6833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6834 ac_cv_prog_ac_ct_STRIP="strip"
6835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6844 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6845 if test -n "$ac_ct_STRIP"; then
6846 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6847 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6849 { echo "$as_me:$LINENO: result: no" >&5
6850 echo "${ECHO_T}no" >&6; }
6853 if test "x$ac_ct_STRIP" = x; then
6856 case $cross_compiling:$ac_tool_warned in
6858 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6859 whose name does not start with the host triplet. If you think this
6860 configuration is useful to you, please write to autoconf@gnu.org." >&5
6861 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6862 whose name does not start with the host triplet. If you think this
6863 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6864 ac_tool_warned=yes ;;
6869 STRIP="$ac_cv_prog_STRIP"
6874 old_CFLAGS="$CFLAGS"
6876 # Set sane defaults for various variables
6877 test -z "$AR" && AR=ar
6878 test -z "$AR_FLAGS" && AR_FLAGS=cru
6879 test -z "$AS" && AS=as
6880 test -z "$CC" && CC=cc
6881 test -z "$LTCC" && LTCC=$CC
6882 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6883 test -z "$DLLTOOL" && DLLTOOL=dlltool
6884 test -z "$LD" && LD=ld
6885 test -z "$LN_S" && LN_S="ln -s"
6886 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6887 test -z "$NM" && NM=nm
6888 test -z "$SED" && SED=sed
6889 test -z "$OBJDUMP" && OBJDUMP=objdump
6890 test -z "$RANLIB" && RANLIB=:
6891 test -z "$STRIP" && STRIP=:
6892 test -z "$ac_objext" && ac_objext=o
6894 # Determine commands to create old-style static archives.
6895 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6896 old_postinstall_cmds='chmod 644 $oldlib'
6897 old_postuninstall_cmds=
6899 if test -n "$RANLIB"; then
6902 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6905 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6908 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6911 for cc_temp in $compiler""; do
6913 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6914 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6919 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6922 # Only perform the check for file, if the check method requires it
6923 case $deplibs_check_method in
6925 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6926 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6927 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6928 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6929 echo $ECHO_N "(cached) $ECHO_C" >&6
6933 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6936 lt_save_MAGIC_CMD="$MAGIC_CMD"
6937 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6938 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6939 for ac_dir in $ac_dummy; do
6941 test -z "$ac_dir" && ac_dir=.
6942 if test -f $ac_dir/${ac_tool_prefix}file; then
6943 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6944 if test -n "$file_magic_test_file"; then
6945 case $deplibs_check_method in
6947 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6948 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6949 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6950 $EGREP "$file_magic_regex" > /dev/null; then
6955 *** Warning: the command libtool uses to detect shared libraries,
6956 *** $file_magic_cmd, produces output that libtool cannot recognize.
6957 *** The result is that libtool may fail to recognize shared libraries
6958 *** as such. This will affect the creation of libtool libraries that
6959 *** depend on shared libraries, but programs linked with such libtool
6960 *** libraries will work regardless of this problem. Nevertheless, you
6961 *** may want to report the problem to your system manager and/or to
6962 *** bug-libtool@gnu.org
6972 MAGIC_CMD="$lt_save_MAGIC_CMD"
6977 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6978 if test -n "$MAGIC_CMD"; then
6979 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6980 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6982 { echo "$as_me:$LINENO: result: no" >&5
6983 echo "${ECHO_T}no" >&6; }
6986 if test -z "$lt_cv_path_MAGIC_CMD"; then
6987 if test -n "$ac_tool_prefix"; then
6988 { echo "$as_me:$LINENO: checking for file" >&5
6989 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6990 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6991 echo $ECHO_N "(cached) $ECHO_C" >&6
6995 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6998 lt_save_MAGIC_CMD="$MAGIC_CMD"
6999 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7000 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7001 for ac_dir in $ac_dummy; do
7003 test -z "$ac_dir" && ac_dir=.
7004 if test -f $ac_dir/file; then
7005 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7006 if test -n "$file_magic_test_file"; then
7007 case $deplibs_check_method in
7009 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7010 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7011 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7012 $EGREP "$file_magic_regex" > /dev/null; then
7017 *** Warning: the command libtool uses to detect shared libraries,
7018 *** $file_magic_cmd, produces output that libtool cannot recognize.
7019 *** The result is that libtool may fail to recognize shared libraries
7020 *** as such. This will affect the creation of libtool libraries that
7021 *** depend on shared libraries, but programs linked with such libtool
7022 *** libraries will work regardless of this problem. Nevertheless, you
7023 *** may want to report the problem to your system manager and/or to
7024 *** bug-libtool@gnu.org
7034 MAGIC_CMD="$lt_save_MAGIC_CMD"
7039 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7040 if test -n "$MAGIC_CMD"; then
7041 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7042 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7044 { echo "$as_me:$LINENO: result: no" >&5
7045 echo "${ECHO_T}no" >&6; }
7059 rhapsody* | darwin*)
7060 if test -n "$ac_tool_prefix"; then
7061 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7062 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7063 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7065 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7066 echo $ECHO_N "(cached) $ECHO_C" >&6
7068 if test -n "$DSYMUTIL"; then
7069 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075 test -z "$as_dir" && as_dir=.
7076 for ac_exec_ext in '' $ac_executable_extensions; do
7077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7078 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7088 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7089 if test -n "$DSYMUTIL"; then
7090 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7091 echo "${ECHO_T}$DSYMUTIL" >&6; }
7093 { echo "$as_me:$LINENO: result: no" >&5
7094 echo "${ECHO_T}no" >&6; }
7099 if test -z "$ac_cv_prog_DSYMUTIL"; then
7100 ac_ct_DSYMUTIL=$DSYMUTIL
7101 # Extract the first word of "dsymutil", so it can be a program name with args.
7102 set dummy dsymutil; ac_word=$2
7103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7105 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7106 echo $ECHO_N "(cached) $ECHO_C" >&6
7108 if test -n "$ac_ct_DSYMUTIL"; then
7109 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7115 test -z "$as_dir" && as_dir=.
7116 for ac_exec_ext in '' $ac_executable_extensions; do
7117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7118 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7128 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7129 if test -n "$ac_ct_DSYMUTIL"; then
7130 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7131 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7133 { echo "$as_me:$LINENO: result: no" >&5
7134 echo "${ECHO_T}no" >&6; }
7137 if test "x$ac_ct_DSYMUTIL" = x; then
7140 case $cross_compiling:$ac_tool_warned in
7142 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7143 whose name does not start with the host triplet. If you think this
7144 configuration is useful to you, please write to autoconf@gnu.org." >&5
7145 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7146 whose name does not start with the host triplet. If you think this
7147 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7148 ac_tool_warned=yes ;;
7150 DSYMUTIL=$ac_ct_DSYMUTIL
7153 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7156 if test -n "$ac_tool_prefix"; then
7157 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7158 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7161 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7162 echo $ECHO_N "(cached) $ECHO_C" >&6
7164 if test -n "$NMEDIT"; then
7165 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171 test -z "$as_dir" && as_dir=.
7172 for ac_exec_ext in '' $ac_executable_extensions; do
7173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7174 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7184 NMEDIT=$ac_cv_prog_NMEDIT
7185 if test -n "$NMEDIT"; then
7186 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7187 echo "${ECHO_T}$NMEDIT" >&6; }
7189 { echo "$as_me:$LINENO: result: no" >&5
7190 echo "${ECHO_T}no" >&6; }
7195 if test -z "$ac_cv_prog_NMEDIT"; then
7196 ac_ct_NMEDIT=$NMEDIT
7197 # Extract the first word of "nmedit", so it can be a program name with args.
7198 set dummy nmedit; ac_word=$2
7199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7201 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7202 echo $ECHO_N "(cached) $ECHO_C" >&6
7204 if test -n "$ac_ct_NMEDIT"; then
7205 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7211 test -z "$as_dir" && as_dir=.
7212 for ac_exec_ext in '' $ac_executable_extensions; do
7213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7214 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7224 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7225 if test -n "$ac_ct_NMEDIT"; then
7226 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7227 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7229 { echo "$as_me:$LINENO: result: no" >&5
7230 echo "${ECHO_T}no" >&6; }
7233 if test "x$ac_ct_NMEDIT" = x; then
7236 case $cross_compiling:$ac_tool_warned in
7238 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7239 whose name does not start with the host triplet. If you think this
7240 configuration is useful to you, please write to autoconf@gnu.org." >&5
7241 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7242 whose name does not start with the host triplet. If you think this
7243 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7244 ac_tool_warned=yes ;;
7246 NMEDIT=$ac_ct_NMEDIT
7249 NMEDIT="$ac_cv_prog_NMEDIT"
7253 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7254 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7255 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7256 echo $ECHO_N "(cached) $ECHO_C" >&6
7258 lt_cv_apple_cc_single_mod=no
7259 if test -z "${LT_MULTI_MODULE}"; then
7260 # By default we will add the -single_module flag. You can override
7261 # by either setting the environment variable LT_MULTI_MODULE
7262 # non-empty at configure time, or by adding -multi_module to the
7264 echo "int foo(void){return 1;}" > conftest.c
7265 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7266 -dynamiclib ${wl}-single_module conftest.c
7267 if test -f libconftest.dylib; then
7268 lt_cv_apple_cc_single_mod=yes
7269 rm -rf libconftest.dylib*
7274 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7275 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7276 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7277 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7278 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7279 echo $ECHO_N "(cached) $ECHO_C" >&6
7281 lt_cv_ld_exported_symbols_list=no
7282 save_LDFLAGS=$LDFLAGS
7283 echo "_main" > conftest.sym
7284 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7285 cat >conftest.$ac_ext <<_ACEOF
7288 cat confdefs.h >>conftest.$ac_ext
7289 cat >>conftest.$ac_ext <<_ACEOF
7290 /* end confdefs.h. */
7300 rm -f conftest.$ac_objext conftest$ac_exeext
7301 if { (ac_try="$ac_link"
7303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7304 *) ac_try_echo=$ac_try;;
7306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7307 (eval "$ac_link") 2>conftest.er1
7309 grep -v '^ *+' conftest.er1 >conftest.err
7311 cat conftest.err >&5
7312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313 (exit $ac_status); } && {
7314 test -z "$ac_c_werror_flag" ||
7315 test ! -s conftest.err
7316 } && test -s conftest$ac_exeext &&
7317 $as_test_x conftest$ac_exeext; then
7318 lt_cv_ld_exported_symbols_list=yes
7320 echo "$as_me: failed program was:" >&5
7321 sed 's/^/| /' conftest.$ac_ext >&5
7323 lt_cv_ld_exported_symbols_list=no
7326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7327 conftest$ac_exeext conftest.$ac_ext
7328 LDFLAGS="$save_LDFLAGS"
7331 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7332 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7334 rhapsody* | darwin1.[0123])
7335 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7337 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7339 # if running on 10.5 or later, the deployment target defaults
7340 # to the OS version, if on x86, and 10.4, the deployment
7341 # target defaults to 10.4. Don't you love it?
7342 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7343 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7344 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7346 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7348 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7352 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7353 _lt_dar_single_mod='$single_module'
7355 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7356 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7358 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7360 if test "$DSYMUTIL" != ":"; then
7361 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7372 # Check whether --enable-libtool-lock was given.
7373 if test "${enable_libtool_lock+set}" = set; then
7374 enableval=$enable_libtool_lock;
7377 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7380 # Check whether --with-pic was given.
7381 if test "${with_pic+set}" = set; then
7382 withval=$with_pic; pic_mode="$withval"
7387 test -z "$pic_mode" && pic_mode=default
7389 # Use C for the default configuration in the libtool script
7393 ac_cpp='$CPP $CPPFLAGS'
7394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7399 # Source file extension for C test sources.
7402 # Object file extension for compiled C test sources.
7406 # Code to be used in simple compile tests
7407 lt_simple_compile_test_code="int some_variable = 0;"
7409 # Code to be used in simple link tests
7410 lt_simple_link_test_code='int main(){return(0);}'
7413 # If no C compiler was specified, use CC.
7416 # If no C compiler flags were specified, use CFLAGS.
7417 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7419 # Allow CC to be a program name with arguments.
7423 # save warnings/boilerplate of simple test code
7424 ac_outfile=conftest.$ac_objext
7425 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7426 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7427 _lt_compiler_boilerplate=`cat conftest.err`
7430 ac_outfile=conftest.$ac_objext
7431 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7432 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7433 _lt_linker_boilerplate=`cat conftest.err`
7438 lt_prog_compiler_no_builtin_flag=
7440 if test "$GCC" = yes; then
7441 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7444 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7445 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7446 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7447 echo $ECHO_N "(cached) $ECHO_C" >&6
7449 lt_cv_prog_compiler_rtti_exceptions=no
7450 ac_outfile=conftest.$ac_objext
7451 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7452 lt_compiler_flag="-fno-rtti -fno-exceptions"
7453 # Insert the option either (1) after the last *FLAGS variable, or
7454 # (2) before a word containing "conftest.", or (3) at the end.
7455 # Note that $ac_compile itself does not contain backslashes and begins
7456 # with a dollar sign (not a hyphen), so the echo should work correctly.
7457 # The option is referenced via a variable to avoid confusing sed.
7458 lt_compile=`echo "$ac_compile" | $SED \
7459 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7460 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7461 -e 's:$: $lt_compiler_flag:'`
7462 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7463 (eval "$lt_compile" 2>conftest.err)
7465 cat conftest.err >&5
7466 echo "$as_me:__oline__: \$? = $ac_status" >&5
7467 if (exit $ac_status) && test -s "$ac_outfile"; then
7468 # The compiler can only warn and ignore the option if not recognized
7469 # So say no if there are warnings other than the usual output.
7470 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7471 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7472 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7473 lt_cv_prog_compiler_rtti_exceptions=yes
7479 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7480 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7482 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7483 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7490 lt_prog_compiler_wl=
7491 lt_prog_compiler_pic=
7492 lt_prog_compiler_static=
7494 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7495 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7497 if test "$GCC" = yes; then
7498 lt_prog_compiler_wl='-Wl,'
7499 lt_prog_compiler_static='-static'
7503 # All AIX code is PIC.
7504 if test "$host_cpu" = ia64; then
7505 # AIX 5 now supports IA64 processor
7506 lt_prog_compiler_static='-Bstatic'
7511 # FIXME: we need at least 68020 code to build shared libraries, but
7512 # adding the `-m68020' flag to GCC prevents building anything better,
7514 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7517 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7518 # PIC is the default for these OSes.
7521 mingw* | cygwin* | pw32* | os2*)
7522 # This hack is so that the source file can tell whether it is being
7523 # built for inclusion in a dll (and should export symbols for example).
7524 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7525 # (--disable-auto-import) libraries
7526 lt_prog_compiler_pic='-DDLL_EXPORT'
7529 darwin* | rhapsody*)
7530 # PIC is the default on this platform
7531 # Common symbols not allowed in MH_DYLIB files
7532 lt_prog_compiler_pic='-fno-common'
7536 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7537 # Instead, we relocate shared libraries at runtime.
7541 # Just because we use GCC doesn't mean we suddenly get shared libraries
7542 # on systems that don't support them.
7543 lt_prog_compiler_can_build_shared=no
7548 if test -d /usr/nec; then
7549 lt_prog_compiler_pic=-Kconform_pic
7554 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7561 lt_prog_compiler_pic='-fPIC'
7567 lt_prog_compiler_pic='-fPIC'
7571 # PORTME Check for flag to pass linker flags through the system compiler.
7574 lt_prog_compiler_wl='-Wl,'
7575 if test "$host_cpu" = ia64; then
7576 # AIX 5 now supports IA64 processor
7577 lt_prog_compiler_static='-Bstatic'
7579 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7583 # PIC is the default on this platform
7584 # Common symbols not allowed in MH_DYLIB files
7585 case $cc_basename in
7587 lt_prog_compiler_pic='-qnocommon'
7588 lt_prog_compiler_wl='-Wl,'
7593 mingw* | cygwin* | pw32* | os2*)
7594 # This hack is so that the source file can tell whether it is being
7595 # built for inclusion in a dll (and should export symbols for example).
7596 lt_prog_compiler_pic='-DDLL_EXPORT'
7599 hpux9* | hpux10* | hpux11*)
7600 lt_prog_compiler_wl='-Wl,'
7601 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7608 lt_prog_compiler_pic='+Z'
7611 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7612 lt_prog_compiler_static='${wl}-a ${wl}archive'
7615 irix5* | irix6* | nonstopux*)
7616 lt_prog_compiler_wl='-Wl,'
7617 # PIC (with -KPIC) is the default.
7618 lt_prog_compiler_static='-non_shared'
7622 lt_prog_compiler_pic='-KPIC'
7623 lt_prog_compiler_static='-Bstatic'
7626 linux* | k*bsd*-gnu)
7627 case $cc_basename in
7629 lt_prog_compiler_wl='-Wl,'
7630 lt_prog_compiler_pic='-KPIC'
7631 lt_prog_compiler_static='-static'
7633 pgcc* | pgf77* | pgf90* | pgf95*)
7634 # Portland Group compilers (*not* the Pentium gcc compiler,
7635 # which looks to be a dead project)
7636 lt_prog_compiler_wl='-Wl,'
7637 lt_prog_compiler_pic='-fpic'
7638 lt_prog_compiler_static='-Bstatic'
7641 lt_prog_compiler_wl='-Wl,'
7642 # All Alpha code is PIC.
7643 lt_prog_compiler_static='-non_shared'
7646 case `$CC -V 2>&1 | sed 5q` in
7649 lt_prog_compiler_pic='-KPIC'
7650 lt_prog_compiler_static='-Bstatic'
7651 lt_prog_compiler_wl='-Wl,'
7654 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7655 lt_prog_compiler_pic='-KPIC'
7656 lt_prog_compiler_static='-Bstatic'
7657 lt_prog_compiler_wl=''
7664 osf3* | osf4* | osf5*)
7665 lt_prog_compiler_wl='-Wl,'
7666 # All OSF/1 code is PIC.
7667 lt_prog_compiler_static='-non_shared'
7671 lt_prog_compiler_static='-non_shared'
7675 lt_prog_compiler_pic='-KPIC'
7676 lt_prog_compiler_static='-Bstatic'
7677 case $cc_basename in
7679 lt_prog_compiler_wl='-Qoption ld ';;
7681 lt_prog_compiler_wl='-Wl,';;
7686 lt_prog_compiler_wl='-Qoption ld '
7687 lt_prog_compiler_pic='-PIC'
7688 lt_prog_compiler_static='-Bstatic'
7691 sysv4 | sysv4.2uw2* | sysv4.3*)
7692 lt_prog_compiler_wl='-Wl,'
7693 lt_prog_compiler_pic='-KPIC'
7694 lt_prog_compiler_static='-Bstatic'
7698 if test -d /usr/nec ;then
7699 lt_prog_compiler_pic='-Kconform_pic'
7700 lt_prog_compiler_static='-Bstatic'
7704 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7705 lt_prog_compiler_wl='-Wl,'
7706 lt_prog_compiler_pic='-KPIC'
7707 lt_prog_compiler_static='-Bstatic'
7711 lt_prog_compiler_wl='-Wl,'
7712 lt_prog_compiler_can_build_shared=no
7716 lt_prog_compiler_pic='-pic'
7717 lt_prog_compiler_static='-Bstatic'
7721 lt_prog_compiler_can_build_shared=no
7726 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7727 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7730 # Check to make sure the PIC flag actually works.
7732 if test -n "$lt_prog_compiler_pic"; then
7734 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7735 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7736 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7737 echo $ECHO_N "(cached) $ECHO_C" >&6
7739 lt_cv_prog_compiler_pic_works=no
7740 ac_outfile=conftest.$ac_objext
7741 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7742 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7743 # Insert the option either (1) after the last *FLAGS variable, or
7744 # (2) before a word containing "conftest.", or (3) at the end.
7745 # Note that $ac_compile itself does not contain backslashes and begins
7746 # with a dollar sign (not a hyphen), so the echo should work correctly.
7747 # The option is referenced via a variable to avoid confusing sed.
7748 lt_compile=`echo "$ac_compile" | $SED \
7749 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7750 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7751 -e 's:$: $lt_compiler_flag:'`
7752 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7753 (eval "$lt_compile" 2>conftest.err)
7755 cat conftest.err >&5
7756 echo "$as_me:__oline__: \$? = $ac_status" >&5
7757 if (exit $ac_status) && test -s "$ac_outfile"; then
7758 # The compiler can only warn and ignore the option if not recognized
7759 # So say no if there are warnings other than the usual output.
7760 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7761 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7762 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7763 lt_cv_prog_compiler_pic_works=yes
7769 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7770 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7772 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7773 case $lt_prog_compiler_pic in
7775 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7778 lt_prog_compiler_pic=
7779 lt_prog_compiler_can_build_shared=no
7784 # For platforms which do not support PIC, -DPIC is meaningless:
7786 lt_prog_compiler_pic=
7789 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7794 # Check to make sure the static flag actually works.
7796 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7797 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7798 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7799 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7800 echo $ECHO_N "(cached) $ECHO_C" >&6
7802 lt_cv_prog_compiler_static_works=no
7803 save_LDFLAGS="$LDFLAGS"
7804 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7805 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7806 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7807 # The linker can only warn and ignore the option if not recognized
7808 # So say no if there are warnings
7809 if test -s conftest.err; then
7810 # Append any errors to the config.log.
7811 cat conftest.err 1>&5
7812 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7813 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7814 if diff conftest.exp conftest.er2 >/dev/null; then
7815 lt_cv_prog_compiler_static_works=yes
7818 lt_cv_prog_compiler_static_works=yes
7822 LDFLAGS="$save_LDFLAGS"
7825 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7826 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7828 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7831 lt_prog_compiler_static=
7835 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7836 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7837 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7838 echo $ECHO_N "(cached) $ECHO_C" >&6
7840 lt_cv_prog_compiler_c_o=no
7841 $rm -r conftest 2>/dev/null
7845 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7847 lt_compiler_flag="-o out/conftest2.$ac_objext"
7848 # Insert the option either (1) after the last *FLAGS variable, or
7849 # (2) before a word containing "conftest.", or (3) at the end.
7850 # Note that $ac_compile itself does not contain backslashes and begins
7851 # with a dollar sign (not a hyphen), so the echo should work correctly.
7852 lt_compile=`echo "$ac_compile" | $SED \
7853 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7854 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7855 -e 's:$: $lt_compiler_flag:'`
7856 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7857 (eval "$lt_compile" 2>out/conftest.err)
7859 cat out/conftest.err >&5
7860 echo "$as_me:__oline__: \$? = $ac_status" >&5
7861 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7863 # The compiler can only warn and ignore the option if not recognized
7864 # So say no if there are warnings
7865 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7866 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7867 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7868 lt_cv_prog_compiler_c_o=yes
7873 # SGI C++ compiler will create directory out/ii_files/ for
7874 # template instantiation
7875 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7876 $rm out/* && rmdir out
7882 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7883 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7886 hard_links="nottested"
7887 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7888 # do not overwrite the value of need_locks provided by the user
7889 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7890 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7893 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7895 ln conftest.a conftest.b 2>&5 || hard_links=no
7896 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7897 { echo "$as_me:$LINENO: result: $hard_links" >&5
7898 echo "${ECHO_T}$hard_links" >&6; }
7899 if test "$hard_links" = no; then
7900 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7901 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7908 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7909 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7912 allow_undefined_flag=
7913 enable_shared_with_static_runtimes=no
7915 archive_expsym_cmds=
7916 old_archive_From_new_cmds=
7917 old_archive_from_expsyms_cmds=
7918 export_dynamic_flag_spec=
7919 whole_archive_flag_spec=
7920 thread_safe_flag_spec=
7921 hardcode_libdir_flag_spec=
7922 hardcode_libdir_flag_spec_ld=
7923 hardcode_libdir_separator=
7926 hardcode_shlibpath_var=unsupported
7927 link_all_deplibs=unknown
7928 hardcode_automatic=no
7931 always_export_symbols=no
7932 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7933 # include_expsyms should be a list of space-separated symbols to be *always*
7934 # included in the symbol list
7936 # exclude_expsyms can be an extended regexp of symbols to exclude
7937 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7938 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7939 # as well as any symbol that contains `d'.
7940 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7941 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7942 # platforms (ab)use it in PIC code, but their linkers get confused if
7943 # the symbol is explicitly referenced. Since portable code cannot
7944 # rely on this symbol name, it's probably fine to never include it in
7945 # preloaded symbol tables.
7946 # Exclude shared library initialization/finalization symbols.
7947 extract_expsyms_cmds=
7948 # Just being paranoid about ensuring that cc_basename is set.
7949 for cc_temp in $compiler""; do
7951 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7952 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7957 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7960 cygwin* | mingw* | pw32*)
7961 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7962 # When not using gcc, we currently assume that we are using
7963 # Microsoft Visual C++.
7964 if test "$GCC" != yes; then
7969 # we just hope/assume this is gcc and not c89 (= MSVC++)
7978 if test "$with_gnu_ld" = yes; then
7979 # If archive_cmds runs LD, not CC, wlarc should be empty
7982 # Set some defaults for GNU ld with shared library support. These
7983 # are reset later if shared libraries are not supported. Putting them
7984 # here allows them to be overridden if necessary.
7985 runpath_var=LD_RUN_PATH
7986 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7987 export_dynamic_flag_spec='${wl}--export-dynamic'
7988 # ancient GNU ld didn't support --whole-archive et. al.
7989 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7990 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7992 whole_archive_flag_spec=
7994 supports_anon_versioning=no
7995 case `$LD -v 2>/dev/null` in
7996 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7997 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7998 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7999 *\ 2.11.*) ;; # other 2.11 versions
8000 *) supports_anon_versioning=yes ;;
8003 # See if GNU ld supports shared libraries.
8006 # On AIX/PPC, the GNU linker is very broken
8007 if test "$host_cpu" != ia64; then
8011 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8012 *** to be unable to reliably create shared libraries on AIX.
8013 *** Therefore, libtool is disabling shared libraries support. If you
8014 *** really care for shared libraries, you may want to modify your PATH
8015 *** so that a non-GNU linker is found, and then restart.
8022 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)'
8023 hardcode_libdir_flag_spec='-L$libdir'
8024 hardcode_minus_L=yes
8026 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8027 # that the semantics of dynamic libraries on AmigaOS, at least up
8028 # to version 4, is to share data among multiple programs linked
8029 # with the same dynamic library. Since this doesn't match the
8030 # behavior of shared libraries on other platforms, we can't use
8036 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8037 allow_undefined_flag=unsupported
8038 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8039 # support --undefined. This deserves some investigation. FIXME
8040 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8046 cygwin* | mingw* | pw32*)
8047 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8048 # as there is no search path for DLLs.
8049 hardcode_libdir_flag_spec='-L$libdir'
8050 allow_undefined_flag=unsupported
8051 always_export_symbols=no
8052 enable_shared_with_static_runtimes=yes
8053 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8055 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8056 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8057 # If the export-symbols file already is a .def file (1st line
8058 # is EXPORTS), use it as is; otherwise, prepend...
8059 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8060 cp $export_symbols $output_objdir/$soname.def;
8062 echo EXPORTS > $output_objdir/$soname.def;
8063 cat $export_symbols >> $output_objdir/$soname.def;
8065 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8073 hardcode_shlibpath_var=no
8074 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8075 export_dynamic_flag_spec='${wl}-E'
8076 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8077 # Instead, shared libraries are loaded at an image base (0x10000000 by
8078 # default) and relocated if they conflict, which is a slow very memory
8079 # consuming and fragmenting process. To avoid this, we pick a random,
8080 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8081 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8082 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8083 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8086 gnu* | linux* | k*bsd*-gnu)
8087 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8089 case $cc_basename,$host_cpu in
8090 pgcc*) # Portland Group C compiler
8091 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'
8092 tmp_addflag=' $pic_flag'
8094 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8095 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'
8096 tmp_addflag=' $pic_flag -Mnomain' ;;
8097 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8098 tmp_addflag=' -i_dynamic' ;;
8099 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8100 tmp_addflag=' -i_dynamic -nofor_main' ;;
8101 ifc* | ifort*) # Intel Fortran compiler
8102 tmp_addflag=' -nofor_main' ;;
8104 case `$CC -V 2>&1 | sed 5q` in
8105 *Sun\ C*) # Sun C 5.9
8106 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8107 tmp_sharedflag='-G' ;;
8108 *Sun\ F*) # Sun Fortran 8.3
8109 tmp_sharedflag='-G' ;;
8111 tmp_sharedflag='-shared' ;;
8113 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8115 if test $supports_anon_versioning = yes; then
8116 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8117 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8118 $echo "local: *; };" >> $output_objdir/$libname.ver~
8119 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8127 netbsd* | netbsdelf*-gnu)
8128 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8129 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8132 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8133 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8138 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8142 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8143 *** create shared libraries on Solaris systems. Therefore, libtool
8144 *** is disabling shared libraries support. We urge you to upgrade GNU
8145 *** binutils to release 2.9.1 or newer. Another option is to modify
8146 *** your PATH or compiler configuration so that the native linker is
8147 *** used, and then restart.
8150 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8151 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8152 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8158 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8159 case `$LD -v 2>&1` in
8160 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8164 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8165 *** reliably create shared libraries on SCO systems. Therefore, libtool
8166 *** is disabling shared libraries support. We urge you to upgrade GNU
8167 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8168 *** your PATH or compiler configuration so that the native linker is
8169 *** used, and then restart.
8174 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8175 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8176 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8177 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8186 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8189 hardcode_shlibpath_var=no
8193 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8194 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8195 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8202 if test "$ld_shlibs" = no; then
8204 hardcode_libdir_flag_spec=
8205 export_dynamic_flag_spec=
8206 whole_archive_flag_spec=
8209 # PORTME fill in a description of your system's linker (not GNU ld)
8212 allow_undefined_flag=unsupported
8213 always_export_symbols=yes
8214 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'
8215 # Note: this linker hardcodes the directories in LIBPATH if there
8216 # are no directories specified by -L.
8217 hardcode_minus_L=yes
8218 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8219 # Neither direct hardcoding nor static linking is supported with a
8221 hardcode_direct=unsupported
8226 if test "$host_cpu" = ia64; then
8227 # On IA64, the linker does run time linking by default, so we don't
8228 # have to do anything special.
8229 aix_use_runtimelinking=no
8230 exp_sym_flag='-Bexport'
8233 # If we're using GNU nm, then we don't want the "-C" option.
8234 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8235 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8236 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'
8238 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'
8240 aix_use_runtimelinking=no
8242 # Test if we are trying to use run time linking or normal
8243 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8244 # need to do runtime linking.
8245 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8246 for ld_flag in $LDFLAGS; do
8247 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8248 aix_use_runtimelinking=yes
8255 exp_sym_flag='-bexport'
8256 no_entry_flag='-bnoentry'
8259 # When large executables or shared objects are built, AIX ld can
8260 # have problems creating the table of contents. If linking a library
8261 # or program results in "error TOC overflow" add -mminimal-toc to
8262 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8263 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8267 hardcode_libdir_separator=':'
8268 link_all_deplibs=yes
8270 if test "$GCC" = yes; then
8271 case $host_os in aix4.[012]|aix4.[012].*)
8272 # We only want to do this on AIX 4.2 and lower, the check
8273 # below for broken collect2 doesn't work under 4.3+
8274 collect2name=`${CC} -print-prog-name=collect2`
8275 if test -f "$collect2name" && \
8276 strings "$collect2name" | grep resolve_lib_name >/dev/null
8278 # We have reworked collect2
8281 # We have old collect2
8282 hardcode_direct=unsupported
8283 # It fails to find uninstalled libraries when the uninstalled
8284 # path is not listed in the libpath. Setting hardcode_minus_L
8285 # to unsupported forces relinking
8286 hardcode_minus_L=yes
8287 hardcode_libdir_flag_spec='-L$libdir'
8288 hardcode_libdir_separator=
8292 shared_flag='-shared'
8293 if test "$aix_use_runtimelinking" = yes; then
8294 shared_flag="$shared_flag "'${wl}-G'
8298 if test "$host_cpu" = ia64; then
8299 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8300 # chokes on -Wl,-G. The following line is correct:
8303 if test "$aix_use_runtimelinking" = yes; then
8304 shared_flag='${wl}-G'
8306 shared_flag='${wl}-bM:SRE'
8311 # It seems that -bexpall does not export symbols beginning with
8312 # underscore (_), so it is better to generate a list of symbols to export.
8313 always_export_symbols=yes
8314 if test "$aix_use_runtimelinking" = yes; then
8315 # Warning - without using the other runtime loading flags (-brtl),
8316 # -berok will link without error, but may produce a broken library.
8317 allow_undefined_flag='-berok'
8318 # Determine the default libpath from the value encoded in an empty executable.
8319 cat >conftest.$ac_ext <<_ACEOF
8322 cat confdefs.h >>conftest.$ac_ext
8323 cat >>conftest.$ac_ext <<_ACEOF
8324 /* end confdefs.h. */
8334 rm -f conftest.$ac_objext conftest$ac_exeext
8335 if { (ac_try="$ac_link"
8337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8338 *) ac_try_echo=$ac_try;;
8340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8341 (eval "$ac_link") 2>conftest.er1
8343 grep -v '^ *+' conftest.er1 >conftest.err
8345 cat conftest.err >&5
8346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347 (exit $ac_status); } && {
8348 test -z "$ac_c_werror_flag" ||
8349 test ! -s conftest.err
8350 } && test -s conftest$ac_exeext &&
8351 $as_test_x conftest$ac_exeext; then
8353 lt_aix_libpath_sed='
8354 /Import File Strings/,/^$/ {
8360 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8361 # Check for a 64-bit object if we didn't find anything.
8362 if test -z "$aix_libpath"; then
8363 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8366 echo "$as_me: failed program was:" >&5
8367 sed 's/^/| /' conftest.$ac_ext >&5
8372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8373 conftest$ac_exeext conftest.$ac_ext
8374 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8376 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8377 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8379 if test "$host_cpu" = ia64; then
8380 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8381 allow_undefined_flag="-z nodefs"
8382 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8384 # Determine the default libpath from the value encoded in an empty executable.
8385 cat >conftest.$ac_ext <<_ACEOF
8388 cat confdefs.h >>conftest.$ac_ext
8389 cat >>conftest.$ac_ext <<_ACEOF
8390 /* end confdefs.h. */
8400 rm -f conftest.$ac_objext conftest$ac_exeext
8401 if { (ac_try="$ac_link"
8403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8404 *) ac_try_echo=$ac_try;;
8406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8407 (eval "$ac_link") 2>conftest.er1
8409 grep -v '^ *+' conftest.er1 >conftest.err
8411 cat conftest.err >&5
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); } && {
8414 test -z "$ac_c_werror_flag" ||
8415 test ! -s conftest.err
8416 } && test -s conftest$ac_exeext &&
8417 $as_test_x conftest$ac_exeext; then
8419 lt_aix_libpath_sed='
8420 /Import File Strings/,/^$/ {
8426 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8427 # Check for a 64-bit object if we didn't find anything.
8428 if test -z "$aix_libpath"; then
8429 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8432 echo "$as_me: failed program was:" >&5
8433 sed 's/^/| /' conftest.$ac_ext >&5
8438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8439 conftest$ac_exeext conftest.$ac_ext
8440 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8442 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8443 # Warning - without using the other run time loading flags,
8444 # -berok will link without error, but may produce a broken library.
8445 no_undefined_flag=' ${wl}-bernotok'
8446 allow_undefined_flag=' ${wl}-berok'
8447 # Exported symbols can be pulled into shared objects from archives
8448 whole_archive_flag_spec='$convenience'
8449 archive_cmds_need_lc=yes
8450 # This is similar to how AIX traditionally builds its shared libraries.
8451 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8457 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)'
8458 hardcode_libdir_flag_spec='-L$libdir'
8459 hardcode_minus_L=yes
8460 # see comment about different semantics on the GNU ld section
8465 export_dynamic_flag_spec=-rdynamic
8468 cygwin* | mingw* | pw32*)
8469 # When not using gcc, we currently assume that we are using
8470 # Microsoft Visual C++.
8471 # hardcode_libdir_flag_spec is actually meaningless, as there is
8472 # no search path for DLLs.
8473 hardcode_libdir_flag_spec=' '
8474 allow_undefined_flag=unsupported
8475 # Tell ltmain to make .lib files, not .a files.
8477 # Tell ltmain to make .dll files, not .so files.
8479 # FIXME: Setting linknames here is a bad hack.
8480 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8481 # The linker will automatically build a .lib file if we build a DLL.
8482 old_archive_From_new_cmds='true'
8483 # FIXME: Should let the user specify the lib program.
8484 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8485 fix_srcfile_path='`cygpath -w "$srcfile"`'
8486 enable_shared_with_static_runtimes=yes
8489 darwin* | rhapsody*)
8491 rhapsody* | darwin1.[012])
8492 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8495 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8496 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8498 case ${MACOSX_DEPLOYMENT_TARGET} in
8500 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8503 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8509 archive_cmds_need_lc=no
8511 hardcode_automatic=yes
8512 hardcode_shlibpath_var=unsupported
8513 whole_archive_flag_spec=''
8514 link_all_deplibs=yes
8515 if test "$GCC" = yes ; then
8516 output_verbose_link_cmd='echo'
8517 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8518 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8519 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8520 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8522 case $cc_basename in
8524 output_verbose_link_cmd='echo'
8525 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8526 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8527 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8528 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8529 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}'
8539 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8540 hardcode_libdir_flag_spec='-L$libdir'
8541 hardcode_shlibpath_var=no
8548 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8549 # support. Future versions do this automatically, but an explicit c++rt0.o
8550 # does not break anything, and helps significantly (at the cost of a little
8553 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8554 hardcode_libdir_flag_spec='-R$libdir'
8556 hardcode_shlibpath_var=no
8559 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8561 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8563 hardcode_minus_L=yes
8564 hardcode_shlibpath_var=no
8567 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8568 freebsd* | dragonfly*)
8569 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8570 hardcode_libdir_flag_spec='-R$libdir'
8572 hardcode_shlibpath_var=no
8576 if test "$GCC" = yes; then
8577 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'
8579 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'
8581 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8582 hardcode_libdir_separator=:
8585 # hardcode_minus_L: Not really in the search PATH,
8586 # but as the default location of the library.
8587 hardcode_minus_L=yes
8588 export_dynamic_flag_spec='${wl}-E'
8592 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8593 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8595 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8597 if test "$with_gnu_ld" = no; then
8598 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8599 hardcode_libdir_separator=:
8602 export_dynamic_flag_spec='${wl}-E'
8604 # hardcode_minus_L: Not really in the search PATH,
8605 # but as the default location of the library.
8606 hardcode_minus_L=yes
8611 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8614 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8617 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8620 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8626 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8629 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8632 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8636 if test "$with_gnu_ld" = no; then
8637 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8638 hardcode_libdir_separator=:
8642 hardcode_libdir_flag_spec_ld='+b $libdir'
8644 hardcode_shlibpath_var=no
8648 export_dynamic_flag_spec='${wl}-E'
8650 # hardcode_minus_L: Not really in the search PATH,
8651 # but as the default location of the library.
8652 hardcode_minus_L=yes
8658 irix5* | irix6* | nonstopux*)
8659 if test "$GCC" = yes; then
8660 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'
8662 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'
8663 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8665 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8666 hardcode_libdir_separator=:
8667 link_all_deplibs=yes
8670 netbsd* | netbsdelf*-gnu)
8671 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8672 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8674 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8676 hardcode_libdir_flag_spec='-R$libdir'
8678 hardcode_shlibpath_var=no
8682 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8684 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8685 hardcode_libdir_separator=:
8686 hardcode_shlibpath_var=no
8690 if test -f /usr/libexec/ld.so; then
8692 hardcode_shlibpath_var=no
8693 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8694 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8695 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8696 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8697 export_dynamic_flag_spec='${wl}-E'
8700 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8701 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8702 hardcode_libdir_flag_spec='-R$libdir'
8705 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8706 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8716 hardcode_libdir_flag_spec='-L$libdir'
8717 hardcode_minus_L=yes
8718 allow_undefined_flag=unsupported
8719 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'
8720 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8724 if test "$GCC" = yes; then
8725 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8726 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'
8728 allow_undefined_flag=' -expect_unresolved \*'
8729 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'
8731 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8732 hardcode_libdir_separator=:
8735 osf4* | osf5*) # as osf3* with the addition of -msym flag
8736 if test "$GCC" = yes; then
8737 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8738 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'
8739 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8741 allow_undefined_flag=' -expect_unresolved \*'
8742 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'
8743 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8744 $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'
8746 # Both c and cxx compiler support -rpath directly
8747 hardcode_libdir_flag_spec='-rpath $libdir'
8749 hardcode_libdir_separator=:
8753 no_undefined_flag=' -z text'
8754 if test "$GCC" = yes; then
8756 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8757 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8758 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8761 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8762 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8763 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8765 hardcode_libdir_flag_spec='-R$libdir'
8766 hardcode_shlibpath_var=no
8768 solaris2.[0-5] | solaris2.[0-5].*) ;;
8770 # The compiler driver will combine and reorder linker options,
8771 # but understands `-z linker_flag'. GCC discards it without `$wl',
8772 # but is careful enough not to reorder.
8773 # Supported since Solaris 2.6 (maybe 2.5.1?)
8774 if test "$GCC" = yes; then
8775 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8777 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8781 link_all_deplibs=yes
8785 if test "x$host_vendor" = xsequent; then
8786 # Use $CC to link under sequent, because it throws in some extra .o
8787 # files that make .init and .fini sections work.
8788 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8790 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8792 hardcode_libdir_flag_spec='-L$libdir'
8794 hardcode_minus_L=yes
8795 hardcode_shlibpath_var=no
8799 case $host_vendor in
8801 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8802 hardcode_direct=yes # is this really true???
8805 ## LD is ld it makes a PLAMLIB
8806 ## CC just makes a GrossModule.
8807 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8808 reload_cmds='$CC -r -o $output$reload_objs'
8812 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8813 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8816 runpath_var='LD_RUN_PATH'
8817 hardcode_shlibpath_var=no
8821 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8822 hardcode_shlibpath_var=no
8823 export_dynamic_flag_spec='-Bexport'
8827 if test -d /usr/nec; then
8828 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8829 hardcode_shlibpath_var=no
8830 runpath_var=LD_RUN_PATH
8831 hardcode_runpath_var=yes
8836 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8837 no_undefined_flag='${wl}-z,text'
8838 archive_cmds_need_lc=no
8839 hardcode_shlibpath_var=no
8840 runpath_var='LD_RUN_PATH'
8842 if test "$GCC" = yes; then
8843 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8844 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8846 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8847 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8851 sysv5* | sco3.2v5* | sco5v6*)
8852 # Note: We can NOT use -z defs as we might desire, because we do not
8853 # link with -lc, and that would cause any symbols used from libc to
8854 # always be unresolved, which means just about no library would
8855 # ever link correctly. If we're not using GNU ld we use -z text
8856 # though, which does catch some bad symbols but isn't as heavy-handed
8858 no_undefined_flag='${wl}-z,text'
8859 allow_undefined_flag='${wl}-z,nodefs'
8860 archive_cmds_need_lc=no
8861 hardcode_shlibpath_var=no
8862 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8863 hardcode_libdir_separator=':'
8864 link_all_deplibs=yes
8865 export_dynamic_flag_spec='${wl}-Bexport'
8866 runpath_var='LD_RUN_PATH'
8868 if test "$GCC" = yes; then
8869 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8870 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8872 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8873 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8878 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8879 hardcode_libdir_flag_spec='-L$libdir'
8880 hardcode_shlibpath_var=no
8889 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8890 echo "${ECHO_T}$ld_shlibs" >&6; }
8891 test "$ld_shlibs" = no && can_build_shared=no
8894 # Do we need to explicitly link libc?
8896 case "x$archive_cmds_need_lc" in
8898 # Assume -lc should be added
8899 archive_cmds_need_lc=yes
8901 if test "$enable_shared" = yes && test "$GCC" = yes; then
8902 case $archive_cmds in
8904 # FIXME: we may have to deal with multi-command sequences.
8907 # Test whether the compiler implicitly links with -lc since on some
8908 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8909 # to ld, don't add -lc before -lgcc.
8910 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8911 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8913 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8916 (eval $ac_compile) 2>&5
8918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919 (exit $ac_status); } 2>conftest.err; then
8922 libobjs=conftest.$ac_objext
8924 wl=$lt_prog_compiler_wl
8925 pic_flag=$lt_prog_compiler_pic
8931 lt_save_allow_undefined_flag=$allow_undefined_flag
8932 allow_undefined_flag=
8933 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8934 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937 (exit $ac_status); }
8939 archive_cmds_need_lc=no
8941 archive_cmds_need_lc=yes
8943 allow_undefined_flag=$lt_save_allow_undefined_flag
8945 cat conftest.err 1>&5
8948 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8949 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8956 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8957 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8959 libname_spec='lib$name'
8967 shlibpath_overrides_runpath=unknown
8969 dynamic_linker="$host_os ld.so"
8970 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8972 if test "$GCC" = yes; then
8974 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8975 *) lt_awk_arg="/^libraries:/" ;;
8977 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8978 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8979 # if the path contains ";" then we assume it to be the separator
8980 # otherwise default to the standard path separator (i.e. ":") - it is
8981 # assumed that no part of a normal pathname contains ";" but that should
8982 # okay in the real world where ";" in dirpaths is itself problematic.
8983 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8985 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8987 # Ok, now we have the path, separated by spaces, we can step through it
8988 # and add multilib dir if necessary.
8989 lt_tmp_lt_search_path_spec=
8990 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8991 for lt_sys_path in $lt_search_path_spec; do
8992 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8993 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8995 test -d "$lt_sys_path" && \
8996 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8999 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9000 BEGIN {RS=" "; FS="/|\n";} {
9003 for (lt_i = NF; lt_i > 0; lt_i--) {
9004 if ($lt_i != "" && $lt_i != ".") {
9005 if ($lt_i == "..") {
9008 if (lt_count == 0) {
9009 lt_foo="/" $lt_i lt_foo;
9016 if (lt_foo != "") { lt_freq[lt_foo]++; }
9017 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9019 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9021 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9023 need_lib_prefix=unknown
9024 hardcode_into_libs=no
9026 # when you set need_version to no, make sure it does not cause -set_version
9027 # flags to be left without arguments
9028 need_version=unknown
9033 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9034 shlibpath_var=LIBPATH
9036 # AIX 3 has no versioning support, so we append a major version to the name.
9037 soname_spec='${libname}${release}${shared_ext}$major'
9044 hardcode_into_libs=yes
9045 if test "$host_cpu" = ia64; then
9046 # AIX 5 supports IA64
9047 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9048 shlibpath_var=LD_LIBRARY_PATH
9050 # With GCC up to 2.95.x, collect2 would create an import file
9051 # for dependence libraries. The import file would start with
9052 # the line `#! .'. This would cause the generated library to
9053 # depend on `.', always an invalid library. This was fixed in
9054 # development snapshots of GCC prior to 3.0.
9056 aix4 | aix4.[01] | aix4.[01].*)
9057 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9059 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9066 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9067 # soname into executable. Probably we can add versioning support to
9068 # collect2, so additional links can be useful in future.
9069 if test "$aix_use_runtimelinking" = yes; then
9070 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9071 # instead of lib<name>.a to let people know that these are not
9072 # typical AIX shared libraries.
9073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9075 # We preserve .a as extension for shared libraries through AIX4.2
9076 # and later when we are not doing run time linking.
9077 library_names_spec='${libname}${release}.a $libname.a'
9078 soname_spec='${libname}${release}${shared_ext}$major'
9080 shlibpath_var=LIBPATH
9085 library_names_spec='$libname.ixlibrary $libname.a'
9086 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9087 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'
9091 library_names_spec='${libname}${shared_ext}'
9092 dynamic_linker="$host_os ld.so"
9093 shlibpath_var=LIBRARY_PATH
9099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9100 soname_spec='${libname}${release}${shared_ext}$major'
9101 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9102 shlibpath_var=LD_LIBRARY_PATH
9103 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9104 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9105 # the default ld.so.conf also contains /usr/contrib/lib and
9106 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9107 # libtool to hard-code these into programs
9110 cygwin* | mingw* | pw32*)
9111 version_type=windows
9116 case $GCC,$host_os in
9117 yes,cygwin* | yes,mingw* | yes,pw32*)
9118 library_names_spec='$libname.dll.a'
9119 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9120 postinstall_cmds='base_file=`basename \${file}`~
9121 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9122 dldir=$destdir/`dirname \$dlpath`~
9123 test -d \$dldir || mkdir -p \$dldir~
9124 $install_prog $dir/$dlname \$dldir/$dlname~
9125 chmod a+x \$dldir/$dlname'
9126 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9127 dlpath=$dir/\$dldll~
9129 shlibpath_overrides_runpath=yes
9133 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9134 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9135 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9138 # MinGW DLLs use traditional 'lib' prefix
9139 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9140 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9141 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9142 # It is most probably a Windows format PATH printed by
9143 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9144 # path with ; separators, and with drive letters. We can handle the
9145 # drive letters (cygwin fileutils understands them), so leave them,
9146 # especially as we might pass files found there to a mingw objdump,
9147 # which wouldn't understand a cygwinified path. Ahh.
9148 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9150 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9154 # pw32 DLLs use 'pw' prefix rather than 'lib'
9155 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9161 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9164 dynamic_linker='Win32 ld.exe'
9165 # FIXME: first we should search . and the directory the executable is in
9169 darwin* | rhapsody*)
9170 dynamic_linker="$host_os dyld"
9174 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9175 soname_spec='${libname}${release}${major}$shared_ext'
9176 shlibpath_overrides_runpath=yes
9177 shlibpath_var=DYLD_LIBRARY_PATH
9178 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9180 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9181 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9189 soname_spec='${libname}${release}${shared_ext}$major'
9190 shlibpath_var=LD_LIBRARY_PATH
9197 freebsd* | dragonfly*)
9198 # DragonFly does not have aout. When/if they implement a new
9199 # versioning mechanism, adjust this.
9200 if test -x /usr/bin/objformat; then
9201 objformat=`/usr/bin/objformat`
9204 freebsd[123]*) objformat=aout ;;
9208 version_type=freebsd-$objformat
9209 case $version_type in
9211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9216 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9220 shlibpath_var=LD_LIBRARY_PATH
9223 shlibpath_overrides_runpath=yes
9225 freebsd3.[01]* | freebsdelf3.[01]*)
9226 shlibpath_overrides_runpath=yes
9227 hardcode_into_libs=yes
9229 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9230 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9231 shlibpath_overrides_runpath=no
9232 hardcode_into_libs=yes
9234 *) # from 4.6 on, and DragonFly
9235 shlibpath_overrides_runpath=yes
9236 hardcode_into_libs=yes
9245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9246 soname_spec='${libname}${release}${shared_ext}$major'
9247 shlibpath_var=LD_LIBRARY_PATH
9248 hardcode_into_libs=yes
9251 hpux9* | hpux10* | hpux11*)
9252 # Give a soname corresponding to the major version so that dld.sl refuses to
9253 # link against other versions.
9260 hardcode_into_libs=yes
9261 dynamic_linker="$host_os dld.so"
9262 shlibpath_var=LD_LIBRARY_PATH
9263 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9265 soname_spec='${libname}${release}${shared_ext}$major'
9266 if test "X$HPUX_IA64_MODE" = X32; then
9267 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9269 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9271 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9275 hardcode_into_libs=yes
9276 dynamic_linker="$host_os dld.sl"
9277 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9278 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9280 soname_spec='${libname}${release}${shared_ext}$major'
9281 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9282 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9286 dynamic_linker="$host_os dld.sl"
9287 shlibpath_var=SHLIB_PATH
9288 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9290 soname_spec='${libname}${release}${shared_ext}$major'
9293 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9294 postinstall_cmds='chmod 555 $lib'
9301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9302 soname_spec='${libname}${release}${shared_ext}$major'
9303 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9304 shlibpath_var=LD_LIBRARY_PATH
9305 shlibpath_overrides_runpath=no
9306 hardcode_into_libs=yes
9309 irix5* | irix6* | nonstopux*)
9311 nonstopux*) version_type=nonstopux ;;
9313 if test "$lt_cv_prog_gnu_ld" = yes; then
9321 soname_spec='${libname}${release}${shared_ext}$major'
9322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9324 irix5* | nonstopux*)
9328 case $LD in # libtool.m4 will add one of these switches to LD
9329 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9330 libsuff= shlibsuff= libmagic=32-bit;;
9331 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9332 libsuff=32 shlibsuff=N32 libmagic=N32;;
9333 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9334 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9335 *) libsuff= shlibsuff= libmagic=never-match;;
9339 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9340 shlibpath_overrides_runpath=no
9341 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9342 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9343 hardcode_into_libs=yes
9346 # No shared lib support for Linux oldld, aout, or coff.
9347 linux*oldld* | linux*aout* | linux*coff*)
9351 # This must be Linux ELF.
9352 linux* | k*bsd*-gnu)
9356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9357 soname_spec='${libname}${release}${shared_ext}$major'
9358 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9359 shlibpath_var=LD_LIBRARY_PATH
9360 shlibpath_overrides_runpath=no
9361 # This implies no fast_install, which is unacceptable.
9362 # Some rework will be needed to allow for fast_install
9363 # before this can be enabled.
9364 hardcode_into_libs=yes
9366 # Append ld.so.conf contents to the search path
9367 if test -f /etc/ld.so.conf; then
9368 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9369 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9372 # We used to test for /lib/ld.so.1 and disable shared libraries on
9373 # powerpc, because MkLinux only supported shared libraries with the
9374 # GNU dynamic linker. Since this was broken with cross compilers,
9375 # most powerpc-linux boxes support dynamic linking these days and
9376 # people can always --disable-shared, the test was removed, and we
9377 # assume the GNU/Linux dynamic linker is in use.
9378 dynamic_linker='GNU/Linux ld.so'
9385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9386 soname_spec='${libname}${release}${shared_ext}$major'
9387 shlibpath_var=LD_LIBRARY_PATH
9388 shlibpath_overrides_runpath=no
9389 hardcode_into_libs=yes
9390 dynamic_linker='NetBSD ld.elf_so'
9397 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9399 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9400 dynamic_linker='NetBSD (a.out) ld.so'
9402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9403 soname_spec='${libname}${release}${shared_ext}$major'
9404 dynamic_linker='NetBSD ld.elf_so'
9406 shlibpath_var=LD_LIBRARY_PATH
9407 shlibpath_overrides_runpath=yes
9408 hardcode_into_libs=yes
9413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9414 shlibpath_var=LD_LIBRARY_PATH
9415 shlibpath_overrides_runpath=yes
9422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9423 soname_spec='${libname}${release}${shared_ext}$major'
9424 shlibpath_var=LD_LIBRARY_PATH
9425 shlibpath_overrides_runpath=yes
9430 sys_lib_dlsearch_path_spec="/usr/lib"
9432 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9434 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9435 *) need_version=no ;;
9437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9438 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9439 shlibpath_var=LD_LIBRARY_PATH
9440 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9442 openbsd2.[89] | openbsd2.[89].*)
9443 shlibpath_overrides_runpath=no
9446 shlibpath_overrides_runpath=yes
9450 shlibpath_overrides_runpath=yes
9455 libname_spec='$name'
9458 library_names_spec='$libname${shared_ext} $libname.a'
9459 dynamic_linker='OS/2 ld.exe'
9460 shlibpath_var=LIBPATH
9463 osf3* | osf4* | osf5*)
9467 soname_spec='${libname}${release}${shared_ext}$major'
9468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9469 shlibpath_var=LD_LIBRARY_PATH
9470 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9471 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9483 soname_spec='${libname}${release}${shared_ext}$major'
9484 shlibpath_var=LD_LIBRARY_PATH
9485 shlibpath_overrides_runpath=yes
9486 hardcode_into_libs=yes
9487 # ldd complains unless libraries are executable
9488 postinstall_cmds='chmod +x $lib'
9493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9494 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9495 shlibpath_var=LD_LIBRARY_PATH
9496 shlibpath_overrides_runpath=yes
9497 if test "$with_gnu_ld" = yes; then
9505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9506 soname_spec='${libname}${release}${shared_ext}$major'
9507 shlibpath_var=LD_LIBRARY_PATH
9508 case $host_vendor in
9510 shlibpath_overrides_runpath=no
9512 export_dynamic_flag_spec='${wl}-Blargedynsym'
9513 runpath_var=LD_RUN_PATH
9521 shlibpath_overrides_runpath=no
9522 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9528 if test -d /usr/nec ;then
9530 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9531 soname_spec='$libname${shared_ext}.$major'
9532 shlibpath_var=LD_LIBRARY_PATH
9536 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9537 version_type=freebsd-elf
9540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9541 soname_spec='${libname}${release}${shared_ext}$major'
9542 shlibpath_var=LD_LIBRARY_PATH
9543 hardcode_into_libs=yes
9544 if test "$with_gnu_ld" = yes; then
9545 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9546 shlibpath_overrides_runpath=no
9548 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9549 shlibpath_overrides_runpath=yes
9552 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9556 sys_lib_dlsearch_path_spec='/usr/lib'
9561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9562 soname_spec='${libname}${release}${shared_ext}$major'
9563 shlibpath_var=LD_LIBRARY_PATH
9570 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9571 echo "${ECHO_T}$dynamic_linker" >&6; }
9572 test "$dynamic_linker" = no && can_build_shared=no
9574 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9575 echo $ECHO_N "(cached) $ECHO_C" >&6
9577 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9580 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9581 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9582 echo $ECHO_N "(cached) $ECHO_C" >&6
9584 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9587 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9589 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9590 if test "$GCC" = yes; then
9591 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9594 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9595 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9597 if test -n "$hardcode_libdir_flag_spec" || \
9598 test -n "$runpath_var" || \
9599 test "X$hardcode_automatic" = "Xyes" ; then
9601 # We can hardcode non-existant directories.
9602 if test "$hardcode_direct" != no &&
9603 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9604 # have to relink, otherwise we might link with an installed library
9605 # when we should be linking with a yet-to-be-installed one
9606 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9607 test "$hardcode_minus_L" != no; then
9608 # Linking always hardcodes the temporary library directory.
9609 hardcode_action=relink
9611 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9612 hardcode_action=immediate
9615 # We cannot hardcode anything, or else we can only hardcode existing
9617 hardcode_action=unsupported
9619 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9620 echo "${ECHO_T}$hardcode_action" >&6; }
9622 if test "$hardcode_action" = relink; then
9623 # Fast installation is not supported
9624 enable_fast_install=no
9625 elif test "$shlibpath_overrides_runpath" = yes ||
9626 test "$enable_shared" = no; then
9627 # Fast installation is not necessary
9628 enable_fast_install=needless
9633 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9634 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9635 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9636 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9637 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9638 { echo "$as_me:$LINENO: result: yes" >&5
9639 echo "${ECHO_T}yes" >&6; }
9641 # FIXME - insert some real tests, host_os isn't really good enough
9644 if test -n "$STRIP" ; then
9645 striplib="$STRIP -x"
9646 old_striplib="$STRIP -S"
9647 { echo "$as_me:$LINENO: result: yes" >&5
9648 echo "${ECHO_T}yes" >&6; }
9650 { echo "$as_me:$LINENO: result: no" >&5
9651 echo "${ECHO_T}no" >&6; }
9655 { echo "$as_me:$LINENO: result: no" >&5
9656 echo "${ECHO_T}no" >&6; }
9661 if test "x$enable_dlopen" != xyes; then
9662 enable_dlopen=unknown
9663 enable_dlopen_self=unknown
9664 enable_dlopen_self_static=unknown
9671 lt_cv_dlopen="load_add_on"
9673 lt_cv_dlopen_self=yes
9677 lt_cv_dlopen="LoadLibrary"
9682 lt_cv_dlopen="dlopen"
9687 # if libdl is installed we need to link against it
9688 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9689 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9690 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9691 echo $ECHO_N "(cached) $ECHO_C" >&6
9693 ac_check_lib_save_LIBS=$LIBS
9695 cat >conftest.$ac_ext <<_ACEOF
9698 cat confdefs.h >>conftest.$ac_ext
9699 cat >>conftest.$ac_ext <<_ACEOF
9700 /* end confdefs.h. */
9702 /* Override any GCC internal prototype to avoid an error.
9703 Use char because int might match the return type of a GCC
9704 builtin and then its argument prototype would still apply. */
9717 rm -f conftest.$ac_objext conftest$ac_exeext
9718 if { (ac_try="$ac_link"
9720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9721 *) ac_try_echo=$ac_try;;
9723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9724 (eval "$ac_link") 2>conftest.er1
9726 grep -v '^ *+' conftest.er1 >conftest.err
9728 cat conftest.err >&5
9729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730 (exit $ac_status); } && {
9731 test -z "$ac_c_werror_flag" ||
9732 test ! -s conftest.err
9733 } && test -s conftest$ac_exeext &&
9734 $as_test_x conftest$ac_exeext; then
9735 ac_cv_lib_dl_dlopen=yes
9737 echo "$as_me: failed program was:" >&5
9738 sed 's/^/| /' conftest.$ac_ext >&5
9740 ac_cv_lib_dl_dlopen=no
9743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9744 conftest$ac_exeext conftest.$ac_ext
9745 LIBS=$ac_check_lib_save_LIBS
9747 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9748 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9749 if test $ac_cv_lib_dl_dlopen = yes; then
9750 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9755 lt_cv_dlopen_self=yes
9762 { echo "$as_me:$LINENO: checking for shl_load" >&5
9763 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9764 if test "${ac_cv_func_shl_load+set}" = set; then
9765 echo $ECHO_N "(cached) $ECHO_C" >&6
9767 cat >conftest.$ac_ext <<_ACEOF
9770 cat confdefs.h >>conftest.$ac_ext
9771 cat >>conftest.$ac_ext <<_ACEOF
9772 /* end confdefs.h. */
9773 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9774 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9775 #define shl_load innocuous_shl_load
9777 /* System header to define __stub macros and hopefully few prototypes,
9778 which can conflict with char shl_load (); below.
9779 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9780 <limits.h> exists even on freestanding compilers. */
9783 # include <limits.h>
9785 # include <assert.h>
9790 /* Override any GCC internal prototype to avoid an error.
9791 Use char because int might match the return type of a GCC
9792 builtin and then its argument prototype would still apply. */
9797 /* The GNU C library defines this for functions which it implements
9798 to always fail with ENOSYS. Some functions are actually named
9799 something starting with __ and the normal name is an alias. */
9800 #if defined __stub_shl_load || defined __stub___shl_load
9812 rm -f conftest.$ac_objext conftest$ac_exeext
9813 if { (ac_try="$ac_link"
9815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9816 *) ac_try_echo=$ac_try;;
9818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9819 (eval "$ac_link") 2>conftest.er1
9821 grep -v '^ *+' conftest.er1 >conftest.err
9823 cat conftest.err >&5
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); } && {
9826 test -z "$ac_c_werror_flag" ||
9827 test ! -s conftest.err
9828 } && test -s conftest$ac_exeext &&
9829 $as_test_x conftest$ac_exeext; then
9830 ac_cv_func_shl_load=yes
9832 echo "$as_me: failed program was:" >&5
9833 sed 's/^/| /' conftest.$ac_ext >&5
9835 ac_cv_func_shl_load=no
9838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9839 conftest$ac_exeext conftest.$ac_ext
9841 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9842 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9843 if test $ac_cv_func_shl_load = yes; then
9844 lt_cv_dlopen="shl_load"
9846 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9847 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9848 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9849 echo $ECHO_N "(cached) $ECHO_C" >&6
9851 ac_check_lib_save_LIBS=$LIBS
9853 cat >conftest.$ac_ext <<_ACEOF
9856 cat confdefs.h >>conftest.$ac_ext
9857 cat >>conftest.$ac_ext <<_ACEOF
9858 /* end confdefs.h. */
9860 /* Override any GCC internal prototype to avoid an error.
9861 Use char because int might match the return type of a GCC
9862 builtin and then its argument prototype would still apply. */
9875 rm -f conftest.$ac_objext conftest$ac_exeext
9876 if { (ac_try="$ac_link"
9878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9879 *) ac_try_echo=$ac_try;;
9881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9882 (eval "$ac_link") 2>conftest.er1
9884 grep -v '^ *+' conftest.er1 >conftest.err
9886 cat conftest.err >&5
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); } && {
9889 test -z "$ac_c_werror_flag" ||
9890 test ! -s conftest.err
9891 } && test -s conftest$ac_exeext &&
9892 $as_test_x conftest$ac_exeext; then
9893 ac_cv_lib_dld_shl_load=yes
9895 echo "$as_me: failed program was:" >&5
9896 sed 's/^/| /' conftest.$ac_ext >&5
9898 ac_cv_lib_dld_shl_load=no
9901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9902 conftest$ac_exeext conftest.$ac_ext
9903 LIBS=$ac_check_lib_save_LIBS
9905 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9906 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9907 if test $ac_cv_lib_dld_shl_load = yes; then
9908 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9910 { echo "$as_me:$LINENO: checking for dlopen" >&5
9911 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9912 if test "${ac_cv_func_dlopen+set}" = set; then
9913 echo $ECHO_N "(cached) $ECHO_C" >&6
9915 cat >conftest.$ac_ext <<_ACEOF
9918 cat confdefs.h >>conftest.$ac_ext
9919 cat >>conftest.$ac_ext <<_ACEOF
9920 /* end confdefs.h. */
9921 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9922 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9923 #define dlopen innocuous_dlopen
9925 /* System header to define __stub macros and hopefully few prototypes,
9926 which can conflict with char dlopen (); below.
9927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9928 <limits.h> exists even on freestanding compilers. */
9931 # include <limits.h>
9933 # include <assert.h>
9938 /* Override any GCC internal prototype to avoid an error.
9939 Use char because int might match the return type of a GCC
9940 builtin and then its argument prototype would still apply. */
9945 /* The GNU C library defines this for functions which it implements
9946 to always fail with ENOSYS. Some functions are actually named
9947 something starting with __ and the normal name is an alias. */
9948 #if defined __stub_dlopen || defined __stub___dlopen
9960 rm -f conftest.$ac_objext conftest$ac_exeext
9961 if { (ac_try="$ac_link"
9963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9964 *) ac_try_echo=$ac_try;;
9966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9967 (eval "$ac_link") 2>conftest.er1
9969 grep -v '^ *+' conftest.er1 >conftest.err
9971 cat conftest.err >&5
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); } && {
9974 test -z "$ac_c_werror_flag" ||
9975 test ! -s conftest.err
9976 } && test -s conftest$ac_exeext &&
9977 $as_test_x conftest$ac_exeext; then
9978 ac_cv_func_dlopen=yes
9980 echo "$as_me: failed program was:" >&5
9981 sed 's/^/| /' conftest.$ac_ext >&5
9983 ac_cv_func_dlopen=no
9986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9987 conftest$ac_exeext conftest.$ac_ext
9989 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9990 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9991 if test $ac_cv_func_dlopen = yes; then
9992 lt_cv_dlopen="dlopen"
9994 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9995 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9996 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9997 echo $ECHO_N "(cached) $ECHO_C" >&6
9999 ac_check_lib_save_LIBS=$LIBS
10001 cat >conftest.$ac_ext <<_ACEOF
10004 cat confdefs.h >>conftest.$ac_ext
10005 cat >>conftest.$ac_ext <<_ACEOF
10006 /* end confdefs.h. */
10008 /* Override any GCC internal prototype to avoid an error.
10009 Use char because int might match the return type of a GCC
10010 builtin and then its argument prototype would still apply. */
10023 rm -f conftest.$ac_objext conftest$ac_exeext
10024 if { (ac_try="$ac_link"
10025 case "(($ac_try" in
10026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10027 *) ac_try_echo=$ac_try;;
10029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10030 (eval "$ac_link") 2>conftest.er1
10032 grep -v '^ *+' conftest.er1 >conftest.err
10034 cat conftest.err >&5
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 (exit $ac_status); } && {
10037 test -z "$ac_c_werror_flag" ||
10038 test ! -s conftest.err
10039 } && test -s conftest$ac_exeext &&
10040 $as_test_x conftest$ac_exeext; then
10041 ac_cv_lib_dl_dlopen=yes
10043 echo "$as_me: failed program was:" >&5
10044 sed 's/^/| /' conftest.$ac_ext >&5
10046 ac_cv_lib_dl_dlopen=no
10049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10050 conftest$ac_exeext conftest.$ac_ext
10051 LIBS=$ac_check_lib_save_LIBS
10053 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10054 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10055 if test $ac_cv_lib_dl_dlopen = yes; then
10056 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10058 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10059 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10060 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10061 echo $ECHO_N "(cached) $ECHO_C" >&6
10063 ac_check_lib_save_LIBS=$LIBS
10064 LIBS="-lsvld $LIBS"
10065 cat >conftest.$ac_ext <<_ACEOF
10068 cat confdefs.h >>conftest.$ac_ext
10069 cat >>conftest.$ac_ext <<_ACEOF
10070 /* end confdefs.h. */
10072 /* Override any GCC internal prototype to avoid an error.
10073 Use char because int might match the return type of a GCC
10074 builtin and then its argument prototype would still apply. */
10087 rm -f conftest.$ac_objext conftest$ac_exeext
10088 if { (ac_try="$ac_link"
10089 case "(($ac_try" in
10090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10091 *) ac_try_echo=$ac_try;;
10093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10094 (eval "$ac_link") 2>conftest.er1
10096 grep -v '^ *+' conftest.er1 >conftest.err
10098 cat conftest.err >&5
10099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 (exit $ac_status); } && {
10101 test -z "$ac_c_werror_flag" ||
10102 test ! -s conftest.err
10103 } && test -s conftest$ac_exeext &&
10104 $as_test_x conftest$ac_exeext; then
10105 ac_cv_lib_svld_dlopen=yes
10107 echo "$as_me: failed program was:" >&5
10108 sed 's/^/| /' conftest.$ac_ext >&5
10110 ac_cv_lib_svld_dlopen=no
10113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10114 conftest$ac_exeext conftest.$ac_ext
10115 LIBS=$ac_check_lib_save_LIBS
10117 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10118 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10119 if test $ac_cv_lib_svld_dlopen = yes; then
10120 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10122 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10123 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10124 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10125 echo $ECHO_N "(cached) $ECHO_C" >&6
10127 ac_check_lib_save_LIBS=$LIBS
10129 cat >conftest.$ac_ext <<_ACEOF
10132 cat confdefs.h >>conftest.$ac_ext
10133 cat >>conftest.$ac_ext <<_ACEOF
10134 /* end confdefs.h. */
10136 /* Override any GCC internal prototype to avoid an error.
10137 Use char because int might match the return type of a GCC
10138 builtin and then its argument prototype would still apply. */
10146 return dld_link ();
10151 rm -f conftest.$ac_objext conftest$ac_exeext
10152 if { (ac_try="$ac_link"
10153 case "(($ac_try" in
10154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10155 *) ac_try_echo=$ac_try;;
10157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10158 (eval "$ac_link") 2>conftest.er1
10160 grep -v '^ *+' conftest.er1 >conftest.err
10162 cat conftest.err >&5
10163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164 (exit $ac_status); } && {
10165 test -z "$ac_c_werror_flag" ||
10166 test ! -s conftest.err
10167 } && test -s conftest$ac_exeext &&
10168 $as_test_x conftest$ac_exeext; then
10169 ac_cv_lib_dld_dld_link=yes
10171 echo "$as_me: failed program was:" >&5
10172 sed 's/^/| /' conftest.$ac_ext >&5
10174 ac_cv_lib_dld_dld_link=no
10177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10178 conftest$ac_exeext conftest.$ac_ext
10179 LIBS=$ac_check_lib_save_LIBS
10181 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10182 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10183 if test $ac_cv_lib_dld_dld_link = yes; then
10184 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10205 if test "x$lt_cv_dlopen" != xno; then
10211 case $lt_cv_dlopen in
10213 save_CPPFLAGS="$CPPFLAGS"
10214 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10216 save_LDFLAGS="$LDFLAGS"
10217 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10220 LIBS="$lt_cv_dlopen_libs $LIBS"
10222 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10223 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10224 if test "${lt_cv_dlopen_self+set}" = set; then
10225 echo $ECHO_N "(cached) $ECHO_C" >&6
10227 if test "$cross_compiling" = yes; then :
10228 lt_cv_dlopen_self=cross
10230 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10231 lt_status=$lt_dlunknown
10232 cat > conftest.$ac_ext <<EOF
10233 #line __oline__ "configure"
10234 #include "confdefs.h"
10243 # define LT_DLGLOBAL RTLD_GLOBAL
10246 # define LT_DLGLOBAL DL_GLOBAL
10248 # define LT_DLGLOBAL 0
10252 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10253 find out it does not work in some platform. */
10254 #ifndef LT_DLLAZY_OR_NOW
10256 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10259 # define LT_DLLAZY_OR_NOW DL_LAZY
10262 # define LT_DLLAZY_OR_NOW RTLD_NOW
10265 # define LT_DLLAZY_OR_NOW DL_NOW
10267 # define LT_DLLAZY_OR_NOW 0
10275 extern "C" void exit (int);
10278 void fnord() { int i=42;}
10281 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10282 int status = $lt_dlunknown;
10286 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10287 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10288 /* dlclose (self); */
10296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10297 (eval $ac_link) 2>&5
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10301 (./conftest; exit; ) >&5 2>/dev/null
10303 case x$lt_status in
10304 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10305 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10306 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10309 # compilation failed
10310 lt_cv_dlopen_self=no
10317 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10318 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10320 if test "x$lt_cv_dlopen_self" = xyes; then
10321 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10322 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10323 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10324 if test "${lt_cv_dlopen_self_static+set}" = set; then
10325 echo $ECHO_N "(cached) $ECHO_C" >&6
10327 if test "$cross_compiling" = yes; then :
10328 lt_cv_dlopen_self_static=cross
10330 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10331 lt_status=$lt_dlunknown
10332 cat > conftest.$ac_ext <<EOF
10333 #line __oline__ "configure"
10334 #include "confdefs.h"
10343 # define LT_DLGLOBAL RTLD_GLOBAL
10346 # define LT_DLGLOBAL DL_GLOBAL
10348 # define LT_DLGLOBAL 0
10352 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10353 find out it does not work in some platform. */
10354 #ifndef LT_DLLAZY_OR_NOW
10356 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10359 # define LT_DLLAZY_OR_NOW DL_LAZY
10362 # define LT_DLLAZY_OR_NOW RTLD_NOW
10365 # define LT_DLLAZY_OR_NOW DL_NOW
10367 # define LT_DLLAZY_OR_NOW 0
10375 extern "C" void exit (int);
10378 void fnord() { int i=42;}
10381 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10382 int status = $lt_dlunknown;
10386 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10387 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10388 /* dlclose (self); */
10396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10397 (eval $ac_link) 2>&5
10399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10401 (./conftest; exit; ) >&5 2>/dev/null
10403 case x$lt_status in
10404 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10405 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10406 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10409 # compilation failed
10410 lt_cv_dlopen_self_static=no
10417 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10418 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10421 CPPFLAGS="$save_CPPFLAGS"
10422 LDFLAGS="$save_LDFLAGS"
10427 case $lt_cv_dlopen_self in
10428 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10429 *) enable_dlopen_self=unknown ;;
10432 case $lt_cv_dlopen_self_static in
10433 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10434 *) enable_dlopen_self_static=unknown ;;
10439 # Report which library types will actually be built
10440 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10441 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10442 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10443 echo "${ECHO_T}$can_build_shared" >&6; }
10445 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10446 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10447 test "$can_build_shared" = "no" && enable_shared=no
10449 # On AIX, shared libraries and static libraries use the same namespace, and
10450 # are all built from PIC.
10453 test "$enable_shared" = yes && enable_static=no
10454 if test -n "$RANLIB"; then
10455 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10456 postinstall_cmds='$RANLIB $lib'
10461 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10462 test "$enable_shared" = yes && enable_static=no
10466 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10467 echo "${ECHO_T}$enable_shared" >&6; }
10469 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10470 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10471 # Make sure either enable_shared or enable_static is yes.
10472 test "$enable_shared" = yes || enable_static=yes
10473 { echo "$as_me:$LINENO: result: $enable_static" >&5
10474 echo "${ECHO_T}$enable_static" >&6; }
10476 # The else clause should only fire when bootstrapping the
10477 # libtool distribution, otherwise you forgot to ship ltmain.sh
10478 # with your package, and you will get complaints that there are
10479 # no rules to generate ltmain.sh.
10480 if test -f "$ltmain"; then
10481 # See if we are running on zsh, and set the options which allow our commands through
10482 # without removal of \ escapes.
10483 if test -n "${ZSH_VERSION+set}" ; then
10484 setopt NO_GLOB_SUBST
10486 # Now quote all the things that may contain metacharacters while being
10487 # careful not to overquote the AC_SUBSTed values. We take copies of the
10488 # variables and quote the copies for generation of the libtool script.
10489 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10491 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10492 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10493 deplibs_check_method reload_flag reload_cmds need_locks \
10494 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10495 lt_cv_sys_global_symbol_to_c_name_address \
10496 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10497 old_postinstall_cmds old_postuninstall_cmds \
10501 lt_prog_compiler_wl \
10502 lt_prog_compiler_pic \
10503 lt_prog_compiler_static \
10504 lt_prog_compiler_no_builtin_flag \
10505 export_dynamic_flag_spec \
10506 thread_safe_flag_spec \
10507 whole_archive_flag_spec \
10508 enable_shared_with_static_runtimes \
10510 old_archive_from_new_cmds \
10515 compiler_lib_search_path \
10516 compiler_lib_search_dirs \
10518 archive_expsym_cmds \
10520 postuninstall_cmds \
10521 old_archive_from_expsyms_cmds \
10522 allow_undefined_flag \
10523 no_undefined_flag \
10524 export_symbols_cmds \
10525 hardcode_libdir_flag_spec \
10526 hardcode_libdir_flag_spec_ld \
10527 hardcode_libdir_separator \
10528 hardcode_automatic \
10530 module_expsym_cmds \
10531 lt_cv_prog_compiler_c_o \
10534 include_expsyms; do
10537 old_archive_cmds | \
10538 old_archive_from_new_cmds | \
10540 archive_expsym_cmds | \
10542 module_expsym_cmds | \
10543 old_archive_from_expsyms_cmds | \
10544 export_symbols_cmds | \
10545 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10546 postinstall_cmds | postuninstall_cmds | \
10547 old_postinstall_cmds | old_postuninstall_cmds | \
10548 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10549 # Double-quote double-evaled strings.
10550 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10553 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10559 *'\$0 --fallback-echo"')
10560 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10564 cfgfile="${ofile}T"
10565 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10567 { echo "$as_me:$LINENO: creating $ofile" >&5
10568 echo "$as_me: creating $ofile" >&6;}
10570 cat <<__EOF__ >> "$cfgfile"
10573 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10574 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10575 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10577 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10578 # Free Software Foundation, Inc.
10580 # This file is part of GNU Libtool:
10581 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10583 # This program is free software; you can redistribute it and/or modify
10584 # it under the terms of the GNU General Public License as published by
10585 # the Free Software Foundation; either version 2 of the License, or
10586 # (at your option) any later version.
10588 # This program is distributed in the hope that it will be useful, but
10589 # WITHOUT ANY WARRANTY; without even the implied warranty of
10590 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10591 # General Public License for more details.
10593 # You should have received a copy of the GNU General Public License
10594 # along with this program; if not, write to the Free Software
10595 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10597 # As a special exception to the GNU General Public License, if you
10598 # distribute this file as part of a program that contains a
10599 # configuration script generated by Autoconf, you may include it under
10600 # the same distribution terms that you use for the rest of that program.
10602 # A sed program that does not truncate output.
10605 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10606 Xsed="$SED -e 1s/^X//"
10608 # The HP-UX ksh and POSIX shell print the target directory to stdout
10609 # if CDPATH is set.
10610 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10612 # The names of the tagged configurations supported by this script.
10615 # ### BEGIN LIBTOOL CONFIG
10617 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10619 # Shell to use when invoking shell scripts.
10622 # Whether or not to build shared libraries.
10623 build_libtool_libs=$enable_shared
10625 # Whether or not to build static libraries.
10626 build_old_libs=$enable_static
10628 # Whether or not to add -lc for building shared libraries.
10629 build_libtool_need_lc=$archive_cmds_need_lc
10631 # Whether or not to disallow shared libs when runtime libs are static
10632 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10634 # Whether or not to optimize for fast installation.
10635 fast_install=$enable_fast_install
10638 host_alias=$host_alias
10642 # The build system.
10643 build_alias=$build_alias
10647 # An echo program that does not interpret backslashes.
10652 AR_FLAGS=$lt_AR_FLAGS
10657 # LTCC compiler flags.
10658 LTCFLAGS=$lt_LTCFLAGS
10660 # A language-specific compiler.
10663 # Is the compiler the GNU C compiler?
10669 # The linker used to build libraries.
10672 # Whether we need hard or soft links.
10675 # A BSD-compatible nm program.
10678 # A symbol stripping program
10681 # Used to examine libraries when file_magic_cmd begins "file"
10682 MAGIC_CMD=$MAGIC_CMD
10684 # Used on cygwin: DLL creation program.
10687 # Used on cygwin: object dumper.
10690 # Used on cygwin: assembler.
10693 # The name of the directory that contains temporary libtool files.
10696 # How to create reloadable object files.
10697 reload_flag=$lt_reload_flag
10698 reload_cmds=$lt_reload_cmds
10700 # How to pass a linker flag through the compiler.
10701 wl=$lt_lt_prog_compiler_wl
10703 # Object file suffix (normally "o").
10704 objext="$ac_objext"
10706 # Old archive suffix (normally "a").
10709 # Shared library suffix (normally ".so").
10710 shrext_cmds='$shrext_cmds'
10712 # Executable file suffix (normally "").
10715 # Additional compiler flags for building library objects.
10716 pic_flag=$lt_lt_prog_compiler_pic
10719 # What is the maximum length of a command?
10720 max_cmd_len=$lt_cv_sys_max_cmd_len
10722 # Does compiler simultaneously support -c and -o options?
10723 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10725 # Must we lock files when doing compilation?
10726 need_locks=$lt_need_locks
10728 # Do we need the lib prefix for modules?
10729 need_lib_prefix=$need_lib_prefix
10731 # Do we need a version for libraries?
10732 need_version=$need_version
10734 # Whether dlopen is supported.
10735 dlopen_support=$enable_dlopen
10737 # Whether dlopen of programs is supported.
10738 dlopen_self=$enable_dlopen_self
10740 # Whether dlopen of statically linked programs is supported.
10741 dlopen_self_static=$enable_dlopen_self_static
10743 # Compiler flag to prevent dynamic linking.
10744 link_static_flag=$lt_lt_prog_compiler_static
10746 # Compiler flag to turn off builtin functions.
10747 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10749 # Compiler flag to allow reflexive dlopens.
10750 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10752 # Compiler flag to generate shared objects directly from archives.
10753 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10755 # Compiler flag to generate thread-safe objects.
10756 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10758 # Library versioning type.
10759 version_type=$version_type
10761 # Format of library name prefix.
10762 libname_spec=$lt_libname_spec
10764 # List of archive names. First name is the real one, the rest are links.
10765 # The last name is the one that the linker finds with -lNAME.
10766 library_names_spec=$lt_library_names_spec
10768 # The coded name of the library, if different from the real name.
10769 soname_spec=$lt_soname_spec
10771 # Commands used to build and install an old-style archive.
10773 old_archive_cmds=$lt_old_archive_cmds
10774 old_postinstall_cmds=$lt_old_postinstall_cmds
10775 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10777 # Create an old-style archive from a shared archive.
10778 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10780 # Create a temporary old-style archive to link instead of a shared archive.
10781 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10783 # Commands used to build and install a shared archive.
10784 archive_cmds=$lt_archive_cmds
10785 archive_expsym_cmds=$lt_archive_expsym_cmds
10786 postinstall_cmds=$lt_postinstall_cmds
10787 postuninstall_cmds=$lt_postuninstall_cmds
10789 # Commands used to build a loadable module (assumed same as above if empty)
10790 module_cmds=$lt_module_cmds
10791 module_expsym_cmds=$lt_module_expsym_cmds
10793 # Commands to strip libraries.
10794 old_striplib=$lt_old_striplib
10795 striplib=$lt_striplib
10797 # Dependencies to place before the objects being linked to create a
10799 predep_objects=$lt_predep_objects
10801 # Dependencies to place after the objects being linked to create a
10803 postdep_objects=$lt_postdep_objects
10805 # Dependencies to place before the objects being linked to create a
10807 predeps=$lt_predeps
10809 # Dependencies to place after the objects being linked to create a
10811 postdeps=$lt_postdeps
10813 # The directories searched by this compiler when creating a shared
10815 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10817 # The library search path used internally by the compiler when linking
10818 # a shared library.
10819 compiler_lib_search_path=$lt_compiler_lib_search_path
10821 # Method to check whether dependent libraries are shared objects.
10822 deplibs_check_method=$lt_deplibs_check_method
10824 # Command to use when deplibs_check_method == file_magic.
10825 file_magic_cmd=$lt_file_magic_cmd
10827 # Flag that allows shared libraries with undefined symbols to be built.
10828 allow_undefined_flag=$lt_allow_undefined_flag
10830 # Flag that forces no undefined symbols.
10831 no_undefined_flag=$lt_no_undefined_flag
10833 # Commands used to finish a libtool library installation in a directory.
10834 finish_cmds=$lt_finish_cmds
10836 # Same as above, but a single script fragment to be evaled but not shown.
10837 finish_eval=$lt_finish_eval
10839 # Take the output of nm and produce a listing of raw symbols and C names.
10840 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10842 # Transform the output of nm in a proper C declaration
10843 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10845 # Transform the output of nm in a C name address pair
10846 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10848 # This is the shared library runtime path variable.
10849 runpath_var=$runpath_var
10851 # This is the shared library path variable.
10852 shlibpath_var=$shlibpath_var
10854 # Is shlibpath searched before the hard-coded library search path?
10855 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10857 # How to hardcode a shared library path into an executable.
10858 hardcode_action=$hardcode_action
10860 # Whether we should hardcode library paths into libraries.
10861 hardcode_into_libs=$hardcode_into_libs
10863 # Flag to hardcode \$libdir into a binary during linking.
10864 # This must work even if \$libdir does not exist.
10865 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10867 # If ld is used when linking, flag to hardcode \$libdir into
10868 # a binary during linking. This must work even if \$libdir does
10870 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10872 # Whether we need a single -rpath flag with a separated argument.
10873 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10875 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10876 # resulting binary.
10877 hardcode_direct=$hardcode_direct
10879 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10880 # resulting binary.
10881 hardcode_minus_L=$hardcode_minus_L
10883 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10884 # the resulting binary.
10885 hardcode_shlibpath_var=$hardcode_shlibpath_var
10887 # Set to yes if building a shared library automatically hardcodes DIR into the library
10888 # and all subsequent libraries and executables linked against it.
10889 hardcode_automatic=$hardcode_automatic
10891 # Variables whose values should be saved in libtool wrapper scripts and
10892 # restored at relink time.
10893 variables_saved_for_relink="$variables_saved_for_relink"
10895 # Whether libtool must link a program against all its dependency libraries.
10896 link_all_deplibs=$link_all_deplibs
10898 # Compile-time system search path for libraries
10899 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10901 # Run-time system search path for libraries
10902 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10904 # Fix the shell variable \$srcfile for the compiler.
10905 fix_srcfile_path=$lt_fix_srcfile_path
10907 # Set to yes if exported symbols are required.
10908 always_export_symbols=$always_export_symbols
10910 # The commands to list exported symbols.
10911 export_symbols_cmds=$lt_export_symbols_cmds
10913 # The commands to extract the exported symbol list from a shared archive.
10914 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10916 # Symbols that should not be listed in the preloaded symbols.
10917 exclude_expsyms=$lt_exclude_expsyms
10919 # Symbols that must always be exported.
10920 include_expsyms=$lt_include_expsyms
10922 # ### END LIBTOOL CONFIG
10929 cat <<\EOF >> "$cfgfile"
10931 # AIX sometimes has problems with the GCC collect2 program. For some
10932 # reason, if we set the COLLECT_NAMES environment variable, the problems
10933 # vanish in a puff of smoke.
10934 if test "X${COLLECT_NAMES+set}" != Xset; then
10936 export COLLECT_NAMES
10942 # We use sed instead of cat because bash on DJGPP gets confused if
10943 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10944 # text mode, it properly converts lines to CR/LF. This bash problem
10945 # is reportedly fixed, but why not run on old versions too?
10946 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10948 mv -f "$cfgfile" "$ofile" || \
10949 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10953 # If there is no Makefile yet, we rely on a make rule to execute
10954 # `config.status --recheck' to rerun these tests and create the
10955 # libtool script then.
10956 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10957 if test -f "$ltmain_in"; then
10958 test -f Makefile && make "$ltmain"
10964 ac_cpp='$CPP $CPPFLAGS'
10965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10972 # Check whether --with-tags was given.
10973 if test "${with_tags+set}" = set; then
10974 withval=$with_tags; tagnames="$withval"
10978 if test -f "$ltmain" && test -n "$tagnames"; then
10979 if test ! -f "${ofile}"; then
10980 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10981 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10984 if test -z "$LTCC"; then
10985 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10986 if test -z "$LTCC"; then
10987 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10988 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10990 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10991 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10994 if test -z "$LTCFLAGS"; then
10995 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10998 # Extract list of available tagged configurations in $ofile.
10999 # Note that this assumes the entire list is on one line.
11000 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11002 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11003 for tagname in $tagnames; do
11005 # Check whether tagname contains only valid characters
11006 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11008 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11009 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11010 { (exit 1); exit 1; }; }
11014 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11016 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11017 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11018 { (exit 1); exit 1; }; }
11021 # Update the list of available tags.
11022 if test -n "$tagname"; then
11023 echo appending configuration tag \"$tagname\" to $ofile
11027 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11028 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11029 (test "X$CXX" != "Xg++"))) ; then
11031 ac_cpp='$CXXCPP $CPPFLAGS'
11032 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11033 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11034 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11039 archive_cmds_need_lc_CXX=no
11040 allow_undefined_flag_CXX=
11041 always_export_symbols_CXX=no
11042 archive_expsym_cmds_CXX=
11043 export_dynamic_flag_spec_CXX=
11044 hardcode_direct_CXX=no
11045 hardcode_libdir_flag_spec_CXX=
11046 hardcode_libdir_flag_spec_ld_CXX=
11047 hardcode_libdir_separator_CXX=
11048 hardcode_minus_L_CXX=no
11049 hardcode_shlibpath_var_CXX=unsupported
11050 hardcode_automatic_CXX=no
11052 module_expsym_cmds_CXX=
11053 link_all_deplibs_CXX=unknown
11054 old_archive_cmds_CXX=$old_archive_cmds
11055 no_undefined_flag_CXX=
11056 whole_archive_flag_spec_CXX=
11057 enable_shared_with_static_runtimes_CXX=no
11059 # Dependencies to place before and after the object being linked:
11060 predep_objects_CXX=
11061 postdep_objects_CXX=
11064 compiler_lib_search_path_CXX=
11065 compiler_lib_search_dirs_CXX=
11067 # Source file extension for C++ test sources.
11070 # Object file extension for compiled C++ test sources.
11074 # Code to be used in simple compile tests
11075 lt_simple_compile_test_code="int some_variable = 0;"
11077 # Code to be used in simple link tests
11078 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11080 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11082 # If no C compiler was specified, use CC.
11085 # If no C compiler flags were specified, use CFLAGS.
11086 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11088 # Allow CC to be a program name with arguments.
11092 # save warnings/boilerplate of simple test code
11093 ac_outfile=conftest.$ac_objext
11094 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11095 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11096 _lt_compiler_boilerplate=`cat conftest.err`
11099 ac_outfile=conftest.$ac_objext
11100 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11101 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11102 _lt_linker_boilerplate=`cat conftest.err`
11106 # Allow CC to be a program name with arguments.
11111 lt_save_with_gnu_ld=$with_gnu_ld
11112 lt_save_path_LD=$lt_cv_path_LD
11113 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11114 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11116 $as_unset lt_cv_prog_gnu_ld
11118 if test -n "${lt_cv_path_LDCXX+set}"; then
11119 lt_cv_path_LD=$lt_cv_path_LDCXX
11121 $as_unset lt_cv_path_LD
11123 test -z "${LDCXX+set}" || LD=$LDCXX
11127 for cc_temp in $compiler""; do
11129 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11130 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11135 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11138 # We don't want -fno-exception wen compiling C++ code, so set the
11139 # no_builtin_flag separately
11140 if test "$GXX" = yes; then
11141 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11143 lt_prog_compiler_no_builtin_flag_CXX=
11146 if test "$GXX" = yes; then
11147 # Set up default GNU C++ configuration
11150 # Check whether --with-gnu-ld was given.
11151 if test "${with_gnu_ld+set}" = set; then
11152 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11158 if test "$GCC" = yes; then
11159 # Check if gcc -print-prog-name=ld gives a path.
11160 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11161 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11164 # gcc leaves a trailing carriage return which upsets mingw
11165 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11167 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11170 # Accept absolute paths.
11172 re_direlt='/[^/][^/]*/\.\./'
11173 # Canonicalize the pathname of ld
11174 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11175 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11176 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11178 test -z "$LD" && LD="$ac_prog"
11181 # If it fails, then pretend we aren't using GCC.
11185 # If it is relative, then search for the first ld in PATH.
11186 with_gnu_ld=unknown
11189 elif test "$with_gnu_ld" = yes; then
11190 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11191 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11193 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11194 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11196 if test "${lt_cv_path_LD+set}" = set; then
11197 echo $ECHO_N "(cached) $ECHO_C" >&6
11199 if test -z "$LD"; then
11200 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11201 for ac_dir in $PATH; do
11203 test -z "$ac_dir" && ac_dir=.
11204 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11205 lt_cv_path_LD="$ac_dir/$ac_prog"
11206 # Check to see if the program is GNU ld. I'd rather use --version,
11207 # but apparently some variants of GNU ld only accept -v.
11208 # Break only if it was the GNU/non-GNU ld that we prefer.
11209 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11210 *GNU* | *'with BFD'*)
11211 test "$with_gnu_ld" != no && break
11214 test "$with_gnu_ld" != yes && break
11221 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11225 LD="$lt_cv_path_LD"
11226 if test -n "$LD"; then
11227 { echo "$as_me:$LINENO: result: $LD" >&5
11228 echo "${ECHO_T}$LD" >&6; }
11230 { echo "$as_me:$LINENO: result: no" >&5
11231 echo "${ECHO_T}no" >&6; }
11233 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11234 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11235 { (exit 1); exit 1; }; }
11236 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11237 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11238 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11239 echo $ECHO_N "(cached) $ECHO_C" >&6
11241 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11242 case `$LD -v 2>&1 </dev/null` in
11243 *GNU* | *'with BFD'*)
11244 lt_cv_prog_gnu_ld=yes
11247 lt_cv_prog_gnu_ld=no
11251 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11252 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11253 with_gnu_ld=$lt_cv_prog_gnu_ld
11257 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11258 # archiving commands below assume that GNU ld is being used.
11259 if test "$with_gnu_ld" = yes; then
11260 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11261 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'
11263 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11264 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11266 # If archive_cmds runs LD, not CC, wlarc should be empty
11267 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11268 # investigate it a little bit more. (MM)
11271 # ancient GNU ld didn't support --whole-archive et. al.
11272 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11273 grep 'no-whole-archive' > /dev/null; then
11274 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11276 whole_archive_flag_spec_CXX=
11282 # A generic and very simple default shared library creation
11283 # command for GNU C++ for the case where it uses the native
11284 # linker, instead of GNU ld. If possible, this setting should
11285 # overridden to take advantage of the native linker features on
11286 # the platform it is being used on.
11287 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11290 # Commands to make compiler produce verbose output that lists
11291 # what "hidden" libraries, object files and flags are used when
11292 # linking a shared library.
11293 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11301 # PORTME: fill in a description of your system's C++ link characteristics
11302 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11303 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11307 # FIXME: insert proper C++ library support
11311 if test "$host_cpu" = ia64; then
11312 # On IA64, the linker does run time linking by default, so we don't
11313 # have to do anything special.
11314 aix_use_runtimelinking=no
11315 exp_sym_flag='-Bexport'
11318 aix_use_runtimelinking=no
11320 # Test if we are trying to use run time linking or normal
11321 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11322 # need to do runtime linking.
11323 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11324 for ld_flag in $LDFLAGS; do
11327 aix_use_runtimelinking=yes
11335 exp_sym_flag='-bexport'
11336 no_entry_flag='-bnoentry'
11339 # When large executables or shared objects are built, AIX ld can
11340 # have problems creating the table of contents. If linking a library
11341 # or program results in "error TOC overflow" add -mminimal-toc to
11342 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11343 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11345 archive_cmds_CXX=''
11346 hardcode_direct_CXX=yes
11347 hardcode_libdir_separator_CXX=':'
11348 link_all_deplibs_CXX=yes
11350 if test "$GXX" = yes; then
11351 case $host_os in aix4.[012]|aix4.[012].*)
11352 # We only want to do this on AIX 4.2 and lower, the check
11353 # below for broken collect2 doesn't work under 4.3+
11354 collect2name=`${CC} -print-prog-name=collect2`
11355 if test -f "$collect2name" && \
11356 strings "$collect2name" | grep resolve_lib_name >/dev/null
11358 # We have reworked collect2
11361 # We have old collect2
11362 hardcode_direct_CXX=unsupported
11363 # It fails to find uninstalled libraries when the uninstalled
11364 # path is not listed in the libpath. Setting hardcode_minus_L
11365 # to unsupported forces relinking
11366 hardcode_minus_L_CXX=yes
11367 hardcode_libdir_flag_spec_CXX='-L$libdir'
11368 hardcode_libdir_separator_CXX=
11372 shared_flag='-shared'
11373 if test "$aix_use_runtimelinking" = yes; then
11374 shared_flag="$shared_flag "'${wl}-G'
11378 if test "$host_cpu" = ia64; then
11379 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11380 # chokes on -Wl,-G. The following line is correct:
11383 if test "$aix_use_runtimelinking" = yes; then
11384 shared_flag='${wl}-G'
11386 shared_flag='${wl}-bM:SRE'
11391 # It seems that -bexpall does not export symbols beginning with
11392 # underscore (_), so it is better to generate a list of symbols to export.
11393 always_export_symbols_CXX=yes
11394 if test "$aix_use_runtimelinking" = yes; then
11395 # Warning - without using the other runtime loading flags (-brtl),
11396 # -berok will link without error, but may produce a broken library.
11397 allow_undefined_flag_CXX='-berok'
11398 # Determine the default libpath from the value encoded in an empty executable.
11399 cat >conftest.$ac_ext <<_ACEOF
11402 cat confdefs.h >>conftest.$ac_ext
11403 cat >>conftest.$ac_ext <<_ACEOF
11404 /* end confdefs.h. */
11414 rm -f conftest.$ac_objext conftest$ac_exeext
11415 if { (ac_try="$ac_link"
11416 case "(($ac_try" in
11417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11418 *) ac_try_echo=$ac_try;;
11420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11421 (eval "$ac_link") 2>conftest.er1
11423 grep -v '^ *+' conftest.er1 >conftest.err
11425 cat conftest.err >&5
11426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427 (exit $ac_status); } && {
11428 test -z "$ac_cxx_werror_flag" ||
11429 test ! -s conftest.err
11430 } && test -s conftest$ac_exeext &&
11431 $as_test_x conftest$ac_exeext; then
11433 lt_aix_libpath_sed='
11434 /Import File Strings/,/^$/ {
11440 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11441 # Check for a 64-bit object if we didn't find anything.
11442 if test -z "$aix_libpath"; then
11443 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11446 echo "$as_me: failed program was:" >&5
11447 sed 's/^/| /' conftest.$ac_ext >&5
11452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11453 conftest$ac_exeext conftest.$ac_ext
11454 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11456 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11458 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11460 if test "$host_cpu" = ia64; then
11461 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11462 allow_undefined_flag_CXX="-z nodefs"
11463 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11465 # Determine the default libpath from the value encoded in an empty executable.
11466 cat >conftest.$ac_ext <<_ACEOF
11469 cat confdefs.h >>conftest.$ac_ext
11470 cat >>conftest.$ac_ext <<_ACEOF
11471 /* end confdefs.h. */
11481 rm -f conftest.$ac_objext conftest$ac_exeext
11482 if { (ac_try="$ac_link"
11483 case "(($ac_try" in
11484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11485 *) ac_try_echo=$ac_try;;
11487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11488 (eval "$ac_link") 2>conftest.er1
11490 grep -v '^ *+' conftest.er1 >conftest.err
11492 cat conftest.err >&5
11493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494 (exit $ac_status); } && {
11495 test -z "$ac_cxx_werror_flag" ||
11496 test ! -s conftest.err
11497 } && test -s conftest$ac_exeext &&
11498 $as_test_x conftest$ac_exeext; then
11500 lt_aix_libpath_sed='
11501 /Import File Strings/,/^$/ {
11507 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11508 # Check for a 64-bit object if we didn't find anything.
11509 if test -z "$aix_libpath"; then
11510 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11513 echo "$as_me: failed program was:" >&5
11514 sed 's/^/| /' conftest.$ac_ext >&5
11519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11520 conftest$ac_exeext conftest.$ac_ext
11521 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11523 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11524 # Warning - without using the other run time loading flags,
11525 # -berok will link without error, but may produce a broken library.
11526 no_undefined_flag_CXX=' ${wl}-bernotok'
11527 allow_undefined_flag_CXX=' ${wl}-berok'
11528 # Exported symbols can be pulled into shared objects from archives
11529 whole_archive_flag_spec_CXX='$convenience'
11530 archive_cmds_need_lc_CXX=yes
11531 # This is similar to how AIX traditionally builds its shared libraries.
11532 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11538 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11539 allow_undefined_flag_CXX=unsupported
11540 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11541 # support --undefined. This deserves some investigation. FIXME
11542 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11549 case $cc_basename in
11551 # FIXME: insert proper C++ library support
11557 cygwin* | mingw* | pw32*)
11558 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11559 # as there is no search path for DLLs.
11560 hardcode_libdir_flag_spec_CXX='-L$libdir'
11561 allow_undefined_flag_CXX=unsupported
11562 always_export_symbols_CXX=no
11563 enable_shared_with_static_runtimes_CXX=yes
11565 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11566 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11567 # If the export-symbols file already is a .def file (1st line
11568 # is EXPORTS), use it as is; otherwise, prepend...
11569 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11570 cp $export_symbols $output_objdir/$soname.def;
11572 echo EXPORTS > $output_objdir/$soname.def;
11573 cat $export_symbols >> $output_objdir/$soname.def;
11575 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11580 darwin* | rhapsody*)
11581 archive_cmds_need_lc_CXX=no
11582 hardcode_direct_CXX=no
11583 hardcode_automatic_CXX=yes
11584 hardcode_shlibpath_var_CXX=unsupported
11585 whole_archive_flag_spec_CXX=''
11586 link_all_deplibs_CXX=yes
11587 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11588 if test "$GXX" = yes ; then
11589 output_verbose_link_cmd='echo'
11590 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11591 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11592 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11593 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11594 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11595 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${_lt_dsymutil}"
11596 archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
11599 case $cc_basename in
11601 output_verbose_link_cmd='echo'
11602 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11603 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11604 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11605 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11606 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}'
11616 case $cc_basename in
11618 # FIXME: insert proper C++ library support
11622 # Green Hills C++ Compiler
11623 # FIXME: insert proper C++ library support
11627 # FIXME: insert proper C++ library support
11633 # C++ shared libraries reported to be fairly broken before switch to ELF
11637 archive_cmds_need_lc_CXX=no
11639 freebsd* | dragonfly*)
11640 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11647 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11648 hardcode_libdir_separator_CXX=:
11649 export_dynamic_flag_spec_CXX='${wl}-E'
11650 hardcode_direct_CXX=yes
11651 hardcode_minus_L_CXX=yes # Not in the search PATH,
11652 # but as the default
11653 # location of the library.
11655 case $cc_basename in
11657 # FIXME: insert proper C++ library support
11661 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'
11662 # Commands to make compiler produce verbose output that lists
11663 # what "hidden" libraries, object files and flags are used when
11664 # linking a shared library.
11666 # There doesn't appear to be a way to prevent this compiler from
11667 # explicitly linking system object files so we need to strip them
11668 # from the output so that they don't get included in the library
11670 output_verbose_link_cmd='templist=`($CC -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'
11673 if test "$GXX" = yes; then
11674 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'
11676 # FIXME: insert proper C++ library support
11683 if test $with_gnu_ld = no; then
11684 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11685 hardcode_libdir_separator_CXX=:
11690 export_dynamic_flag_spec_CXX='${wl}-E'
11696 hardcode_direct_CXX=no
11697 hardcode_shlibpath_var_CXX=no
11700 hardcode_direct_CXX=yes
11701 hardcode_minus_L_CXX=yes # Not in the search PATH,
11702 # but as the default
11703 # location of the library.
11707 case $cc_basename in
11709 # FIXME: insert proper C++ library support
11715 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11718 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11721 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11724 # Commands to make compiler produce verbose output that lists
11725 # what "hidden" libraries, object files and flags are used when
11726 # linking a shared library.
11728 # There doesn't appear to be a way to prevent this compiler from
11729 # explicitly linking system object files so we need to strip them
11730 # from the output so that they don't get included in the library
11732 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'
11735 if test "$GXX" = yes; then
11736 if test $with_gnu_ld = no; then
11739 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11742 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11745 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'
11750 # FIXME: insert proper C++ library support
11757 hardcode_direct_CXX=no
11758 hardcode_shlibpath_var_CXX=no
11759 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11760 export_dynamic_flag_spec_CXX='${wl}-E'
11761 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11762 # Instead, shared libraries are loaded at an image base (0x10000000 by
11763 # default) and relocated if they conflict, which is a slow very memory
11764 # consuming and fragmenting process. To avoid this, we pick a random,
11765 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11766 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11767 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11768 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11771 case $cc_basename in
11774 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'
11776 # Archives containing C++ object files must be created using
11777 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11778 # necessary to make sure instantiated templates are included
11780 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11783 if test "$GXX" = yes; then
11784 if test "$with_gnu_ld" = no; then
11785 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'
11787 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'
11790 link_all_deplibs_CXX=yes
11793 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11794 hardcode_libdir_separator_CXX=:
11796 linux* | k*bsd*-gnu)
11797 case $cc_basename in
11799 # Kuck and Associates, Inc. (KAI) C++ Compiler
11801 # KCC will only create a shared library if the output file
11802 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11803 # to its proper name (with version) after linking.
11804 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'
11805 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'
11806 # Commands to make compiler produce verbose output that lists
11807 # what "hidden" libraries, object files and flags are used when
11808 # linking a shared library.
11810 # There doesn't appear to be a way to prevent this compiler from
11811 # explicitly linking system object files so we need to strip them
11812 # from the output so that they don't get included in the library
11814 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'
11816 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11817 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11819 # Archives containing C++ object files must be created using
11820 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11821 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11826 # version 8.0 and above of icpc choke on multiply defined symbols
11827 # if we add $predep_objects and $postdep_objects, however 7.1 and
11828 # earlier do not add the objects themselves.
11829 case `$CC -V 2>&1` in
11831 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11832 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'
11834 *) # Version 8.0 or newer
11837 ia64*) tmp_idyn=' -i_dynamic';;
11839 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11840 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'
11843 archive_cmds_need_lc_CXX=no
11844 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11845 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11846 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11849 # Portland Group C++ compiler
11850 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11851 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'
11853 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11854 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11855 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'
11859 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11860 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'
11862 runpath_var=LD_RUN_PATH
11863 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11864 hardcode_libdir_separator_CXX=:
11866 # Commands to make compiler produce verbose output that lists
11867 # what "hidden" libraries, object files and flags are used when
11868 # linking a shared library.
11870 # There doesn't appear to be a way to prevent this compiler from
11871 # explicitly linking system object files so we need to strip them
11872 # from the output so that they don't get included in the library
11874 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'
11877 case `$CC -V 2>&1 | sed 5q` in
11880 no_undefined_flag_CXX=' -zdefs'
11881 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11882 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11883 hardcode_libdir_flag_spec_CXX='-R$libdir'
11884 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11886 # Not sure whether something based on
11887 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11889 output_verbose_link_cmd='echo'
11891 # Archives containing C++ object files must be created using
11892 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11893 # necessary to make sure instantiated templates are included
11895 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11902 # FIXME: insert proper C++ library support
11906 # FIXME: insert proper C++ library support
11910 case $cc_basename in
11912 # FIXME: insert proper C++ library support
11916 # FIXME: insert proper C++ library support
11921 netbsd* | netbsdelf*-gnu)
11922 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11923 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11925 hardcode_libdir_flag_spec_CXX='-R$libdir'
11926 hardcode_direct_CXX=yes
11927 hardcode_shlibpath_var_CXX=no
11929 # Workaround some broken pre-1.5 toolchains
11930 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11933 # C++ shared libraries are fairly broken
11937 if test -f /usr/libexec/ld.so; then
11938 hardcode_direct_CXX=yes
11939 hardcode_shlibpath_var_CXX=no
11940 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11941 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11942 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11943 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11944 export_dynamic_flag_spec_CXX='${wl}-E'
11945 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11947 output_verbose_link_cmd='echo'
11953 case $cc_basename in
11955 # Kuck and Associates, Inc. (KAI) C++ Compiler
11957 # KCC will only create a shared library if the output file
11958 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11959 # to its proper name (with version) after linking.
11960 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'
11962 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11963 hardcode_libdir_separator_CXX=:
11965 # Archives containing C++ object files must be created using
11966 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11967 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11971 # Rational C++ 2.4.1
11972 # FIXME: insert proper C++ library support
11976 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11977 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'
11979 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11980 hardcode_libdir_separator_CXX=:
11982 # Commands to make compiler produce verbose output that lists
11983 # what "hidden" libraries, object files and flags are used when
11984 # linking a shared library.
11986 # There doesn't appear to be a way to prevent this compiler from
11987 # explicitly linking system object files so we need to strip them
11988 # from the output so that they don't get included in the library
11990 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'
11993 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11994 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11995 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'
11997 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11998 hardcode_libdir_separator_CXX=:
12000 # Commands to make compiler produce verbose output that lists
12001 # what "hidden" libraries, object files and flags are used when
12002 # linking a shared library.
12003 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12006 # FIXME: insert proper C++ library support
12013 case $cc_basename in
12015 # Kuck and Associates, Inc. (KAI) C++ Compiler
12017 # KCC will only create a shared library if the output file
12018 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12019 # to its proper name (with version) after linking.
12020 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'
12022 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12023 hardcode_libdir_separator_CXX=:
12025 # Archives containing C++ object files must be created using
12026 # the KAI C++ compiler.
12027 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12030 # Rational C++ 2.4.1
12031 # FIXME: insert proper C++ library support
12035 allow_undefined_flag_CXX=' -expect_unresolved \*'
12036 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'
12037 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12038 echo "-hidden">> $lib.exp~
12039 $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~
12042 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12043 hardcode_libdir_separator_CXX=:
12045 # Commands to make compiler produce verbose output that lists
12046 # what "hidden" libraries, object files and flags are used when
12047 # linking a shared library.
12049 # There doesn't appear to be a way to prevent this compiler from
12050 # explicitly linking system object files so we need to strip them
12051 # from the output so that they don't get included in the library
12053 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'
12056 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12057 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12058 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'
12060 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12061 hardcode_libdir_separator_CXX=:
12063 # Commands to make compiler produce verbose output that lists
12064 # what "hidden" libraries, object files and flags are used when
12065 # linking a shared library.
12066 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12069 # FIXME: insert proper C++ library support
12076 # FIXME: insert proper C++ library support
12080 case $cc_basename in
12083 # FIXME: insert proper C++ library support
12088 # FIXME: insert proper C++ library support
12092 # FIXME: insert proper C++ library support
12098 case $cc_basename in
12100 # Sun C++ 4.2, 5.x and Centerline C++
12101 archive_cmds_need_lc_CXX=yes
12102 no_undefined_flag_CXX=' -zdefs'
12103 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12104 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12105 $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'
12107 hardcode_libdir_flag_spec_CXX='-R$libdir'
12108 hardcode_shlibpath_var_CXX=no
12110 solaris2.[0-5] | solaris2.[0-5].*) ;;
12112 # The compiler driver will combine and reorder linker options,
12113 # but understands `-z linker_flag'.
12114 # Supported since Solaris 2.6 (maybe 2.5.1?)
12115 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12118 link_all_deplibs_CXX=yes
12120 output_verbose_link_cmd='echo'
12122 # Archives containing C++ object files must be created using
12123 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12124 # necessary to make sure instantiated templates are included
12126 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12129 # Green Hills C++ Compiler
12130 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12132 # The C++ compiler must be used to create the archive.
12133 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12136 # GNU C++ compiler with Solaris linker
12137 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12138 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12139 if $CC --version | grep -v '^2\.7' > /dev/null; then
12140 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12141 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12142 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12144 # Commands to make compiler produce verbose output that lists
12145 # what "hidden" libraries, object files and flags are used when
12146 # linking a shared library.
12147 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12149 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12151 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12152 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12153 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12155 # Commands to make compiler produce verbose output that lists
12156 # what "hidden" libraries, object files and flags are used when
12157 # linking a shared library.
12158 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12161 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12163 solaris2.[0-5] | solaris2.[0-5].*) ;;
12165 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12172 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12173 no_undefined_flag_CXX='${wl}-z,text'
12174 archive_cmds_need_lc_CXX=no
12175 hardcode_shlibpath_var_CXX=no
12176 runpath_var='LD_RUN_PATH'
12178 case $cc_basename in
12180 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12181 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12184 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12185 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12189 sysv5* | sco3.2v5* | sco5v6*)
12190 # Note: We can NOT use -z defs as we might desire, because we do not
12191 # link with -lc, and that would cause any symbols used from libc to
12192 # always be unresolved, which means just about no library would
12193 # ever link correctly. If we're not using GNU ld we use -z text
12194 # though, which does catch some bad symbols but isn't as heavy-handed
12196 # For security reasons, it is highly recommended that you always
12197 # use absolute paths for naming shared libraries, and exclude the
12198 # DT_RUNPATH tag from executables and libraries. But doing so
12199 # requires that you compile everything twice, which is a pain.
12200 # So that behaviour is only enabled if SCOABSPATH is set to a
12201 # non-empty value in the environment. Most likely only useful for
12202 # creating official distributions of packages.
12203 # This is a hack until libtool officially supports absolute path
12204 # names for shared libraries.
12205 no_undefined_flag_CXX='${wl}-z,text'
12206 allow_undefined_flag_CXX='${wl}-z,nodefs'
12207 archive_cmds_need_lc_CXX=no
12208 hardcode_shlibpath_var_CXX=no
12209 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12210 hardcode_libdir_separator_CXX=':'
12211 link_all_deplibs_CXX=yes
12212 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12213 runpath_var='LD_RUN_PATH'
12215 case $cc_basename in
12217 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12218 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12221 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12222 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12227 case $cc_basename in
12229 # NonStop-UX NCC 3.20
12230 # FIXME: insert proper C++ library support
12234 # FIXME: insert proper C++ library support
12240 # FIXME: insert proper C++ library support
12244 # FIXME: insert proper C++ library support
12248 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12249 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12250 test "$ld_shlibs_CXX" = no && can_build_shared=no
12255 cat > conftest.$ac_ext <<EOF
12259 Foo (void) { a = 0; }
12265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12266 (eval $ac_compile) 2>&5
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); }; then
12270 # Parse the compiler output and extract the necessary
12271 # objects, libraries and library flags.
12273 # Sentinel used to keep track of whether or not we are before
12274 # the conftest object file.
12275 pre_test_object_deps_done=no
12277 # The `*' in the case matches for architectures that use `case' in
12278 # $output_verbose_cmd can trigger glob expansion during the loop
12279 # eval without this substitution.
12280 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12282 for p in `eval $output_verbose_link_cmd`; do
12286 # Some compilers place space between "-{L,R}" and the path.
12287 # Remove the space.
12288 if test $p = "-L" \
12289 || test $p = "-R"; then
12296 if test "$pre_test_object_deps_done" = no; then
12299 # Internal compiler library paths should come after those
12300 # provided the user. The postdeps already come after the
12301 # user supplied libs so there is no need to process them.
12302 if test -z "$compiler_lib_search_path_CXX"; then
12303 compiler_lib_search_path_CXX="${prev}${p}"
12305 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12308 # The "-l" case would never come before the object being
12309 # linked, so don't bother handling this case.
12312 if test -z "$postdeps_CXX"; then
12313 postdeps_CXX="${prev}${p}"
12315 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12321 # This assumes that the test object file only shows up
12322 # once in the compiler output.
12323 if test "$p" = "conftest.$objext"; then
12324 pre_test_object_deps_done=yes
12328 if test "$pre_test_object_deps_done" = no; then
12329 if test -z "$predep_objects_CXX"; then
12330 predep_objects_CXX="$p"
12332 predep_objects_CXX="$predep_objects_CXX $p"
12335 if test -z "$postdep_objects_CXX"; then
12336 postdep_objects_CXX="$p"
12338 postdep_objects_CXX="$postdep_objects_CXX $p"
12343 *) ;; # Ignore the rest.
12351 echo "libtool.m4: error: problem compiling CXX test program"
12354 $rm -f confest.$objext
12356 compiler_lib_search_dirs_CXX=
12357 if test -n "$compiler_lib_search_path_CXX"; then
12358 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12361 # PORTME: override above test on systems where it is broken
12364 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12365 # hack all around it, let's just trust "g++" to DTRT.
12366 predep_objects_CXX=
12367 postdep_objects_CXX=
12372 case `$CC -V 2>&1 | sed 5q` in
12376 # The more standards-conforming stlport4 library is
12377 # incompatible with the Cstd library. Avoid specifying
12378 # it if it's in CXXFLAGS. Ignore libCrun as
12379 # -library=stlport4 depends on it.
12380 case " $CXX $CXXFLAGS " in
12381 *" -library=stlport4 "*)
12382 solaris_use_stlport4=yes
12385 if test "$solaris_use_stlport4" != yes; then
12386 postdeps_CXX='-library=Cstd -library=Crun'
12393 case $cc_basename in
12395 # The more standards-conforming stlport4 library is
12396 # incompatible with the Cstd library. Avoid specifying
12397 # it if it's in CXXFLAGS. Ignore libCrun as
12398 # -library=stlport4 depends on it.
12399 case " $CXX $CXXFLAGS " in
12400 *" -library=stlport4 "*)
12401 solaris_use_stlport4=yes
12405 # Adding this requires a known-good setup of shared libraries for
12406 # Sun compiler versions before 5.6, else PIC objects from an old
12407 # archive will be linked into the output, leading to subtle bugs.
12408 if test "$solaris_use_stlport4" != yes; then
12409 postdeps_CXX='-library=Cstd -library=Crun'
12416 case " $postdeps_CXX " in
12417 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12420 lt_prog_compiler_wl_CXX=
12421 lt_prog_compiler_pic_CXX=
12422 lt_prog_compiler_static_CXX=
12424 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12425 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12427 # C++ specific cases for pic, static, wl, etc.
12428 if test "$GXX" = yes; then
12429 lt_prog_compiler_wl_CXX='-Wl,'
12430 lt_prog_compiler_static_CXX='-static'
12434 # All AIX code is PIC.
12435 if test "$host_cpu" = ia64; then
12436 # AIX 5 now supports IA64 processor
12437 lt_prog_compiler_static_CXX='-Bstatic'
12441 # FIXME: we need at least 68020 code to build shared libraries, but
12442 # adding the `-m68020' flag to GCC prevents building anything better,
12444 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12446 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12447 # PIC is the default for these OSes.
12449 mingw* | cygwin* | os2* | pw32*)
12450 # This hack is so that the source file can tell whether it is being
12451 # built for inclusion in a dll (and should export symbols for example).
12452 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12453 # (--disable-auto-import) libraries
12454 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12456 darwin* | rhapsody*)
12457 # PIC is the default on this platform
12458 # Common symbols not allowed in MH_DYLIB files
12459 lt_prog_compiler_pic_CXX='-fno-common'
12462 # DJGPP does not support shared libraries at all
12463 lt_prog_compiler_pic_CXX=
12466 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12467 # Instead, we relocate shared libraries at runtime.
12470 if test -d /usr/nec; then
12471 lt_prog_compiler_pic_CXX=-Kconform_pic
12475 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12476 # not for PA HP-UX.
12481 lt_prog_compiler_pic_CXX='-fPIC'
12486 lt_prog_compiler_pic_CXX='-fPIC'
12492 # All AIX code is PIC.
12493 if test "$host_cpu" = ia64; then
12494 # AIX 5 now supports IA64 processor
12495 lt_prog_compiler_static_CXX='-Bstatic'
12497 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12501 case $cc_basename in
12503 # Green Hills C++ Compiler
12504 # _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"
12509 # PIC is the default on this platform
12510 # Common symbols not allowed in MH_DYLIB files
12511 case $cc_basename in
12513 lt_prog_compiler_pic_CXX='-qnocommon'
12514 lt_prog_compiler_wl_CXX='-Wl,'
12519 case $cc_basename in
12521 lt_prog_compiler_pic_CXX='-KPIC'
12524 # Green Hills C++ Compiler
12525 lt_prog_compiler_pic_CXX='-pic'
12531 freebsd* | dragonfly*)
12532 # FreeBSD uses GNU C++
12534 hpux9* | hpux10* | hpux11*)
12535 case $cc_basename in
12537 lt_prog_compiler_wl_CXX='-Wl,'
12538 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12539 if test "$host_cpu" != ia64; then
12540 lt_prog_compiler_pic_CXX='+Z'
12544 lt_prog_compiler_wl_CXX='-Wl,'
12545 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12551 lt_prog_compiler_pic_CXX='+Z'
12560 # This is c89, which is MS Visual C++ (no shared libs)
12561 # Anyone wants to do a port?
12563 irix5* | irix6* | nonstopux*)
12564 case $cc_basename in
12566 lt_prog_compiler_wl_CXX='-Wl,'
12567 lt_prog_compiler_static_CXX='-non_shared'
12568 # CC pic flag -KPIC is the default.
12574 linux* | k*bsd*-gnu)
12575 case $cc_basename in
12578 lt_prog_compiler_wl_CXX='--backend -Wl,'
12579 lt_prog_compiler_pic_CXX='-fPIC'
12583 lt_prog_compiler_wl_CXX='-Wl,'
12584 lt_prog_compiler_pic_CXX='-KPIC'
12585 lt_prog_compiler_static_CXX='-static'
12588 # Portland Group C++ compiler.
12589 lt_prog_compiler_wl_CXX='-Wl,'
12590 lt_prog_compiler_pic_CXX='-fpic'
12591 lt_prog_compiler_static_CXX='-Bstatic'
12595 # Make sure the PIC flag is empty. It appears that all Alpha
12596 # Linux and Compaq Tru64 Unix objects are PIC.
12597 lt_prog_compiler_pic_CXX=
12598 lt_prog_compiler_static_CXX='-non_shared'
12601 case `$CC -V 2>&1 | sed 5q` in
12604 lt_prog_compiler_pic_CXX='-KPIC'
12605 lt_prog_compiler_static_CXX='-Bstatic'
12606 lt_prog_compiler_wl_CXX='-Qoption ld '
12617 case $cc_basename in
12619 lt_prog_compiler_pic_CXX='-W c,exportall'
12625 netbsd* | netbsdelf*-gnu)
12627 osf3* | osf4* | osf5*)
12628 case $cc_basename in
12630 lt_prog_compiler_wl_CXX='--backend -Wl,'
12633 # Rational C++ 2.4.1
12634 lt_prog_compiler_pic_CXX='-pic'
12637 # Digital/Compaq C++
12638 lt_prog_compiler_wl_CXX='-Wl,'
12639 # Make sure the PIC flag is empty. It appears that all Alpha
12640 # Linux and Compaq Tru64 Unix objects are PIC.
12641 lt_prog_compiler_pic_CXX=
12642 lt_prog_compiler_static_CXX='-non_shared'
12651 case $cc_basename in
12653 # Sun C++ 4.2, 5.x and Centerline C++
12654 lt_prog_compiler_pic_CXX='-KPIC'
12655 lt_prog_compiler_static_CXX='-Bstatic'
12656 lt_prog_compiler_wl_CXX='-Qoption ld '
12659 # Green Hills C++ Compiler
12660 lt_prog_compiler_pic_CXX='-PIC'
12667 case $cc_basename in
12670 lt_prog_compiler_pic_CXX='-pic'
12671 lt_prog_compiler_static_CXX='-Bstatic'
12675 lt_prog_compiler_pic_CXX='-pic'
12682 case $cc_basename in
12684 # NonStop-UX NCC 3.20
12685 lt_prog_compiler_pic_CXX='-KPIC'
12691 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12692 case $cc_basename in
12694 lt_prog_compiler_wl_CXX='-Wl,'
12695 lt_prog_compiler_pic_CXX='-KPIC'
12696 lt_prog_compiler_static_CXX='-Bstatic'
12703 lt_prog_compiler_can_build_shared_CXX=no
12708 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12709 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12712 # Check to make sure the PIC flag actually works.
12714 if test -n "$lt_prog_compiler_pic_CXX"; then
12716 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12717 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12718 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12719 echo $ECHO_N "(cached) $ECHO_C" >&6
12721 lt_cv_prog_compiler_pic_works_CXX=no
12722 ac_outfile=conftest.$ac_objext
12723 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12724 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12725 # Insert the option either (1) after the last *FLAGS variable, or
12726 # (2) before a word containing "conftest.", or (3) at the end.
12727 # Note that $ac_compile itself does not contain backslashes and begins
12728 # with a dollar sign (not a hyphen), so the echo should work correctly.
12729 # The option is referenced via a variable to avoid confusing sed.
12730 lt_compile=`echo "$ac_compile" | $SED \
12731 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12732 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12733 -e 's:$: $lt_compiler_flag:'`
12734 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
12735 (eval "$lt_compile" 2>conftest.err)
12737 cat conftest.err >&5
12738 echo "$as_me:__oline__: \$? = $ac_status" >&5
12739 if (exit $ac_status) && test -s "$ac_outfile"; then
12740 # The compiler can only warn and ignore the option if not recognized
12741 # So say no if there are warnings other than the usual output.
12742 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12743 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12744 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12745 lt_cv_prog_compiler_pic_works_CXX=yes
12751 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12752 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12754 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12755 case $lt_prog_compiler_pic_CXX in
12757 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12760 lt_prog_compiler_pic_CXX=
12761 lt_prog_compiler_can_build_shared_CXX=no
12766 # For platforms which do not support PIC, -DPIC is meaningless:
12768 lt_prog_compiler_pic_CXX=
12771 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12776 # Check to make sure the static flag actually works.
12778 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12779 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12780 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12781 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12782 echo $ECHO_N "(cached) $ECHO_C" >&6
12784 lt_cv_prog_compiler_static_works_CXX=no
12785 save_LDFLAGS="$LDFLAGS"
12786 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12787 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12788 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12789 # The linker can only warn and ignore the option if not recognized
12790 # So say no if there are warnings
12791 if test -s conftest.err; then
12792 # Append any errors to the config.log.
12793 cat conftest.err 1>&5
12794 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12795 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12796 if diff conftest.exp conftest.er2 >/dev/null; then
12797 lt_cv_prog_compiler_static_works_CXX=yes
12800 lt_cv_prog_compiler_static_works_CXX=yes
12804 LDFLAGS="$save_LDFLAGS"
12807 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12808 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12810 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12813 lt_prog_compiler_static_CXX=
12817 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12818 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12819 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12820 echo $ECHO_N "(cached) $ECHO_C" >&6
12822 lt_cv_prog_compiler_c_o_CXX=no
12823 $rm -r conftest 2>/dev/null
12827 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12829 lt_compiler_flag="-o out/conftest2.$ac_objext"
12830 # Insert the option either (1) after the last *FLAGS variable, or
12831 # (2) before a word containing "conftest.", or (3) at the end.
12832 # Note that $ac_compile itself does not contain backslashes and begins
12833 # with a dollar sign (not a hyphen), so the echo should work correctly.
12834 lt_compile=`echo "$ac_compile" | $SED \
12835 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12836 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12837 -e 's:$: $lt_compiler_flag:'`
12838 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
12839 (eval "$lt_compile" 2>out/conftest.err)
12841 cat out/conftest.err >&5
12842 echo "$as_me:__oline__: \$? = $ac_status" >&5
12843 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12845 # The compiler can only warn and ignore the option if not recognized
12846 # So say no if there are warnings
12847 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12848 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12849 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12850 lt_cv_prog_compiler_c_o_CXX=yes
12855 # SGI C++ compiler will create directory out/ii_files/ for
12856 # template instantiation
12857 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12858 $rm out/* && rmdir out
12864 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12865 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12868 hard_links="nottested"
12869 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12870 # do not overwrite the value of need_locks provided by the user
12871 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12872 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12875 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12877 ln conftest.a conftest.b 2>&5 || hard_links=no
12878 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12879 { echo "$as_me:$LINENO: result: $hard_links" >&5
12880 echo "${ECHO_T}$hard_links" >&6; }
12881 if test "$hard_links" = no; then
12882 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12883 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12890 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12891 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12893 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12896 # If we're using GNU nm, then we don't want the "-C" option.
12897 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12898 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12899 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'
12901 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'
12905 export_symbols_cmds_CXX="$ltdll_cmds"
12908 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'
12910 linux* | k*bsd*-gnu)
12911 link_all_deplibs_CXX=no
12914 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12917 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12919 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12920 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12921 test "$ld_shlibs_CXX" = no && can_build_shared=no
12924 # Do we need to explicitly link libc?
12926 case "x$archive_cmds_need_lc_CXX" in
12928 # Assume -lc should be added
12929 archive_cmds_need_lc_CXX=yes
12931 if test "$enable_shared" = yes && test "$GCC" = yes; then
12932 case $archive_cmds_CXX in
12934 # FIXME: we may have to deal with multi-command sequences.
12937 # Test whether the compiler implicitly links with -lc since on some
12938 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12939 # to ld, don't add -lc before -lgcc.
12940 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12941 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12943 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12946 (eval $ac_compile) 2>&5
12948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); } 2>conftest.err; then
12952 libobjs=conftest.$ac_objext
12954 wl=$lt_prog_compiler_wl_CXX
12955 pic_flag=$lt_prog_compiler_pic_CXX
12961 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12962 allow_undefined_flag_CXX=
12963 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12964 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967 (exit $ac_status); }
12969 archive_cmds_need_lc_CXX=no
12971 archive_cmds_need_lc_CXX=yes
12973 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12975 cat conftest.err 1>&5
12978 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12979 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12986 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12987 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12988 library_names_spec=
12989 libname_spec='lib$name'
12993 postuninstall_cmds=
12997 shlibpath_overrides_runpath=unknown
12999 dynamic_linker="$host_os ld.so"
13000 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13002 need_lib_prefix=unknown
13003 hardcode_into_libs=no
13005 # when you set need_version to no, make sure it does not cause -set_version
13006 # flags to be left without arguments
13007 need_version=unknown
13012 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13013 shlibpath_var=LIBPATH
13015 # AIX 3 has no versioning support, so we append a major version to the name.
13016 soname_spec='${libname}${release}${shared_ext}$major'
13023 hardcode_into_libs=yes
13024 if test "$host_cpu" = ia64; then
13025 # AIX 5 supports IA64
13026 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13027 shlibpath_var=LD_LIBRARY_PATH
13029 # With GCC up to 2.95.x, collect2 would create an import file
13030 # for dependence libraries. The import file would start with
13031 # the line `#! .'. This would cause the generated library to
13032 # depend on `.', always an invalid library. This was fixed in
13033 # development snapshots of GCC prior to 3.0.
13035 aix4 | aix4.[01] | aix4.[01].*)
13036 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13038 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13041 can_build_shared=no
13045 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13046 # soname into executable. Probably we can add versioning support to
13047 # collect2, so additional links can be useful in future.
13048 if test "$aix_use_runtimelinking" = yes; then
13049 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13050 # instead of lib<name>.a to let people know that these are not
13051 # typical AIX shared libraries.
13052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13054 # We preserve .a as extension for shared libraries through AIX4.2
13055 # and later when we are not doing run time linking.
13056 library_names_spec='${libname}${release}.a $libname.a'
13057 soname_spec='${libname}${release}${shared_ext}$major'
13059 shlibpath_var=LIBPATH
13064 library_names_spec='$libname.ixlibrary $libname.a'
13065 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13066 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'
13070 library_names_spec='${libname}${shared_ext}'
13071 dynamic_linker="$host_os ld.so"
13072 shlibpath_var=LIBRARY_PATH
13078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13079 soname_spec='${libname}${release}${shared_ext}$major'
13080 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13081 shlibpath_var=LD_LIBRARY_PATH
13082 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13083 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13084 # the default ld.so.conf also contains /usr/contrib/lib and
13085 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13086 # libtool to hard-code these into programs
13089 cygwin* | mingw* | pw32*)
13090 version_type=windows
13095 case $GCC,$host_os in
13096 yes,cygwin* | yes,mingw* | yes,pw32*)
13097 library_names_spec='$libname.dll.a'
13098 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13099 postinstall_cmds='base_file=`basename \${file}`~
13100 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13101 dldir=$destdir/`dirname \$dlpath`~
13102 test -d \$dldir || mkdir -p \$dldir~
13103 $install_prog $dir/$dlname \$dldir/$dlname~
13104 chmod a+x \$dldir/$dlname'
13105 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13106 dlpath=$dir/\$dldll~
13108 shlibpath_overrides_runpath=yes
13112 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13113 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13114 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13117 # MinGW DLLs use traditional 'lib' prefix
13118 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13119 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13120 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13121 # It is most probably a Windows format PATH printed by
13122 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13123 # path with ; separators, and with drive letters. We can handle the
13124 # drive letters (cygwin fileutils understands them), so leave them,
13125 # especially as we might pass files found there to a mingw objdump,
13126 # which wouldn't understand a cygwinified path. Ahh.
13127 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13129 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13133 # pw32 DLLs use 'pw' prefix rather than 'lib'
13134 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13140 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13143 dynamic_linker='Win32 ld.exe'
13144 # FIXME: first we should search . and the directory the executable is in
13148 darwin* | rhapsody*)
13149 dynamic_linker="$host_os dyld"
13150 version_type=darwin
13153 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13154 soname_spec='${libname}${release}${major}$shared_ext'
13155 shlibpath_overrides_runpath=yes
13156 shlibpath_var=DYLD_LIBRARY_PATH
13157 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13159 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13167 soname_spec='${libname}${release}${shared_ext}$major'
13168 shlibpath_var=LD_LIBRARY_PATH
13175 freebsd* | dragonfly*)
13176 # DragonFly does not have aout. When/if they implement a new
13177 # versioning mechanism, adjust this.
13178 if test -x /usr/bin/objformat; then
13179 objformat=`/usr/bin/objformat`
13182 freebsd[123]*) objformat=aout ;;
13183 *) objformat=elf ;;
13186 version_type=freebsd-$objformat
13187 case $version_type in
13189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13194 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13198 shlibpath_var=LD_LIBRARY_PATH
13201 shlibpath_overrides_runpath=yes
13203 freebsd3.[01]* | freebsdelf3.[01]*)
13204 shlibpath_overrides_runpath=yes
13205 hardcode_into_libs=yes
13207 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13208 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13209 shlibpath_overrides_runpath=no
13210 hardcode_into_libs=yes
13212 *) # from 4.6 on, and DragonFly
13213 shlibpath_overrides_runpath=yes
13214 hardcode_into_libs=yes
13223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13224 soname_spec='${libname}${release}${shared_ext}$major'
13225 shlibpath_var=LD_LIBRARY_PATH
13226 hardcode_into_libs=yes
13229 hpux9* | hpux10* | hpux11*)
13230 # Give a soname corresponding to the major version so that dld.sl refuses to
13231 # link against other versions.
13238 hardcode_into_libs=yes
13239 dynamic_linker="$host_os dld.so"
13240 shlibpath_var=LD_LIBRARY_PATH
13241 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13243 soname_spec='${libname}${release}${shared_ext}$major'
13244 if test "X$HPUX_IA64_MODE" = X32; then
13245 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13247 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13249 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13253 hardcode_into_libs=yes
13254 dynamic_linker="$host_os dld.sl"
13255 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13256 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13258 soname_spec='${libname}${release}${shared_ext}$major'
13259 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13260 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13264 dynamic_linker="$host_os dld.sl"
13265 shlibpath_var=SHLIB_PATH
13266 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13268 soname_spec='${libname}${release}${shared_ext}$major'
13271 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13272 postinstall_cmds='chmod 555 $lib'
13279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13280 soname_spec='${libname}${release}${shared_ext}$major'
13281 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13282 shlibpath_var=LD_LIBRARY_PATH
13283 shlibpath_overrides_runpath=no
13284 hardcode_into_libs=yes
13287 irix5* | irix6* | nonstopux*)
13289 nonstopux*) version_type=nonstopux ;;
13291 if test "$lt_cv_prog_gnu_ld" = yes; then
13299 soname_spec='${libname}${release}${shared_ext}$major'
13300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13302 irix5* | nonstopux*)
13303 libsuff= shlibsuff=
13306 case $LD in # libtool.m4 will add one of these switches to LD
13307 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13308 libsuff= shlibsuff= libmagic=32-bit;;
13309 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13310 libsuff=32 shlibsuff=N32 libmagic=N32;;
13311 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13312 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13313 *) libsuff= shlibsuff= libmagic=never-match;;
13317 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13318 shlibpath_overrides_runpath=no
13319 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13320 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13321 hardcode_into_libs=yes
13324 # No shared lib support for Linux oldld, aout, or coff.
13325 linux*oldld* | linux*aout* | linux*coff*)
13329 # This must be Linux ELF.
13330 linux* | k*bsd*-gnu)
13334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13335 soname_spec='${libname}${release}${shared_ext}$major'
13336 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13337 shlibpath_var=LD_LIBRARY_PATH
13338 shlibpath_overrides_runpath=no
13339 # This implies no fast_install, which is unacceptable.
13340 # Some rework will be needed to allow for fast_install
13341 # before this can be enabled.
13342 hardcode_into_libs=yes
13344 # Append ld.so.conf contents to the search path
13345 if test -f /etc/ld.so.conf; then
13346 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13347 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13350 # We used to test for /lib/ld.so.1 and disable shared libraries on
13351 # powerpc, because MkLinux only supported shared libraries with the
13352 # GNU dynamic linker. Since this was broken with cross compilers,
13353 # most powerpc-linux boxes support dynamic linking these days and
13354 # people can always --disable-shared, the test was removed, and we
13355 # assume the GNU/Linux dynamic linker is in use.
13356 dynamic_linker='GNU/Linux ld.so'
13363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13364 soname_spec='${libname}${release}${shared_ext}$major'
13365 shlibpath_var=LD_LIBRARY_PATH
13366 shlibpath_overrides_runpath=no
13367 hardcode_into_libs=yes
13368 dynamic_linker='NetBSD ld.elf_so'
13375 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13377 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13378 dynamic_linker='NetBSD (a.out) ld.so'
13380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13381 soname_spec='${libname}${release}${shared_ext}$major'
13382 dynamic_linker='NetBSD ld.elf_so'
13384 shlibpath_var=LD_LIBRARY_PATH
13385 shlibpath_overrides_runpath=yes
13386 hardcode_into_libs=yes
13391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13392 shlibpath_var=LD_LIBRARY_PATH
13393 shlibpath_overrides_runpath=yes
13400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13401 soname_spec='${libname}${release}${shared_ext}$major'
13402 shlibpath_var=LD_LIBRARY_PATH
13403 shlibpath_overrides_runpath=yes
13408 sys_lib_dlsearch_path_spec="/usr/lib"
13410 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13412 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13413 *) need_version=no ;;
13415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13416 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13417 shlibpath_var=LD_LIBRARY_PATH
13418 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13420 openbsd2.[89] | openbsd2.[89].*)
13421 shlibpath_overrides_runpath=no
13424 shlibpath_overrides_runpath=yes
13428 shlibpath_overrides_runpath=yes
13433 libname_spec='$name'
13436 library_names_spec='$libname${shared_ext} $libname.a'
13437 dynamic_linker='OS/2 ld.exe'
13438 shlibpath_var=LIBPATH
13441 osf3* | osf4* | osf5*)
13445 soname_spec='${libname}${release}${shared_ext}$major'
13446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13447 shlibpath_var=LD_LIBRARY_PATH
13448 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13449 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13461 soname_spec='${libname}${release}${shared_ext}$major'
13462 shlibpath_var=LD_LIBRARY_PATH
13463 shlibpath_overrides_runpath=yes
13464 hardcode_into_libs=yes
13465 # ldd complains unless libraries are executable
13466 postinstall_cmds='chmod +x $lib'
13471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13472 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13473 shlibpath_var=LD_LIBRARY_PATH
13474 shlibpath_overrides_runpath=yes
13475 if test "$with_gnu_ld" = yes; then
13483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13484 soname_spec='${libname}${release}${shared_ext}$major'
13485 shlibpath_var=LD_LIBRARY_PATH
13486 case $host_vendor in
13488 shlibpath_overrides_runpath=no
13490 export_dynamic_flag_spec='${wl}-Blargedynsym'
13491 runpath_var=LD_RUN_PATH
13499 shlibpath_overrides_runpath=no
13500 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13506 if test -d /usr/nec ;then
13508 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13509 soname_spec='$libname${shared_ext}.$major'
13510 shlibpath_var=LD_LIBRARY_PATH
13514 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13515 version_type=freebsd-elf
13518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13519 soname_spec='${libname}${release}${shared_ext}$major'
13520 shlibpath_var=LD_LIBRARY_PATH
13521 hardcode_into_libs=yes
13522 if test "$with_gnu_ld" = yes; then
13523 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13524 shlibpath_overrides_runpath=no
13526 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13527 shlibpath_overrides_runpath=yes
13530 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13534 sys_lib_dlsearch_path_spec='/usr/lib'
13539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13540 soname_spec='${libname}${release}${shared_ext}$major'
13541 shlibpath_var=LD_LIBRARY_PATH
13548 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13549 echo "${ECHO_T}$dynamic_linker" >&6; }
13550 test "$dynamic_linker" = no && can_build_shared=no
13552 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13553 echo $ECHO_N "(cached) $ECHO_C" >&6
13555 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13558 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13559 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13560 echo $ECHO_N "(cached) $ECHO_C" >&6
13562 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13565 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13567 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13568 if test "$GCC" = yes; then
13569 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13572 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13573 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13574 hardcode_action_CXX=
13575 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13576 test -n "$runpath_var_CXX" || \
13577 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13579 # We can hardcode non-existant directories.
13580 if test "$hardcode_direct_CXX" != no &&
13581 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13582 # have to relink, otherwise we might link with an installed library
13583 # when we should be linking with a yet-to-be-installed one
13584 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13585 test "$hardcode_minus_L_CXX" != no; then
13586 # Linking always hardcodes the temporary library directory.
13587 hardcode_action_CXX=relink
13589 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13590 hardcode_action_CXX=immediate
13593 # We cannot hardcode anything, or else we can only hardcode existing
13595 hardcode_action_CXX=unsupported
13597 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13598 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13600 if test "$hardcode_action_CXX" = relink; then
13601 # Fast installation is not supported
13602 enable_fast_install=no
13603 elif test "$shlibpath_overrides_runpath" = yes ||
13604 test "$enable_shared" = no; then
13605 # Fast installation is not necessary
13606 enable_fast_install=needless
13610 # The else clause should only fire when bootstrapping the
13611 # libtool distribution, otherwise you forgot to ship ltmain.sh
13612 # with your package, and you will get complaints that there are
13613 # no rules to generate ltmain.sh.
13614 if test -f "$ltmain"; then
13615 # See if we are running on zsh, and set the options which allow our commands through
13616 # without removal of \ escapes.
13617 if test -n "${ZSH_VERSION+set}" ; then
13618 setopt NO_GLOB_SUBST
13620 # Now quote all the things that may contain metacharacters while being
13621 # careful not to overquote the AC_SUBSTed values. We take copies of the
13622 # variables and quote the copies for generation of the libtool script.
13623 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13625 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13626 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13627 deplibs_check_method reload_flag reload_cmds need_locks \
13628 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13629 lt_cv_sys_global_symbol_to_c_name_address \
13630 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13631 old_postinstall_cmds old_postuninstall_cmds \
13635 lt_prog_compiler_wl_CXX \
13636 lt_prog_compiler_pic_CXX \
13637 lt_prog_compiler_static_CXX \
13638 lt_prog_compiler_no_builtin_flag_CXX \
13639 export_dynamic_flag_spec_CXX \
13640 thread_safe_flag_spec_CXX \
13641 whole_archive_flag_spec_CXX \
13642 enable_shared_with_static_runtimes_CXX \
13643 old_archive_cmds_CXX \
13644 old_archive_from_new_cmds_CXX \
13645 predep_objects_CXX \
13646 postdep_objects_CXX \
13649 compiler_lib_search_path_CXX \
13650 compiler_lib_search_dirs_CXX \
13652 archive_expsym_cmds_CXX \
13653 postinstall_cmds_CXX \
13654 postuninstall_cmds_CXX \
13655 old_archive_from_expsyms_cmds_CXX \
13656 allow_undefined_flag_CXX \
13657 no_undefined_flag_CXX \
13658 export_symbols_cmds_CXX \
13659 hardcode_libdir_flag_spec_CXX \
13660 hardcode_libdir_flag_spec_ld_CXX \
13661 hardcode_libdir_separator_CXX \
13662 hardcode_automatic_CXX \
13664 module_expsym_cmds_CXX \
13665 lt_cv_prog_compiler_c_o_CXX \
13666 fix_srcfile_path_CXX \
13667 exclude_expsyms_CXX \
13668 include_expsyms_CXX; do
13671 old_archive_cmds_CXX | \
13672 old_archive_from_new_cmds_CXX | \
13673 archive_cmds_CXX | \
13674 archive_expsym_cmds_CXX | \
13675 module_cmds_CXX | \
13676 module_expsym_cmds_CXX | \
13677 old_archive_from_expsyms_cmds_CXX | \
13678 export_symbols_cmds_CXX | \
13679 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13680 postinstall_cmds | postuninstall_cmds | \
13681 old_postinstall_cmds | old_postuninstall_cmds | \
13682 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13683 # Double-quote double-evaled strings.
13684 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13687 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13693 *'\$0 --fallback-echo"')
13694 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13700 cat <<__EOF__ >> "$cfgfile"
13701 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13703 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13705 # Shell to use when invoking shell scripts.
13708 # Whether or not to build shared libraries.
13709 build_libtool_libs=$enable_shared
13711 # Whether or not to build static libraries.
13712 build_old_libs=$enable_static
13714 # Whether or not to add -lc for building shared libraries.
13715 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13717 # Whether or not to disallow shared libs when runtime libs are static
13718 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13720 # Whether or not to optimize for fast installation.
13721 fast_install=$enable_fast_install
13724 host_alias=$host_alias
13728 # The build system.
13729 build_alias=$build_alias
13733 # An echo program that does not interpret backslashes.
13738 AR_FLAGS=$lt_AR_FLAGS
13743 # LTCC compiler flags.
13744 LTCFLAGS=$lt_LTCFLAGS
13746 # A language-specific compiler.
13747 CC=$lt_compiler_CXX
13749 # Is the compiler the GNU C compiler?
13755 # The linker used to build libraries.
13758 # Whether we need hard or soft links.
13761 # A BSD-compatible nm program.
13764 # A symbol stripping program
13767 # Used to examine libraries when file_magic_cmd begins "file"
13768 MAGIC_CMD=$MAGIC_CMD
13770 # Used on cygwin: DLL creation program.
13773 # Used on cygwin: object dumper.
13776 # Used on cygwin: assembler.
13779 # The name of the directory that contains temporary libtool files.
13782 # How to create reloadable object files.
13783 reload_flag=$lt_reload_flag
13784 reload_cmds=$lt_reload_cmds
13786 # How to pass a linker flag through the compiler.
13787 wl=$lt_lt_prog_compiler_wl_CXX
13789 # Object file suffix (normally "o").
13790 objext="$ac_objext"
13792 # Old archive suffix (normally "a").
13795 # Shared library suffix (normally ".so").
13796 shrext_cmds='$shrext_cmds'
13798 # Executable file suffix (normally "").
13801 # Additional compiler flags for building library objects.
13802 pic_flag=$lt_lt_prog_compiler_pic_CXX
13805 # What is the maximum length of a command?
13806 max_cmd_len=$lt_cv_sys_max_cmd_len
13808 # Does compiler simultaneously support -c and -o options?
13809 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13811 # Must we lock files when doing compilation?
13812 need_locks=$lt_need_locks
13814 # Do we need the lib prefix for modules?
13815 need_lib_prefix=$need_lib_prefix
13817 # Do we need a version for libraries?
13818 need_version=$need_version
13820 # Whether dlopen is supported.
13821 dlopen_support=$enable_dlopen
13823 # Whether dlopen of programs is supported.
13824 dlopen_self=$enable_dlopen_self
13826 # Whether dlopen of statically linked programs is supported.
13827 dlopen_self_static=$enable_dlopen_self_static
13829 # Compiler flag to prevent dynamic linking.
13830 link_static_flag=$lt_lt_prog_compiler_static_CXX
13832 # Compiler flag to turn off builtin functions.
13833 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13835 # Compiler flag to allow reflexive dlopens.
13836 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13838 # Compiler flag to generate shared objects directly from archives.
13839 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13841 # Compiler flag to generate thread-safe objects.
13842 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13844 # Library versioning type.
13845 version_type=$version_type
13847 # Format of library name prefix.
13848 libname_spec=$lt_libname_spec
13850 # List of archive names. First name is the real one, the rest are links.
13851 # The last name is the one that the linker finds with -lNAME.
13852 library_names_spec=$lt_library_names_spec
13854 # The coded name of the library, if different from the real name.
13855 soname_spec=$lt_soname_spec
13857 # Commands used to build and install an old-style archive.
13859 old_archive_cmds=$lt_old_archive_cmds_CXX
13860 old_postinstall_cmds=$lt_old_postinstall_cmds
13861 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13863 # Create an old-style archive from a shared archive.
13864 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13866 # Create a temporary old-style archive to link instead of a shared archive.
13867 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13869 # Commands used to build and install a shared archive.
13870 archive_cmds=$lt_archive_cmds_CXX
13871 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13872 postinstall_cmds=$lt_postinstall_cmds
13873 postuninstall_cmds=$lt_postuninstall_cmds
13875 # Commands used to build a loadable module (assumed same as above if empty)
13876 module_cmds=$lt_module_cmds_CXX
13877 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13879 # Commands to strip libraries.
13880 old_striplib=$lt_old_striplib
13881 striplib=$lt_striplib
13883 # Dependencies to place before the objects being linked to create a
13885 predep_objects=$lt_predep_objects_CXX
13887 # Dependencies to place after the objects being linked to create a
13889 postdep_objects=$lt_postdep_objects_CXX
13891 # Dependencies to place before the objects being linked to create a
13893 predeps=$lt_predeps_CXX
13895 # Dependencies to place after the objects being linked to create a
13897 postdeps=$lt_postdeps_CXX
13899 # The directories searched by this compiler when creating a shared
13901 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13903 # The library search path used internally by the compiler when linking
13904 # a shared library.
13905 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13907 # Method to check whether dependent libraries are shared objects.
13908 deplibs_check_method=$lt_deplibs_check_method
13910 # Command to use when deplibs_check_method == file_magic.
13911 file_magic_cmd=$lt_file_magic_cmd
13913 # Flag that allows shared libraries with undefined symbols to be built.
13914 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13916 # Flag that forces no undefined symbols.
13917 no_undefined_flag=$lt_no_undefined_flag_CXX
13919 # Commands used to finish a libtool library installation in a directory.
13920 finish_cmds=$lt_finish_cmds
13922 # Same as above, but a single script fragment to be evaled but not shown.
13923 finish_eval=$lt_finish_eval
13925 # Take the output of nm and produce a listing of raw symbols and C names.
13926 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13928 # Transform the output of nm in a proper C declaration
13929 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13931 # Transform the output of nm in a C name address pair
13932 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13934 # This is the shared library runtime path variable.
13935 runpath_var=$runpath_var
13937 # This is the shared library path variable.
13938 shlibpath_var=$shlibpath_var
13940 # Is shlibpath searched before the hard-coded library search path?
13941 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13943 # How to hardcode a shared library path into an executable.
13944 hardcode_action=$hardcode_action_CXX
13946 # Whether we should hardcode library paths into libraries.
13947 hardcode_into_libs=$hardcode_into_libs
13949 # Flag to hardcode \$libdir into a binary during linking.
13950 # This must work even if \$libdir does not exist.
13951 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13953 # If ld is used when linking, flag to hardcode \$libdir into
13954 # a binary during linking. This must work even if \$libdir does
13956 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13958 # Whether we need a single -rpath flag with a separated argument.
13959 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13961 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13962 # resulting binary.
13963 hardcode_direct=$hardcode_direct_CXX
13965 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13966 # resulting binary.
13967 hardcode_minus_L=$hardcode_minus_L_CXX
13969 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13970 # the resulting binary.
13971 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13973 # Set to yes if building a shared library automatically hardcodes DIR into the library
13974 # and all subsequent libraries and executables linked against it.
13975 hardcode_automatic=$hardcode_automatic_CXX
13977 # Variables whose values should be saved in libtool wrapper scripts and
13978 # restored at relink time.
13979 variables_saved_for_relink="$variables_saved_for_relink"
13981 # Whether libtool must link a program against all its dependency libraries.
13982 link_all_deplibs=$link_all_deplibs_CXX
13984 # Compile-time system search path for libraries
13985 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13987 # Run-time system search path for libraries
13988 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13990 # Fix the shell variable \$srcfile for the compiler.
13991 fix_srcfile_path=$lt_fix_srcfile_path
13993 # Set to yes if exported symbols are required.
13994 always_export_symbols=$always_export_symbols_CXX
13996 # The commands to list exported symbols.
13997 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13999 # The commands to extract the exported symbol list from a shared archive.
14000 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14002 # Symbols that should not be listed in the preloaded symbols.
14003 exclude_expsyms=$lt_exclude_expsyms_CXX
14005 # Symbols that must always be exported.
14006 include_expsyms=$lt_include_expsyms_CXX
14008 # ### END LIBTOOL TAG CONFIG: $tagname
14014 # If there is no Makefile yet, we rely on a make rule to execute
14015 # `config.status --recheck' to rerun these tests and create the
14016 # libtool script then.
14017 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14018 if test -f "$ltmain_in"; then
14019 test -f Makefile && make "$ltmain"
14025 ac_cpp='$CPP $CPPFLAGS'
14026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14034 with_gnu_ldcxx=$with_gnu_ld
14035 with_gnu_ld=$lt_save_with_gnu_ld
14036 lt_cv_path_LDCXX=$lt_cv_path_LD
14037 lt_cv_path_LD=$lt_save_path_LD
14038 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14039 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14047 if test -n "$F77" && test "X$F77" != "Xno"; then
14050 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14051 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14052 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14055 archive_cmds_need_lc_F77=no
14056 allow_undefined_flag_F77=
14057 always_export_symbols_F77=no
14058 archive_expsym_cmds_F77=
14059 export_dynamic_flag_spec_F77=
14060 hardcode_direct_F77=no
14061 hardcode_libdir_flag_spec_F77=
14062 hardcode_libdir_flag_spec_ld_F77=
14063 hardcode_libdir_separator_F77=
14064 hardcode_minus_L_F77=no
14065 hardcode_automatic_F77=no
14067 module_expsym_cmds_F77=
14068 link_all_deplibs_F77=unknown
14069 old_archive_cmds_F77=$old_archive_cmds
14070 no_undefined_flag_F77=
14071 whole_archive_flag_spec_F77=
14072 enable_shared_with_static_runtimes_F77=no
14074 # Source file extension for f77 test sources.
14077 # Object file extension for compiled f77 test sources.
14081 # Code to be used in simple compile tests
14082 lt_simple_compile_test_code="\
14088 # Code to be used in simple link tests
14089 lt_simple_link_test_code="\
14094 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14096 # If no C compiler was specified, use CC.
14099 # If no C compiler flags were specified, use CFLAGS.
14100 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14102 # Allow CC to be a program name with arguments.
14106 # save warnings/boilerplate of simple test code
14107 ac_outfile=conftest.$ac_objext
14108 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14109 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14110 _lt_compiler_boilerplate=`cat conftest.err`
14113 ac_outfile=conftest.$ac_objext
14114 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14115 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14116 _lt_linker_boilerplate=`cat conftest.err`
14120 # Allow CC to be a program name with arguments.
14125 for cc_temp in $compiler""; do
14127 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14128 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14133 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14136 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14137 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14138 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14139 echo "${ECHO_T}$can_build_shared" >&6; }
14141 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14142 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14143 test "$can_build_shared" = "no" && enable_shared=no
14145 # On AIX, shared libraries and static libraries use the same namespace, and
14146 # are all built from PIC.
14149 test "$enable_shared" = yes && enable_static=no
14150 if test -n "$RANLIB"; then
14151 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14152 postinstall_cmds='$RANLIB $lib'
14156 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14157 test "$enable_shared" = yes && enable_static=no
14161 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14162 echo "${ECHO_T}$enable_shared" >&6; }
14164 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14165 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14166 # Make sure either enable_shared or enable_static is yes.
14167 test "$enable_shared" = yes || enable_static=yes
14168 { echo "$as_me:$LINENO: result: $enable_static" >&5
14169 echo "${ECHO_T}$enable_static" >&6; }
14174 lt_prog_compiler_wl_F77=
14175 lt_prog_compiler_pic_F77=
14176 lt_prog_compiler_static_F77=
14178 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14179 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14181 if test "$GCC" = yes; then
14182 lt_prog_compiler_wl_F77='-Wl,'
14183 lt_prog_compiler_static_F77='-static'
14187 # All AIX code is PIC.
14188 if test "$host_cpu" = ia64; then
14189 # AIX 5 now supports IA64 processor
14190 lt_prog_compiler_static_F77='-Bstatic'
14195 # FIXME: we need at least 68020 code to build shared libraries, but
14196 # adding the `-m68020' flag to GCC prevents building anything better,
14198 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14201 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14202 # PIC is the default for these OSes.
14205 mingw* | cygwin* | pw32* | os2*)
14206 # This hack is so that the source file can tell whether it is being
14207 # built for inclusion in a dll (and should export symbols for example).
14208 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14209 # (--disable-auto-import) libraries
14210 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14213 darwin* | rhapsody*)
14214 # PIC is the default on this platform
14215 # Common symbols not allowed in MH_DYLIB files
14216 lt_prog_compiler_pic_F77='-fno-common'
14220 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14221 # Instead, we relocate shared libraries at runtime.
14225 # Just because we use GCC doesn't mean we suddenly get shared libraries
14226 # on systems that don't support them.
14227 lt_prog_compiler_can_build_shared_F77=no
14232 if test -d /usr/nec; then
14233 lt_prog_compiler_pic_F77=-Kconform_pic
14238 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14239 # not for PA HP-UX.
14245 lt_prog_compiler_pic_F77='-fPIC'
14251 lt_prog_compiler_pic_F77='-fPIC'
14255 # PORTME Check for flag to pass linker flags through the system compiler.
14258 lt_prog_compiler_wl_F77='-Wl,'
14259 if test "$host_cpu" = ia64; then
14260 # AIX 5 now supports IA64 processor
14261 lt_prog_compiler_static_F77='-Bstatic'
14263 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14267 # PIC is the default on this platform
14268 # Common symbols not allowed in MH_DYLIB files
14269 case $cc_basename in
14271 lt_prog_compiler_pic_F77='-qnocommon'
14272 lt_prog_compiler_wl_F77='-Wl,'
14277 mingw* | cygwin* | pw32* | os2*)
14278 # This hack is so that the source file can tell whether it is being
14279 # built for inclusion in a dll (and should export symbols for example).
14280 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14283 hpux9* | hpux10* | hpux11*)
14284 lt_prog_compiler_wl_F77='-Wl,'
14285 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14286 # not for PA HP-UX.
14292 lt_prog_compiler_pic_F77='+Z'
14295 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14296 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14299 irix5* | irix6* | nonstopux*)
14300 lt_prog_compiler_wl_F77='-Wl,'
14301 # PIC (with -KPIC) is the default.
14302 lt_prog_compiler_static_F77='-non_shared'
14306 lt_prog_compiler_pic_F77='-KPIC'
14307 lt_prog_compiler_static_F77='-Bstatic'
14310 linux* | k*bsd*-gnu)
14311 case $cc_basename in
14313 lt_prog_compiler_wl_F77='-Wl,'
14314 lt_prog_compiler_pic_F77='-KPIC'
14315 lt_prog_compiler_static_F77='-static'
14317 pgcc* | pgf77* | pgf90* | pgf95*)
14318 # Portland Group compilers (*not* the Pentium gcc compiler,
14319 # which looks to be a dead project)
14320 lt_prog_compiler_wl_F77='-Wl,'
14321 lt_prog_compiler_pic_F77='-fpic'
14322 lt_prog_compiler_static_F77='-Bstatic'
14325 lt_prog_compiler_wl_F77='-Wl,'
14326 # All Alpha code is PIC.
14327 lt_prog_compiler_static_F77='-non_shared'
14330 case `$CC -V 2>&1 | sed 5q` in
14333 lt_prog_compiler_pic_F77='-KPIC'
14334 lt_prog_compiler_static_F77='-Bstatic'
14335 lt_prog_compiler_wl_F77='-Wl,'
14338 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14339 lt_prog_compiler_pic_F77='-KPIC'
14340 lt_prog_compiler_static_F77='-Bstatic'
14341 lt_prog_compiler_wl_F77=''
14348 osf3* | osf4* | osf5*)
14349 lt_prog_compiler_wl_F77='-Wl,'
14350 # All OSF/1 code is PIC.
14351 lt_prog_compiler_static_F77='-non_shared'
14355 lt_prog_compiler_static_F77='-non_shared'
14359 lt_prog_compiler_pic_F77='-KPIC'
14360 lt_prog_compiler_static_F77='-Bstatic'
14361 case $cc_basename in
14362 f77* | f90* | f95*)
14363 lt_prog_compiler_wl_F77='-Qoption ld ';;
14365 lt_prog_compiler_wl_F77='-Wl,';;
14370 lt_prog_compiler_wl_F77='-Qoption ld '
14371 lt_prog_compiler_pic_F77='-PIC'
14372 lt_prog_compiler_static_F77='-Bstatic'
14375 sysv4 | sysv4.2uw2* | sysv4.3*)
14376 lt_prog_compiler_wl_F77='-Wl,'
14377 lt_prog_compiler_pic_F77='-KPIC'
14378 lt_prog_compiler_static_F77='-Bstatic'
14382 if test -d /usr/nec ;then
14383 lt_prog_compiler_pic_F77='-Kconform_pic'
14384 lt_prog_compiler_static_F77='-Bstatic'
14388 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14389 lt_prog_compiler_wl_F77='-Wl,'
14390 lt_prog_compiler_pic_F77='-KPIC'
14391 lt_prog_compiler_static_F77='-Bstatic'
14395 lt_prog_compiler_wl_F77='-Wl,'
14396 lt_prog_compiler_can_build_shared_F77=no
14400 lt_prog_compiler_pic_F77='-pic'
14401 lt_prog_compiler_static_F77='-Bstatic'
14405 lt_prog_compiler_can_build_shared_F77=no
14410 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14411 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14414 # Check to make sure the PIC flag actually works.
14416 if test -n "$lt_prog_compiler_pic_F77"; then
14418 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14419 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14420 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14421 echo $ECHO_N "(cached) $ECHO_C" >&6
14423 lt_cv_prog_compiler_pic_works_F77=no
14424 ac_outfile=conftest.$ac_objext
14425 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14426 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14427 # Insert the option either (1) after the last *FLAGS variable, or
14428 # (2) before a word containing "conftest.", or (3) at the end.
14429 # Note that $ac_compile itself does not contain backslashes and begins
14430 # with a dollar sign (not a hyphen), so the echo should work correctly.
14431 # The option is referenced via a variable to avoid confusing sed.
14432 lt_compile=`echo "$ac_compile" | $SED \
14433 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14434 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14435 -e 's:$: $lt_compiler_flag:'`
14436 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14437 (eval "$lt_compile" 2>conftest.err)
14439 cat conftest.err >&5
14440 echo "$as_me:__oline__: \$? = $ac_status" >&5
14441 if (exit $ac_status) && test -s "$ac_outfile"; then
14442 # The compiler can only warn and ignore the option if not recognized
14443 # So say no if there are warnings other than the usual output.
14444 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14445 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14446 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14447 lt_cv_prog_compiler_pic_works_F77=yes
14453 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14454 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14456 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14457 case $lt_prog_compiler_pic_F77 in
14459 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14462 lt_prog_compiler_pic_F77=
14463 lt_prog_compiler_can_build_shared_F77=no
14468 # For platforms which do not support PIC, -DPIC is meaningless:
14470 lt_prog_compiler_pic_F77=
14473 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14478 # Check to make sure the static flag actually works.
14480 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14481 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14482 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14483 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14484 echo $ECHO_N "(cached) $ECHO_C" >&6
14486 lt_cv_prog_compiler_static_works_F77=no
14487 save_LDFLAGS="$LDFLAGS"
14488 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14489 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14490 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14491 # The linker can only warn and ignore the option if not recognized
14492 # So say no if there are warnings
14493 if test -s conftest.err; then
14494 # Append any errors to the config.log.
14495 cat conftest.err 1>&5
14496 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14497 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14498 if diff conftest.exp conftest.er2 >/dev/null; then
14499 lt_cv_prog_compiler_static_works_F77=yes
14502 lt_cv_prog_compiler_static_works_F77=yes
14506 LDFLAGS="$save_LDFLAGS"
14509 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14510 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14512 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14515 lt_prog_compiler_static_F77=
14519 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14520 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14521 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14522 echo $ECHO_N "(cached) $ECHO_C" >&6
14524 lt_cv_prog_compiler_c_o_F77=no
14525 $rm -r conftest 2>/dev/null
14529 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14531 lt_compiler_flag="-o out/conftest2.$ac_objext"
14532 # Insert the option either (1) after the last *FLAGS variable, or
14533 # (2) before a word containing "conftest.", or (3) at the end.
14534 # Note that $ac_compile itself does not contain backslashes and begins
14535 # with a dollar sign (not a hyphen), so the echo should work correctly.
14536 lt_compile=`echo "$ac_compile" | $SED \
14537 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14538 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14539 -e 's:$: $lt_compiler_flag:'`
14540 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14541 (eval "$lt_compile" 2>out/conftest.err)
14543 cat out/conftest.err >&5
14544 echo "$as_me:__oline__: \$? = $ac_status" >&5
14545 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14547 # The compiler can only warn and ignore the option if not recognized
14548 # So say no if there are warnings
14549 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14550 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14551 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14552 lt_cv_prog_compiler_c_o_F77=yes
14557 # SGI C++ compiler will create directory out/ii_files/ for
14558 # template instantiation
14559 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14560 $rm out/* && rmdir out
14566 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14567 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14570 hard_links="nottested"
14571 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14572 # do not overwrite the value of need_locks provided by the user
14573 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14574 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14577 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14579 ln conftest.a conftest.b 2>&5 || hard_links=no
14580 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14581 { echo "$as_me:$LINENO: result: $hard_links" >&5
14582 echo "${ECHO_T}$hard_links" >&6; }
14583 if test "$hard_links" = no; then
14584 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14585 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14592 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14593 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14596 allow_undefined_flag_F77=
14597 enable_shared_with_static_runtimes_F77=no
14599 archive_expsym_cmds_F77=
14600 old_archive_From_new_cmds_F77=
14601 old_archive_from_expsyms_cmds_F77=
14602 export_dynamic_flag_spec_F77=
14603 whole_archive_flag_spec_F77=
14604 thread_safe_flag_spec_F77=
14605 hardcode_libdir_flag_spec_F77=
14606 hardcode_libdir_flag_spec_ld_F77=
14607 hardcode_libdir_separator_F77=
14608 hardcode_direct_F77=no
14609 hardcode_minus_L_F77=no
14610 hardcode_shlibpath_var_F77=unsupported
14611 link_all_deplibs_F77=unknown
14612 hardcode_automatic_F77=no
14614 module_expsym_cmds_F77=
14615 always_export_symbols_F77=no
14616 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14617 # include_expsyms should be a list of space-separated symbols to be *always*
14618 # included in the symbol list
14619 include_expsyms_F77=
14620 # exclude_expsyms can be an extended regexp of symbols to exclude
14621 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14622 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14623 # as well as any symbol that contains `d'.
14624 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14625 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14626 # platforms (ab)use it in PIC code, but their linkers get confused if
14627 # the symbol is explicitly referenced. Since portable code cannot
14628 # rely on this symbol name, it's probably fine to never include it in
14629 # preloaded symbol tables.
14630 # Exclude shared library initialization/finalization symbols.
14631 extract_expsyms_cmds=
14632 # Just being paranoid about ensuring that cc_basename is set.
14633 for cc_temp in $compiler""; do
14635 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14636 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14641 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14644 cygwin* | mingw* | pw32*)
14645 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14646 # When not using gcc, we currently assume that we are using
14647 # Microsoft Visual C++.
14648 if test "$GCC" != yes; then
14653 # we just hope/assume this is gcc and not c89 (= MSVC++)
14662 if test "$with_gnu_ld" = yes; then
14663 # If archive_cmds runs LD, not CC, wlarc should be empty
14666 # Set some defaults for GNU ld with shared library support. These
14667 # are reset later if shared libraries are not supported. Putting them
14668 # here allows them to be overridden if necessary.
14669 runpath_var=LD_RUN_PATH
14670 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14671 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14672 # ancient GNU ld didn't support --whole-archive et. al.
14673 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14674 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14676 whole_archive_flag_spec_F77=
14678 supports_anon_versioning=no
14679 case `$LD -v 2>/dev/null` in
14680 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14681 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14682 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14683 *\ 2.11.*) ;; # other 2.11 versions
14684 *) supports_anon_versioning=yes ;;
14687 # See if GNU ld supports shared libraries.
14690 # On AIX/PPC, the GNU linker is very broken
14691 if test "$host_cpu" != ia64; then
14695 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14696 *** to be unable to reliably create shared libraries on AIX.
14697 *** Therefore, libtool is disabling shared libraries support. If you
14698 *** really care for shared libraries, you may want to modify your PATH
14699 *** so that a non-GNU linker is found, and then restart.
14706 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)'
14707 hardcode_libdir_flag_spec_F77='-L$libdir'
14708 hardcode_minus_L_F77=yes
14710 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14711 # that the semantics of dynamic libraries on AmigaOS, at least up
14712 # to version 4, is to share data among multiple programs linked
14713 # with the same dynamic library. Since this doesn't match the
14714 # behavior of shared libraries on other platforms, we can't use
14720 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14721 allow_undefined_flag_F77=unsupported
14722 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14723 # support --undefined. This deserves some investigation. FIXME
14724 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14730 cygwin* | mingw* | pw32*)
14731 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14732 # as there is no search path for DLLs.
14733 hardcode_libdir_flag_spec_F77='-L$libdir'
14734 allow_undefined_flag_F77=unsupported
14735 always_export_symbols_F77=no
14736 enable_shared_with_static_runtimes_F77=yes
14737 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14739 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14740 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14741 # If the export-symbols file already is a .def file (1st line
14742 # is EXPORTS), use it as is; otherwise, prepend...
14743 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14744 cp $export_symbols $output_objdir/$soname.def;
14746 echo EXPORTS > $output_objdir/$soname.def;
14747 cat $export_symbols >> $output_objdir/$soname.def;
14749 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14756 hardcode_direct_F77=no
14757 hardcode_shlibpath_var_F77=no
14758 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14759 export_dynamic_flag_spec_F77='${wl}-E'
14760 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14761 # Instead, shared libraries are loaded at an image base (0x10000000 by
14762 # default) and relocated if they conflict, which is a slow very memory
14763 # consuming and fragmenting process. To avoid this, we pick a random,
14764 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14765 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14766 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14767 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14770 gnu* | linux* | k*bsd*-gnu)
14771 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14773 case $cc_basename,$host_cpu in
14774 pgcc*) # Portland Group C compiler
14775 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'
14776 tmp_addflag=' $pic_flag'
14778 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14779 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'
14780 tmp_addflag=' $pic_flag -Mnomain' ;;
14781 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14782 tmp_addflag=' -i_dynamic' ;;
14783 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14784 tmp_addflag=' -i_dynamic -nofor_main' ;;
14785 ifc* | ifort*) # Intel Fortran compiler
14786 tmp_addflag=' -nofor_main' ;;
14788 case `$CC -V 2>&1 | sed 5q` in
14789 *Sun\ C*) # Sun C 5.9
14790 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14791 tmp_sharedflag='-G' ;;
14792 *Sun\ F*) # Sun Fortran 8.3
14793 tmp_sharedflag='-G' ;;
14795 tmp_sharedflag='-shared' ;;
14797 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14799 if test $supports_anon_versioning = yes; then
14800 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14801 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14802 $echo "local: *; };" >> $output_objdir/$libname.ver~
14803 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14805 link_all_deplibs_F77=no
14811 netbsd* | netbsdelf*-gnu)
14812 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14813 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14816 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14817 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14822 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14826 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14827 *** create shared libraries on Solaris systems. Therefore, libtool
14828 *** is disabling shared libraries support. We urge you to upgrade GNU
14829 *** binutils to release 2.9.1 or newer. Another option is to modify
14830 *** your PATH or compiler configuration so that the native linker is
14831 *** used, and then restart.
14834 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14835 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14836 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14842 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14843 case `$LD -v 2>&1` in
14844 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14848 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14849 *** reliably create shared libraries on SCO systems. Therefore, libtool
14850 *** is disabling shared libraries support. We urge you to upgrade GNU
14851 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14852 *** your PATH or compiler configuration so that the native linker is
14853 *** used, and then restart.
14858 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14859 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14860 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14861 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14870 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14872 hardcode_direct_F77=yes
14873 hardcode_shlibpath_var_F77=no
14877 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14878 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14879 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14886 if test "$ld_shlibs_F77" = no; then
14888 hardcode_libdir_flag_spec_F77=
14889 export_dynamic_flag_spec_F77=
14890 whole_archive_flag_spec_F77=
14893 # PORTME fill in a description of your system's linker (not GNU ld)
14896 allow_undefined_flag_F77=unsupported
14897 always_export_symbols_F77=yes
14898 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'
14899 # Note: this linker hardcodes the directories in LIBPATH if there
14900 # are no directories specified by -L.
14901 hardcode_minus_L_F77=yes
14902 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14903 # Neither direct hardcoding nor static linking is supported with a
14905 hardcode_direct_F77=unsupported
14910 if test "$host_cpu" = ia64; then
14911 # On IA64, the linker does run time linking by default, so we don't
14912 # have to do anything special.
14913 aix_use_runtimelinking=no
14914 exp_sym_flag='-Bexport'
14917 # If we're using GNU nm, then we don't want the "-C" option.
14918 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14919 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14920 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'
14922 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'
14924 aix_use_runtimelinking=no
14926 # Test if we are trying to use run time linking or normal
14927 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14928 # need to do runtime linking.
14929 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14930 for ld_flag in $LDFLAGS; do
14931 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14932 aix_use_runtimelinking=yes
14939 exp_sym_flag='-bexport'
14940 no_entry_flag='-bnoentry'
14943 # When large executables or shared objects are built, AIX ld can
14944 # have problems creating the table of contents. If linking a library
14945 # or program results in "error TOC overflow" add -mminimal-toc to
14946 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14947 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14949 archive_cmds_F77=''
14950 hardcode_direct_F77=yes
14951 hardcode_libdir_separator_F77=':'
14952 link_all_deplibs_F77=yes
14954 if test "$GCC" = yes; then
14955 case $host_os in aix4.[012]|aix4.[012].*)
14956 # We only want to do this on AIX 4.2 and lower, the check
14957 # below for broken collect2 doesn't work under 4.3+
14958 collect2name=`${CC} -print-prog-name=collect2`
14959 if test -f "$collect2name" && \
14960 strings "$collect2name" | grep resolve_lib_name >/dev/null
14962 # We have reworked collect2
14965 # We have old collect2
14966 hardcode_direct_F77=unsupported
14967 # It fails to find uninstalled libraries when the uninstalled
14968 # path is not listed in the libpath. Setting hardcode_minus_L
14969 # to unsupported forces relinking
14970 hardcode_minus_L_F77=yes
14971 hardcode_libdir_flag_spec_F77='-L$libdir'
14972 hardcode_libdir_separator_F77=
14976 shared_flag='-shared'
14977 if test "$aix_use_runtimelinking" = yes; then
14978 shared_flag="$shared_flag "'${wl}-G'
14982 if test "$host_cpu" = ia64; then
14983 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14984 # chokes on -Wl,-G. The following line is correct:
14987 if test "$aix_use_runtimelinking" = yes; then
14988 shared_flag='${wl}-G'
14990 shared_flag='${wl}-bM:SRE'
14995 # It seems that -bexpall does not export symbols beginning with
14996 # underscore (_), so it is better to generate a list of symbols to export.
14997 always_export_symbols_F77=yes
14998 if test "$aix_use_runtimelinking" = yes; then
14999 # Warning - without using the other runtime loading flags (-brtl),
15000 # -berok will link without error, but may produce a broken library.
15001 allow_undefined_flag_F77='-berok'
15002 # Determine the default libpath from the value encoded in an empty executable.
15003 cat >conftest.$ac_ext <<_ACEOF
15008 rm -f conftest.$ac_objext conftest$ac_exeext
15009 if { (ac_try="$ac_link"
15010 case "(($ac_try" in
15011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15012 *) ac_try_echo=$ac_try;;
15014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15015 (eval "$ac_link") 2>conftest.er1
15017 grep -v '^ *+' conftest.er1 >conftest.err
15019 cat conftest.err >&5
15020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021 (exit $ac_status); } && {
15022 test -z "$ac_f77_werror_flag" ||
15023 test ! -s conftest.err
15024 } && test -s conftest$ac_exeext &&
15025 $as_test_x conftest$ac_exeext; then
15027 lt_aix_libpath_sed='
15028 /Import File Strings/,/^$/ {
15034 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15035 # Check for a 64-bit object if we didn't find anything.
15036 if test -z "$aix_libpath"; then
15037 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15040 echo "$as_me: failed program was:" >&5
15041 sed 's/^/| /' conftest.$ac_ext >&5
15046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15047 conftest$ac_exeext conftest.$ac_ext
15048 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15050 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15051 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15053 if test "$host_cpu" = ia64; then
15054 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15055 allow_undefined_flag_F77="-z nodefs"
15056 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
15058 # Determine the default libpath from the value encoded in an empty executable.
15059 cat >conftest.$ac_ext <<_ACEOF
15064 rm -f conftest.$ac_objext conftest$ac_exeext
15065 if { (ac_try="$ac_link"
15066 case "(($ac_try" in
15067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15068 *) ac_try_echo=$ac_try;;
15070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15071 (eval "$ac_link") 2>conftest.er1
15073 grep -v '^ *+' conftest.er1 >conftest.err
15075 cat conftest.err >&5
15076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077 (exit $ac_status); } && {
15078 test -z "$ac_f77_werror_flag" ||
15079 test ! -s conftest.err
15080 } && test -s conftest$ac_exeext &&
15081 $as_test_x conftest$ac_exeext; then
15083 lt_aix_libpath_sed='
15084 /Import File Strings/,/^$/ {
15090 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15091 # Check for a 64-bit object if we didn't find anything.
15092 if test -z "$aix_libpath"; then
15093 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15096 echo "$as_me: failed program was:" >&5
15097 sed 's/^/| /' conftest.$ac_ext >&5
15102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15103 conftest$ac_exeext conftest.$ac_ext
15104 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15106 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15107 # Warning - without using the other run time loading flags,
15108 # -berok will link without error, but may produce a broken library.
15109 no_undefined_flag_F77=' ${wl}-bernotok'
15110 allow_undefined_flag_F77=' ${wl}-berok'
15111 # Exported symbols can be pulled into shared objects from archives
15112 whole_archive_flag_spec_F77='$convenience'
15113 archive_cmds_need_lc_F77=yes
15114 # This is similar to how AIX traditionally builds its shared libraries.
15115 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15121 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)'
15122 hardcode_libdir_flag_spec_F77='-L$libdir'
15123 hardcode_minus_L_F77=yes
15124 # see comment about different semantics on the GNU ld section
15129 export_dynamic_flag_spec_F77=-rdynamic
15132 cygwin* | mingw* | pw32*)
15133 # When not using gcc, we currently assume that we are using
15134 # Microsoft Visual C++.
15135 # hardcode_libdir_flag_spec is actually meaningless, as there is
15136 # no search path for DLLs.
15137 hardcode_libdir_flag_spec_F77=' '
15138 allow_undefined_flag_F77=unsupported
15139 # Tell ltmain to make .lib files, not .a files.
15141 # Tell ltmain to make .dll files, not .so files.
15143 # FIXME: Setting linknames here is a bad hack.
15144 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15145 # The linker will automatically build a .lib file if we build a DLL.
15146 old_archive_From_new_cmds_F77='true'
15147 # FIXME: Should let the user specify the lib program.
15148 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15149 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15150 enable_shared_with_static_runtimes_F77=yes
15153 darwin* | rhapsody*)
15155 rhapsody* | darwin1.[012])
15156 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15159 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15160 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15162 case ${MACOSX_DEPLOYMENT_TARGET} in
15164 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15167 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15173 archive_cmds_need_lc_F77=no
15174 hardcode_direct_F77=no
15175 hardcode_automatic_F77=yes
15176 hardcode_shlibpath_var_F77=unsupported
15177 whole_archive_flag_spec_F77=''
15178 link_all_deplibs_F77=yes
15179 if test "$GCC" = yes ; then
15180 output_verbose_link_cmd='echo'
15181 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15182 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15183 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15184 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15186 case $cc_basename in
15188 output_verbose_link_cmd='echo'
15189 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15190 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15191 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15192 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15193 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}'
15203 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15204 hardcode_libdir_flag_spec_F77='-L$libdir'
15205 hardcode_shlibpath_var_F77=no
15212 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15213 # support. Future versions do this automatically, but an explicit c++rt0.o
15214 # does not break anything, and helps significantly (at the cost of a little
15217 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15218 hardcode_libdir_flag_spec_F77='-R$libdir'
15219 hardcode_direct_F77=yes
15220 hardcode_shlibpath_var_F77=no
15223 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15225 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15226 hardcode_direct_F77=yes
15227 hardcode_minus_L_F77=yes
15228 hardcode_shlibpath_var_F77=no
15231 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15232 freebsd* | dragonfly*)
15233 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15234 hardcode_libdir_flag_spec_F77='-R$libdir'
15235 hardcode_direct_F77=yes
15236 hardcode_shlibpath_var_F77=no
15240 if test "$GCC" = yes; then
15241 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'
15243 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'
15245 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15246 hardcode_libdir_separator_F77=:
15247 hardcode_direct_F77=yes
15249 # hardcode_minus_L: Not really in the search PATH,
15250 # but as the default location of the library.
15251 hardcode_minus_L_F77=yes
15252 export_dynamic_flag_spec_F77='${wl}-E'
15256 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15257 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15259 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15261 if test "$with_gnu_ld" = no; then
15262 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15263 hardcode_libdir_separator_F77=:
15265 hardcode_direct_F77=yes
15266 export_dynamic_flag_spec_F77='${wl}-E'
15268 # hardcode_minus_L: Not really in the search PATH,
15269 # but as the default location of the library.
15270 hardcode_minus_L_F77=yes
15275 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15278 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15281 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15284 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15290 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15293 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15296 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15300 if test "$with_gnu_ld" = no; then
15301 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15302 hardcode_libdir_separator_F77=:
15306 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15307 hardcode_direct_F77=no
15308 hardcode_shlibpath_var_F77=no
15311 hardcode_direct_F77=yes
15312 export_dynamic_flag_spec_F77='${wl}-E'
15314 # hardcode_minus_L: Not really in the search PATH,
15315 # but as the default location of the library.
15316 hardcode_minus_L_F77=yes
15322 irix5* | irix6* | nonstopux*)
15323 if test "$GCC" = yes; then
15324 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'
15326 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'
15327 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15329 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15330 hardcode_libdir_separator_F77=:
15331 link_all_deplibs_F77=yes
15334 netbsd* | netbsdelf*-gnu)
15335 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15336 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15338 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15340 hardcode_libdir_flag_spec_F77='-R$libdir'
15341 hardcode_direct_F77=yes
15342 hardcode_shlibpath_var_F77=no
15346 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15347 hardcode_direct_F77=yes
15348 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15349 hardcode_libdir_separator_F77=:
15350 hardcode_shlibpath_var_F77=no
15354 if test -f /usr/libexec/ld.so; then
15355 hardcode_direct_F77=yes
15356 hardcode_shlibpath_var_F77=no
15357 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15358 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15359 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15360 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15361 export_dynamic_flag_spec_F77='${wl}-E'
15364 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15365 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15366 hardcode_libdir_flag_spec_F77='-R$libdir'
15369 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15370 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15380 hardcode_libdir_flag_spec_F77='-L$libdir'
15381 hardcode_minus_L_F77=yes
15382 allow_undefined_flag_F77=unsupported
15383 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'
15384 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15388 if test "$GCC" = yes; then
15389 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15390 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'
15392 allow_undefined_flag_F77=' -expect_unresolved \*'
15393 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'
15395 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15396 hardcode_libdir_separator_F77=:
15399 osf4* | osf5*) # as osf3* with the addition of -msym flag
15400 if test "$GCC" = yes; then
15401 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15402 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'
15403 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15405 allow_undefined_flag_F77=' -expect_unresolved \*'
15406 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'
15407 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~
15408 $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'
15410 # Both c and cxx compiler support -rpath directly
15411 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15413 hardcode_libdir_separator_F77=:
15417 no_undefined_flag_F77=' -z text'
15418 if test "$GCC" = yes; then
15420 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15421 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15422 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15425 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15426 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15427 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15429 hardcode_libdir_flag_spec_F77='-R$libdir'
15430 hardcode_shlibpath_var_F77=no
15432 solaris2.[0-5] | solaris2.[0-5].*) ;;
15434 # The compiler driver will combine and reorder linker options,
15435 # but understands `-z linker_flag'. GCC discards it without `$wl',
15436 # but is careful enough not to reorder.
15437 # Supported since Solaris 2.6 (maybe 2.5.1?)
15438 if test "$GCC" = yes; then
15439 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15441 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15445 link_all_deplibs_F77=yes
15449 if test "x$host_vendor" = xsequent; then
15450 # Use $CC to link under sequent, because it throws in some extra .o
15451 # files that make .init and .fini sections work.
15452 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15454 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15456 hardcode_libdir_flag_spec_F77='-L$libdir'
15457 hardcode_direct_F77=yes
15458 hardcode_minus_L_F77=yes
15459 hardcode_shlibpath_var_F77=no
15463 case $host_vendor in
15465 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15466 hardcode_direct_F77=yes # is this really true???
15469 ## LD is ld it makes a PLAMLIB
15470 ## CC just makes a GrossModule.
15471 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15472 reload_cmds_F77='$CC -r -o $output$reload_objs'
15473 hardcode_direct_F77=no
15476 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15477 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15480 runpath_var='LD_RUN_PATH'
15481 hardcode_shlibpath_var_F77=no
15485 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15486 hardcode_shlibpath_var_F77=no
15487 export_dynamic_flag_spec_F77='-Bexport'
15491 if test -d /usr/nec; then
15492 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15493 hardcode_shlibpath_var_F77=no
15494 runpath_var=LD_RUN_PATH
15495 hardcode_runpath_var=yes
15500 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15501 no_undefined_flag_F77='${wl}-z,text'
15502 archive_cmds_need_lc_F77=no
15503 hardcode_shlibpath_var_F77=no
15504 runpath_var='LD_RUN_PATH'
15506 if test "$GCC" = yes; then
15507 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15508 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15510 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15511 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15515 sysv5* | sco3.2v5* | sco5v6*)
15516 # Note: We can NOT use -z defs as we might desire, because we do not
15517 # link with -lc, and that would cause any symbols used from libc to
15518 # always be unresolved, which means just about no library would
15519 # ever link correctly. If we're not using GNU ld we use -z text
15520 # though, which does catch some bad symbols but isn't as heavy-handed
15522 no_undefined_flag_F77='${wl}-z,text'
15523 allow_undefined_flag_F77='${wl}-z,nodefs'
15524 archive_cmds_need_lc_F77=no
15525 hardcode_shlibpath_var_F77=no
15526 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15527 hardcode_libdir_separator_F77=':'
15528 link_all_deplibs_F77=yes
15529 export_dynamic_flag_spec_F77='${wl}-Bexport'
15530 runpath_var='LD_RUN_PATH'
15532 if test "$GCC" = yes; then
15533 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15534 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15536 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15537 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15542 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15543 hardcode_libdir_flag_spec_F77='-L$libdir'
15544 hardcode_shlibpath_var_F77=no
15553 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15554 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15555 test "$ld_shlibs_F77" = no && can_build_shared=no
15558 # Do we need to explicitly link libc?
15560 case "x$archive_cmds_need_lc_F77" in
15562 # Assume -lc should be added
15563 archive_cmds_need_lc_F77=yes
15565 if test "$enable_shared" = yes && test "$GCC" = yes; then
15566 case $archive_cmds_F77 in
15568 # FIXME: we may have to deal with multi-command sequences.
15571 # Test whether the compiler implicitly links with -lc since on some
15572 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15573 # to ld, don't add -lc before -lgcc.
15574 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15575 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15577 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15580 (eval $ac_compile) 2>&5
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); } 2>conftest.err; then
15586 libobjs=conftest.$ac_objext
15588 wl=$lt_prog_compiler_wl_F77
15589 pic_flag=$lt_prog_compiler_pic_F77
15595 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15596 allow_undefined_flag_F77=
15597 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15598 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); }
15603 archive_cmds_need_lc_F77=no
15605 archive_cmds_need_lc_F77=yes
15607 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15609 cat conftest.err 1>&5
15612 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15613 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15620 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15621 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15622 library_names_spec=
15623 libname_spec='lib$name'
15627 postuninstall_cmds=
15631 shlibpath_overrides_runpath=unknown
15633 dynamic_linker="$host_os ld.so"
15634 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15636 need_lib_prefix=unknown
15637 hardcode_into_libs=no
15639 # when you set need_version to no, make sure it does not cause -set_version
15640 # flags to be left without arguments
15641 need_version=unknown
15646 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15647 shlibpath_var=LIBPATH
15649 # AIX 3 has no versioning support, so we append a major version to the name.
15650 soname_spec='${libname}${release}${shared_ext}$major'
15657 hardcode_into_libs=yes
15658 if test "$host_cpu" = ia64; then
15659 # AIX 5 supports IA64
15660 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15661 shlibpath_var=LD_LIBRARY_PATH
15663 # With GCC up to 2.95.x, collect2 would create an import file
15664 # for dependence libraries. The import file would start with
15665 # the line `#! .'. This would cause the generated library to
15666 # depend on `.', always an invalid library. This was fixed in
15667 # development snapshots of GCC prior to 3.0.
15669 aix4 | aix4.[01] | aix4.[01].*)
15670 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15672 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15675 can_build_shared=no
15679 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15680 # soname into executable. Probably we can add versioning support to
15681 # collect2, so additional links can be useful in future.
15682 if test "$aix_use_runtimelinking" = yes; then
15683 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15684 # instead of lib<name>.a to let people know that these are not
15685 # typical AIX shared libraries.
15686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15688 # We preserve .a as extension for shared libraries through AIX4.2
15689 # and later when we are not doing run time linking.
15690 library_names_spec='${libname}${release}.a $libname.a'
15691 soname_spec='${libname}${release}${shared_ext}$major'
15693 shlibpath_var=LIBPATH
15698 library_names_spec='$libname.ixlibrary $libname.a'
15699 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15700 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'
15704 library_names_spec='${libname}${shared_ext}'
15705 dynamic_linker="$host_os ld.so"
15706 shlibpath_var=LIBRARY_PATH
15712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15713 soname_spec='${libname}${release}${shared_ext}$major'
15714 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15715 shlibpath_var=LD_LIBRARY_PATH
15716 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15717 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15718 # the default ld.so.conf also contains /usr/contrib/lib and
15719 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15720 # libtool to hard-code these into programs
15723 cygwin* | mingw* | pw32*)
15724 version_type=windows
15729 case $GCC,$host_os in
15730 yes,cygwin* | yes,mingw* | yes,pw32*)
15731 library_names_spec='$libname.dll.a'
15732 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15733 postinstall_cmds='base_file=`basename \${file}`~
15734 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15735 dldir=$destdir/`dirname \$dlpath`~
15736 test -d \$dldir || mkdir -p \$dldir~
15737 $install_prog $dir/$dlname \$dldir/$dlname~
15738 chmod a+x \$dldir/$dlname'
15739 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15740 dlpath=$dir/\$dldll~
15742 shlibpath_overrides_runpath=yes
15746 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15747 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15748 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15751 # MinGW DLLs use traditional 'lib' prefix
15752 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15753 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15754 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15755 # It is most probably a Windows format PATH printed by
15756 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15757 # path with ; separators, and with drive letters. We can handle the
15758 # drive letters (cygwin fileutils understands them), so leave them,
15759 # especially as we might pass files found there to a mingw objdump,
15760 # which wouldn't understand a cygwinified path. Ahh.
15761 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15763 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15767 # pw32 DLLs use 'pw' prefix rather than 'lib'
15768 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15774 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15777 dynamic_linker='Win32 ld.exe'
15778 # FIXME: first we should search . and the directory the executable is in
15782 darwin* | rhapsody*)
15783 dynamic_linker="$host_os dyld"
15784 version_type=darwin
15787 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15788 soname_spec='${libname}${release}${major}$shared_ext'
15789 shlibpath_overrides_runpath=yes
15790 shlibpath_var=DYLD_LIBRARY_PATH
15791 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15793 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15801 soname_spec='${libname}${release}${shared_ext}$major'
15802 shlibpath_var=LD_LIBRARY_PATH
15809 freebsd* | dragonfly*)
15810 # DragonFly does not have aout. When/if they implement a new
15811 # versioning mechanism, adjust this.
15812 if test -x /usr/bin/objformat; then
15813 objformat=`/usr/bin/objformat`
15816 freebsd[123]*) objformat=aout ;;
15817 *) objformat=elf ;;
15820 version_type=freebsd-$objformat
15821 case $version_type in
15823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15828 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15832 shlibpath_var=LD_LIBRARY_PATH
15835 shlibpath_overrides_runpath=yes
15837 freebsd3.[01]* | freebsdelf3.[01]*)
15838 shlibpath_overrides_runpath=yes
15839 hardcode_into_libs=yes
15841 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15842 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15843 shlibpath_overrides_runpath=no
15844 hardcode_into_libs=yes
15846 *) # from 4.6 on, and DragonFly
15847 shlibpath_overrides_runpath=yes
15848 hardcode_into_libs=yes
15857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15858 soname_spec='${libname}${release}${shared_ext}$major'
15859 shlibpath_var=LD_LIBRARY_PATH
15860 hardcode_into_libs=yes
15863 hpux9* | hpux10* | hpux11*)
15864 # Give a soname corresponding to the major version so that dld.sl refuses to
15865 # link against other versions.
15872 hardcode_into_libs=yes
15873 dynamic_linker="$host_os dld.so"
15874 shlibpath_var=LD_LIBRARY_PATH
15875 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15877 soname_spec='${libname}${release}${shared_ext}$major'
15878 if test "X$HPUX_IA64_MODE" = X32; then
15879 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15881 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15883 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15887 hardcode_into_libs=yes
15888 dynamic_linker="$host_os dld.sl"
15889 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15890 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15892 soname_spec='${libname}${release}${shared_ext}$major'
15893 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15894 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15898 dynamic_linker="$host_os dld.sl"
15899 shlibpath_var=SHLIB_PATH
15900 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15902 soname_spec='${libname}${release}${shared_ext}$major'
15905 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15906 postinstall_cmds='chmod 555 $lib'
15913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15914 soname_spec='${libname}${release}${shared_ext}$major'
15915 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15916 shlibpath_var=LD_LIBRARY_PATH
15917 shlibpath_overrides_runpath=no
15918 hardcode_into_libs=yes
15921 irix5* | irix6* | nonstopux*)
15923 nonstopux*) version_type=nonstopux ;;
15925 if test "$lt_cv_prog_gnu_ld" = yes; then
15933 soname_spec='${libname}${release}${shared_ext}$major'
15934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15936 irix5* | nonstopux*)
15937 libsuff= shlibsuff=
15940 case $LD in # libtool.m4 will add one of these switches to LD
15941 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15942 libsuff= shlibsuff= libmagic=32-bit;;
15943 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15944 libsuff=32 shlibsuff=N32 libmagic=N32;;
15945 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15946 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15947 *) libsuff= shlibsuff= libmagic=never-match;;
15951 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15952 shlibpath_overrides_runpath=no
15953 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15954 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15955 hardcode_into_libs=yes
15958 # No shared lib support for Linux oldld, aout, or coff.
15959 linux*oldld* | linux*aout* | linux*coff*)
15963 # This must be Linux ELF.
15964 linux* | k*bsd*-gnu)
15968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15969 soname_spec='${libname}${release}${shared_ext}$major'
15970 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15971 shlibpath_var=LD_LIBRARY_PATH
15972 shlibpath_overrides_runpath=no
15973 # This implies no fast_install, which is unacceptable.
15974 # Some rework will be needed to allow for fast_install
15975 # before this can be enabled.
15976 hardcode_into_libs=yes
15978 # Append ld.so.conf contents to the search path
15979 if test -f /etc/ld.so.conf; then
15980 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15981 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15984 # We used to test for /lib/ld.so.1 and disable shared libraries on
15985 # powerpc, because MkLinux only supported shared libraries with the
15986 # GNU dynamic linker. Since this was broken with cross compilers,
15987 # most powerpc-linux boxes support dynamic linking these days and
15988 # people can always --disable-shared, the test was removed, and we
15989 # assume the GNU/Linux dynamic linker is in use.
15990 dynamic_linker='GNU/Linux ld.so'
15997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15998 soname_spec='${libname}${release}${shared_ext}$major'
15999 shlibpath_var=LD_LIBRARY_PATH
16000 shlibpath_overrides_runpath=no
16001 hardcode_into_libs=yes
16002 dynamic_linker='NetBSD ld.elf_so'
16009 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16011 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16012 dynamic_linker='NetBSD (a.out) ld.so'
16014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16015 soname_spec='${libname}${release}${shared_ext}$major'
16016 dynamic_linker='NetBSD ld.elf_so'
16018 shlibpath_var=LD_LIBRARY_PATH
16019 shlibpath_overrides_runpath=yes
16020 hardcode_into_libs=yes
16025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16026 shlibpath_var=LD_LIBRARY_PATH
16027 shlibpath_overrides_runpath=yes
16034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16035 soname_spec='${libname}${release}${shared_ext}$major'
16036 shlibpath_var=LD_LIBRARY_PATH
16037 shlibpath_overrides_runpath=yes
16042 sys_lib_dlsearch_path_spec="/usr/lib"
16044 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16046 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16047 *) need_version=no ;;
16049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16050 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16051 shlibpath_var=LD_LIBRARY_PATH
16052 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16054 openbsd2.[89] | openbsd2.[89].*)
16055 shlibpath_overrides_runpath=no
16058 shlibpath_overrides_runpath=yes
16062 shlibpath_overrides_runpath=yes
16067 libname_spec='$name'
16070 library_names_spec='$libname${shared_ext} $libname.a'
16071 dynamic_linker='OS/2 ld.exe'
16072 shlibpath_var=LIBPATH
16075 osf3* | osf4* | osf5*)
16079 soname_spec='${libname}${release}${shared_ext}$major'
16080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16081 shlibpath_var=LD_LIBRARY_PATH
16082 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16083 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16095 soname_spec='${libname}${release}${shared_ext}$major'
16096 shlibpath_var=LD_LIBRARY_PATH
16097 shlibpath_overrides_runpath=yes
16098 hardcode_into_libs=yes
16099 # ldd complains unless libraries are executable
16100 postinstall_cmds='chmod +x $lib'
16105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16106 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16107 shlibpath_var=LD_LIBRARY_PATH
16108 shlibpath_overrides_runpath=yes
16109 if test "$with_gnu_ld" = yes; then
16117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16118 soname_spec='${libname}${release}${shared_ext}$major'
16119 shlibpath_var=LD_LIBRARY_PATH
16120 case $host_vendor in
16122 shlibpath_overrides_runpath=no
16124 export_dynamic_flag_spec='${wl}-Blargedynsym'
16125 runpath_var=LD_RUN_PATH
16133 shlibpath_overrides_runpath=no
16134 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16140 if test -d /usr/nec ;then
16142 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16143 soname_spec='$libname${shared_ext}.$major'
16144 shlibpath_var=LD_LIBRARY_PATH
16148 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16149 version_type=freebsd-elf
16152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16153 soname_spec='${libname}${release}${shared_ext}$major'
16154 shlibpath_var=LD_LIBRARY_PATH
16155 hardcode_into_libs=yes
16156 if test "$with_gnu_ld" = yes; then
16157 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16158 shlibpath_overrides_runpath=no
16160 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16161 shlibpath_overrides_runpath=yes
16164 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16168 sys_lib_dlsearch_path_spec='/usr/lib'
16173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16174 soname_spec='${libname}${release}${shared_ext}$major'
16175 shlibpath_var=LD_LIBRARY_PATH
16182 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16183 echo "${ECHO_T}$dynamic_linker" >&6; }
16184 test "$dynamic_linker" = no && can_build_shared=no
16186 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16187 echo $ECHO_N "(cached) $ECHO_C" >&6
16189 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16192 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16193 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16194 echo $ECHO_N "(cached) $ECHO_C" >&6
16196 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16199 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16201 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16202 if test "$GCC" = yes; then
16203 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16206 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16207 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16208 hardcode_action_F77=
16209 if test -n "$hardcode_libdir_flag_spec_F77" || \
16210 test -n "$runpath_var_F77" || \
16211 test "X$hardcode_automatic_F77" = "Xyes" ; then
16213 # We can hardcode non-existant directories.
16214 if test "$hardcode_direct_F77" != no &&
16215 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16216 # have to relink, otherwise we might link with an installed library
16217 # when we should be linking with a yet-to-be-installed one
16218 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16219 test "$hardcode_minus_L_F77" != no; then
16220 # Linking always hardcodes the temporary library directory.
16221 hardcode_action_F77=relink
16223 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16224 hardcode_action_F77=immediate
16227 # We cannot hardcode anything, or else we can only hardcode existing
16229 hardcode_action_F77=unsupported
16231 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16232 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16234 if test "$hardcode_action_F77" = relink; then
16235 # Fast installation is not supported
16236 enable_fast_install=no
16237 elif test "$shlibpath_overrides_runpath" = yes ||
16238 test "$enable_shared" = no; then
16239 # Fast installation is not necessary
16240 enable_fast_install=needless
16244 # The else clause should only fire when bootstrapping the
16245 # libtool distribution, otherwise you forgot to ship ltmain.sh
16246 # with your package, and you will get complaints that there are
16247 # no rules to generate ltmain.sh.
16248 if test -f "$ltmain"; then
16249 # See if we are running on zsh, and set the options which allow our commands through
16250 # without removal of \ escapes.
16251 if test -n "${ZSH_VERSION+set}" ; then
16252 setopt NO_GLOB_SUBST
16254 # Now quote all the things that may contain metacharacters while being
16255 # careful not to overquote the AC_SUBSTed values. We take copies of the
16256 # variables and quote the copies for generation of the libtool script.
16257 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16259 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16260 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16261 deplibs_check_method reload_flag reload_cmds need_locks \
16262 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16263 lt_cv_sys_global_symbol_to_c_name_address \
16264 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16265 old_postinstall_cmds old_postuninstall_cmds \
16269 lt_prog_compiler_wl_F77 \
16270 lt_prog_compiler_pic_F77 \
16271 lt_prog_compiler_static_F77 \
16272 lt_prog_compiler_no_builtin_flag_F77 \
16273 export_dynamic_flag_spec_F77 \
16274 thread_safe_flag_spec_F77 \
16275 whole_archive_flag_spec_F77 \
16276 enable_shared_with_static_runtimes_F77 \
16277 old_archive_cmds_F77 \
16278 old_archive_from_new_cmds_F77 \
16279 predep_objects_F77 \
16280 postdep_objects_F77 \
16283 compiler_lib_search_path_F77 \
16284 compiler_lib_search_dirs_F77 \
16286 archive_expsym_cmds_F77 \
16287 postinstall_cmds_F77 \
16288 postuninstall_cmds_F77 \
16289 old_archive_from_expsyms_cmds_F77 \
16290 allow_undefined_flag_F77 \
16291 no_undefined_flag_F77 \
16292 export_symbols_cmds_F77 \
16293 hardcode_libdir_flag_spec_F77 \
16294 hardcode_libdir_flag_spec_ld_F77 \
16295 hardcode_libdir_separator_F77 \
16296 hardcode_automatic_F77 \
16298 module_expsym_cmds_F77 \
16299 lt_cv_prog_compiler_c_o_F77 \
16300 fix_srcfile_path_F77 \
16301 exclude_expsyms_F77 \
16302 include_expsyms_F77; do
16305 old_archive_cmds_F77 | \
16306 old_archive_from_new_cmds_F77 | \
16307 archive_cmds_F77 | \
16308 archive_expsym_cmds_F77 | \
16309 module_cmds_F77 | \
16310 module_expsym_cmds_F77 | \
16311 old_archive_from_expsyms_cmds_F77 | \
16312 export_symbols_cmds_F77 | \
16313 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16314 postinstall_cmds | postuninstall_cmds | \
16315 old_postinstall_cmds | old_postuninstall_cmds | \
16316 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16317 # Double-quote double-evaled strings.
16318 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16321 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16327 *'\$0 --fallback-echo"')
16328 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16334 cat <<__EOF__ >> "$cfgfile"
16335 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16337 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16339 # Shell to use when invoking shell scripts.
16342 # Whether or not to build shared libraries.
16343 build_libtool_libs=$enable_shared
16345 # Whether or not to build static libraries.
16346 build_old_libs=$enable_static
16348 # Whether or not to add -lc for building shared libraries.
16349 build_libtool_need_lc=$archive_cmds_need_lc_F77
16351 # Whether or not to disallow shared libs when runtime libs are static
16352 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16354 # Whether or not to optimize for fast installation.
16355 fast_install=$enable_fast_install
16358 host_alias=$host_alias
16362 # The build system.
16363 build_alias=$build_alias
16367 # An echo program that does not interpret backslashes.
16372 AR_FLAGS=$lt_AR_FLAGS
16377 # LTCC compiler flags.
16378 LTCFLAGS=$lt_LTCFLAGS
16380 # A language-specific compiler.
16381 CC=$lt_compiler_F77
16383 # Is the compiler the GNU C compiler?
16389 # The linker used to build libraries.
16392 # Whether we need hard or soft links.
16395 # A BSD-compatible nm program.
16398 # A symbol stripping program
16401 # Used to examine libraries when file_magic_cmd begins "file"
16402 MAGIC_CMD=$MAGIC_CMD
16404 # Used on cygwin: DLL creation program.
16407 # Used on cygwin: object dumper.
16410 # Used on cygwin: assembler.
16413 # The name of the directory that contains temporary libtool files.
16416 # How to create reloadable object files.
16417 reload_flag=$lt_reload_flag
16418 reload_cmds=$lt_reload_cmds
16420 # How to pass a linker flag through the compiler.
16421 wl=$lt_lt_prog_compiler_wl_F77
16423 # Object file suffix (normally "o").
16424 objext="$ac_objext"
16426 # Old archive suffix (normally "a").
16429 # Shared library suffix (normally ".so").
16430 shrext_cmds='$shrext_cmds'
16432 # Executable file suffix (normally "").
16435 # Additional compiler flags for building library objects.
16436 pic_flag=$lt_lt_prog_compiler_pic_F77
16439 # What is the maximum length of a command?
16440 max_cmd_len=$lt_cv_sys_max_cmd_len
16442 # Does compiler simultaneously support -c and -o options?
16443 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16445 # Must we lock files when doing compilation?
16446 need_locks=$lt_need_locks
16448 # Do we need the lib prefix for modules?
16449 need_lib_prefix=$need_lib_prefix
16451 # Do we need a version for libraries?
16452 need_version=$need_version
16454 # Whether dlopen is supported.
16455 dlopen_support=$enable_dlopen
16457 # Whether dlopen of programs is supported.
16458 dlopen_self=$enable_dlopen_self
16460 # Whether dlopen of statically linked programs is supported.
16461 dlopen_self_static=$enable_dlopen_self_static
16463 # Compiler flag to prevent dynamic linking.
16464 link_static_flag=$lt_lt_prog_compiler_static_F77
16466 # Compiler flag to turn off builtin functions.
16467 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16469 # Compiler flag to allow reflexive dlopens.
16470 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16472 # Compiler flag to generate shared objects directly from archives.
16473 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16475 # Compiler flag to generate thread-safe objects.
16476 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16478 # Library versioning type.
16479 version_type=$version_type
16481 # Format of library name prefix.
16482 libname_spec=$lt_libname_spec
16484 # List of archive names. First name is the real one, the rest are links.
16485 # The last name is the one that the linker finds with -lNAME.
16486 library_names_spec=$lt_library_names_spec
16488 # The coded name of the library, if different from the real name.
16489 soname_spec=$lt_soname_spec
16491 # Commands used to build and install an old-style archive.
16493 old_archive_cmds=$lt_old_archive_cmds_F77
16494 old_postinstall_cmds=$lt_old_postinstall_cmds
16495 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16497 # Create an old-style archive from a shared archive.
16498 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16500 # Create a temporary old-style archive to link instead of a shared archive.
16501 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16503 # Commands used to build and install a shared archive.
16504 archive_cmds=$lt_archive_cmds_F77
16505 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16506 postinstall_cmds=$lt_postinstall_cmds
16507 postuninstall_cmds=$lt_postuninstall_cmds
16509 # Commands used to build a loadable module (assumed same as above if empty)
16510 module_cmds=$lt_module_cmds_F77
16511 module_expsym_cmds=$lt_module_expsym_cmds_F77
16513 # Commands to strip libraries.
16514 old_striplib=$lt_old_striplib
16515 striplib=$lt_striplib
16517 # Dependencies to place before the objects being linked to create a
16519 predep_objects=$lt_predep_objects_F77
16521 # Dependencies to place after the objects being linked to create a
16523 postdep_objects=$lt_postdep_objects_F77
16525 # Dependencies to place before the objects being linked to create a
16527 predeps=$lt_predeps_F77
16529 # Dependencies to place after the objects being linked to create a
16531 postdeps=$lt_postdeps_F77
16533 # The directories searched by this compiler when creating a shared
16535 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16537 # The library search path used internally by the compiler when linking
16538 # a shared library.
16539 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16541 # Method to check whether dependent libraries are shared objects.
16542 deplibs_check_method=$lt_deplibs_check_method
16544 # Command to use when deplibs_check_method == file_magic.
16545 file_magic_cmd=$lt_file_magic_cmd
16547 # Flag that allows shared libraries with undefined symbols to be built.
16548 allow_undefined_flag=$lt_allow_undefined_flag_F77
16550 # Flag that forces no undefined symbols.
16551 no_undefined_flag=$lt_no_undefined_flag_F77
16553 # Commands used to finish a libtool library installation in a directory.
16554 finish_cmds=$lt_finish_cmds
16556 # Same as above, but a single script fragment to be evaled but not shown.
16557 finish_eval=$lt_finish_eval
16559 # Take the output of nm and produce a listing of raw symbols and C names.
16560 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16562 # Transform the output of nm in a proper C declaration
16563 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16565 # Transform the output of nm in a C name address pair
16566 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16568 # This is the shared library runtime path variable.
16569 runpath_var=$runpath_var
16571 # This is the shared library path variable.
16572 shlibpath_var=$shlibpath_var
16574 # Is shlibpath searched before the hard-coded library search path?
16575 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16577 # How to hardcode a shared library path into an executable.
16578 hardcode_action=$hardcode_action_F77
16580 # Whether we should hardcode library paths into libraries.
16581 hardcode_into_libs=$hardcode_into_libs
16583 # Flag to hardcode \$libdir into a binary during linking.
16584 # This must work even if \$libdir does not exist.
16585 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16587 # If ld is used when linking, flag to hardcode \$libdir into
16588 # a binary during linking. This must work even if \$libdir does
16590 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16592 # Whether we need a single -rpath flag with a separated argument.
16593 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16595 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16596 # resulting binary.
16597 hardcode_direct=$hardcode_direct_F77
16599 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16600 # resulting binary.
16601 hardcode_minus_L=$hardcode_minus_L_F77
16603 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16604 # the resulting binary.
16605 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16607 # Set to yes if building a shared library automatically hardcodes DIR into the library
16608 # and all subsequent libraries and executables linked against it.
16609 hardcode_automatic=$hardcode_automatic_F77
16611 # Variables whose values should be saved in libtool wrapper scripts and
16612 # restored at relink time.
16613 variables_saved_for_relink="$variables_saved_for_relink"
16615 # Whether libtool must link a program against all its dependency libraries.
16616 link_all_deplibs=$link_all_deplibs_F77
16618 # Compile-time system search path for libraries
16619 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16621 # Run-time system search path for libraries
16622 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16624 # Fix the shell variable \$srcfile for the compiler.
16625 fix_srcfile_path=$lt_fix_srcfile_path
16627 # Set to yes if exported symbols are required.
16628 always_export_symbols=$always_export_symbols_F77
16630 # The commands to list exported symbols.
16631 export_symbols_cmds=$lt_export_symbols_cmds_F77
16633 # The commands to extract the exported symbol list from a shared archive.
16634 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16636 # Symbols that should not be listed in the preloaded symbols.
16637 exclude_expsyms=$lt_exclude_expsyms_F77
16639 # Symbols that must always be exported.
16640 include_expsyms=$lt_include_expsyms_F77
16642 # ### END LIBTOOL TAG CONFIG: $tagname
16648 # If there is no Makefile yet, we rely on a make rule to execute
16649 # `config.status --recheck' to rerun these tests and create the
16650 # libtool script then.
16651 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16652 if test -f "$ltmain_in"; then
16653 test -f Makefile && make "$ltmain"
16659 ac_cpp='$CPP $CPPFLAGS'
16660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16672 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16675 # Source file extension for Java test sources.
16678 # Object file extension for compiled Java test sources.
16682 # Code to be used in simple compile tests
16683 lt_simple_compile_test_code="class foo {}"
16685 # Code to be used in simple link tests
16686 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16688 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16690 # If no C compiler was specified, use CC.
16693 # If no C compiler flags were specified, use CFLAGS.
16694 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16696 # Allow CC to be a program name with arguments.
16700 # save warnings/boilerplate of simple test code
16701 ac_outfile=conftest.$ac_objext
16702 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16703 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16704 _lt_compiler_boilerplate=`cat conftest.err`
16707 ac_outfile=conftest.$ac_objext
16708 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16709 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16710 _lt_linker_boilerplate=`cat conftest.err`
16714 # Allow CC to be a program name with arguments.
16719 for cc_temp in $compiler""; do
16721 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16722 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16727 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16730 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16731 archive_cmds_need_lc_GCJ=no
16733 old_archive_cmds_GCJ=$old_archive_cmds
16736 lt_prog_compiler_no_builtin_flag_GCJ=
16738 if test "$GCC" = yes; then
16739 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16742 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16743 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16744 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16745 echo $ECHO_N "(cached) $ECHO_C" >&6
16747 lt_cv_prog_compiler_rtti_exceptions=no
16748 ac_outfile=conftest.$ac_objext
16749 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16750 lt_compiler_flag="-fno-rtti -fno-exceptions"
16751 # Insert the option either (1) after the last *FLAGS variable, or
16752 # (2) before a word containing "conftest.", or (3) at the end.
16753 # Note that $ac_compile itself does not contain backslashes and begins
16754 # with a dollar sign (not a hyphen), so the echo should work correctly.
16755 # The option is referenced via a variable to avoid confusing sed.
16756 lt_compile=`echo "$ac_compile" | $SED \
16757 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16758 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16759 -e 's:$: $lt_compiler_flag:'`
16760 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16761 (eval "$lt_compile" 2>conftest.err)
16763 cat conftest.err >&5
16764 echo "$as_me:__oline__: \$? = $ac_status" >&5
16765 if (exit $ac_status) && test -s "$ac_outfile"; then
16766 # The compiler can only warn and ignore the option if not recognized
16767 # So say no if there are warnings other than the usual output.
16768 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16769 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16770 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16771 lt_cv_prog_compiler_rtti_exceptions=yes
16777 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16778 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16780 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16781 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16788 lt_prog_compiler_wl_GCJ=
16789 lt_prog_compiler_pic_GCJ=
16790 lt_prog_compiler_static_GCJ=
16792 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16793 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16795 if test "$GCC" = yes; then
16796 lt_prog_compiler_wl_GCJ='-Wl,'
16797 lt_prog_compiler_static_GCJ='-static'
16801 # All AIX code is PIC.
16802 if test "$host_cpu" = ia64; then
16803 # AIX 5 now supports IA64 processor
16804 lt_prog_compiler_static_GCJ='-Bstatic'
16809 # FIXME: we need at least 68020 code to build shared libraries, but
16810 # adding the `-m68020' flag to GCC prevents building anything better,
16812 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16815 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16816 # PIC is the default for these OSes.
16819 mingw* | cygwin* | pw32* | os2*)
16820 # This hack is so that the source file can tell whether it is being
16821 # built for inclusion in a dll (and should export symbols for example).
16822 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16823 # (--disable-auto-import) libraries
16827 darwin* | rhapsody*)
16828 # PIC is the default on this platform
16829 # Common symbols not allowed in MH_DYLIB files
16830 lt_prog_compiler_pic_GCJ='-fno-common'
16834 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16835 # Instead, we relocate shared libraries at runtime.
16839 # Just because we use GCC doesn't mean we suddenly get shared libraries
16840 # on systems that don't support them.
16841 lt_prog_compiler_can_build_shared_GCJ=no
16846 if test -d /usr/nec; then
16847 lt_prog_compiler_pic_GCJ=-Kconform_pic
16852 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16853 # not for PA HP-UX.
16859 lt_prog_compiler_pic_GCJ='-fPIC'
16865 lt_prog_compiler_pic_GCJ='-fPIC'
16869 # PORTME Check for flag to pass linker flags through the system compiler.
16872 lt_prog_compiler_wl_GCJ='-Wl,'
16873 if test "$host_cpu" = ia64; then
16874 # AIX 5 now supports IA64 processor
16875 lt_prog_compiler_static_GCJ='-Bstatic'
16877 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16881 # PIC is the default on this platform
16882 # Common symbols not allowed in MH_DYLIB files
16883 case $cc_basename in
16885 lt_prog_compiler_pic_GCJ='-qnocommon'
16886 lt_prog_compiler_wl_GCJ='-Wl,'
16891 mingw* | cygwin* | pw32* | os2*)
16892 # This hack is so that the source file can tell whether it is being
16893 # built for inclusion in a dll (and should export symbols for example).
16897 hpux9* | hpux10* | hpux11*)
16898 lt_prog_compiler_wl_GCJ='-Wl,'
16899 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16900 # not for PA HP-UX.
16906 lt_prog_compiler_pic_GCJ='+Z'
16909 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16910 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16913 irix5* | irix6* | nonstopux*)
16914 lt_prog_compiler_wl_GCJ='-Wl,'
16915 # PIC (with -KPIC) is the default.
16916 lt_prog_compiler_static_GCJ='-non_shared'
16920 lt_prog_compiler_pic_GCJ='-KPIC'
16921 lt_prog_compiler_static_GCJ='-Bstatic'
16924 linux* | k*bsd*-gnu)
16925 case $cc_basename in
16927 lt_prog_compiler_wl_GCJ='-Wl,'
16928 lt_prog_compiler_pic_GCJ='-KPIC'
16929 lt_prog_compiler_static_GCJ='-static'
16931 pgcc* | pgf77* | pgf90* | pgf95*)
16932 # Portland Group compilers (*not* the Pentium gcc compiler,
16933 # which looks to be a dead project)
16934 lt_prog_compiler_wl_GCJ='-Wl,'
16935 lt_prog_compiler_pic_GCJ='-fpic'
16936 lt_prog_compiler_static_GCJ='-Bstatic'
16939 lt_prog_compiler_wl_GCJ='-Wl,'
16940 # All Alpha code is PIC.
16941 lt_prog_compiler_static_GCJ='-non_shared'
16944 case `$CC -V 2>&1 | sed 5q` in
16947 lt_prog_compiler_pic_GCJ='-KPIC'
16948 lt_prog_compiler_static_GCJ='-Bstatic'
16949 lt_prog_compiler_wl_GCJ='-Wl,'
16952 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16953 lt_prog_compiler_pic_GCJ='-KPIC'
16954 lt_prog_compiler_static_GCJ='-Bstatic'
16955 lt_prog_compiler_wl_GCJ=''
16962 osf3* | osf4* | osf5*)
16963 lt_prog_compiler_wl_GCJ='-Wl,'
16964 # All OSF/1 code is PIC.
16965 lt_prog_compiler_static_GCJ='-non_shared'
16969 lt_prog_compiler_static_GCJ='-non_shared'
16973 lt_prog_compiler_pic_GCJ='-KPIC'
16974 lt_prog_compiler_static_GCJ='-Bstatic'
16975 case $cc_basename in
16976 f77* | f90* | f95*)
16977 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16979 lt_prog_compiler_wl_GCJ='-Wl,';;
16984 lt_prog_compiler_wl_GCJ='-Qoption ld '
16985 lt_prog_compiler_pic_GCJ='-PIC'
16986 lt_prog_compiler_static_GCJ='-Bstatic'
16989 sysv4 | sysv4.2uw2* | sysv4.3*)
16990 lt_prog_compiler_wl_GCJ='-Wl,'
16991 lt_prog_compiler_pic_GCJ='-KPIC'
16992 lt_prog_compiler_static_GCJ='-Bstatic'
16996 if test -d /usr/nec ;then
16997 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16998 lt_prog_compiler_static_GCJ='-Bstatic'
17002 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17003 lt_prog_compiler_wl_GCJ='-Wl,'
17004 lt_prog_compiler_pic_GCJ='-KPIC'
17005 lt_prog_compiler_static_GCJ='-Bstatic'
17009 lt_prog_compiler_wl_GCJ='-Wl,'
17010 lt_prog_compiler_can_build_shared_GCJ=no
17014 lt_prog_compiler_pic_GCJ='-pic'
17015 lt_prog_compiler_static_GCJ='-Bstatic'
17019 lt_prog_compiler_can_build_shared_GCJ=no
17024 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17025 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17028 # Check to make sure the PIC flag actually works.
17030 if test -n "$lt_prog_compiler_pic_GCJ"; then
17032 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17033 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17034 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17035 echo $ECHO_N "(cached) $ECHO_C" >&6
17037 lt_cv_prog_compiler_pic_works_GCJ=no
17038 ac_outfile=conftest.$ac_objext
17039 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17040 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17041 # Insert the option either (1) after the last *FLAGS variable, or
17042 # (2) before a word containing "conftest.", or (3) at the end.
17043 # Note that $ac_compile itself does not contain backslashes and begins
17044 # with a dollar sign (not a hyphen), so the echo should work correctly.
17045 # The option is referenced via a variable to avoid confusing sed.
17046 lt_compile=`echo "$ac_compile" | $SED \
17047 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17048 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17049 -e 's:$: $lt_compiler_flag:'`
17050 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
17051 (eval "$lt_compile" 2>conftest.err)
17053 cat conftest.err >&5
17054 echo "$as_me:__oline__: \$? = $ac_status" >&5
17055 if (exit $ac_status) && test -s "$ac_outfile"; then
17056 # The compiler can only warn and ignore the option if not recognized
17057 # So say no if there are warnings other than the usual output.
17058 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17059 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17060 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17061 lt_cv_prog_compiler_pic_works_GCJ=yes
17067 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17068 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17070 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17071 case $lt_prog_compiler_pic_GCJ in
17073 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17076 lt_prog_compiler_pic_GCJ=
17077 lt_prog_compiler_can_build_shared_GCJ=no
17082 # For platforms which do not support PIC, -DPIC is meaningless:
17084 lt_prog_compiler_pic_GCJ=
17087 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17092 # Check to make sure the static flag actually works.
17094 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17095 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17096 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17097 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17098 echo $ECHO_N "(cached) $ECHO_C" >&6
17100 lt_cv_prog_compiler_static_works_GCJ=no
17101 save_LDFLAGS="$LDFLAGS"
17102 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17103 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17104 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17105 # The linker can only warn and ignore the option if not recognized
17106 # So say no if there are warnings
17107 if test -s conftest.err; then
17108 # Append any errors to the config.log.
17109 cat conftest.err 1>&5
17110 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17111 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17112 if diff conftest.exp conftest.er2 >/dev/null; then
17113 lt_cv_prog_compiler_static_works_GCJ=yes
17116 lt_cv_prog_compiler_static_works_GCJ=yes
17120 LDFLAGS="$save_LDFLAGS"
17123 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17124 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17126 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17129 lt_prog_compiler_static_GCJ=
17133 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17134 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17135 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17136 echo $ECHO_N "(cached) $ECHO_C" >&6
17138 lt_cv_prog_compiler_c_o_GCJ=no
17139 $rm -r conftest 2>/dev/null
17143 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17145 lt_compiler_flag="-o out/conftest2.$ac_objext"
17146 # Insert the option either (1) after the last *FLAGS variable, or
17147 # (2) before a word containing "conftest.", or (3) at the end.
17148 # Note that $ac_compile itself does not contain backslashes and begins
17149 # with a dollar sign (not a hyphen), so the echo should work correctly.
17150 lt_compile=`echo "$ac_compile" | $SED \
17151 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17152 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17153 -e 's:$: $lt_compiler_flag:'`
17154 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
17155 (eval "$lt_compile" 2>out/conftest.err)
17157 cat out/conftest.err >&5
17158 echo "$as_me:__oline__: \$? = $ac_status" >&5
17159 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17161 # The compiler can only warn and ignore the option if not recognized
17162 # So say no if there are warnings
17163 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17164 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17165 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17166 lt_cv_prog_compiler_c_o_GCJ=yes
17171 # SGI C++ compiler will create directory out/ii_files/ for
17172 # template instantiation
17173 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17174 $rm out/* && rmdir out
17180 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17181 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17184 hard_links="nottested"
17185 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17186 # do not overwrite the value of need_locks provided by the user
17187 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17188 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17191 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17193 ln conftest.a conftest.b 2>&5 || hard_links=no
17194 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17195 { echo "$as_me:$LINENO: result: $hard_links" >&5
17196 echo "${ECHO_T}$hard_links" >&6; }
17197 if test "$hard_links" = no; then
17198 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17199 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17206 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17207 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17210 allow_undefined_flag_GCJ=
17211 enable_shared_with_static_runtimes_GCJ=no
17213 archive_expsym_cmds_GCJ=
17214 old_archive_From_new_cmds_GCJ=
17215 old_archive_from_expsyms_cmds_GCJ=
17216 export_dynamic_flag_spec_GCJ=
17217 whole_archive_flag_spec_GCJ=
17218 thread_safe_flag_spec_GCJ=
17219 hardcode_libdir_flag_spec_GCJ=
17220 hardcode_libdir_flag_spec_ld_GCJ=
17221 hardcode_libdir_separator_GCJ=
17222 hardcode_direct_GCJ=no
17223 hardcode_minus_L_GCJ=no
17224 hardcode_shlibpath_var_GCJ=unsupported
17225 link_all_deplibs_GCJ=unknown
17226 hardcode_automatic_GCJ=no
17228 module_expsym_cmds_GCJ=
17229 always_export_symbols_GCJ=no
17230 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17231 # include_expsyms should be a list of space-separated symbols to be *always*
17232 # included in the symbol list
17233 include_expsyms_GCJ=
17234 # exclude_expsyms can be an extended regexp of symbols to exclude
17235 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17236 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17237 # as well as any symbol that contains `d'.
17238 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17239 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17240 # platforms (ab)use it in PIC code, but their linkers get confused if
17241 # the symbol is explicitly referenced. Since portable code cannot
17242 # rely on this symbol name, it's probably fine to never include it in
17243 # preloaded symbol tables.
17244 # Exclude shared library initialization/finalization symbols.
17245 extract_expsyms_cmds=
17246 # Just being paranoid about ensuring that cc_basename is set.
17247 for cc_temp in $compiler""; do
17249 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17250 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17255 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17258 cygwin* | mingw* | pw32*)
17259 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17260 # When not using gcc, we currently assume that we are using
17261 # Microsoft Visual C++.
17262 if test "$GCC" != yes; then
17267 # we just hope/assume this is gcc and not c89 (= MSVC++)
17276 if test "$with_gnu_ld" = yes; then
17277 # If archive_cmds runs LD, not CC, wlarc should be empty
17280 # Set some defaults for GNU ld with shared library support. These
17281 # are reset later if shared libraries are not supported. Putting them
17282 # here allows them to be overridden if necessary.
17283 runpath_var=LD_RUN_PATH
17284 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17285 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17286 # ancient GNU ld didn't support --whole-archive et. al.
17287 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17288 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17290 whole_archive_flag_spec_GCJ=
17292 supports_anon_versioning=no
17293 case `$LD -v 2>/dev/null` in
17294 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17295 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17296 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17297 *\ 2.11.*) ;; # other 2.11 versions
17298 *) supports_anon_versioning=yes ;;
17301 # See if GNU ld supports shared libraries.
17304 # On AIX/PPC, the GNU linker is very broken
17305 if test "$host_cpu" != ia64; then
17309 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17310 *** to be unable to reliably create shared libraries on AIX.
17311 *** Therefore, libtool is disabling shared libraries support. If you
17312 *** really care for shared libraries, you may want to modify your PATH
17313 *** so that a non-GNU linker is found, and then restart.
17320 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)'
17321 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17322 hardcode_minus_L_GCJ=yes
17324 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17325 # that the semantics of dynamic libraries on AmigaOS, at least up
17326 # to version 4, is to share data among multiple programs linked
17327 # with the same dynamic library. Since this doesn't match the
17328 # behavior of shared libraries on other platforms, we can't use
17334 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17335 allow_undefined_flag_GCJ=unsupported
17336 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17337 # support --undefined. This deserves some investigation. FIXME
17338 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17344 cygwin* | mingw* | pw32*)
17345 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17346 # as there is no search path for DLLs.
17347 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17348 allow_undefined_flag_GCJ=unsupported
17349 always_export_symbols_GCJ=no
17350 enable_shared_with_static_runtimes_GCJ=yes
17351 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17353 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17354 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17355 # If the export-symbols file already is a .def file (1st line
17356 # is EXPORTS), use it as is; otherwise, prepend...
17357 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17358 cp $export_symbols $output_objdir/$soname.def;
17360 echo EXPORTS > $output_objdir/$soname.def;
17361 cat $export_symbols >> $output_objdir/$soname.def;
17363 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17370 hardcode_direct_GCJ=no
17371 hardcode_shlibpath_var_GCJ=no
17372 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17373 export_dynamic_flag_spec_GCJ='${wl}-E'
17374 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17375 # Instead, shared libraries are loaded at an image base (0x10000000 by
17376 # default) and relocated if they conflict, which is a slow very memory
17377 # consuming and fragmenting process. To avoid this, we pick a random,
17378 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17379 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17380 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17381 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17384 gnu* | linux* | k*bsd*-gnu)
17385 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17387 case $cc_basename,$host_cpu in
17388 pgcc*) # Portland Group C compiler
17389 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'
17390 tmp_addflag=' $pic_flag'
17392 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17393 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'
17394 tmp_addflag=' $pic_flag -Mnomain' ;;
17395 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17396 tmp_addflag=' -i_dynamic' ;;
17397 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17398 tmp_addflag=' -i_dynamic -nofor_main' ;;
17399 ifc* | ifort*) # Intel Fortran compiler
17400 tmp_addflag=' -nofor_main' ;;
17402 case `$CC -V 2>&1 | sed 5q` in
17403 *Sun\ C*) # Sun C 5.9
17404 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17405 tmp_sharedflag='-G' ;;
17406 *Sun\ F*) # Sun Fortran 8.3
17407 tmp_sharedflag='-G' ;;
17409 tmp_sharedflag='-shared' ;;
17411 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17413 if test $supports_anon_versioning = yes; then
17414 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17415 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17416 $echo "local: *; };" >> $output_objdir/$libname.ver~
17417 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17419 link_all_deplibs_GCJ=no
17425 netbsd* | netbsdelf*-gnu)
17426 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17427 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17430 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17431 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17436 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17440 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17441 *** create shared libraries on Solaris systems. Therefore, libtool
17442 *** is disabling shared libraries support. We urge you to upgrade GNU
17443 *** binutils to release 2.9.1 or newer. Another option is to modify
17444 *** your PATH or compiler configuration so that the native linker is
17445 *** used, and then restart.
17448 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17449 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17450 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17456 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17457 case `$LD -v 2>&1` in
17458 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17462 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17463 *** reliably create shared libraries on SCO systems. Therefore, libtool
17464 *** is disabling shared libraries support. We urge you to upgrade GNU
17465 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17466 *** your PATH or compiler configuration so that the native linker is
17467 *** used, and then restart.
17472 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17473 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17474 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17475 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17484 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17486 hardcode_direct_GCJ=yes
17487 hardcode_shlibpath_var_GCJ=no
17491 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17492 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17493 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17500 if test "$ld_shlibs_GCJ" = no; then
17502 hardcode_libdir_flag_spec_GCJ=
17503 export_dynamic_flag_spec_GCJ=
17504 whole_archive_flag_spec_GCJ=
17507 # PORTME fill in a description of your system's linker (not GNU ld)
17510 allow_undefined_flag_GCJ=unsupported
17511 always_export_symbols_GCJ=yes
17512 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'
17513 # Note: this linker hardcodes the directories in LIBPATH if there
17514 # are no directories specified by -L.
17515 hardcode_minus_L_GCJ=yes
17516 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17517 # Neither direct hardcoding nor static linking is supported with a
17519 hardcode_direct_GCJ=unsupported
17524 if test "$host_cpu" = ia64; then
17525 # On IA64, the linker does run time linking by default, so we don't
17526 # have to do anything special.
17527 aix_use_runtimelinking=no
17528 exp_sym_flag='-Bexport'
17531 # If we're using GNU nm, then we don't want the "-C" option.
17532 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17533 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17534 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'
17536 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'
17538 aix_use_runtimelinking=no
17540 # Test if we are trying to use run time linking or normal
17541 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17542 # need to do runtime linking.
17543 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17544 for ld_flag in $LDFLAGS; do
17545 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17546 aix_use_runtimelinking=yes
17553 exp_sym_flag='-bexport'
17554 no_entry_flag='-bnoentry'
17557 # When large executables or shared objects are built, AIX ld can
17558 # have problems creating the table of contents. If linking a library
17559 # or program results in "error TOC overflow" add -mminimal-toc to
17560 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17561 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17563 archive_cmds_GCJ=''
17564 hardcode_direct_GCJ=yes
17565 hardcode_libdir_separator_GCJ=':'
17566 link_all_deplibs_GCJ=yes
17568 if test "$GCC" = yes; then
17569 case $host_os in aix4.[012]|aix4.[012].*)
17570 # We only want to do this on AIX 4.2 and lower, the check
17571 # below for broken collect2 doesn't work under 4.3+
17572 collect2name=`${CC} -print-prog-name=collect2`
17573 if test -f "$collect2name" && \
17574 strings "$collect2name" | grep resolve_lib_name >/dev/null
17576 # We have reworked collect2
17579 # We have old collect2
17580 hardcode_direct_GCJ=unsupported
17581 # It fails to find uninstalled libraries when the uninstalled
17582 # path is not listed in the libpath. Setting hardcode_minus_L
17583 # to unsupported forces relinking
17584 hardcode_minus_L_GCJ=yes
17585 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17586 hardcode_libdir_separator_GCJ=
17590 shared_flag='-shared'
17591 if test "$aix_use_runtimelinking" = yes; then
17592 shared_flag="$shared_flag "'${wl}-G'
17596 if test "$host_cpu" = ia64; then
17597 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17598 # chokes on -Wl,-G. The following line is correct:
17601 if test "$aix_use_runtimelinking" = yes; then
17602 shared_flag='${wl}-G'
17604 shared_flag='${wl}-bM:SRE'
17609 # It seems that -bexpall does not export symbols beginning with
17610 # underscore (_), so it is better to generate a list of symbols to export.
17611 always_export_symbols_GCJ=yes
17612 if test "$aix_use_runtimelinking" = yes; then
17613 # Warning - without using the other runtime loading flags (-brtl),
17614 # -berok will link without error, but may produce a broken library.
17615 allow_undefined_flag_GCJ='-berok'
17616 # Determine the default libpath from the value encoded in an empty executable.
17617 cat >conftest.$ac_ext <<_ACEOF
17620 cat confdefs.h >>conftest.$ac_ext
17621 cat >>conftest.$ac_ext <<_ACEOF
17622 /* end confdefs.h. */
17632 rm -f conftest.$ac_objext conftest$ac_exeext
17633 if { (ac_try="$ac_link"
17634 case "(($ac_try" in
17635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17636 *) ac_try_echo=$ac_try;;
17638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17639 (eval "$ac_link") 2>conftest.er1
17641 grep -v '^ *+' conftest.er1 >conftest.err
17643 cat conftest.err >&5
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); } && {
17646 test -z "$ac_c_werror_flag" ||
17647 test ! -s conftest.err
17648 } && test -s conftest$ac_exeext &&
17649 $as_test_x conftest$ac_exeext; then
17651 lt_aix_libpath_sed='
17652 /Import File Strings/,/^$/ {
17658 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17659 # Check for a 64-bit object if we didn't find anything.
17660 if test -z "$aix_libpath"; then
17661 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17664 echo "$as_me: failed program was:" >&5
17665 sed 's/^/| /' conftest.$ac_ext >&5
17670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17671 conftest$ac_exeext conftest.$ac_ext
17672 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17674 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17675 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17677 if test "$host_cpu" = ia64; then
17678 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17679 allow_undefined_flag_GCJ="-z nodefs"
17680 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17682 # Determine the default libpath from the value encoded in an empty executable.
17683 cat >conftest.$ac_ext <<_ACEOF
17686 cat confdefs.h >>conftest.$ac_ext
17687 cat >>conftest.$ac_ext <<_ACEOF
17688 /* end confdefs.h. */
17698 rm -f conftest.$ac_objext conftest$ac_exeext
17699 if { (ac_try="$ac_link"
17700 case "(($ac_try" in
17701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17702 *) ac_try_echo=$ac_try;;
17704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17705 (eval "$ac_link") 2>conftest.er1
17707 grep -v '^ *+' conftest.er1 >conftest.err
17709 cat conftest.err >&5
17710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711 (exit $ac_status); } && {
17712 test -z "$ac_c_werror_flag" ||
17713 test ! -s conftest.err
17714 } && test -s conftest$ac_exeext &&
17715 $as_test_x conftest$ac_exeext; then
17717 lt_aix_libpath_sed='
17718 /Import File Strings/,/^$/ {
17724 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17725 # Check for a 64-bit object if we didn't find anything.
17726 if test -z "$aix_libpath"; then
17727 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17730 echo "$as_me: failed program was:" >&5
17731 sed 's/^/| /' conftest.$ac_ext >&5
17736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17737 conftest$ac_exeext conftest.$ac_ext
17738 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17740 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17741 # Warning - without using the other run time loading flags,
17742 # -berok will link without error, but may produce a broken library.
17743 no_undefined_flag_GCJ=' ${wl}-bernotok'
17744 allow_undefined_flag_GCJ=' ${wl}-berok'
17745 # Exported symbols can be pulled into shared objects from archives
17746 whole_archive_flag_spec_GCJ='$convenience'
17747 archive_cmds_need_lc_GCJ=yes
17748 # This is similar to how AIX traditionally builds its shared libraries.
17749 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17755 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)'
17756 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17757 hardcode_minus_L_GCJ=yes
17758 # see comment about different semantics on the GNU ld section
17763 export_dynamic_flag_spec_GCJ=-rdynamic
17766 cygwin* | mingw* | pw32*)
17767 # When not using gcc, we currently assume that we are using
17768 # Microsoft Visual C++.
17769 # hardcode_libdir_flag_spec is actually meaningless, as there is
17770 # no search path for DLLs.
17771 hardcode_libdir_flag_spec_GCJ=' '
17772 allow_undefined_flag_GCJ=unsupported
17773 # Tell ltmain to make .lib files, not .a files.
17775 # Tell ltmain to make .dll files, not .so files.
17777 # FIXME: Setting linknames here is a bad hack.
17778 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17779 # The linker will automatically build a .lib file if we build a DLL.
17780 old_archive_From_new_cmds_GCJ='true'
17781 # FIXME: Should let the user specify the lib program.
17782 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17783 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17784 enable_shared_with_static_runtimes_GCJ=yes
17787 darwin* | rhapsody*)
17789 rhapsody* | darwin1.[012])
17790 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17793 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17794 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17796 case ${MACOSX_DEPLOYMENT_TARGET} in
17798 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17801 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17807 archive_cmds_need_lc_GCJ=no
17808 hardcode_direct_GCJ=no
17809 hardcode_automatic_GCJ=yes
17810 hardcode_shlibpath_var_GCJ=unsupported
17811 whole_archive_flag_spec_GCJ=''
17812 link_all_deplibs_GCJ=yes
17813 if test "$GCC" = yes ; then
17814 output_verbose_link_cmd='echo'
17815 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17816 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17817 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17818 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17820 case $cc_basename in
17822 output_verbose_link_cmd='echo'
17823 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17824 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17825 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17826 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17827 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}'
17837 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17838 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17839 hardcode_shlibpath_var_GCJ=no
17846 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17847 # support. Future versions do this automatically, but an explicit c++rt0.o
17848 # does not break anything, and helps significantly (at the cost of a little
17851 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17852 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17853 hardcode_direct_GCJ=yes
17854 hardcode_shlibpath_var_GCJ=no
17857 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17859 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17860 hardcode_direct_GCJ=yes
17861 hardcode_minus_L_GCJ=yes
17862 hardcode_shlibpath_var_GCJ=no
17865 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17866 freebsd* | dragonfly*)
17867 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17868 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17869 hardcode_direct_GCJ=yes
17870 hardcode_shlibpath_var_GCJ=no
17874 if test "$GCC" = yes; then
17875 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'
17877 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'
17879 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17880 hardcode_libdir_separator_GCJ=:
17881 hardcode_direct_GCJ=yes
17883 # hardcode_minus_L: Not really in the search PATH,
17884 # but as the default location of the library.
17885 hardcode_minus_L_GCJ=yes
17886 export_dynamic_flag_spec_GCJ='${wl}-E'
17890 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17891 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17893 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17895 if test "$with_gnu_ld" = no; then
17896 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17897 hardcode_libdir_separator_GCJ=:
17899 hardcode_direct_GCJ=yes
17900 export_dynamic_flag_spec_GCJ='${wl}-E'
17902 # hardcode_minus_L: Not really in the search PATH,
17903 # but as the default location of the library.
17904 hardcode_minus_L_GCJ=yes
17909 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17912 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17915 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17918 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17924 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17927 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17930 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17934 if test "$with_gnu_ld" = no; then
17935 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17936 hardcode_libdir_separator_GCJ=:
17940 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17941 hardcode_direct_GCJ=no
17942 hardcode_shlibpath_var_GCJ=no
17945 hardcode_direct_GCJ=yes
17946 export_dynamic_flag_spec_GCJ='${wl}-E'
17948 # hardcode_minus_L: Not really in the search PATH,
17949 # but as the default location of the library.
17950 hardcode_minus_L_GCJ=yes
17956 irix5* | irix6* | nonstopux*)
17957 if test "$GCC" = yes; then
17958 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'
17960 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'
17961 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17963 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17964 hardcode_libdir_separator_GCJ=:
17965 link_all_deplibs_GCJ=yes
17968 netbsd* | netbsdelf*-gnu)
17969 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17970 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17972 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17974 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17975 hardcode_direct_GCJ=yes
17976 hardcode_shlibpath_var_GCJ=no
17980 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17981 hardcode_direct_GCJ=yes
17982 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17983 hardcode_libdir_separator_GCJ=:
17984 hardcode_shlibpath_var_GCJ=no
17988 if test -f /usr/libexec/ld.so; then
17989 hardcode_direct_GCJ=yes
17990 hardcode_shlibpath_var_GCJ=no
17991 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17992 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17993 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17994 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17995 export_dynamic_flag_spec_GCJ='${wl}-E'
17998 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17999 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18000 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18003 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18004 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18014 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18015 hardcode_minus_L_GCJ=yes
18016 allow_undefined_flag_GCJ=unsupported
18017 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'
18018 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18022 if test "$GCC" = yes; then
18023 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18024 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'
18026 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18027 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'
18029 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18030 hardcode_libdir_separator_GCJ=:
18033 osf4* | osf5*) # as osf3* with the addition of -msym flag
18034 if test "$GCC" = yes; then
18035 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18036 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'
18037 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18039 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18040 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'
18041 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~
18042 $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'
18044 # Both c and cxx compiler support -rpath directly
18045 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18047 hardcode_libdir_separator_GCJ=:
18051 no_undefined_flag_GCJ=' -z text'
18052 if test "$GCC" = yes; then
18054 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18055 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18056 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18059 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18060 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18061 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18063 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18064 hardcode_shlibpath_var_GCJ=no
18066 solaris2.[0-5] | solaris2.[0-5].*) ;;
18068 # The compiler driver will combine and reorder linker options,
18069 # but understands `-z linker_flag'. GCC discards it without `$wl',
18070 # but is careful enough not to reorder.
18071 # Supported since Solaris 2.6 (maybe 2.5.1?)
18072 if test "$GCC" = yes; then
18073 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18075 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18079 link_all_deplibs_GCJ=yes
18083 if test "x$host_vendor" = xsequent; then
18084 # Use $CC to link under sequent, because it throws in some extra .o
18085 # files that make .init and .fini sections work.
18086 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18088 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18090 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18091 hardcode_direct_GCJ=yes
18092 hardcode_minus_L_GCJ=yes
18093 hardcode_shlibpath_var_GCJ=no
18097 case $host_vendor in
18099 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18100 hardcode_direct_GCJ=yes # is this really true???
18103 ## LD is ld it makes a PLAMLIB
18104 ## CC just makes a GrossModule.
18105 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18106 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18107 hardcode_direct_GCJ=no
18110 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18111 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18114 runpath_var='LD_RUN_PATH'
18115 hardcode_shlibpath_var_GCJ=no
18119 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18120 hardcode_shlibpath_var_GCJ=no
18121 export_dynamic_flag_spec_GCJ='-Bexport'
18125 if test -d /usr/nec; then
18126 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18127 hardcode_shlibpath_var_GCJ=no
18128 runpath_var=LD_RUN_PATH
18129 hardcode_runpath_var=yes
18134 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18135 no_undefined_flag_GCJ='${wl}-z,text'
18136 archive_cmds_need_lc_GCJ=no
18137 hardcode_shlibpath_var_GCJ=no
18138 runpath_var='LD_RUN_PATH'
18140 if test "$GCC" = yes; then
18141 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18142 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18144 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18145 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18149 sysv5* | sco3.2v5* | sco5v6*)
18150 # Note: We can NOT use -z defs as we might desire, because we do not
18151 # link with -lc, and that would cause any symbols used from libc to
18152 # always be unresolved, which means just about no library would
18153 # ever link correctly. If we're not using GNU ld we use -z text
18154 # though, which does catch some bad symbols but isn't as heavy-handed
18156 no_undefined_flag_GCJ='${wl}-z,text'
18157 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18158 archive_cmds_need_lc_GCJ=no
18159 hardcode_shlibpath_var_GCJ=no
18160 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18161 hardcode_libdir_separator_GCJ=':'
18162 link_all_deplibs_GCJ=yes
18163 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18164 runpath_var='LD_RUN_PATH'
18166 if test "$GCC" = yes; then
18167 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18168 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18170 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18171 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18176 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18177 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18178 hardcode_shlibpath_var_GCJ=no
18187 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18188 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18189 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18192 # Do we need to explicitly link libc?
18194 case "x$archive_cmds_need_lc_GCJ" in
18196 # Assume -lc should be added
18197 archive_cmds_need_lc_GCJ=yes
18199 if test "$enable_shared" = yes && test "$GCC" = yes; then
18200 case $archive_cmds_GCJ in
18202 # FIXME: we may have to deal with multi-command sequences.
18205 # Test whether the compiler implicitly links with -lc since on some
18206 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18207 # to ld, don't add -lc before -lgcc.
18208 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18209 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18211 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18214 (eval $ac_compile) 2>&5
18216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217 (exit $ac_status); } 2>conftest.err; then
18220 libobjs=conftest.$ac_objext
18222 wl=$lt_prog_compiler_wl_GCJ
18223 pic_flag=$lt_prog_compiler_pic_GCJ
18229 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18230 allow_undefined_flag_GCJ=
18231 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18232 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18235 (exit $ac_status); }
18237 archive_cmds_need_lc_GCJ=no
18239 archive_cmds_need_lc_GCJ=yes
18241 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18243 cat conftest.err 1>&5
18246 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18247 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18254 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18255 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18256 library_names_spec=
18257 libname_spec='lib$name'
18261 postuninstall_cmds=
18265 shlibpath_overrides_runpath=unknown
18267 dynamic_linker="$host_os ld.so"
18268 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18270 need_lib_prefix=unknown
18271 hardcode_into_libs=no
18273 # when you set need_version to no, make sure it does not cause -set_version
18274 # flags to be left without arguments
18275 need_version=unknown
18280 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18281 shlibpath_var=LIBPATH
18283 # AIX 3 has no versioning support, so we append a major version to the name.
18284 soname_spec='${libname}${release}${shared_ext}$major'
18291 hardcode_into_libs=yes
18292 if test "$host_cpu" = ia64; then
18293 # AIX 5 supports IA64
18294 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18295 shlibpath_var=LD_LIBRARY_PATH
18297 # With GCC up to 2.95.x, collect2 would create an import file
18298 # for dependence libraries. The import file would start with
18299 # the line `#! .'. This would cause the generated library to
18300 # depend on `.', always an invalid library. This was fixed in
18301 # development snapshots of GCC prior to 3.0.
18303 aix4 | aix4.[01] | aix4.[01].*)
18304 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18306 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18309 can_build_shared=no
18313 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18314 # soname into executable. Probably we can add versioning support to
18315 # collect2, so additional links can be useful in future.
18316 if test "$aix_use_runtimelinking" = yes; then
18317 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18318 # instead of lib<name>.a to let people know that these are not
18319 # typical AIX shared libraries.
18320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18322 # We preserve .a as extension for shared libraries through AIX4.2
18323 # and later when we are not doing run time linking.
18324 library_names_spec='${libname}${release}.a $libname.a'
18325 soname_spec='${libname}${release}${shared_ext}$major'
18327 shlibpath_var=LIBPATH
18332 library_names_spec='$libname.ixlibrary $libname.a'
18333 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18334 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'
18338 library_names_spec='${libname}${shared_ext}'
18339 dynamic_linker="$host_os ld.so"
18340 shlibpath_var=LIBRARY_PATH
18346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18347 soname_spec='${libname}${release}${shared_ext}$major'
18348 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18349 shlibpath_var=LD_LIBRARY_PATH
18350 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18351 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18352 # the default ld.so.conf also contains /usr/contrib/lib and
18353 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18354 # libtool to hard-code these into programs
18357 cygwin* | mingw* | pw32*)
18358 version_type=windows
18363 case $GCC,$host_os in
18364 yes,cygwin* | yes,mingw* | yes,pw32*)
18365 library_names_spec='$libname.dll.a'
18366 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18367 postinstall_cmds='base_file=`basename \${file}`~
18368 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18369 dldir=$destdir/`dirname \$dlpath`~
18370 test -d \$dldir || mkdir -p \$dldir~
18371 $install_prog $dir/$dlname \$dldir/$dlname~
18372 chmod a+x \$dldir/$dlname'
18373 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18374 dlpath=$dir/\$dldll~
18376 shlibpath_overrides_runpath=yes
18380 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18381 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18382 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18385 # MinGW DLLs use traditional 'lib' prefix
18386 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18387 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18388 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18389 # It is most probably a Windows format PATH printed by
18390 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18391 # path with ; separators, and with drive letters. We can handle the
18392 # drive letters (cygwin fileutils understands them), so leave them,
18393 # especially as we might pass files found there to a mingw objdump,
18394 # which wouldn't understand a cygwinified path. Ahh.
18395 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18397 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18401 # pw32 DLLs use 'pw' prefix rather than 'lib'
18402 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18408 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18411 dynamic_linker='Win32 ld.exe'
18412 # FIXME: first we should search . and the directory the executable is in
18416 darwin* | rhapsody*)
18417 dynamic_linker="$host_os dyld"
18418 version_type=darwin
18421 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18422 soname_spec='${libname}${release}${major}$shared_ext'
18423 shlibpath_overrides_runpath=yes
18424 shlibpath_var=DYLD_LIBRARY_PATH
18425 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18427 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18435 soname_spec='${libname}${release}${shared_ext}$major'
18436 shlibpath_var=LD_LIBRARY_PATH
18443 freebsd* | dragonfly*)
18444 # DragonFly does not have aout. When/if they implement a new
18445 # versioning mechanism, adjust this.
18446 if test -x /usr/bin/objformat; then
18447 objformat=`/usr/bin/objformat`
18450 freebsd[123]*) objformat=aout ;;
18451 *) objformat=elf ;;
18454 version_type=freebsd-$objformat
18455 case $version_type in
18457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18462 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18466 shlibpath_var=LD_LIBRARY_PATH
18469 shlibpath_overrides_runpath=yes
18471 freebsd3.[01]* | freebsdelf3.[01]*)
18472 shlibpath_overrides_runpath=yes
18473 hardcode_into_libs=yes
18475 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18476 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18477 shlibpath_overrides_runpath=no
18478 hardcode_into_libs=yes
18480 *) # from 4.6 on, and DragonFly
18481 shlibpath_overrides_runpath=yes
18482 hardcode_into_libs=yes
18491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18492 soname_spec='${libname}${release}${shared_ext}$major'
18493 shlibpath_var=LD_LIBRARY_PATH
18494 hardcode_into_libs=yes
18497 hpux9* | hpux10* | hpux11*)
18498 # Give a soname corresponding to the major version so that dld.sl refuses to
18499 # link against other versions.
18506 hardcode_into_libs=yes
18507 dynamic_linker="$host_os dld.so"
18508 shlibpath_var=LD_LIBRARY_PATH
18509 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18511 soname_spec='${libname}${release}${shared_ext}$major'
18512 if test "X$HPUX_IA64_MODE" = X32; then
18513 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18515 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18517 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18521 hardcode_into_libs=yes
18522 dynamic_linker="$host_os dld.sl"
18523 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18524 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18526 soname_spec='${libname}${release}${shared_ext}$major'
18527 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18528 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18532 dynamic_linker="$host_os dld.sl"
18533 shlibpath_var=SHLIB_PATH
18534 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18536 soname_spec='${libname}${release}${shared_ext}$major'
18539 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18540 postinstall_cmds='chmod 555 $lib'
18547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18548 soname_spec='${libname}${release}${shared_ext}$major'
18549 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18550 shlibpath_var=LD_LIBRARY_PATH
18551 shlibpath_overrides_runpath=no
18552 hardcode_into_libs=yes
18555 irix5* | irix6* | nonstopux*)
18557 nonstopux*) version_type=nonstopux ;;
18559 if test "$lt_cv_prog_gnu_ld" = yes; then
18567 soname_spec='${libname}${release}${shared_ext}$major'
18568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18570 irix5* | nonstopux*)
18571 libsuff= shlibsuff=
18574 case $LD in # libtool.m4 will add one of these switches to LD
18575 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18576 libsuff= shlibsuff= libmagic=32-bit;;
18577 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18578 libsuff=32 shlibsuff=N32 libmagic=N32;;
18579 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18580 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18581 *) libsuff= shlibsuff= libmagic=never-match;;
18585 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18586 shlibpath_overrides_runpath=no
18587 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18588 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18589 hardcode_into_libs=yes
18592 # No shared lib support for Linux oldld, aout, or coff.
18593 linux*oldld* | linux*aout* | linux*coff*)
18597 # This must be Linux ELF.
18598 linux* | k*bsd*-gnu)
18602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18603 soname_spec='${libname}${release}${shared_ext}$major'
18604 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18605 shlibpath_var=LD_LIBRARY_PATH
18606 shlibpath_overrides_runpath=no
18607 # This implies no fast_install, which is unacceptable.
18608 # Some rework will be needed to allow for fast_install
18609 # before this can be enabled.
18610 hardcode_into_libs=yes
18612 # Append ld.so.conf contents to the search path
18613 if test -f /etc/ld.so.conf; then
18614 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18615 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18618 # We used to test for /lib/ld.so.1 and disable shared libraries on
18619 # powerpc, because MkLinux only supported shared libraries with the
18620 # GNU dynamic linker. Since this was broken with cross compilers,
18621 # most powerpc-linux boxes support dynamic linking these days and
18622 # people can always --disable-shared, the test was removed, and we
18623 # assume the GNU/Linux dynamic linker is in use.
18624 dynamic_linker='GNU/Linux ld.so'
18631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18632 soname_spec='${libname}${release}${shared_ext}$major'
18633 shlibpath_var=LD_LIBRARY_PATH
18634 shlibpath_overrides_runpath=no
18635 hardcode_into_libs=yes
18636 dynamic_linker='NetBSD ld.elf_so'
18643 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18645 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18646 dynamic_linker='NetBSD (a.out) ld.so'
18648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18649 soname_spec='${libname}${release}${shared_ext}$major'
18650 dynamic_linker='NetBSD ld.elf_so'
18652 shlibpath_var=LD_LIBRARY_PATH
18653 shlibpath_overrides_runpath=yes
18654 hardcode_into_libs=yes
18659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18660 shlibpath_var=LD_LIBRARY_PATH
18661 shlibpath_overrides_runpath=yes
18668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18669 soname_spec='${libname}${release}${shared_ext}$major'
18670 shlibpath_var=LD_LIBRARY_PATH
18671 shlibpath_overrides_runpath=yes
18676 sys_lib_dlsearch_path_spec="/usr/lib"
18678 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18680 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18681 *) need_version=no ;;
18683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18684 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18685 shlibpath_var=LD_LIBRARY_PATH
18686 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18688 openbsd2.[89] | openbsd2.[89].*)
18689 shlibpath_overrides_runpath=no
18692 shlibpath_overrides_runpath=yes
18696 shlibpath_overrides_runpath=yes
18701 libname_spec='$name'
18704 library_names_spec='$libname${shared_ext} $libname.a'
18705 dynamic_linker='OS/2 ld.exe'
18706 shlibpath_var=LIBPATH
18709 osf3* | osf4* | osf5*)
18713 soname_spec='${libname}${release}${shared_ext}$major'
18714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18715 shlibpath_var=LD_LIBRARY_PATH
18716 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18717 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18729 soname_spec='${libname}${release}${shared_ext}$major'
18730 shlibpath_var=LD_LIBRARY_PATH
18731 shlibpath_overrides_runpath=yes
18732 hardcode_into_libs=yes
18733 # ldd complains unless libraries are executable
18734 postinstall_cmds='chmod +x $lib'
18739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18740 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18741 shlibpath_var=LD_LIBRARY_PATH
18742 shlibpath_overrides_runpath=yes
18743 if test "$with_gnu_ld" = yes; then
18751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18752 soname_spec='${libname}${release}${shared_ext}$major'
18753 shlibpath_var=LD_LIBRARY_PATH
18754 case $host_vendor in
18756 shlibpath_overrides_runpath=no
18758 export_dynamic_flag_spec='${wl}-Blargedynsym'
18759 runpath_var=LD_RUN_PATH
18767 shlibpath_overrides_runpath=no
18768 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18774 if test -d /usr/nec ;then
18776 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18777 soname_spec='$libname${shared_ext}.$major'
18778 shlibpath_var=LD_LIBRARY_PATH
18782 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18783 version_type=freebsd-elf
18786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18787 soname_spec='${libname}${release}${shared_ext}$major'
18788 shlibpath_var=LD_LIBRARY_PATH
18789 hardcode_into_libs=yes
18790 if test "$with_gnu_ld" = yes; then
18791 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18792 shlibpath_overrides_runpath=no
18794 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18795 shlibpath_overrides_runpath=yes
18798 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18802 sys_lib_dlsearch_path_spec='/usr/lib'
18807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18808 soname_spec='${libname}${release}${shared_ext}$major'
18809 shlibpath_var=LD_LIBRARY_PATH
18816 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18817 echo "${ECHO_T}$dynamic_linker" >&6; }
18818 test "$dynamic_linker" = no && can_build_shared=no
18820 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18821 echo $ECHO_N "(cached) $ECHO_C" >&6
18823 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18826 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18827 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18828 echo $ECHO_N "(cached) $ECHO_C" >&6
18830 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18833 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18835 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18836 if test "$GCC" = yes; then
18837 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18840 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18841 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18842 hardcode_action_GCJ=
18843 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18844 test -n "$runpath_var_GCJ" || \
18845 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18847 # We can hardcode non-existant directories.
18848 if test "$hardcode_direct_GCJ" != no &&
18849 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18850 # have to relink, otherwise we might link with an installed library
18851 # when we should be linking with a yet-to-be-installed one
18852 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18853 test "$hardcode_minus_L_GCJ" != no; then
18854 # Linking always hardcodes the temporary library directory.
18855 hardcode_action_GCJ=relink
18857 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18858 hardcode_action_GCJ=immediate
18861 # We cannot hardcode anything, or else we can only hardcode existing
18863 hardcode_action_GCJ=unsupported
18865 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18866 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18868 if test "$hardcode_action_GCJ" = relink; then
18869 # Fast installation is not supported
18870 enable_fast_install=no
18871 elif test "$shlibpath_overrides_runpath" = yes ||
18872 test "$enable_shared" = no; then
18873 # Fast installation is not necessary
18874 enable_fast_install=needless
18878 # The else clause should only fire when bootstrapping the
18879 # libtool distribution, otherwise you forgot to ship ltmain.sh
18880 # with your package, and you will get complaints that there are
18881 # no rules to generate ltmain.sh.
18882 if test -f "$ltmain"; then
18883 # See if we are running on zsh, and set the options which allow our commands through
18884 # without removal of \ escapes.
18885 if test -n "${ZSH_VERSION+set}" ; then
18886 setopt NO_GLOB_SUBST
18888 # Now quote all the things that may contain metacharacters while being
18889 # careful not to overquote the AC_SUBSTed values. We take copies of the
18890 # variables and quote the copies for generation of the libtool script.
18891 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18893 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18894 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18895 deplibs_check_method reload_flag reload_cmds need_locks \
18896 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18897 lt_cv_sys_global_symbol_to_c_name_address \
18898 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18899 old_postinstall_cmds old_postuninstall_cmds \
18903 lt_prog_compiler_wl_GCJ \
18904 lt_prog_compiler_pic_GCJ \
18905 lt_prog_compiler_static_GCJ \
18906 lt_prog_compiler_no_builtin_flag_GCJ \
18907 export_dynamic_flag_spec_GCJ \
18908 thread_safe_flag_spec_GCJ \
18909 whole_archive_flag_spec_GCJ \
18910 enable_shared_with_static_runtimes_GCJ \
18911 old_archive_cmds_GCJ \
18912 old_archive_from_new_cmds_GCJ \
18913 predep_objects_GCJ \
18914 postdep_objects_GCJ \
18917 compiler_lib_search_path_GCJ \
18918 compiler_lib_search_dirs_GCJ \
18920 archive_expsym_cmds_GCJ \
18921 postinstall_cmds_GCJ \
18922 postuninstall_cmds_GCJ \
18923 old_archive_from_expsyms_cmds_GCJ \
18924 allow_undefined_flag_GCJ \
18925 no_undefined_flag_GCJ \
18926 export_symbols_cmds_GCJ \
18927 hardcode_libdir_flag_spec_GCJ \
18928 hardcode_libdir_flag_spec_ld_GCJ \
18929 hardcode_libdir_separator_GCJ \
18930 hardcode_automatic_GCJ \
18932 module_expsym_cmds_GCJ \
18933 lt_cv_prog_compiler_c_o_GCJ \
18934 fix_srcfile_path_GCJ \
18935 exclude_expsyms_GCJ \
18936 include_expsyms_GCJ; do
18939 old_archive_cmds_GCJ | \
18940 old_archive_from_new_cmds_GCJ | \
18941 archive_cmds_GCJ | \
18942 archive_expsym_cmds_GCJ | \
18943 module_cmds_GCJ | \
18944 module_expsym_cmds_GCJ | \
18945 old_archive_from_expsyms_cmds_GCJ | \
18946 export_symbols_cmds_GCJ | \
18947 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18948 postinstall_cmds | postuninstall_cmds | \
18949 old_postinstall_cmds | old_postuninstall_cmds | \
18950 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18951 # Double-quote double-evaled strings.
18952 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18955 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18961 *'\$0 --fallback-echo"')
18962 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18968 cat <<__EOF__ >> "$cfgfile"
18969 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18971 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18973 # Shell to use when invoking shell scripts.
18976 # Whether or not to build shared libraries.
18977 build_libtool_libs=$enable_shared
18979 # Whether or not to build static libraries.
18980 build_old_libs=$enable_static
18982 # Whether or not to add -lc for building shared libraries.
18983 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18985 # Whether or not to disallow shared libs when runtime libs are static
18986 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18988 # Whether or not to optimize for fast installation.
18989 fast_install=$enable_fast_install
18992 host_alias=$host_alias
18996 # The build system.
18997 build_alias=$build_alias
19001 # An echo program that does not interpret backslashes.
19006 AR_FLAGS=$lt_AR_FLAGS
19011 # LTCC compiler flags.
19012 LTCFLAGS=$lt_LTCFLAGS
19014 # A language-specific compiler.
19015 CC=$lt_compiler_GCJ
19017 # Is the compiler the GNU C compiler?
19023 # The linker used to build libraries.
19026 # Whether we need hard or soft links.
19029 # A BSD-compatible nm program.
19032 # A symbol stripping program
19035 # Used to examine libraries when file_magic_cmd begins "file"
19036 MAGIC_CMD=$MAGIC_CMD
19038 # Used on cygwin: DLL creation program.
19041 # Used on cygwin: object dumper.
19044 # Used on cygwin: assembler.
19047 # The name of the directory that contains temporary libtool files.
19050 # How to create reloadable object files.
19051 reload_flag=$lt_reload_flag
19052 reload_cmds=$lt_reload_cmds
19054 # How to pass a linker flag through the compiler.
19055 wl=$lt_lt_prog_compiler_wl_GCJ
19057 # Object file suffix (normally "o").
19058 objext="$ac_objext"
19060 # Old archive suffix (normally "a").
19063 # Shared library suffix (normally ".so").
19064 shrext_cmds='$shrext_cmds'
19066 # Executable file suffix (normally "").
19069 # Additional compiler flags for building library objects.
19070 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19073 # What is the maximum length of a command?
19074 max_cmd_len=$lt_cv_sys_max_cmd_len
19076 # Does compiler simultaneously support -c and -o options?
19077 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19079 # Must we lock files when doing compilation?
19080 need_locks=$lt_need_locks
19082 # Do we need the lib prefix for modules?
19083 need_lib_prefix=$need_lib_prefix
19085 # Do we need a version for libraries?
19086 need_version=$need_version
19088 # Whether dlopen is supported.
19089 dlopen_support=$enable_dlopen
19091 # Whether dlopen of programs is supported.
19092 dlopen_self=$enable_dlopen_self
19094 # Whether dlopen of statically linked programs is supported.
19095 dlopen_self_static=$enable_dlopen_self_static
19097 # Compiler flag to prevent dynamic linking.
19098 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19100 # Compiler flag to turn off builtin functions.
19101 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19103 # Compiler flag to allow reflexive dlopens.
19104 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19106 # Compiler flag to generate shared objects directly from archives.
19107 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19109 # Compiler flag to generate thread-safe objects.
19110 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19112 # Library versioning type.
19113 version_type=$version_type
19115 # Format of library name prefix.
19116 libname_spec=$lt_libname_spec
19118 # List of archive names. First name is the real one, the rest are links.
19119 # The last name is the one that the linker finds with -lNAME.
19120 library_names_spec=$lt_library_names_spec
19122 # The coded name of the library, if different from the real name.
19123 soname_spec=$lt_soname_spec
19125 # Commands used to build and install an old-style archive.
19127 old_archive_cmds=$lt_old_archive_cmds_GCJ
19128 old_postinstall_cmds=$lt_old_postinstall_cmds
19129 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19131 # Create an old-style archive from a shared archive.
19132 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19134 # Create a temporary old-style archive to link instead of a shared archive.
19135 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19137 # Commands used to build and install a shared archive.
19138 archive_cmds=$lt_archive_cmds_GCJ
19139 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19140 postinstall_cmds=$lt_postinstall_cmds
19141 postuninstall_cmds=$lt_postuninstall_cmds
19143 # Commands used to build a loadable module (assumed same as above if empty)
19144 module_cmds=$lt_module_cmds_GCJ
19145 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19147 # Commands to strip libraries.
19148 old_striplib=$lt_old_striplib
19149 striplib=$lt_striplib
19151 # Dependencies to place before the objects being linked to create a
19153 predep_objects=$lt_predep_objects_GCJ
19155 # Dependencies to place after the objects being linked to create a
19157 postdep_objects=$lt_postdep_objects_GCJ
19159 # Dependencies to place before the objects being linked to create a
19161 predeps=$lt_predeps_GCJ
19163 # Dependencies to place after the objects being linked to create a
19165 postdeps=$lt_postdeps_GCJ
19167 # The directories searched by this compiler when creating a shared
19169 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19171 # The library search path used internally by the compiler when linking
19172 # a shared library.
19173 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19175 # Method to check whether dependent libraries are shared objects.
19176 deplibs_check_method=$lt_deplibs_check_method
19178 # Command to use when deplibs_check_method == file_magic.
19179 file_magic_cmd=$lt_file_magic_cmd
19181 # Flag that allows shared libraries with undefined symbols to be built.
19182 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19184 # Flag that forces no undefined symbols.
19185 no_undefined_flag=$lt_no_undefined_flag_GCJ
19187 # Commands used to finish a libtool library installation in a directory.
19188 finish_cmds=$lt_finish_cmds
19190 # Same as above, but a single script fragment to be evaled but not shown.
19191 finish_eval=$lt_finish_eval
19193 # Take the output of nm and produce a listing of raw symbols and C names.
19194 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19196 # Transform the output of nm in a proper C declaration
19197 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19199 # Transform the output of nm in a C name address pair
19200 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19202 # This is the shared library runtime path variable.
19203 runpath_var=$runpath_var
19205 # This is the shared library path variable.
19206 shlibpath_var=$shlibpath_var
19208 # Is shlibpath searched before the hard-coded library search path?
19209 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19211 # How to hardcode a shared library path into an executable.
19212 hardcode_action=$hardcode_action_GCJ
19214 # Whether we should hardcode library paths into libraries.
19215 hardcode_into_libs=$hardcode_into_libs
19217 # Flag to hardcode \$libdir into a binary during linking.
19218 # This must work even if \$libdir does not exist.
19219 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19221 # If ld is used when linking, flag to hardcode \$libdir into
19222 # a binary during linking. This must work even if \$libdir does
19224 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19226 # Whether we need a single -rpath flag with a separated argument.
19227 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19229 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19230 # resulting binary.
19231 hardcode_direct=$hardcode_direct_GCJ
19233 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19234 # resulting binary.
19235 hardcode_minus_L=$hardcode_minus_L_GCJ
19237 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19238 # the resulting binary.
19239 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19241 # Set to yes if building a shared library automatically hardcodes DIR into the library
19242 # and all subsequent libraries and executables linked against it.
19243 hardcode_automatic=$hardcode_automatic_GCJ
19245 # Variables whose values should be saved in libtool wrapper scripts and
19246 # restored at relink time.
19247 variables_saved_for_relink="$variables_saved_for_relink"
19249 # Whether libtool must link a program against all its dependency libraries.
19250 link_all_deplibs=$link_all_deplibs_GCJ
19252 # Compile-time system search path for libraries
19253 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19255 # Run-time system search path for libraries
19256 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19258 # Fix the shell variable \$srcfile for the compiler.
19259 fix_srcfile_path=$lt_fix_srcfile_path
19261 # Set to yes if exported symbols are required.
19262 always_export_symbols=$always_export_symbols_GCJ
19264 # The commands to list exported symbols.
19265 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19267 # The commands to extract the exported symbol list from a shared archive.
19268 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19270 # Symbols that should not be listed in the preloaded symbols.
19271 exclude_expsyms=$lt_exclude_expsyms_GCJ
19273 # Symbols that must always be exported.
19274 include_expsyms=$lt_include_expsyms_GCJ
19276 # ### END LIBTOOL TAG CONFIG: $tagname
19282 # If there is no Makefile yet, we rely on a make rule to execute
19283 # `config.status --recheck' to rerun these tests and create the
19284 # libtool script then.
19285 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19286 if test -f "$ltmain_in"; then
19287 test -f Makefile && make "$ltmain"
19293 ac_cpp='$CPP $CPPFLAGS'
19294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19308 # Source file extension for RC test sources.
19311 # Object file extension for compiled RC test sources.
19315 # Code to be used in simple compile tests
19316 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19318 # Code to be used in simple link tests
19319 lt_simple_link_test_code="$lt_simple_compile_test_code"
19321 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19323 # If no C compiler was specified, use CC.
19326 # If no C compiler flags were specified, use CFLAGS.
19327 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19329 # Allow CC to be a program name with arguments.
19333 # save warnings/boilerplate of simple test code
19334 ac_outfile=conftest.$ac_objext
19335 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19336 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19337 _lt_compiler_boilerplate=`cat conftest.err`
19340 ac_outfile=conftest.$ac_objext
19341 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19342 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19343 _lt_linker_boilerplate=`cat conftest.err`
19347 # Allow CC to be a program name with arguments.
19352 for cc_temp in $compiler""; do
19354 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19355 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19360 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19362 lt_cv_prog_compiler_c_o_RC=yes
19364 # The else clause should only fire when bootstrapping the
19365 # libtool distribution, otherwise you forgot to ship ltmain.sh
19366 # with your package, and you will get complaints that there are
19367 # no rules to generate ltmain.sh.
19368 if test -f "$ltmain"; then
19369 # See if we are running on zsh, and set the options which allow our commands through
19370 # without removal of \ escapes.
19371 if test -n "${ZSH_VERSION+set}" ; then
19372 setopt NO_GLOB_SUBST
19374 # Now quote all the things that may contain metacharacters while being
19375 # careful not to overquote the AC_SUBSTed values. We take copies of the
19376 # variables and quote the copies for generation of the libtool script.
19377 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19379 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19380 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19381 deplibs_check_method reload_flag reload_cmds need_locks \
19382 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19383 lt_cv_sys_global_symbol_to_c_name_address \
19384 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19385 old_postinstall_cmds old_postuninstall_cmds \
19389 lt_prog_compiler_wl_RC \
19390 lt_prog_compiler_pic_RC \
19391 lt_prog_compiler_static_RC \
19392 lt_prog_compiler_no_builtin_flag_RC \
19393 export_dynamic_flag_spec_RC \
19394 thread_safe_flag_spec_RC \
19395 whole_archive_flag_spec_RC \
19396 enable_shared_with_static_runtimes_RC \
19397 old_archive_cmds_RC \
19398 old_archive_from_new_cmds_RC \
19399 predep_objects_RC \
19400 postdep_objects_RC \
19403 compiler_lib_search_path_RC \
19404 compiler_lib_search_dirs_RC \
19406 archive_expsym_cmds_RC \
19407 postinstall_cmds_RC \
19408 postuninstall_cmds_RC \
19409 old_archive_from_expsyms_cmds_RC \
19410 allow_undefined_flag_RC \
19411 no_undefined_flag_RC \
19412 export_symbols_cmds_RC \
19413 hardcode_libdir_flag_spec_RC \
19414 hardcode_libdir_flag_spec_ld_RC \
19415 hardcode_libdir_separator_RC \
19416 hardcode_automatic_RC \
19418 module_expsym_cmds_RC \
19419 lt_cv_prog_compiler_c_o_RC \
19420 fix_srcfile_path_RC \
19421 exclude_expsyms_RC \
19422 include_expsyms_RC; do
19425 old_archive_cmds_RC | \
19426 old_archive_from_new_cmds_RC | \
19427 archive_cmds_RC | \
19428 archive_expsym_cmds_RC | \
19430 module_expsym_cmds_RC | \
19431 old_archive_from_expsyms_cmds_RC | \
19432 export_symbols_cmds_RC | \
19433 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19434 postinstall_cmds | postuninstall_cmds | \
19435 old_postinstall_cmds | old_postuninstall_cmds | \
19436 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19437 # Double-quote double-evaled strings.
19438 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19441 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19447 *'\$0 --fallback-echo"')
19448 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19454 cat <<__EOF__ >> "$cfgfile"
19455 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19457 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19459 # Shell to use when invoking shell scripts.
19462 # Whether or not to build shared libraries.
19463 build_libtool_libs=$enable_shared
19465 # Whether or not to build static libraries.
19466 build_old_libs=$enable_static
19468 # Whether or not to add -lc for building shared libraries.
19469 build_libtool_need_lc=$archive_cmds_need_lc_RC
19471 # Whether or not to disallow shared libs when runtime libs are static
19472 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19474 # Whether or not to optimize for fast installation.
19475 fast_install=$enable_fast_install
19478 host_alias=$host_alias
19482 # The build system.
19483 build_alias=$build_alias
19487 # An echo program that does not interpret backslashes.
19492 AR_FLAGS=$lt_AR_FLAGS
19497 # LTCC compiler flags.
19498 LTCFLAGS=$lt_LTCFLAGS
19500 # A language-specific compiler.
19503 # Is the compiler the GNU C compiler?
19509 # The linker used to build libraries.
19512 # Whether we need hard or soft links.
19515 # A BSD-compatible nm program.
19518 # A symbol stripping program
19521 # Used to examine libraries when file_magic_cmd begins "file"
19522 MAGIC_CMD=$MAGIC_CMD
19524 # Used on cygwin: DLL creation program.
19527 # Used on cygwin: object dumper.
19530 # Used on cygwin: assembler.
19533 # The name of the directory that contains temporary libtool files.
19536 # How to create reloadable object files.
19537 reload_flag=$lt_reload_flag
19538 reload_cmds=$lt_reload_cmds
19540 # How to pass a linker flag through the compiler.
19541 wl=$lt_lt_prog_compiler_wl_RC
19543 # Object file suffix (normally "o").
19544 objext="$ac_objext"
19546 # Old archive suffix (normally "a").
19549 # Shared library suffix (normally ".so").
19550 shrext_cmds='$shrext_cmds'
19552 # Executable file suffix (normally "").
19555 # Additional compiler flags for building library objects.
19556 pic_flag=$lt_lt_prog_compiler_pic_RC
19559 # What is the maximum length of a command?
19560 max_cmd_len=$lt_cv_sys_max_cmd_len
19562 # Does compiler simultaneously support -c and -o options?
19563 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19565 # Must we lock files when doing compilation?
19566 need_locks=$lt_need_locks
19568 # Do we need the lib prefix for modules?
19569 need_lib_prefix=$need_lib_prefix
19571 # Do we need a version for libraries?
19572 need_version=$need_version
19574 # Whether dlopen is supported.
19575 dlopen_support=$enable_dlopen
19577 # Whether dlopen of programs is supported.
19578 dlopen_self=$enable_dlopen_self
19580 # Whether dlopen of statically linked programs is supported.
19581 dlopen_self_static=$enable_dlopen_self_static
19583 # Compiler flag to prevent dynamic linking.
19584 link_static_flag=$lt_lt_prog_compiler_static_RC
19586 # Compiler flag to turn off builtin functions.
19587 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19589 # Compiler flag to allow reflexive dlopens.
19590 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19592 # Compiler flag to generate shared objects directly from archives.
19593 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19595 # Compiler flag to generate thread-safe objects.
19596 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19598 # Library versioning type.
19599 version_type=$version_type
19601 # Format of library name prefix.
19602 libname_spec=$lt_libname_spec
19604 # List of archive names. First name is the real one, the rest are links.
19605 # The last name is the one that the linker finds with -lNAME.
19606 library_names_spec=$lt_library_names_spec
19608 # The coded name of the library, if different from the real name.
19609 soname_spec=$lt_soname_spec
19611 # Commands used to build and install an old-style archive.
19613 old_archive_cmds=$lt_old_archive_cmds_RC
19614 old_postinstall_cmds=$lt_old_postinstall_cmds
19615 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19617 # Create an old-style archive from a shared archive.
19618 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19620 # Create a temporary old-style archive to link instead of a shared archive.
19621 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19623 # Commands used to build and install a shared archive.
19624 archive_cmds=$lt_archive_cmds_RC
19625 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19626 postinstall_cmds=$lt_postinstall_cmds
19627 postuninstall_cmds=$lt_postuninstall_cmds
19629 # Commands used to build a loadable module (assumed same as above if empty)
19630 module_cmds=$lt_module_cmds_RC
19631 module_expsym_cmds=$lt_module_expsym_cmds_RC
19633 # Commands to strip libraries.
19634 old_striplib=$lt_old_striplib
19635 striplib=$lt_striplib
19637 # Dependencies to place before the objects being linked to create a
19639 predep_objects=$lt_predep_objects_RC
19641 # Dependencies to place after the objects being linked to create a
19643 postdep_objects=$lt_postdep_objects_RC
19645 # Dependencies to place before the objects being linked to create a
19647 predeps=$lt_predeps_RC
19649 # Dependencies to place after the objects being linked to create a
19651 postdeps=$lt_postdeps_RC
19653 # The directories searched by this compiler when creating a shared
19655 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19657 # The library search path used internally by the compiler when linking
19658 # a shared library.
19659 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19661 # Method to check whether dependent libraries are shared objects.
19662 deplibs_check_method=$lt_deplibs_check_method
19664 # Command to use when deplibs_check_method == file_magic.
19665 file_magic_cmd=$lt_file_magic_cmd
19667 # Flag that allows shared libraries with undefined symbols to be built.
19668 allow_undefined_flag=$lt_allow_undefined_flag_RC
19670 # Flag that forces no undefined symbols.
19671 no_undefined_flag=$lt_no_undefined_flag_RC
19673 # Commands used to finish a libtool library installation in a directory.
19674 finish_cmds=$lt_finish_cmds
19676 # Same as above, but a single script fragment to be evaled but not shown.
19677 finish_eval=$lt_finish_eval
19679 # Take the output of nm and produce a listing of raw symbols and C names.
19680 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19682 # Transform the output of nm in a proper C declaration
19683 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19685 # Transform the output of nm in a C name address pair
19686 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19688 # This is the shared library runtime path variable.
19689 runpath_var=$runpath_var
19691 # This is the shared library path variable.
19692 shlibpath_var=$shlibpath_var
19694 # Is shlibpath searched before the hard-coded library search path?
19695 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19697 # How to hardcode a shared library path into an executable.
19698 hardcode_action=$hardcode_action_RC
19700 # Whether we should hardcode library paths into libraries.
19701 hardcode_into_libs=$hardcode_into_libs
19703 # Flag to hardcode \$libdir into a binary during linking.
19704 # This must work even if \$libdir does not exist.
19705 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19707 # If ld is used when linking, flag to hardcode \$libdir into
19708 # a binary during linking. This must work even if \$libdir does
19710 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19712 # Whether we need a single -rpath flag with a separated argument.
19713 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19715 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19716 # resulting binary.
19717 hardcode_direct=$hardcode_direct_RC
19719 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19720 # resulting binary.
19721 hardcode_minus_L=$hardcode_minus_L_RC
19723 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19724 # the resulting binary.
19725 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19727 # Set to yes if building a shared library automatically hardcodes DIR into the library
19728 # and all subsequent libraries and executables linked against it.
19729 hardcode_automatic=$hardcode_automatic_RC
19731 # Variables whose values should be saved in libtool wrapper scripts and
19732 # restored at relink time.
19733 variables_saved_for_relink="$variables_saved_for_relink"
19735 # Whether libtool must link a program against all its dependency libraries.
19736 link_all_deplibs=$link_all_deplibs_RC
19738 # Compile-time system search path for libraries
19739 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19741 # Run-time system search path for libraries
19742 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19744 # Fix the shell variable \$srcfile for the compiler.
19745 fix_srcfile_path=$lt_fix_srcfile_path
19747 # Set to yes if exported symbols are required.
19748 always_export_symbols=$always_export_symbols_RC
19750 # The commands to list exported symbols.
19751 export_symbols_cmds=$lt_export_symbols_cmds_RC
19753 # The commands to extract the exported symbol list from a shared archive.
19754 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19756 # Symbols that should not be listed in the preloaded symbols.
19757 exclude_expsyms=$lt_exclude_expsyms_RC
19759 # Symbols that must always be exported.
19760 include_expsyms=$lt_include_expsyms_RC
19762 # ### END LIBTOOL TAG CONFIG: $tagname
19768 # If there is no Makefile yet, we rely on a make rule to execute
19769 # `config.status --recheck' to rerun these tests and create the
19770 # libtool script then.
19771 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19772 if test -f "$ltmain_in"; then
19773 test -f Makefile && make "$ltmain"
19779 ac_cpp='$CPP $CPPFLAGS'
19780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19789 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19790 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19791 { (exit 1); exit 1; }; }
19795 # Append the new tag name to the list of available tags.
19796 if test -n "$tagname" ; then
19797 available_tags="$available_tags $tagname"
19803 # Now substitute the updated list of available tags.
19804 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19805 mv "${ofile}T" "$ofile"
19809 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19810 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19811 { (exit 1); exit 1; }; }
19817 # This can be used to rebuild libtool when needed
19818 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19820 # Always use our own libtool.
19821 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19823 # Prevent multiple expansion
19846 { echo "$as_me:$LINENO: checking to see if compiler understands -Wall" >&5
19847 echo $ECHO_N "checking to see if compiler understands -Wall... $ECHO_C" >&6; }
19849 save_CFLAGS="$CFLAGS"
19850 CFLAGS="$CFLAGS -Wall"
19852 cat >conftest.$ac_ext <<_ACEOF
19855 cat confdefs.h >>conftest.$ac_ext
19856 cat >>conftest.$ac_ext <<_ACEOF
19857 /* end confdefs.h. */
19867 rm -f conftest.$ac_objext
19868 if { (ac_try="$ac_compile"
19869 case "(($ac_try" in
19870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19871 *) ac_try_echo=$ac_try;;
19873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19874 (eval "$ac_compile") 2>conftest.er1
19876 grep -v '^ *+' conftest.er1 >conftest.err
19878 cat conftest.err >&5
19879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880 (exit $ac_status); } && {
19881 test -z "$ac_c_werror_flag" ||
19882 test ! -s conftest.err
19883 } && test -s conftest.$ac_objext; then
19886 echo "$as_me: failed program was:" >&5
19887 sed 's/^/| /' conftest.$ac_ext >&5
19892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19893 CFLAGS="$save_CFLAGS"
19895 if test "X$flag_ok" = Xyes ; then
19902 { echo "$as_me:$LINENO: result: $flag_ok" >&5
19903 echo "${ECHO_T}$flag_ok" >&6; }
19906 if test "x$GST_WALL" = "xyes"; then
19907 GST_ERROR="$GST_ERROR -Wall"
19909 if test "x$GST_PLUGIN_TRUNK" = "xyes"; then
19911 { echo "$as_me:$LINENO: checking to see if compiler understands -Werror" >&5
19912 echo $ECHO_N "checking to see if compiler understands -Werror... $ECHO_C" >&6; }
19914 save_CFLAGS="$CFLAGS"
19915 CFLAGS="$CFLAGS -Werror"
19917 cat >conftest.$ac_ext <<_ACEOF
19920 cat confdefs.h >>conftest.$ac_ext
19921 cat >>conftest.$ac_ext <<_ACEOF
19922 /* end confdefs.h. */
19932 rm -f conftest.$ac_objext
19933 if { (ac_try="$ac_compile"
19934 case "(($ac_try" in
19935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19936 *) ac_try_echo=$ac_try;;
19938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19939 (eval "$ac_compile") 2>conftest.er1
19941 grep -v '^ *+' conftest.er1 >conftest.err
19943 cat conftest.err >&5
19944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945 (exit $ac_status); } && {
19946 test -z "$ac_c_werror_flag" ||
19947 test ! -s conftest.err
19948 } && test -s conftest.$ac_objext; then
19951 echo "$as_me: failed program was:" >&5
19952 sed 's/^/| /' conftest.$ac_ext >&5
19957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19958 CFLAGS="$save_CFLAGS"
19960 if test "X$flag_ok" = Xyes ; then
19961 GST_ERROR="$GST_ERROR -Werror"
19964 GST_ERROR="$GST_ERROR"
19967 { echo "$as_me:$LINENO: result: $flag_ok" >&5
19968 echo "${ECHO_T}$flag_ok" >&6; }
19973 # Extract the first word of "pkg-config", so it can be a program name with args.
19974 set dummy pkg-config; ac_word=$2
19975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19977 if test "${ac_cv_prog_HAVE_PKGCONFIG+set}" = set; then
19978 echo $ECHO_N "(cached) $ECHO_C" >&6
19980 if test -n "$HAVE_PKGCONFIG"; then
19981 ac_cv_prog_HAVE_PKGCONFIG="$HAVE_PKGCONFIG" # Let the user override the test.
19983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19984 for as_dir in $PATH
19987 test -z "$as_dir" && as_dir=.
19988 for ac_exec_ext in '' $ac_executable_extensions; do
19989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19990 ac_cv_prog_HAVE_PKGCONFIG="yes"
19991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19998 test -z "$ac_cv_prog_HAVE_PKGCONFIG" && ac_cv_prog_HAVE_PKGCONFIG="no"
20001 HAVE_PKGCONFIG=$ac_cv_prog_HAVE_PKGCONFIG
20002 if test -n "$HAVE_PKGCONFIG"; then
20003 { echo "$as_me:$LINENO: result: $HAVE_PKGCONFIG" >&5
20004 echo "${ECHO_T}$HAVE_PKGCONFIG" >&6; }
20006 { echo "$as_me:$LINENO: result: no" >&5
20007 echo "${ECHO_T}no" >&6; }
20012 if test "x$HAVE_PKGCONFIG" = "xno"; then
20013 { { echo "$as_me:$LINENO: error: you need to have pkgconfig installed !" >&5
20014 echo "$as_me: error: you need to have pkgconfig installed !" >&2;}
20015 { (exit 1); exit 1; }; }
20021 GST_MAJORMINOR=0.10
20025 if test -z "$PKG_CONFIG"; then
20026 # Extract the first word of "pkg-config", so it can be a program name with args.
20027 set dummy pkg-config; ac_word=$2
20028 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20030 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20031 echo $ECHO_N "(cached) $ECHO_C" >&6
20033 case $PKG_CONFIG in
20035 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20039 for as_dir in $PATH
20042 test -z "$as_dir" && as_dir=.
20043 for ac_exec_ext in '' $ac_executable_extensions; do
20044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20045 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20053 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20057 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20058 if test -n "$PKG_CONFIG"; then
20059 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20060 echo "${ECHO_T}$PKG_CONFIG" >&6; }
20062 { echo "$as_me:$LINENO: result: no" >&5
20063 echo "${ECHO_T}no" >&6; }
20069 if test "$PKG_CONFIG" = "no" ; then
20070 echo "*** The pkg-config script could not be found. Make sure it is"
20071 echo "*** in your path, or set the PKG_CONFIG environment variable"
20072 echo "*** to the full path to pkg-config."
20073 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20075 PKG_CONFIG_MIN_VERSION=0.9.0
20076 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20077 { echo "$as_me:$LINENO: checking for \
20078 gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
20079 echo $ECHO_N "checking for \
20080 gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED... $ECHO_C" >&6; }
20082 if $PKG_CONFIG --exists "\
20083 gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
20084 { echo "$as_me:$LINENO: result: yes" >&5
20085 echo "${ECHO_T}yes" >&6; }
20088 { echo "$as_me:$LINENO: checking GST_CFLAGS" >&5
20089 echo $ECHO_N "checking GST_CFLAGS... $ECHO_C" >&6; }
20090 GST_CFLAGS=`$PKG_CONFIG --cflags "\
20091 gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
20092 { echo "$as_me:$LINENO: result: $GST_CFLAGS" >&5
20093 echo "${ECHO_T}$GST_CFLAGS" >&6; }
20095 { echo "$as_me:$LINENO: checking GST_LIBS" >&5
20096 echo $ECHO_N "checking GST_LIBS... $ECHO_C" >&6; }
20097 GST_LIBS=`$PKG_CONFIG --libs "\
20098 gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
20099 { echo "$as_me:$LINENO: result: $GST_LIBS" >&5
20100 echo "${ECHO_T}$GST_LIBS" >&6; }
20104 ## If we have a custom action on failure, don't print errors, but
20105 ## do set a variable so people can do so.
20106 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "\
20107 gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
20114 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20115 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20119 if test $succeeded = yes; then
20126 if test "x$HAVE_GST" = "xno"; then
20127 { { echo "$as_me:$LINENO: error: you need gstreamer development packages installed !" >&5
20128 echo "$as_me: error: you need gstreamer development packages installed !" >&2;}
20129 { (exit 1); exit 1; }; }
20135 if test -z "$PKG_CONFIG"; then
20136 # Extract the first word of "pkg-config", so it can be a program name with args.
20137 set dummy pkg-config; ac_word=$2
20138 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20140 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20141 echo $ECHO_N "(cached) $ECHO_C" >&6
20143 case $PKG_CONFIG in
20145 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20149 for as_dir in $PATH
20152 test -z "$as_dir" && as_dir=.
20153 for ac_exec_ext in '' $ac_executable_extensions; do
20154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20155 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20163 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20167 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20168 if test -n "$PKG_CONFIG"; then
20169 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20170 echo "${ECHO_T}$PKG_CONFIG" >&6; }
20172 { echo "$as_me:$LINENO: result: no" >&5
20173 echo "${ECHO_T}no" >&6; }
20179 if test "$PKG_CONFIG" = "no" ; then
20180 echo "*** The pkg-config script could not be found. Make sure it is"
20181 echo "*** in your path, or set the PKG_CONFIG environment variable"
20182 echo "*** to the full path to pkg-config."
20183 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20185 PKG_CONFIG_MIN_VERSION=0.9.0
20186 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20187 { echo "$as_me:$LINENO: checking for \
20188 gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
20189 echo $ECHO_N "checking for \
20190 gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED... $ECHO_C" >&6; }
20192 if $PKG_CONFIG --exists "\
20193 gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
20194 { echo "$as_me:$LINENO: result: yes" >&5
20195 echo "${ECHO_T}yes" >&6; }
20198 { echo "$as_me:$LINENO: checking GST_BASE_CFLAGS" >&5
20199 echo $ECHO_N "checking GST_BASE_CFLAGS... $ECHO_C" >&6; }
20200 GST_BASE_CFLAGS=`$PKG_CONFIG --cflags "\
20201 gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
20202 { echo "$as_me:$LINENO: result: $GST_BASE_CFLAGS" >&5
20203 echo "${ECHO_T}$GST_BASE_CFLAGS" >&6; }
20205 { echo "$as_me:$LINENO: checking GST_BASE_LIBS" >&5
20206 echo $ECHO_N "checking GST_BASE_LIBS... $ECHO_C" >&6; }
20207 GST_BASE_LIBS=`$PKG_CONFIG --libs "\
20208 gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
20209 { echo "$as_me:$LINENO: result: $GST_BASE_LIBS" >&5
20210 echo "${ECHO_T}$GST_BASE_LIBS" >&6; }
20214 ## If we have a custom action on failure, don't print errors, but
20215 ## do set a variable so people can do so.
20216 GST_BASE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "\
20217 gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
20224 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20225 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20229 if test $succeeded = yes; then
20236 if test "x$HAVE_GST_BASE" = "xno"; then
20237 { { echo "$as_me:$LINENO: error: you need gstreamer base development packages installed !" >&5
20238 echo "$as_me: error: you need gstreamer base development packages installed !" >&2;}
20239 { (exit 1); exit 1; }; }
20242 GST_CFLAGS="$GST_CFLAGS $GST_ERROR"
20253 plugindir="\$(libdir)/gstreamer-$GST_MAJORMINOR"
20256 GST_PLUGIN_LDFLAGS='-module -avoid-version -export-symbols-regex _*\(gst_\|Gst\|GST_\).*'
20259 ac_config_files="$ac_config_files Makefile m4/Makefile src/Makefile common/Makefile gst-davinci.spec"
20261 cat >confcache <<\_ACEOF
20262 # This file is a shell script that caches the results of configure
20263 # tests run on this system so they can be shared between configure
20264 # scripts and configure runs, see configure's option --config-cache.
20265 # It is not useful on other systems. If it contains results you don't
20266 # want to keep, you may remove or edit it.
20268 # config.status only pays attention to the cache file if you give it
20269 # the --recheck option to rerun configure.
20271 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20272 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20273 # following values.
20277 # The following way of writing the cache mishandles newlines in values,
20278 # but we know of no workaround that is simple, portable, and efficient.
20279 # So, we kill variables containing newlines.
20280 # Ultrix sh set writes to stderr and can't be redirected directly,
20281 # and sets the high bit in the cache file unless we assign to the vars.
20283 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20284 eval ac_val=\$$ac_var
20288 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20289 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20292 _ | IFS | as_nl) ;; #(
20293 *) $as_unset $ac_var ;;
20299 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20300 *${as_nl}ac_space=\ *)
20301 # `set' does not quote correctly, so add quotes (double-quote
20302 # substitution turns \\\\ into \\, and sed turns \\ into \).
20305 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20308 # `set' quotes correctly as required by POSIX, so do not add quotes.
20309 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20318 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20320 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20322 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20323 if test -w "$cache_file"; then
20324 test "x$cache_file" != "x/dev/null" &&
20325 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20326 echo "$as_me: updating cache $cache_file" >&6;}
20327 cat confcache >$cache_file
20329 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20330 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20335 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20336 # Let make expand exec_prefix.
20337 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20339 DEFS=-DHAVE_CONFIG_H
20343 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
20344 # 1. Remove the extension, and $U if already installed.
20345 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20346 ac_i=`echo "$ac_i" | sed "$ac_script"`
20347 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20348 # will be set to the directory where LIBOBJS objects are built.
20349 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20350 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20352 LIB@&t@OBJS=$ac_libobjs
20354 LTLIBOBJS=$ac_ltlibobjs
20357 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20358 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20359 Usually this means the macro was only invoked conditionally." >&5
20360 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20361 Usually this means the macro was only invoked conditionally." >&2;}
20362 { (exit 1); exit 1; }; }
20364 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20365 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20366 Usually this means the macro was only invoked conditionally." >&5
20367 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20368 Usually this means the macro was only invoked conditionally." >&2;}
20369 { (exit 1); exit 1; }; }
20371 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20372 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20373 Usually this means the macro was only invoked conditionally." >&5
20374 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20375 Usually this means the macro was only invoked conditionally." >&2;}
20376 { (exit 1); exit 1; }; }
20378 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20379 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20380 Usually this means the macro was only invoked conditionally." >&5
20381 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20382 Usually this means the macro was only invoked conditionally." >&2;}
20383 { (exit 1); exit 1; }; }
20386 : ${CONFIG_STATUS=./config.status}
20387 ac_clean_files_save=$ac_clean_files
20388 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20389 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20390 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20391 cat >$CONFIG_STATUS <<_ACEOF
20393 # Generated by $as_me.
20394 # Run this file to recreate the current configuration.
20395 # Compiler output produced by configure, useful for debugging
20396 # configure, is in config.log if it exists.
20399 ac_cs_recheck=false
20401 SHELL=\${CONFIG_SHELL-$SHELL}
20404 cat >>$CONFIG_STATUS <<\_ACEOF
20405 ## --------------------- ##
20406 ## M4sh Initialization. ##
20407 ## --------------------- ##
20409 # Be more Bourne compatible
20410 DUALCASE=1; export DUALCASE # for MKS sh
20411 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20414 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20415 # is contrary to our usage. Disable this feature.
20416 alias -g '${1+"$@"}'='"$@"'
20417 setopt NO_GLOB_SUBST
20419 case `(set -o) 2>/dev/null` in
20420 *posix*) set -o posix ;;
20429 # Avoid depending upon Character Ranges.
20430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20433 as_cr_digits='0123456789'
20434 as_cr_alnum=$as_cr_Letters$as_cr_digits
20436 # The user is always right.
20437 if test "${PATH_SEPARATOR+set}" != set; then
20438 echo "#! /bin/sh" >conf$$.sh
20439 echo "exit 0" >>conf$$.sh
20441 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20449 # Support unset when possible.
20450 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20458 # We need space, tab and new line, in precisely that order. Quoting is
20459 # there to prevent editors from complaining about space-tab.
20460 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20461 # splitting by setting IFS to empty value.)
20466 # Find who we are. Look in the path if we contain no directory separator.
20468 *[\\/]* ) as_myself=$0 ;;
20469 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20470 for as_dir in $PATH
20473 test -z "$as_dir" && as_dir=.
20474 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20480 # We did not find ourselves, most probably we were run as `sh COMMAND'
20481 # in which case we are not to be found in the path.
20482 if test "x$as_myself" = x; then
20485 if test ! -f "$as_myself"; then
20486 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20487 { (exit 1); exit 1; }
20490 # Work around bugs in pre-3.0 UWIN ksh.
20491 for as_var in ENV MAIL MAILPATH
20492 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20500 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20501 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20502 LC_TELEPHONE LC_TIME
20504 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20505 eval $as_var=C; export $as_var
20507 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20511 # Required to use basename.
20512 if expr a : '\(a\)' >/dev/null 2>&1 &&
20513 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20519 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20520 as_basename=basename
20526 # Name of the executable.
20527 as_me=`$as_basename -- "$0" ||
20528 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20529 X"$0" : 'X\(//\)$' \| \
20530 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20532 sed '/^.*\/\([^/][^/]*\)\/*$/{
20551 as_lineno_1=$LINENO
20552 as_lineno_2=$LINENO
20553 test "x$as_lineno_1" != "x$as_lineno_2" &&
20554 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20556 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20557 # uniformly replaced by the line number. The first 'sed' inserts a
20558 # line-number line after each line using $LINENO; the second 'sed'
20559 # does the real work. The second script uses 'N' to pair each
20560 # line-number line with the line containing $LINENO, and appends
20561 # trailing '-' during substitution so that $LINENO is not a special
20562 # case at line end.
20563 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20564 # scripts with optimization help from Paolo Bonzini. Blame Lee
20565 # E. McMahon (1931-1989) for sed's syntax. :-)
20577 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20580 ' >$as_me.lineno &&
20581 chmod +x "$as_me.lineno" ||
20582 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20583 { (exit 1); exit 1; }; }
20585 # Don't try to exec as it changes $[0], causing all sort of problems
20586 # (the dirname of $[0] is not the place where we might find the
20587 # original and so on. Autoconf is especially sensitive to this).
20588 . "./$as_me.lineno"
20589 # Exit status is that of the last command.
20594 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20600 ECHO_C= ECHO_N= ECHO_T=
20601 case `echo -n x` in
20603 case `echo 'x\c'` in
20604 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20611 if expr a : '\(a\)' >/dev/null 2>&1 &&
20612 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20618 rm -f conf$$ conf$$.exe conf$$.file
20619 if test -d conf$$.dir; then
20620 rm -f conf$$.dir/conf$$.file
20626 if ln -s conf$$.file conf$$ 2>/dev/null; then
20628 # ... but there are two gotchas:
20629 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20630 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20631 # In both cases, we have to default to `cp -p'.
20632 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20634 elif ln conf$$.file conf$$ 2>/dev/null; then
20639 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20640 rmdir conf$$.dir 2>/dev/null
20642 if mkdir -p . 2>/dev/null; then
20645 test -d ./-p && rmdir ./-p
20649 if test -x / >/dev/null 2>&1; then
20650 as_test_x='test -x'
20652 if ls -dL / >/dev/null 2>&1; then
20659 if test -d "$1"; then
20665 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20666 ???[sx]*):;;*)false;;esac;fi
20670 as_executable_p=$as_test_x
20672 # Sed expression to map a string onto a valid CPP name.
20673 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20675 # Sed expression to map a string onto a valid variable name.
20676 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20681 # Save the log message, to keep $[0] and so on meaningful, and to
20682 # report actual input values of CONFIG_FILES etc. instead of their
20683 # values after options handling.
20685 This file was extended by $as_me, which was
20686 generated by GNU Autoconf 2.61. Invocation command line was
20688 CONFIG_FILES = $CONFIG_FILES
20689 CONFIG_HEADERS = $CONFIG_HEADERS
20690 CONFIG_LINKS = $CONFIG_LINKS
20691 CONFIG_COMMANDS = $CONFIG_COMMANDS
20694 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20699 cat >>$CONFIG_STATUS <<_ACEOF
20700 # Files that config.status was made for.
20701 config_files="$ac_config_files"
20702 config_headers="$ac_config_headers"
20703 config_commands="$ac_config_commands"
20707 cat >>$CONFIG_STATUS <<\_ACEOF
20709 \`$as_me' instantiates files from templates according to the
20710 current configuration.
20712 Usage: $0 [OPTIONS] [FILE]...
20714 -h, --help print this help, then exit
20715 -V, --version print version number and configuration settings, then exit
20716 -q, --quiet do not print progress messages
20717 -d, --debug don't remove temporary files
20718 --recheck update $as_me by reconfiguring in the same conditions
20719 --file=FILE[:TEMPLATE]
20720 instantiate the configuration file FILE
20721 --header=FILE[:TEMPLATE]
20722 instantiate the configuration header FILE
20724 Configuration files:
20727 Configuration headers:
20730 Configuration commands:
20733 Report bugs to <bug-autoconf@gnu.org>."
20736 cat >>$CONFIG_STATUS <<_ACEOF
20739 configured by $0, generated by GNU Autoconf 2.61,
20740 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20742 Copyright (C) 2006 Free Software Foundation, Inc.
20743 This config.status script is free software; the Free Software Foundation
20744 gives unlimited permission to copy, distribute and modify it."
20752 cat >>$CONFIG_STATUS <<\_ACEOF
20753 # If no file are specified by the user, then we need to provide default
20754 # value. By we need to know if files were specified by the user.
20760 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20761 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20772 # Handling of the options.
20773 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20775 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20776 echo "$ac_cs_version"; exit ;;
20777 --debug | --debu | --deb | --de | --d | -d )
20779 --file | --fil | --fi | --f )
20781 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20782 ac_need_defaults=false;;
20783 --header | --heade | --head | --hea )
20785 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20786 ac_need_defaults=false;;
20788 # Conflict between --help and --header
20789 { echo "$as_me: error: ambiguous option: $1
20790 Try \`$0 --help' for more information." >&2
20791 { (exit 1); exit 1; }; };;
20792 --help | --hel | -h )
20793 echo "$ac_cs_usage"; exit ;;
20794 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20795 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20798 # This is an error.
20799 -*) { echo "$as_me: error: unrecognized option: $1
20800 Try \`$0 --help' for more information." >&2
20801 { (exit 1); exit 1; }; } ;;
20803 *) ac_config_targets="$ac_config_targets $1"
20804 ac_need_defaults=false ;;
20810 ac_configure_extra_args=
20812 if $ac_cs_silent; then
20814 ac_configure_extra_args="$ac_configure_extra_args --silent"
20818 cat >>$CONFIG_STATUS <<_ACEOF
20819 if \$ac_cs_recheck; then
20820 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20821 CONFIG_SHELL=$SHELL
20822 export CONFIG_SHELL
20823 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20827 cat >>$CONFIG_STATUS <<\_ACEOF
20831 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
20832 @%:@@%:@ Running $as_me. @%:@@%:@
20838 cat >>$CONFIG_STATUS <<_ACEOF
20842 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20846 cat >>$CONFIG_STATUS <<\_ACEOF
20848 # Handling of arguments.
20849 for ac_config_target in $ac_config_targets
20851 case $ac_config_target in
20852 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20853 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20854 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20855 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
20856 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20857 "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
20858 "gst-davinci.spec") CONFIG_FILES="$CONFIG_FILES gst-davinci.spec" ;;
20860 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20861 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20862 { (exit 1); exit 1; }; };;
20867 # If the user did not use the arguments to specify the items to instantiate,
20868 # then the envvar interface is used. Set only those that are not.
20869 # We use the long form for the default assignment because of an extremely
20870 # bizarre bug on SunOS 4.1.3.
20871 if $ac_need_defaults; then
20872 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20873 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20874 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20877 # Have a temporary directory for convenience. Make it in the build tree
20878 # simply because there is no reason against having it here, and in addition,
20879 # creating and moving files from /tmp can sometimes cause problems.
20880 # Hook for its removal unless debugging.
20881 # Note that there is a small window in which the directory will not be cleaned:
20882 # after its creation but before its name has been assigned to `$tmp'.
20886 trap 'exit_status=$?
20887 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20889 trap '{ (exit 1); exit 1; }' 1 2 13 15
20891 # Create a (secure) tmp directory for tmp files.
20894 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20895 test -n "$tmp" && test -d "$tmp"
20898 tmp=./conf$$-$RANDOM
20899 (umask 077 && mkdir "$tmp")
20902 echo "$me: cannot create a temporary directory in ." >&2
20903 { (exit 1); exit 1; }
20907 # Set up the sed scripts for CONFIG_FILES section.
20910 # No need to generate the scripts if there are no CONFIG_FILES.
20911 # This happens for instance when ./config.status config.h
20912 if test -n "$CONFIG_FILES"; then
20919 for ac_last_try in false false false false false :; do
20920 cat >conf$$subs.sed <<_ACEOF
20921 SHELL!$SHELL$ac_delim
20922 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20923 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20924 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20925 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20926 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20927 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20928 exec_prefix!$exec_prefix$ac_delim
20929 prefix!$prefix$ac_delim
20930 program_transform_name!$program_transform_name$ac_delim
20931 bindir!$bindir$ac_delim
20932 sbindir!$sbindir$ac_delim
20933 libexecdir!$libexecdir$ac_delim
20934 datarootdir!$datarootdir$ac_delim
20935 datadir!$datadir$ac_delim
20936 sysconfdir!$sysconfdir$ac_delim
20937 sharedstatedir!$sharedstatedir$ac_delim
20938 localstatedir!$localstatedir$ac_delim
20939 includedir!$includedir$ac_delim
20940 oldincludedir!$oldincludedir$ac_delim
20941 docdir!$docdir$ac_delim
20942 infodir!$infodir$ac_delim
20943 htmldir!$htmldir$ac_delim
20944 dvidir!$dvidir$ac_delim
20945 pdfdir!$pdfdir$ac_delim
20946 psdir!$psdir$ac_delim
20947 libdir!$libdir$ac_delim
20948 localedir!$localedir$ac_delim
20949 mandir!$mandir$ac_delim
20950 DEFS!$DEFS$ac_delim
20951 ECHO_C!$ECHO_C$ac_delim
20952 ECHO_N!$ECHO_N$ac_delim
20953 ECHO_T!$ECHO_T$ac_delim
20954 LIBS!$LIBS$ac_delim
20955 build_alias!$build_alias$ac_delim
20956 host_alias!$host_alias$ac_delim
20957 target_alias!$target_alias$ac_delim
20958 GST_PLUGIN_VERSION!$GST_PLUGIN_VERSION$ac_delim
20959 GST_PLUGIN_VERSION_RELEASE!$GST_PLUGIN_VERSION_RELEASE$ac_delim
20960 GST_PLUGIN_VERSION_MAJOR!$GST_PLUGIN_VERSION_MAJOR$ac_delim
20961 GST_PLUGIN_VERSION_MINOR!$GST_PLUGIN_VERSION_MINOR$ac_delim
20962 GST_PLUGIN_VERSION_MICRO!$GST_PLUGIN_VERSION_MICRO$ac_delim
20963 GST_PLUGIN_VERSION_NANO!$GST_PLUGIN_VERSION_NANO$ac_delim
20964 PACKAGE!$PACKAGE$ac_delim
20965 VERSION!$VERSION$ac_delim
20966 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
20967 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
20968 MAINT!$MAINT$ac_delim
20969 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20970 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20971 INSTALL_DATA!$INSTALL_DATA$ac_delim
20972 am__isrc!$am__isrc$ac_delim
20973 CYGPATH_W!$CYGPATH_W$ac_delim
20974 ACLOCAL!$ACLOCAL$ac_delim
20975 AUTOCONF!$AUTOCONF$ac_delim
20976 AUTOMAKE!$AUTOMAKE$ac_delim
20977 AUTOHEADER!$AUTOHEADER$ac_delim
20978 MAKEINFO!$MAKEINFO$ac_delim
20979 install_sh!$install_sh$ac_delim
20980 STRIP!$STRIP$ac_delim
20981 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
20982 mkdir_p!$mkdir_p$ac_delim
20984 SET_MAKE!$SET_MAKE$ac_delim
20985 am__leading_dot!$am__leading_dot$ac_delim
20986 AMTAR!$AMTAR$ac_delim
20987 am__tar!$am__tar$ac_delim
20988 am__untar!$am__untar$ac_delim
20989 ACLOCAL_AMFLAGS!$ACLOCAL_AMFLAGS$ac_delim
20991 CFLAGS!$CFLAGS$ac_delim
20992 LDFLAGS!$LDFLAGS$ac_delim
20993 CPPFLAGS!$CPPFLAGS$ac_delim
20994 ac_ct_CC!$ac_ct_CC$ac_delim
20995 EXEEXT!$EXEEXT$ac_delim
20996 OBJEXT!$OBJEXT$ac_delim
20997 DEPDIR!$DEPDIR$ac_delim
20998 am__include!$am__include$ac_delim
20999 am__quote!$am__quote$ac_delim
21000 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21001 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21002 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21003 CCDEPMODE!$CCDEPMODE$ac_delim
21004 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21005 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21006 build!$build$ac_delim
21007 build_cpu!$build_cpu$ac_delim
21008 build_vendor!$build_vendor$ac_delim
21009 build_os!$build_os$ac_delim
21010 host!$host$ac_delim
21011 host_cpu!$host_cpu$ac_delim
21012 host_vendor!$host_vendor$ac_delim
21013 host_os!$host_os$ac_delim
21015 GREP!$GREP$ac_delim
21016 EGREP!$EGREP$ac_delim
21017 LN_S!$LN_S$ac_delim
21020 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21022 elif $ac_last_try; then
21023 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21024 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21025 { (exit 1); exit 1; }; }
21027 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21031 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21032 if test -n "$ac_eof"; then
21033 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21034 ac_eof=`expr $ac_eof + 1`
21037 cat >>$CONFIG_STATUS <<_ACEOF
21038 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21039 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21042 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21043 s/^/s,@/; s/!/@,|#_!!_#|/
21046 s/'"$ac_delim"'$/,g/; t
21048 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21049 ' >>$CONFIG_STATUS <conf$$subs.sed
21050 rm -f conf$$subs.sed
21051 cat >>$CONFIG_STATUS <<_ACEOF
21057 for ac_last_try in false false false false false :; do
21058 cat >conf$$subs.sed <<_ACEOF
21059 ECHO!$ECHO$ac_delim
21061 RANLIB!$RANLIB$ac_delim
21062 DSYMUTIL!$DSYMUTIL$ac_delim
21063 NMEDIT!$NMEDIT$ac_delim
21066 CXXFLAGS!$CXXFLAGS$ac_delim
21067 ac_ct_CXX!$ac_ct_CXX$ac_delim
21068 CXXDEPMODE!$CXXDEPMODE$ac_delim
21069 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21070 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21071 CXXCPP!$CXXCPP$ac_delim
21073 FFLAGS!$FFLAGS$ac_delim
21074 ac_ct_F77!$ac_ct_F77$ac_delim
21075 LIBTOOL!$LIBTOOL$ac_delim
21076 HAVE_PKGCONFIG!$HAVE_PKGCONFIG$ac_delim
21077 PKG_CONFIG!$PKG_CONFIG$ac_delim
21078 GST_CFLAGS!$GST_CFLAGS$ac_delim
21079 GST_LIBS!$GST_LIBS$ac_delim
21080 GST_BASE_CFLAGS!$GST_BASE_CFLAGS$ac_delim
21081 GST_BASE_LIBS!$GST_BASE_LIBS$ac_delim
21082 GST_LIB_LDFLAGS!$GST_LIB_LDFLAGS$ac_delim
21083 GST_ALL_LDFLAGS!$GST_ALL_LDFLAGS$ac_delim
21084 GST_LT_LDFLAGS!$GST_LT_LDFLAGS$ac_delim
21085 GST_MAJORMINOR!$GST_MAJORMINOR$ac_delim
21086 plugindir!$plugindir$ac_delim
21087 GST_PLUGIN_LDFLAGS!$GST_PLUGIN_LDFLAGS$ac_delim
21088 LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim
21089 LTLIBOBJS!$LTLIBOBJS$ac_delim
21092 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 31; then
21094 elif $ac_last_try; then
21095 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21096 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21097 { (exit 1); exit 1; }; }
21099 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21103 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21104 if test -n "$ac_eof"; then
21105 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21106 ac_eof=`expr $ac_eof + 1`
21109 cat >>$CONFIG_STATUS <<_ACEOF
21110 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21111 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21114 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21115 s/^/s,@/; s/!/@,|#_!!_#|/
21118 s/'"$ac_delim"'$/,g/; t
21120 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21121 ' >>$CONFIG_STATUS <conf$$subs.sed
21122 rm -f conf$$subs.sed
21123 cat >>$CONFIG_STATUS <<_ACEOF
21130 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21131 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21132 # trailing colons and then remove the whole line if VPATH becomes empty
21133 # (actually we leave an empty line to preserve line numbers).
21134 if test "x$srcdir" = x.; then
21135 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21136 s/:*\$(srcdir):*/:/
21137 s/:*\${srcdir}:*/:/
21139 s/^\([^=]*=[ ]*\):*/\1/
21145 cat >>$CONFIG_STATUS <<\_ACEOF
21146 fi # test -n "$CONFIG_FILES"
21149 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21152 :[FHLC]) ac_mode=$ac_tag; continue;;
21154 case $ac_mode$ac_tag in
21156 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21157 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21158 { (exit 1); exit 1; }; };;
21159 :[FH]-) ac_tag=-:-;;
21160 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21177 -) ac_f="$tmp/stdin";;
21178 *) # Look for the file first in the build tree, then in the source tree
21179 # (if the path is not absolute). The absolute path cannot be DOS-style,
21180 # because $ac_f cannot contain `:'.
21184 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21186 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21187 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21188 { (exit 1); exit 1; }; };;
21190 ac_file_inputs="$ac_file_inputs $ac_f"
21193 # Let's still pretend it is `configure' which instantiates (i.e., don't
21194 # use $as_me), people would be surprised to read:
21195 # /* config.h. Generated by config.status. */
21196 configure_input="Generated from "`IFS=:
21197 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21198 if test x"$ac_file" != x-; then
21199 configure_input="$ac_file. $configure_input"
21200 { echo "$as_me:$LINENO: creating $ac_file" >&5
21201 echo "$as_me: creating $ac_file" >&6;}
21205 *:-:* | *:-) cat >"$tmp/stdin";;
21210 ac_dir=`$as_dirname -- "$ac_file" ||
21211 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21212 X"$ac_file" : 'X\(//\)[^/]' \| \
21213 X"$ac_file" : 'X\(//\)$' \| \
21214 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21216 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21220 /^X\(\/\/\)[^/].*/{
21235 -*) as_dir=./$as_dir;;
21237 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21241 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21242 *) as_qdir=$as_dir;;
21244 as_dirs="'$as_qdir' $as_dirs"
21245 as_dir=`$as_dirname -- "$as_dir" ||
21246 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21247 X"$as_dir" : 'X\(//\)[^/]' \| \
21248 X"$as_dir" : 'X\(//\)$' \| \
21249 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21251 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21255 /^X\(\/\/\)[^/].*/{
21268 test -d "$as_dir" && break
21270 test -z "$as_dirs" || eval "mkdir $as_dirs"
21271 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21272 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21273 { (exit 1); exit 1; }; }; }
21277 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21279 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21280 # A ".." for each directory in $ac_dir_suffix.
21281 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21282 case $ac_top_builddir_sub in
21283 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21284 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21287 ac_abs_top_builddir=$ac_pwd
21288 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21289 # for backward compatibility:
21290 ac_top_builddir=$ac_top_build_prefix
21293 .) # We are building in place.
21295 ac_top_srcdir=$ac_top_builddir_sub
21296 ac_abs_top_srcdir=$ac_pwd ;;
21297 [\\/]* | ?:[\\/]* ) # Absolute name.
21298 ac_srcdir=$srcdir$ac_dir_suffix;
21299 ac_top_srcdir=$srcdir
21300 ac_abs_top_srcdir=$srcdir ;;
21301 *) # Relative name.
21302 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21303 ac_top_srcdir=$ac_top_build_prefix$srcdir
21304 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21306 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21316 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21317 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21319 ac_MKDIR_P=$MKDIR_P
21321 [\\/$]* | ?:[\\/]* ) ;;
21322 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21326 cat >>$CONFIG_STATUS <<\_ACEOF
21327 # If the template does not know about datarootdir, expand it.
21328 # FIXME: This hack should be removed a few years after 2.60.
21329 ac_datarootdir_hack=; ac_datarootdir_seen=
21331 case `sed -n '/datarootdir/ {
21340 ' $ac_file_inputs` in
21341 *datarootdir*) ac_datarootdir_seen=yes;;
21342 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21343 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21344 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21346 cat >>$CONFIG_STATUS <<_ACEOF
21347 ac_datarootdir_hack='
21348 s&@datadir@&$datadir&g
21349 s&@docdir@&$docdir&g
21350 s&@infodir@&$infodir&g
21351 s&@localedir@&$localedir&g
21352 s&@mandir@&$mandir&g
21353 s&\\\${datarootdir}&$datarootdir&g' ;;
21357 # Neutralize VPATH when `$srcdir' = `.'.
21358 # Shell code in configure.ac might set extrasub.
21359 # FIXME: do we really want to maintain this feature?
21360 cat >>$CONFIG_STATUS <<_ACEOF
21364 cat >>$CONFIG_STATUS <<\_ACEOF
21366 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21367 s&@configure_input@&$configure_input&;t t
21368 s&@top_builddir@&$ac_top_builddir_sub&;t t
21369 s&@srcdir@&$ac_srcdir&;t t
21370 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21371 s&@top_srcdir@&$ac_top_srcdir&;t t
21372 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21373 s&@builddir@&$ac_builddir&;t t
21374 s&@abs_builddir@&$ac_abs_builddir&;t t
21375 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21376 s&@INSTALL@&$ac_INSTALL&;t t
21377 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21378 $ac_datarootdir_hack
21379 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21381 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21382 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21383 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21384 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21385 which seems to be undefined. Please make sure it is defined." >&5
21386 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21387 which seems to be undefined. Please make sure it is defined." >&2;}
21391 -) cat "$tmp/out"; rm -f "$tmp/out";;
21392 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21401 # Transform confdefs.h into a sed script `conftest.defines', that
21402 # substitutes the proper values into config.h.in to produce config.h.
21403 rm -f conftest.defines conftest.tail
21404 # First, append a space to every undef/define line, to ease matching.
21405 echo 's/$/ /' >conftest.defines
21406 # Then, protect against being on the right side of a sed subst, or in
21407 # an unquoted here document, in config.status. If some macros were
21408 # called several times there might be several #defines for the same
21409 # symbol, which is useless. But do not sort them, since the last
21410 # AC_DEFINE must be honored.
21411 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21412 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21413 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21414 # PARAMS is the parameter list in the macro definition--in most cases, it's
21415 # just an empty string.
21416 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21417 ac_dB='\\)[ (].*,\\1define\\2'
21425 s/^[ ]*#[ ]*define[ ][ ]*//
21430 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21431 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21432 ' >>conftest.defines
21434 # Remove the space that was appended to ease matching.
21435 # Then replace #undef with comments. This is necessary, for
21436 # example, in the case of _POSIX_SOURCE, which is predefined and required
21437 # on some systems where configure will not decide to define it.
21438 # (The regexp can be short, since the line contains either #define or #undef.)
21440 s,^[ #]*u.*,/* & */,' >>conftest.defines
21442 # Break up conftest.defines:
21443 ac_max_sed_lines=50
21445 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21446 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21447 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21449 ac_in='$ac_file_inputs'
21450 ac_out='"$tmp/out1"'
21451 ac_nxt='"$tmp/out2"'
21455 # Write a here document:
21456 cat >>$CONFIG_STATUS <<_ACEOF
21457 # First, check the format of the line:
21458 cat >"\$tmp/defines.sed" <<\\CEOF
21459 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21460 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21464 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21466 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21467 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21468 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21469 grep . conftest.tail >/dev/null || break
21470 rm -f conftest.defines
21471 mv conftest.tail conftest.defines
21473 rm -f conftest.defines conftest.tail
21475 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21476 cat >>$CONFIG_STATUS <<\_ACEOF
21477 if test x"$ac_file" != x-; then
21478 echo "/* $configure_input */" >"$tmp/config.h"
21479 cat "$ac_result" >>"$tmp/config.h"
21480 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21481 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21482 echo "$as_me: $ac_file is unchanged" >&6;}
21485 mv "$tmp/config.h" $ac_file
21488 echo "/* $configure_input */"
21492 # Compute $ac_file's index in $config_headers.
21495 for _am_header in $config_headers :; do
21496 case $_am_header in
21497 $_am_arg | $_am_arg:* )
21500 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21503 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21504 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21505 X"$_am_arg" : 'X\(//\)[^/]' \| \
21506 X"$_am_arg" : 'X\(//\)$' \| \
21507 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21509 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21513 /^X\(\/\/\)[^/].*/{
21525 s/.*/./; q'`/stamp-h$_am_stamp_count
21528 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21529 echo "$as_me: executing $ac_file commands" >&6;}
21534 case $ac_file$ac_mode in
21535 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21536 # Strip MF so we end up with the name of the file.
21537 mf=`echo "$mf" | sed -e 's/:.*$//'`
21538 # Check whether this is an Automake generated Makefile or not.
21539 # We used to match only the files named `Makefile.in', but
21540 # some people rename them; so instead we look at the file content.
21541 # Grep'ing the first line is not enough: some people post-process
21542 # each Makefile.in and add a new line on top of each file to say so.
21543 # Grep'ing the whole file is not good either: AIX grep has a line
21544 # limit of 2048, but all sed's we know have understand at least 4000.
21545 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21546 dirpart=`$as_dirname -- "$mf" ||
21547 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21548 X"$mf" : 'X\(//\)[^/]' \| \
21549 X"$mf" : 'X\(//\)$' \| \
21550 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21552 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21556 /^X\(\/\/\)[^/].*/{
21572 # Extract the definition of DEPDIR, am__include, and am__quote
21573 # from the Makefile without running `make'.
21574 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21575 test -z "$DEPDIR" && continue
21576 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21577 test -z "am__include" && continue
21578 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21579 # When using ansi2knr, U may be empty or an underscore; expand it
21580 U=`sed -n 's/^U = //p' < "$mf"`
21581 # Find all dependency output files, they are included files with
21582 # $(DEPDIR) in their names. We invoke sed twice because it is the
21583 # simplest approach to changing $(DEPDIR) to its actual value in the
21585 for file in `sed -n "
21586 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21587 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21588 # Make sure the directory exists.
21589 test -f "$dirpart/$file" && continue
21590 fdir=`$as_dirname -- "$file" ||
21591 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21592 X"$file" : 'X\(//\)[^/]' \| \
21593 X"$file" : 'X\(//\)$' \| \
21594 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21596 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21600 /^X\(\/\/\)[^/].*/{
21613 { as_dir=$dirpart/$fdir
21615 -*) as_dir=./$as_dir;;
21617 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21621 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21622 *) as_qdir=$as_dir;;
21624 as_dirs="'$as_qdir' $as_dirs"
21625 as_dir=`$as_dirname -- "$as_dir" ||
21626 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21627 X"$as_dir" : 'X\(//\)[^/]' \| \
21628 X"$as_dir" : 'X\(//\)$' \| \
21629 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21631 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21635 /^X\(\/\/\)[^/].*/{
21648 test -d "$as_dir" && break
21650 test -z "$as_dirs" || eval "mkdir $as_dirs"
21651 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21652 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21653 { (exit 1); exit 1; }; }; }
21654 # echo "creating $dirpart/$file"
21655 echo '# dummy' > "$dirpart/$file"
21664 { (exit 0); exit 0; }
21666 chmod +x $CONFIG_STATUS
21667 ac_clean_files=$ac_clean_files_save
21670 # configure is writing to config.log, and then calls config.status.
21671 # config.status does its own redirection, appending to config.log.
21672 # Unfortunately, on DOS this fails, as config.log is still kept open
21673 # by configure, so config.status won't be able to write to it; its
21674 # output is simply discarded. So we exec the FD to /dev/null,
21675 # effectively closing config.log, so it can be properly (re)opened and
21676 # appended to by config.status. When coming back to configure, we
21677 # need to make the FD available again.
21678 if test "$no_create" != yes; then
21680 ac_config_status_args=
21681 test "$silent" = yes &&
21682 ac_config_status_args="$ac_config_status_args --quiet"
21684 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21686 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21687 # would make configure fail if this is the last instruction.
21688 $ac_cs_success || { (exit 1); exit 1; }