2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
564 if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
567 elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $echo works!
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597 echo_test_string=`eval $cmd` &&
598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
610 # The Solaris, AIX, and Digital Unix default echo programs unquote
611 # backslashes. This makes it impossible to quote backslashes using
612 # echo "$something" | sed 's/\\/\\\\/g'
614 # So, first we look for a working echo in the user's PATH.
616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617 for dir in $PATH /usr/ucb; do
619 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
629 if test "X$echo" = Xecho; then
630 # We didn't find a better echo, so look for alternatives.
631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 # This shell has a builtin print -r that does the trick.
636 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637 test "X$CONFIG_SHELL" != X/bin/ksh; then
638 # If we have ksh, try running configure again with it.
639 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640 export ORIGINAL_CONFIG_SHELL
641 CONFIG_SHELL=/bin/ksh
643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649 test "X$echo_testing_string" = "X$echo_test_string"; then
652 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653 test "X$echo_testing_string" = 'X\t' &&
654 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655 test "X$echo_testing_string" = "X$echo_test_string"; then
656 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
658 SHELL="$CONFIG_SHELL"
660 echo="$CONFIG_SHELL $0 --fallback-echo"
661 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662 test "X$echo_testing_string" = 'X\t' &&
663 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664 test "X$echo_testing_string" = "X$echo_test_string"; then
665 echo="$CONFIG_SHELL $0 --fallback-echo"
667 # maybe with a smaller string...
670 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
678 if test "$prev" != 'sed 50q "$0"'; then
679 echo_test_string=`eval $prev`
680 export echo_test_string
681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
683 # Oops. We lost completely, so just stick with echo.
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
702 tagnames=${tagnames+${tagnames},}CXX
704 tagnames=${tagnames+${tagnames},}F77
706 exec 7<&0 </dev/null 6>&1
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
716 ac_default_prefix=/usr/local
718 ac_config_libobj_dir=.
724 SHELL=${CONFIG_SHELL-/bin/sh}
726 # Identity of this package.
733 ac_unique_file="cairomm/cairomm.h"
734 # Factoring default headers for most tests.
735 ac_includes_default="\
737 #ifdef HAVE_SYS_TYPES_H
738 # include <sys/types.h>
740 #ifdef HAVE_SYS_STAT_H
741 # include <sys/stat.h>
747 # ifdef HAVE_STDLIB_H
752 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
757 #ifdef HAVE_STRINGS_H
758 # include <strings.h>
760 #ifdef HAVE_INTTYPES_H
761 # include <inttypes.h>
779 program_transform_name
807 GENERIC_MAJOR_VERSION
808 GENERIC_MINOR_VERSION
809 GENERIC_MICRO_VERSION
811 GENERIC_LIBRARY_VERSION
825 INSTALL_STRIP_PROGRAM
888 BOOST_UNIT_TEST_FRAMEWORK_LIB
897 ac_precious_vars='build_alias
917 # Initialize some variables set by options.
919 ac_init_version=false
920 # The variables have the same names as the options, with
921 # dashes changed to underlines.
929 program_transform_name=s,x,x,
937 # Installation directory options.
938 # These are left unexpanded so users can "make install exec_prefix=/foo"
939 # and all the variables that are supposed to be based on exec_prefix
940 # by default will actually change.
941 # Use braces instead of parens because sh, perl, etc. also accept them.
942 # (The list follows the same order as the GNU Coding Standards.)
943 bindir='${exec_prefix}/bin'
944 sbindir='${exec_prefix}/sbin'
945 libexecdir='${exec_prefix}/libexec'
946 datarootdir='${prefix}/share'
947 datadir='${datarootdir}'
948 sysconfdir='${prefix}/etc'
949 sharedstatedir='${prefix}/com'
950 localstatedir='${prefix}/var'
951 includedir='${prefix}/include'
952 oldincludedir='/usr/include'
953 docdir='${datarootdir}/doc/${PACKAGE}'
954 infodir='${datarootdir}/info'
959 libdir='${exec_prefix}/lib'
960 localedir='${datarootdir}/locale'
961 mandir='${datarootdir}/man'
967 # If the previous option needs an argument, assign it.
968 if test -n "$ac_prev"; then
969 eval $ac_prev=\$ac_option
975 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
979 # Accept the important Cygnus configure options, so we can diagnose typos.
981 case $ac_dashdash$ac_option in
985 -bindir | --bindir | --bindi | --bind | --bin | --bi)
987 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
990 -build | --build | --buil | --bui | --bu)
991 ac_prev=build_alias ;;
992 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
993 build_alias=$ac_optarg ;;
995 -cache-file | --cache-file | --cache-fil | --cache-fi \
996 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
997 ac_prev=cache_file ;;
998 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
999 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1000 cache_file=$ac_optarg ;;
1002 --config-cache | -C)
1003 cache_file=config.cache ;;
1005 -datadir | --datadir | --datadi | --datad)
1007 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1008 datadir=$ac_optarg ;;
1010 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1011 | --dataroo | --dataro | --datar)
1012 ac_prev=datarootdir ;;
1013 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1014 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1015 datarootdir=$ac_optarg ;;
1017 -disable-* | --disable-*)
1018 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1019 # Reject names that are not valid shell variable names.
1020 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1021 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1022 { (exit 1); exit 1; }; }
1023 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1024 eval enable_$ac_feature=no ;;
1026 -docdir | --docdir | --docdi | --doc | --do)
1028 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1029 docdir=$ac_optarg ;;
1031 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1033 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1034 dvidir=$ac_optarg ;;
1036 -enable-* | --enable-*)
1037 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1038 # Reject names that are not valid shell variable names.
1039 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1040 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1041 { (exit 1); exit 1; }; }
1042 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1043 eval enable_$ac_feature=\$ac_optarg ;;
1045 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1046 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1047 | --exec | --exe | --ex)
1048 ac_prev=exec_prefix ;;
1049 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1050 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1051 | --exec=* | --exe=* | --ex=*)
1052 exec_prefix=$ac_optarg ;;
1054 -gas | --gas | --ga | --g)
1055 # Obsolete; use --with-gas.
1058 -help | --help | --hel | --he | -h)
1059 ac_init_help=long ;;
1060 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1061 ac_init_help=recursive ;;
1062 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1063 ac_init_help=short ;;
1065 -host | --host | --hos | --ho)
1066 ac_prev=host_alias ;;
1067 -host=* | --host=* | --hos=* | --ho=*)
1068 host_alias=$ac_optarg ;;
1070 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1072 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1074 htmldir=$ac_optarg ;;
1076 -includedir | --includedir | --includedi | --included | --include \
1077 | --includ | --inclu | --incl | --inc)
1078 ac_prev=includedir ;;
1079 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1080 | --includ=* | --inclu=* | --incl=* | --inc=*)
1081 includedir=$ac_optarg ;;
1083 -infodir | --infodir | --infodi | --infod | --info | --inf)
1085 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1086 infodir=$ac_optarg ;;
1088 -libdir | --libdir | --libdi | --libd)
1090 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1091 libdir=$ac_optarg ;;
1093 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1094 | --libexe | --libex | --libe)
1095 ac_prev=libexecdir ;;
1096 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1097 | --libexe=* | --libex=* | --libe=*)
1098 libexecdir=$ac_optarg ;;
1100 -localedir | --localedir | --localedi | --localed | --locale)
1101 ac_prev=localedir ;;
1102 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1103 localedir=$ac_optarg ;;
1105 -localstatedir | --localstatedir | --localstatedi | --localstated \
1106 | --localstate | --localstat | --localsta | --localst | --locals)
1107 ac_prev=localstatedir ;;
1108 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1109 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1110 localstatedir=$ac_optarg ;;
1112 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1114 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1115 mandir=$ac_optarg ;;
1117 -nfp | --nfp | --nf)
1118 # Obsolete; use --without-fp.
1121 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1122 | --no-cr | --no-c | -n)
1125 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1126 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1129 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1130 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1131 | --oldin | --oldi | --old | --ol | --o)
1132 ac_prev=oldincludedir ;;
1133 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1134 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1135 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1136 oldincludedir=$ac_optarg ;;
1138 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1140 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1141 prefix=$ac_optarg ;;
1143 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1144 | --program-pre | --program-pr | --program-p)
1145 ac_prev=program_prefix ;;
1146 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1147 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1148 program_prefix=$ac_optarg ;;
1150 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1151 | --program-suf | --program-su | --program-s)
1152 ac_prev=program_suffix ;;
1153 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1154 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1155 program_suffix=$ac_optarg ;;
1157 -program-transform-name | --program-transform-name \
1158 | --program-transform-nam | --program-transform-na \
1159 | --program-transform-n | --program-transform- \
1160 | --program-transform | --program-transfor \
1161 | --program-transfo | --program-transf \
1162 | --program-trans | --program-tran \
1163 | --progr-tra | --program-tr | --program-t)
1164 ac_prev=program_transform_name ;;
1165 -program-transform-name=* | --program-transform-name=* \
1166 | --program-transform-nam=* | --program-transform-na=* \
1167 | --program-transform-n=* | --program-transform-=* \
1168 | --program-transform=* | --program-transfor=* \
1169 | --program-transfo=* | --program-transf=* \
1170 | --program-trans=* | --program-tran=* \
1171 | --progr-tra=* | --program-tr=* | --program-t=*)
1172 program_transform_name=$ac_optarg ;;
1174 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1176 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1177 pdfdir=$ac_optarg ;;
1179 -psdir | --psdir | --psdi | --psd | --ps)
1181 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1184 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1185 | -silent | --silent | --silen | --sile | --sil)
1188 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1190 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1192 sbindir=$ac_optarg ;;
1194 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1195 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1196 | --sharedst | --shareds | --shared | --share | --shar \
1198 ac_prev=sharedstatedir ;;
1199 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1200 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1201 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1203 sharedstatedir=$ac_optarg ;;
1205 -site | --site | --sit)
1207 -site=* | --site=* | --sit=*)
1210 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1212 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1213 srcdir=$ac_optarg ;;
1215 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1216 | --syscon | --sysco | --sysc | --sys | --sy)
1217 ac_prev=sysconfdir ;;
1218 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1219 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1220 sysconfdir=$ac_optarg ;;
1222 -target | --target | --targe | --targ | --tar | --ta | --t)
1223 ac_prev=target_alias ;;
1224 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1225 target_alias=$ac_optarg ;;
1227 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1230 -version | --version | --versio | --versi | --vers | -V)
1231 ac_init_version=: ;;
1234 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1235 # Reject names that are not valid shell variable names.
1236 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1237 { echo "$as_me: error: invalid package name: $ac_package" >&2
1238 { (exit 1); exit 1; }; }
1239 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1240 eval with_$ac_package=\$ac_optarg ;;
1242 -without-* | --without-*)
1243 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1244 # Reject names that are not valid shell variable names.
1245 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1246 { echo "$as_me: error: invalid package name: $ac_package" >&2
1247 { (exit 1); exit 1; }; }
1248 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1249 eval with_$ac_package=no ;;
1252 # Obsolete; use --with-x.
1255 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1256 | --x-incl | --x-inc | --x-in | --x-i)
1257 ac_prev=x_includes ;;
1258 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1259 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1260 x_includes=$ac_optarg ;;
1262 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1263 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1264 ac_prev=x_libraries ;;
1265 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1266 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1267 x_libraries=$ac_optarg ;;
1269 -*) { echo "$as_me: error: unrecognized option: $ac_option
1270 Try \`$0 --help' for more information." >&2
1271 { (exit 1); exit 1; }; }
1275 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1276 # Reject names that are not valid shell variable names.
1277 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1278 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1279 { (exit 1); exit 1; }; }
1280 eval $ac_envvar=\$ac_optarg
1281 export $ac_envvar ;;
1284 # FIXME: should be removed in autoconf 3.0.
1285 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1286 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1287 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1288 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1294 if test -n "$ac_prev"; then
1295 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1296 { echo "$as_me: error: missing argument to $ac_option" >&2
1297 { (exit 1); exit 1; }; }
1300 # Be sure to have absolute directory names.
1301 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1302 datadir sysconfdir sharedstatedir localstatedir includedir \
1303 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1304 libdir localedir mandir
1306 eval ac_val=\$$ac_var
1308 [\\/$]* | ?:[\\/]* ) continue;;
1309 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1311 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1312 { (exit 1); exit 1; }; }
1315 # There might be people who depend on the old broken behavior: `$host'
1316 # used to hold the argument of --host etc.
1317 # FIXME: To remove some day.
1320 target=$target_alias
1322 # FIXME: To remove some day.
1323 if test "x$host_alias" != x; then
1324 if test "x$build_alias" = x; then
1325 cross_compiling=maybe
1326 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1327 If a cross compiler is detected then cross compile mode will be used." >&2
1328 elif test "x$build_alias" != "x$host_alias"; then
1334 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1336 test "$silent" = yes && exec 6>/dev/null
1339 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1340 ac_ls_di=`ls -di .` &&
1341 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1342 { echo "$as_me: error: Working directory cannot be determined" >&2
1343 { (exit 1); exit 1; }; }
1344 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1345 { echo "$as_me: error: pwd does not report name of working directory" >&2
1346 { (exit 1); exit 1; }; }
1349 # Find the source files, if location was not specified.
1350 if test -z "$srcdir"; then
1351 ac_srcdir_defaulted=yes
1352 # Try the directory containing this script, then the parent directory.
1353 ac_confdir=`$as_dirname -- "$0" ||
1354 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1355 X"$0" : 'X\(//\)[^/]' \| \
1356 X"$0" : 'X\(//\)$' \| \
1357 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1377 if test ! -r "$srcdir/$ac_unique_file"; then
1381 ac_srcdir_defaulted=no
1383 if test ! -r "$srcdir/$ac_unique_file"; then
1384 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1385 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1386 { (exit 1); exit 1; }; }
1388 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1390 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1391 { (exit 1); exit 1; }; }
1393 # When building in place, set srcdir=.
1394 if test "$ac_abs_confdir" = "$ac_pwd"; then
1397 # Remove unnecessary trailing slashes from srcdir.
1398 # Double slashes in file names in object file debugging info
1399 # mess up M-x gdb in Emacs.
1401 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1403 for ac_var in $ac_precious_vars; do
1404 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1405 eval ac_env_${ac_var}_value=\$${ac_var}
1406 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1407 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1411 # Report the --help message.
1413 if test "$ac_init_help" = "long"; then
1414 # Omit some internal or obsolete options to make the list less imposing.
1415 # This message is too long to be a string in the A/UX 3.1 sh.
1417 \`configure' configures this package to adapt to many kinds of systems.
1419 Usage: $0 [OPTION]... [VAR=VALUE]...
1421 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1422 VAR=VALUE. See below for descriptions of some of the useful variables.
1424 Defaults for the options are specified in brackets.
1427 -h, --help display this help and exit
1428 --help=short display options specific to this package
1429 --help=recursive display the short help of all the included packages
1430 -V, --version display version information and exit
1431 -q, --quiet, --silent do not print \`checking...' messages
1432 --cache-file=FILE cache test results in FILE [disabled]
1433 -C, --config-cache alias for \`--cache-file=config.cache'
1434 -n, --no-create do not create output files
1435 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1437 Installation directories:
1438 --prefix=PREFIX install architecture-independent files in PREFIX
1439 [$ac_default_prefix]
1440 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1443 By default, \`make install' will install all the files in
1444 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1445 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1446 for instance \`--prefix=\$HOME'.
1448 For better control, use the options below.
1450 Fine tuning of the installation directories:
1451 --bindir=DIR user executables [EPREFIX/bin]
1452 --sbindir=DIR system admin executables [EPREFIX/sbin]
1453 --libexecdir=DIR program executables [EPREFIX/libexec]
1454 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1455 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1456 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1457 --libdir=DIR object code libraries [EPREFIX/lib]
1458 --includedir=DIR C header files [PREFIX/include]
1459 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1460 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1461 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1462 --infodir=DIR info documentation [DATAROOTDIR/info]
1463 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1464 --mandir=DIR man documentation [DATAROOTDIR/man]
1465 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1466 --htmldir=DIR html documentation [DOCDIR]
1467 --dvidir=DIR dvi documentation [DOCDIR]
1468 --pdfdir=DIR pdf documentation [DOCDIR]
1469 --psdir=DIR ps documentation [DOCDIR]
1475 --program-prefix=PREFIX prepend PREFIX to installed program names
1476 --program-suffix=SUFFIX append SUFFIX to installed program names
1477 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1480 --build=BUILD configure for building on BUILD [guessed]
1481 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1485 if test -n "$ac_init_help"; then
1490 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1491 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
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)
1499 --enable-tests=yes|no enable automated tests (default is no)
1500 --enable-api-exceptions Build exceptions API.
1502 --enable-docs build the included docs [default=yes]
1505 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1506 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1507 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1508 --with-pic try to use only PIC/non-PIC objects [default=use
1510 --with-tags[=TAGS] include additional configurations [automatic]
1511 --with-boost[=DIR] use boost (default is No) - it is possible to
1512 specify the root directory for boost (optional)
1513 --with-boost-unit-test-framework[=special-lib]
1514 use the Unit_Test_Framework library from boost - it
1515 is possible to specify a certain library for the
1517 --with-boost-unit-test-framework=boost_unit_test_framework-gcc
1519 Some influential environment variables:
1520 CXX C++ compiler command
1521 CXXFLAGS C++ compiler flags
1522 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1523 nonstandard directory <lib dir>
1524 LIBS libraries to pass to the linker, e.g. -l<library>
1525 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1526 you have headers in a nonstandard directory <include dir>
1527 CXXCPP C++ preprocessor
1528 CC C compiler command
1529 CFLAGS C compiler flags
1531 F77 Fortran 77 compiler command
1532 FFLAGS Fortran 77 compiler flags
1533 PKG_CONFIG path to pkg-config utility
1535 C compiler flags for CAIROMM, overriding pkg-config
1537 linker flags for CAIROMM, overriding pkg-config
1539 Use these variables to override the choices made by `configure' or to help
1540 it to find libraries and programs with nonstandard names/locations.
1546 if test "$ac_init_help" = "recursive"; then
1547 # If there are subdirs, report their specific --help.
1548 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1549 test -d "$ac_dir" || continue
1553 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1555 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1556 # A ".." for each directory in $ac_dir_suffix.
1557 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1558 case $ac_top_builddir_sub in
1559 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1560 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1563 ac_abs_top_builddir=$ac_pwd
1564 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1565 # for backward compatibility:
1566 ac_top_builddir=$ac_top_build_prefix
1569 .) # We are building in place.
1571 ac_top_srcdir=$ac_top_builddir_sub
1572 ac_abs_top_srcdir=$ac_pwd ;;
1573 [\\/]* | ?:[\\/]* ) # Absolute name.
1574 ac_srcdir=$srcdir$ac_dir_suffix;
1575 ac_top_srcdir=$srcdir
1576 ac_abs_top_srcdir=$srcdir ;;
1578 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1579 ac_top_srcdir=$ac_top_build_prefix$srcdir
1580 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1582 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1584 cd "$ac_dir" || { ac_status=$?; continue; }
1585 # Check for guested configure.
1586 if test -f "$ac_srcdir/configure.gnu"; then
1588 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1589 elif test -f "$ac_srcdir/configure"; then
1591 $SHELL "$ac_srcdir/configure" --help=recursive
1593 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1595 cd "$ac_pwd" || { ac_status=$?; break; }
1599 test -n "$ac_init_help" && exit $ac_status
1600 if $ac_init_version; then
1603 generated by GNU Autoconf 2.61
1605 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1606 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1607 This configure script is free software; the Free Software Foundation
1608 gives unlimited permission to copy, distribute and modify it.
1612 cat >config.log <<_ACEOF
1613 This file contains any messages produced by compilers while
1614 running configure, to aid debugging if configure makes a mistake.
1616 It was created by $as_me, which was
1617 generated by GNU Autoconf 2.61. Invocation command line was
1629 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1630 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1631 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1632 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1633 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1635 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1636 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1638 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1639 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1640 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1641 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1642 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1643 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1644 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1652 test -z "$as_dir" && as_dir=.
1653 echo "PATH: $as_dir"
1669 # Keep a trace of the command line.
1670 # Strip out --no-create and --no-recursion so they do not pile up.
1671 # Strip out --silent because we don't want to record it for future runs.
1672 # Also quote any args containing shell meta-characters.
1673 # Make two passes to allow for proper duplicate-argument suppression.
1677 ac_must_keep_next=false
1683 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1684 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1685 | -silent | --silent | --silen | --sile | --sil)
1688 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1691 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1693 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1694 if test $ac_must_keep_next = true; then
1695 ac_must_keep_next=false # Got value, back to normal.
1698 *=* | --config-cache | -C | -disable-* | --disable-* \
1699 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1700 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1701 | -with-* | --with-* | -without-* | --without-* | --x)
1702 case "$ac_configure_args0 " in
1703 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1706 -* ) ac_must_keep_next=true ;;
1709 ac_configure_args="$ac_configure_args '$ac_arg'"
1714 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1715 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1717 # When interrupted or exit'd, cleanup temporary files, and complete
1718 # config.log. We remove comments because anyway the quotes in there
1719 # would cause problems or look ugly.
1720 # WARNING: Use '\'' to represent an apostrophe within the trap.
1721 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1722 trap 'exit_status=$?
1723 # Save into config.log some information that might help in debugging.
1728 ## ---------------- ##
1729 ## Cache variables. ##
1730 ## ---------------- ##
1733 # The following way of writing the cache mishandles newlines in values,
1735 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1736 eval ac_val=\$$ac_var
1740 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1741 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1744 _ | IFS | as_nl) ;; #(
1745 *) $as_unset $ac_var ;;
1750 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1751 *${as_nl}ac_space=\ *)
1753 "s/'\''/'\''\\\\'\'''\''/g;
1754 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1757 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1765 ## ----------------- ##
1766 ## Output variables. ##
1767 ## ----------------- ##
1770 for ac_var in $ac_subst_vars
1772 eval ac_val=\$$ac_var
1774 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1776 echo "$ac_var='\''$ac_val'\''"
1780 if test -n "$ac_subst_files"; then
1782 ## ------------------- ##
1783 ## File substitutions. ##
1784 ## ------------------- ##
1787 for ac_var in $ac_subst_files
1789 eval ac_val=\$$ac_var
1791 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1793 echo "$ac_var='\''$ac_val'\''"
1798 if test -s confdefs.h; then
1808 test "$ac_signal" != 0 &&
1809 echo "$as_me: caught signal $ac_signal"
1810 echo "$as_me: exit $exit_status"
1812 rm -f core *.core core.conftest.* &&
1813 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1816 for ac_signal in 1 2 13 15; do
1817 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1821 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1822 rm -f -r conftest* confdefs.h
1824 # Predefined preprocessor variables.
1826 cat >>confdefs.h <<_ACEOF
1827 #define PACKAGE_NAME "$PACKAGE_NAME"
1831 cat >>confdefs.h <<_ACEOF
1832 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1836 cat >>confdefs.h <<_ACEOF
1837 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1841 cat >>confdefs.h <<_ACEOF
1842 #define PACKAGE_STRING "$PACKAGE_STRING"
1846 cat >>confdefs.h <<_ACEOF
1847 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1851 # Let the site file select an alternate cache file if it wants to.
1852 # Prefer explicitly selected file to automatically selected ones.
1853 if test -n "$CONFIG_SITE"; then
1854 set x "$CONFIG_SITE"
1855 elif test "x$prefix" != xNONE; then
1856 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1858 set x "$ac_default_prefix/share/config.site" \
1859 "$ac_default_prefix/etc/config.site"
1864 if test -r "$ac_site_file"; then
1865 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1866 echo "$as_me: loading site script $ac_site_file" >&6;}
1867 sed 's/^/| /' "$ac_site_file" >&5
1872 if test -r "$cache_file"; then
1873 # Some versions of bash will fail to source /dev/null (special
1874 # files actually), so we avoid doing that.
1875 if test -f "$cache_file"; then
1876 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1877 echo "$as_me: loading cache $cache_file" >&6;}
1879 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1880 *) . "./$cache_file";;
1884 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1885 echo "$as_me: creating cache $cache_file" >&6;}
1889 # Check that the precious variables saved in the cache have kept the same
1891 ac_cache_corrupted=false
1892 for ac_var in $ac_precious_vars; do
1893 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1894 eval ac_new_set=\$ac_env_${ac_var}_set
1895 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1896 eval ac_new_val=\$ac_env_${ac_var}_value
1897 case $ac_old_set,$ac_new_set in
1899 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1900 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1901 ac_cache_corrupted=: ;;
1903 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1904 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1905 ac_cache_corrupted=: ;;
1908 if test "x$ac_old_val" != "x$ac_new_val"; then
1909 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1910 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1911 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1912 echo "$as_me: former value: $ac_old_val" >&2;}
1913 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1914 echo "$as_me: current value: $ac_new_val" >&2;}
1915 ac_cache_corrupted=:
1918 # Pass precious variables to config.status.
1919 if test "$ac_new_set" = set; then
1921 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1922 *) ac_arg=$ac_var=$ac_new_val ;;
1924 case " $ac_configure_args " in
1925 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1926 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1930 if $ac_cache_corrupted; then
1931 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1932 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1933 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1934 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1935 { (exit 1); exit 1; }; }
1955 ac_cpp='$CPP $CPPFLAGS'
1956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1963 GENERIC_MAJOR_VERSION=1
1964 GENERIC_MINOR_VERSION=4
1965 GENERIC_MICRO_VERSION=6
1966 GENERIC_VERSION=$GENERIC_MAJOR_VERSION.$GENERIC_MINOR_VERSION.$GENERIC_MICRO_VERSION
1972 #shared library versioning
1973 GENERIC_LIBRARY_VERSION=2:0:1
1977 # current:revision:age
1979 # | | +- increment if interfaces have been added
1980 # | | set to zero if interfaces have been removed
1982 # | +- increment if source code has changed
1983 # | set to zero if current is incremented
1984 # +- increment if interfaces have been added, removed or changed
1988 VERSION=$GENERIC_VERSION
1990 am__api_version="1.9"
1992 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1993 if test -f "$ac_dir/install-sh"; then
1995 ac_install_sh="$ac_aux_dir/install-sh -c"
1997 elif test -f "$ac_dir/install.sh"; then
1999 ac_install_sh="$ac_aux_dir/install.sh -c"
2001 elif test -f "$ac_dir/shtool"; then
2003 ac_install_sh="$ac_aux_dir/shtool install -c"
2007 if test -z "$ac_aux_dir"; then
2008 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2009 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2010 { (exit 1); exit 1; }; }
2013 # These three variables are undocumented and unsupported,
2014 # and are intended to be withdrawn in a future Autoconf release.
2015 # They can cause serious problems if a builder's source tree is in a directory
2016 # whose full name contains unusual characters.
2017 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2018 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2019 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2022 # Find a good install program. We prefer a C program (faster),
2023 # so one script is as good as another. But avoid the broken or
2024 # incompatible versions:
2025 # SysV /etc/install, /usr/sbin/install
2026 # SunOS /usr/etc/install
2027 # IRIX /sbin/install
2029 # AmigaOS /C/install, which installs bootblocks on floppy discs
2030 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2031 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2032 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2033 # OS/2's system install, which has a completely different semantic
2034 # ./install, which can be erroneously created by make from ./install.sh.
2035 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2036 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2037 if test -z "$INSTALL"; then
2038 if test "${ac_cv_path_install+set}" = set; then
2039 echo $ECHO_N "(cached) $ECHO_C" >&6
2041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2045 test -z "$as_dir" && as_dir=.
2046 # Account for people who put trailing slashes in PATH elements.
2048 ./ | .// | /cC/* | \
2049 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2050 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2053 # OSF1 and SCO ODT 3.0 have their own names for install.
2054 # Don't use installbsd from OSF since it installs stuff as root
2056 for ac_prog in ginstall scoinst install; do
2057 for ac_exec_ext in '' $ac_executable_extensions; do
2058 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2059 if test $ac_prog = install &&
2060 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2061 # AIX install. It has an incompatible calling convention.
2063 elif test $ac_prog = install &&
2064 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2065 # program-specific install script used by HP pwplus--don't use.
2068 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2081 if test "${ac_cv_path_install+set}" = set; then
2082 INSTALL=$ac_cv_path_install
2084 # As a last resort, use the slow shell script. Don't cache a
2085 # value for INSTALL within a source directory, because that will
2086 # break other packages using the cache if that directory is
2087 # removed, or if the value is a relative name.
2088 INSTALL=$ac_install_sh
2091 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2092 echo "${ECHO_T}$INSTALL" >&6; }
2094 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2095 # It thinks the first close brace ends the variable substitution.
2096 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2098 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2100 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2102 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2103 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2106 echo timestamp > conftest.file
2107 # Do `set' in a subshell so we don't clobber the current shell's
2108 # arguments. Must try -L first in case configure is actually a
2109 # symlink; some systems play weird games with the mod time of symlinks
2110 # (eg FreeBSD returns the mod time of the symlink's containing
2113 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2114 if test "$*" = "X"; then
2116 set X `ls -t $srcdir/configure conftest.file`
2119 if test "$*" != "X $srcdir/configure conftest.file" \
2120 && test "$*" != "X conftest.file $srcdir/configure"; then
2122 # If neither matched, then we have a broken ls. This can happen
2123 # if, for instance, CONFIG_SHELL is bash and it inherits a
2124 # broken ls alias from the environment. This has actually
2125 # happened. Such a system could not be considered "sane".
2126 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2127 alias in your environment" >&5
2128 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2129 alias in your environment" >&2;}
2130 { (exit 1); exit 1; }; }
2133 test "$2" = conftest.file
2139 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2140 Check your system clock" >&5
2141 echo "$as_me: error: newly created file is older than distributed files!
2142 Check your system clock" >&2;}
2143 { (exit 1); exit 1; }; }
2145 { echo "$as_me:$LINENO: result: yes" >&5
2146 echo "${ECHO_T}yes" >&6; }
2147 test "$program_prefix" != NONE &&
2148 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2149 # Use a double $ so make ignores it.
2150 test "$program_suffix" != NONE &&
2151 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2152 # Double any \ or $. echo might interpret backslashes.
2153 # By default was `s,x,x', remove it if useless.
2154 cat <<\_ACEOF >conftest.sed
2155 s/[\\$]/&&/g;s/;s,x,x,$//
2157 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2160 # expand $ac_aux_dir to an absolute path
2161 am_aux_dir=`cd $ac_aux_dir && pwd`
2163 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2164 # Use eval to expand $SHELL
2165 if eval "$MISSING --run true"; then
2166 am_missing_run="$MISSING --run "
2169 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2170 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2173 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2174 # We used to keeping the `.' as first argument, in order to
2175 # allow $(mkdir_p) to be used without argument. As in
2176 # $(mkdir_p) $(somedir)
2177 # where $(somedir) is conditionally defined. However this is wrong
2179 # 1. if the package is installed by a user who cannot write `.'
2180 # make install will fail,
2181 # 2. the above comment should most certainly read
2182 # $(mkdir_p) $(DESTDIR)$(somedir)
2183 # so it does not work when $(somedir) is undefined and
2184 # $(DESTDIR) is not.
2185 # To support the latter case, we have to write
2186 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2187 # so the `.' trick is pointless.
2188 mkdir_p='mkdir -p --'
2190 # On NextStep and OpenStep, the `mkdir' command does not
2191 # recognize any option. It will interpret all options as
2192 # directories to create, and then abort because `.' already
2194 for d in ./-p ./--version;
2196 test -d $d && rmdir $d
2198 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2199 if test -f "$ac_aux_dir/mkinstalldirs"; then
2200 mkdir_p='$(mkinstalldirs)'
2202 mkdir_p='$(install_sh) -d'
2206 for ac_prog in gawk mawk nawk awk
2208 # Extract the first word of "$ac_prog", so it can be a program name with args.
2209 set dummy $ac_prog; ac_word=$2
2210 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2212 if test "${ac_cv_prog_AWK+set}" = set; then
2213 echo $ECHO_N "(cached) $ECHO_C" >&6
2215 if test -n "$AWK"; then
2216 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2222 test -z "$as_dir" && as_dir=.
2223 for ac_exec_ext in '' $ac_executable_extensions; do
2224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2225 ac_cv_prog_AWK="$ac_prog"
2226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2236 if test -n "$AWK"; then
2237 { echo "$as_me:$LINENO: result: $AWK" >&5
2238 echo "${ECHO_T}$AWK" >&6; }
2240 { echo "$as_me:$LINENO: result: no" >&5
2241 echo "${ECHO_T}no" >&6; }
2245 test -n "$AWK" && break
2248 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2249 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2250 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2251 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2252 echo $ECHO_N "(cached) $ECHO_C" >&6
2254 cat >conftest.make <<\_ACEOF
2257 @echo '@@@%%%=$(MAKE)=@@@%%%'
2259 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2260 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2262 eval ac_cv_prog_make_${ac_make}_set=yes;;
2264 eval ac_cv_prog_make_${ac_make}_set=no;;
2268 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2269 { echo "$as_me:$LINENO: result: yes" >&5
2270 echo "${ECHO_T}yes" >&6; }
2273 { echo "$as_me:$LINENO: result: no" >&5
2274 echo "${ECHO_T}no" >&6; }
2275 SET_MAKE="MAKE=${MAKE-make}"
2278 rm -rf .tst 2>/dev/null
2279 mkdir .tst 2>/dev/null
2280 if test -d .tst; then
2285 rmdir .tst 2>/dev/null
2287 # test to see if srcdir already configured
2288 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2289 test -f $srcdir/config.status; then
2290 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2291 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2292 { (exit 1); exit 1; }; }
2295 # test whether we have cygpath
2296 if test -z "$CYGPATH_W"; then
2297 if (cygpath --version) >/dev/null 2>/dev/null; then
2298 CYGPATH_W='cygpath -w'
2305 # Define the identity of the package.
2307 VERSION=$GENERIC_VERSION
2310 cat >>confdefs.h <<_ACEOF
2311 #define PACKAGE "$PACKAGE"
2315 cat >>confdefs.h <<_ACEOF
2316 #define VERSION "$VERSION"
2319 # Some tools Automake needs.
2321 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2324 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2327 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2330 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2333 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2335 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2337 # Installed binaries are usually stripped using `strip' when the user
2338 # run `make install-strip'. However `strip' might not be the right
2339 # tool to use in cross-compilation environments, therefore Automake
2340 # will honor the `STRIP' environment variable to overrule this program.
2341 if test "$cross_compiling" != no; then
2342 if test -n "$ac_tool_prefix"; then
2343 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2344 set dummy ${ac_tool_prefix}strip; ac_word=$2
2345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2347 if test "${ac_cv_prog_STRIP+set}" = set; then
2348 echo $ECHO_N "(cached) $ECHO_C" >&6
2350 if test -n "$STRIP"; then
2351 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2357 test -z "$as_dir" && as_dir=.
2358 for ac_exec_ext in '' $ac_executable_extensions; do
2359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2360 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2370 STRIP=$ac_cv_prog_STRIP
2371 if test -n "$STRIP"; then
2372 { echo "$as_me:$LINENO: result: $STRIP" >&5
2373 echo "${ECHO_T}$STRIP" >&6; }
2375 { echo "$as_me:$LINENO: result: no" >&5
2376 echo "${ECHO_T}no" >&6; }
2381 if test -z "$ac_cv_prog_STRIP"; then
2383 # Extract the first word of "strip", so it can be a program name with args.
2384 set dummy strip; ac_word=$2
2385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2387 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2388 echo $ECHO_N "(cached) $ECHO_C" >&6
2390 if test -n "$ac_ct_STRIP"; then
2391 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2397 test -z "$as_dir" && as_dir=.
2398 for ac_exec_ext in '' $ac_executable_extensions; do
2399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2400 ac_cv_prog_ac_ct_STRIP="strip"
2401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2410 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2411 if test -n "$ac_ct_STRIP"; then
2412 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2413 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2415 { echo "$as_me:$LINENO: result: no" >&5
2416 echo "${ECHO_T}no" >&6; }
2419 if test "x$ac_ct_STRIP" = x; then
2422 case $cross_compiling:$ac_tool_warned in
2424 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2425 whose name does not start with the host triplet. If you think this
2426 configuration is useful to you, please write to autoconf@gnu.org." >&5
2427 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2428 whose name does not start with the host triplet. If you think this
2429 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2430 ac_tool_warned=yes ;;
2435 STRIP="$ac_cv_prog_STRIP"
2439 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2441 # We need awk for the "check" target. The system "awk" is bad on
2443 # Always define AMTAR for backward compatibility.
2445 AMTAR=${AMTAR-"${am_missing_run}tar"}
2447 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2454 ac_config_headers="$ac_config_headers cairomm/cairommconfig.h"
2458 ac_cpp='$CXXCPP $CPPFLAGS'
2459 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2460 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2461 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2462 if test -z "$CXX"; then
2463 if test -n "$CCC"; then
2466 if test -n "$ac_tool_prefix"; then
2467 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2469 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2470 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2471 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2473 if test "${ac_cv_prog_CXX+set}" = set; then
2474 echo $ECHO_N "(cached) $ECHO_C" >&6
2476 if test -n "$CXX"; then
2477 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2483 test -z "$as_dir" && as_dir=.
2484 for ac_exec_ext in '' $ac_executable_extensions; do
2485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2486 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2497 if test -n "$CXX"; then
2498 { echo "$as_me:$LINENO: result: $CXX" >&5
2499 echo "${ECHO_T}$CXX" >&6; }
2501 { echo "$as_me:$LINENO: result: no" >&5
2502 echo "${ECHO_T}no" >&6; }
2506 test -n "$CXX" && break
2509 if test -z "$CXX"; then
2511 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2513 # Extract the first word of "$ac_prog", so it can be a program name with args.
2514 set dummy $ac_prog; ac_word=$2
2515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2517 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2518 echo $ECHO_N "(cached) $ECHO_C" >&6
2520 if test -n "$ac_ct_CXX"; then
2521 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527 test -z "$as_dir" && as_dir=.
2528 for ac_exec_ext in '' $ac_executable_extensions; do
2529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2530 ac_cv_prog_ac_ct_CXX="$ac_prog"
2531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2540 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2541 if test -n "$ac_ct_CXX"; then
2542 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2543 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2545 { echo "$as_me:$LINENO: result: no" >&5
2546 echo "${ECHO_T}no" >&6; }
2550 test -n "$ac_ct_CXX" && break
2553 if test "x$ac_ct_CXX" = x; then
2556 case $cross_compiling:$ac_tool_warned in
2558 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2559 whose name does not start with the host triplet. If you think this
2560 configuration is useful to you, please write to autoconf@gnu.org." >&5
2561 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2562 whose name does not start with the host triplet. If you think this
2563 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2564 ac_tool_warned=yes ;;
2572 # Provide some information about the compiler.
2573 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2574 ac_compiler=`set X $ac_compile; echo $2`
2575 { (ac_try="$ac_compiler --version >&5"
2577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2578 *) ac_try_echo=$ac_try;;
2580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2581 (eval "$ac_compiler --version >&5") 2>&5
2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); }
2585 { (ac_try="$ac_compiler -v >&5"
2587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2588 *) ac_try_echo=$ac_try;;
2590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2591 (eval "$ac_compiler -v >&5") 2>&5
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }
2595 { (ac_try="$ac_compiler -V >&5"
2597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2598 *) ac_try_echo=$ac_try;;
2600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2601 (eval "$ac_compiler -V >&5") 2>&5
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); }
2606 cat >conftest.$ac_ext <<_ACEOF
2609 cat confdefs.h >>conftest.$ac_ext
2610 cat >>conftest.$ac_ext <<_ACEOF
2611 /* end confdefs.h. */
2621 ac_clean_files_save=$ac_clean_files
2622 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2623 # Try to create an executable without -o first, disregard a.out.
2624 # It will help us diagnose broken compilers, and finding out an intuition
2626 { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2627 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2628 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2630 # List of possible output files, starting from the most likely.
2631 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2632 # only as a last resort. b.out is created by i960 compilers.
2633 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2635 # The IRIX 6 linker writes into existing files which may not be
2636 # executable, retaining their permissions. Remove them first so a
2637 # subsequent execution test works.
2639 for ac_file in $ac_files
2642 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2643 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2648 if { (ac_try="$ac_link_default"
2650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2651 *) ac_try_echo=$ac_try;;
2653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2654 (eval "$ac_link_default") 2>&5
2656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657 (exit $ac_status); }; then
2658 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2659 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2660 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2661 # so that the user can short-circuit this test for compilers unknown to
2663 for ac_file in $ac_files ''
2665 test -f "$ac_file" || continue
2667 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2670 # We found the default executable, but exeext='' is most
2674 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2676 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2678 # We set ac_cv_exeext here because the later test for it is not
2679 # safe: cross compilers may not add the suffix if given an `-o'
2680 # argument, so we may need to know it at that point already.
2681 # Even if this section looks crufty: it has the advantage of
2688 test "$ac_cv_exeext" = no && ac_cv_exeext=
2694 { echo "$as_me:$LINENO: result: $ac_file" >&5
2695 echo "${ECHO_T}$ac_file" >&6; }
2696 if test -z "$ac_file"; then
2697 echo "$as_me: failed program was:" >&5
2698 sed 's/^/| /' conftest.$ac_ext >&5
2700 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2701 See \`config.log' for more details." >&5
2702 echo "$as_me: error: C++ compiler cannot create executables
2703 See \`config.log' for more details." >&2;}
2704 { (exit 77); exit 77; }; }
2707 ac_exeext=$ac_cv_exeext
2709 # Check that the compiler produces executables we can run. If not, either
2710 # the compiler is broken, or we cross compile.
2711 { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2712 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2713 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2714 # If not cross compiling, check that we can run a simple program.
2715 if test "$cross_compiling" != yes; then
2716 if { ac_try='./$ac_file'
2717 { (case "(($ac_try" in
2718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2719 *) ac_try_echo=$ac_try;;
2721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2722 (eval "$ac_try") 2>&5
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); }; }; then
2728 if test "$cross_compiling" = maybe; then
2731 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2732 If you meant to cross compile, use \`--host'.
2733 See \`config.log' for more details." >&5
2734 echo "$as_me: error: cannot run C++ compiled programs.
2735 If you meant to cross compile, use \`--host'.
2736 See \`config.log' for more details." >&2;}
2737 { (exit 1); exit 1; }; }
2741 { echo "$as_me:$LINENO: result: yes" >&5
2742 echo "${ECHO_T}yes" >&6; }
2744 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2745 ac_clean_files=$ac_clean_files_save
2746 # Check that the compiler produces executables we can run. If not, either
2747 # the compiler is broken, or we cross compile.
2748 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2749 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2750 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2751 echo "${ECHO_T}$cross_compiling" >&6; }
2753 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2754 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2755 if { (ac_try="$ac_link"
2757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2758 *) ac_try_echo=$ac_try;;
2760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2761 (eval "$ac_link") 2>&5
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); }; then
2765 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2766 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2767 # work properly (i.e., refer to `conftest.exe'), while it won't with
2769 for ac_file in conftest.exe conftest conftest.*; do
2770 test -f "$ac_file" || continue
2772 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2773 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2779 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2780 See \`config.log' for more details." >&5
2781 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2782 See \`config.log' for more details." >&2;}
2783 { (exit 1); exit 1; }; }
2786 rm -f conftest$ac_cv_exeext
2787 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2788 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2790 rm -f conftest.$ac_ext
2791 EXEEXT=$ac_cv_exeext
2793 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2794 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2795 if test "${ac_cv_objext+set}" = set; then
2796 echo $ECHO_N "(cached) $ECHO_C" >&6
2798 cat >conftest.$ac_ext <<_ACEOF
2801 cat confdefs.h >>conftest.$ac_ext
2802 cat >>conftest.$ac_ext <<_ACEOF
2803 /* end confdefs.h. */
2813 rm -f conftest.o conftest.obj
2814 if { (ac_try="$ac_compile"
2816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2817 *) ac_try_echo=$ac_try;;
2819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2820 (eval "$ac_compile") 2>&5
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); }; then
2824 for ac_file in conftest.o conftest.obj conftest.*; do
2825 test -f "$ac_file" || continue;
2827 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2828 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2833 echo "$as_me: failed program was:" >&5
2834 sed 's/^/| /' conftest.$ac_ext >&5
2836 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2837 See \`config.log' for more details." >&5
2838 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2839 See \`config.log' for more details." >&2;}
2840 { (exit 1); exit 1; }; }
2843 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2845 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2846 echo "${ECHO_T}$ac_cv_objext" >&6; }
2847 OBJEXT=$ac_cv_objext
2849 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2850 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2851 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2852 echo $ECHO_N "(cached) $ECHO_C" >&6
2854 cat >conftest.$ac_ext <<_ACEOF
2857 cat confdefs.h >>conftest.$ac_ext
2858 cat >>conftest.$ac_ext <<_ACEOF
2859 /* end confdefs.h. */
2872 rm -f conftest.$ac_objext
2873 if { (ac_try="$ac_compile"
2875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876 *) ac_try_echo=$ac_try;;
2878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2879 (eval "$ac_compile") 2>conftest.er1
2881 grep -v '^ *+' conftest.er1 >conftest.err
2883 cat conftest.err >&5
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); } && {
2886 test -z "$ac_cxx_werror_flag" ||
2887 test ! -s conftest.err
2888 } && test -s conftest.$ac_objext; then
2891 echo "$as_me: failed program was:" >&5
2892 sed 's/^/| /' conftest.$ac_ext >&5
2897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2898 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2901 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2902 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2903 GXX=`test $ac_compiler_gnu = yes && echo yes`
2904 ac_test_CXXFLAGS=${CXXFLAGS+set}
2905 ac_save_CXXFLAGS=$CXXFLAGS
2906 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2907 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2908 if test "${ac_cv_prog_cxx_g+set}" = set; then
2909 echo $ECHO_N "(cached) $ECHO_C" >&6
2911 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2912 ac_cxx_werror_flag=yes
2915 cat >conftest.$ac_ext <<_ACEOF
2918 cat confdefs.h >>conftest.$ac_ext
2919 cat >>conftest.$ac_ext <<_ACEOF
2920 /* end confdefs.h. */
2930 rm -f conftest.$ac_objext
2931 if { (ac_try="$ac_compile"
2933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2934 *) ac_try_echo=$ac_try;;
2936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2937 (eval "$ac_compile") 2>conftest.er1
2939 grep -v '^ *+' conftest.er1 >conftest.err
2941 cat conftest.err >&5
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); } && {
2944 test -z "$ac_cxx_werror_flag" ||
2945 test ! -s conftest.err
2946 } && test -s conftest.$ac_objext; then
2947 ac_cv_prog_cxx_g=yes
2949 echo "$as_me: failed program was:" >&5
2950 sed 's/^/| /' conftest.$ac_ext >&5
2953 cat >conftest.$ac_ext <<_ACEOF
2956 cat confdefs.h >>conftest.$ac_ext
2957 cat >>conftest.$ac_ext <<_ACEOF
2958 /* end confdefs.h. */
2968 rm -f conftest.$ac_objext
2969 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
2977 grep -v '^ *+' conftest.er1 >conftest.err
2979 cat conftest.err >&5
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); } && {
2982 test -z "$ac_cxx_werror_flag" ||
2983 test ! -s conftest.err
2984 } && test -s conftest.$ac_objext; then
2987 echo "$as_me: failed program was:" >&5
2988 sed 's/^/| /' conftest.$ac_ext >&5
2990 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2992 cat >conftest.$ac_ext <<_ACEOF
2995 cat confdefs.h >>conftest.$ac_ext
2996 cat >>conftest.$ac_ext <<_ACEOF
2997 /* end confdefs.h. */
3007 rm -f conftest.$ac_objext
3008 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3016 grep -v '^ *+' conftest.er1 >conftest.err
3018 cat conftest.err >&5
3019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020 (exit $ac_status); } && {
3021 test -z "$ac_cxx_werror_flag" ||
3022 test ! -s conftest.err
3023 } && test -s conftest.$ac_objext; then
3024 ac_cv_prog_cxx_g=yes
3026 echo "$as_me: failed program was:" >&5
3027 sed 's/^/| /' conftest.$ac_ext >&5
3032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3039 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3041 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3042 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3043 if test "$ac_test_CXXFLAGS" = set; then
3044 CXXFLAGS=$ac_save_CXXFLAGS
3045 elif test $ac_cv_prog_cxx_g = yes; then
3046 if test "$GXX" = yes; then
3052 if test "$GXX" = yes; then
3059 ac_cpp='$CPP $CPPFLAGS'
3060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3063 DEPDIR="${am__leading_dot}deps"
3065 ac_config_commands="$ac_config_commands depfiles"
3068 am_make=${MAKE-make}
3069 cat > confinc << 'END'
3074 # If we don't find an include directive, just comment out the code.
3075 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3076 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3080 # First try GNU make style include.
3081 echo "include confinc" > confmf
3082 # We grep out `Entering directory' and `Leaving directory'
3083 # messages which can occur if `w' ends up in MAKEFLAGS.
3084 # In particular we don't look at `^make:' because GNU make might
3085 # be invoked under some other name (usually "gmake"), in which
3086 # case it prints its new name instead of `make'.
3087 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3092 # Now try BSD make style include.
3093 if test "$am__include" = "#"; then
3094 echo '.include "confinc"' > confmf
3095 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3096 am__include=.include
3103 { echo "$as_me:$LINENO: result: $_am_result" >&5
3104 echo "${ECHO_T}$_am_result" >&6; }
3105 rm -f confinc confmf
3107 # Check whether --enable-dependency-tracking was given.
3108 if test "${enable_dependency_tracking+set}" = set; then
3109 enableval=$enable_dependency_tracking;
3112 if test "x$enable_dependency_tracking" != xno; then
3113 am_depcomp="$ac_aux_dir/depcomp"
3118 if test "x$enable_dependency_tracking" != xno; then
3129 depcc="$CXX" am_compiler_list=
3131 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3132 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3133 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3134 echo $ECHO_N "(cached) $ECHO_C" >&6
3136 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3137 # We make a subdir and do the tests there. Otherwise we can end up
3138 # making bogus files that we don't know about and never remove. For
3139 # instance it was reported that on HP-UX the gcc test will end up
3140 # making a dummy file named `D' -- because `-MD' means `put the output
3143 # Copy depcomp to subdir because otherwise we won't find it if we're
3144 # using a relative directory.
3145 cp "$am_depcomp" conftest.dir
3147 # We will build objects and dependencies in a subdirectory because
3148 # it helps to detect inapplicable dependency modes. For instance
3149 # both Tru64's cc and ICC support -MD to output dependencies as a
3150 # side effect of compilation, but ICC will put the dependencies in
3151 # the current directory while Tru64 will put them in the object
3155 am_cv_CXX_dependencies_compiler_type=none
3156 if test "$am_compiler_list" = ""; then
3157 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3159 for depmode in $am_compiler_list; do
3160 # Setup a source with many dependencies, because some compilers
3161 # like to wrap large dependency lists on column 80 (with \), and
3162 # we should not choose a depcomp mode which is confused by this.
3164 # We need to recreate these files for each test, as the compiler may
3165 # overwrite some of them when testing with obscure command lines.
3166 # This happens at least with the AIX C compiler.
3168 for i in 1 2 3 4 5 6; do
3169 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3170 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3171 # Solaris 8's {/usr,}/bin/sh.
3172 touch sub/conftst$i.h
3174 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3178 # after this tag, mechanisms are not by side-effect, so they'll
3179 # only be used when explicitly requested
3180 if test "x$enable_dependency_tracking" = xyes; then
3188 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3189 # mode. It turns out that the SunPro C++ compiler does not properly
3190 # handle `-M -o', and we need to detect this.
3191 if depmode=$depmode \
3192 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3193 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3194 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3195 >/dev/null 2>conftest.err &&
3196 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3197 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3198 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3199 # icc doesn't choke on unknown options, it will just issue warnings
3200 # or remarks (even with -Werror). So we grep stderr for any message
3201 # that says an option was ignored or not supported.
3202 # When given -MP, icc 7.0 and 7.1 complain thusly:
3203 # icc: Command line warning: ignoring option '-M'; no argument required
3204 # The diagnosis changed in icc 8.0:
3205 # icc: Command line remark: option '-MP' not supported
3206 if (grep 'ignoring option' conftest.err ||
3207 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3208 am_cv_CXX_dependencies_compiler_type=$depmode
3217 am_cv_CXX_dependencies_compiler_type=none
3221 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3222 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3223 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3228 test "x$enable_dependency_tracking" != xno \
3229 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3230 am__fastdepCXX_TRUE=
3231 am__fastdepCXX_FALSE='#'
3233 am__fastdepCXX_TRUE='#'
3234 am__fastdepCXX_FALSE=
3239 ac_cpp='$CXXCPP $CPPFLAGS'
3240 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3241 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3242 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3243 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3244 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
3245 if test -z "$CXXCPP"; then
3246 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3247 echo $ECHO_N "(cached) $ECHO_C" >&6
3249 # Double quotes because CXXCPP needs to be expanded
3250 for CXXCPP in "$CXX -E" "/lib/cpp"
3253 for ac_cxx_preproc_warn_flag in '' yes
3255 # Use a header file that comes with gcc, so configuring glibc
3256 # with a fresh cross-compiler works.
3257 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3258 # <limits.h> exists even on freestanding compilers.
3259 # On the NeXT, cc -E runs the code through the compiler's parser,
3260 # not just through cpp. "Syntax error" is here to catch this case.
3261 cat >conftest.$ac_ext <<_ACEOF
3264 cat confdefs.h >>conftest.$ac_ext
3265 cat >>conftest.$ac_ext <<_ACEOF
3266 /* end confdefs.h. */
3268 # include <limits.h>
3270 # include <assert.h>
3274 if { (ac_try="$ac_cpp conftest.$ac_ext"
3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3282 grep -v '^ *+' conftest.er1 >conftest.err
3284 cat conftest.err >&5
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); } >/dev/null && {
3287 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3288 test ! -s conftest.err
3292 echo "$as_me: failed program was:" >&5
3293 sed 's/^/| /' conftest.$ac_ext >&5
3295 # Broken: fails on valid input.
3299 rm -f conftest.err conftest.$ac_ext
3301 # OK, works on sane cases. Now check whether nonexistent headers
3302 # can be detected and how.
3303 cat >conftest.$ac_ext <<_ACEOF
3306 cat confdefs.h >>conftest.$ac_ext
3307 cat >>conftest.$ac_ext <<_ACEOF
3308 /* end confdefs.h. */
3309 #include <ac_nonexistent.h>
3311 if { (ac_try="$ac_cpp conftest.$ac_ext"
3313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314 *) ac_try_echo=$ac_try;;
3316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3319 grep -v '^ *+' conftest.er1 >conftest.err
3321 cat conftest.err >&5
3322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323 (exit $ac_status); } >/dev/null && {
3324 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3325 test ! -s conftest.err
3327 # Broken: success on invalid input.
3330 echo "$as_me: failed program was:" >&5
3331 sed 's/^/| /' conftest.$ac_ext >&5
3333 # Passes both tests.
3338 rm -f conftest.err conftest.$ac_ext
3341 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3342 rm -f conftest.err conftest.$ac_ext
3343 if $ac_preproc_ok; then
3348 ac_cv_prog_CXXCPP=$CXXCPP
3351 CXXCPP=$ac_cv_prog_CXXCPP
3353 ac_cv_prog_CXXCPP=$CXXCPP
3355 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
3356 echo "${ECHO_T}$CXXCPP" >&6; }
3358 for ac_cxx_preproc_warn_flag in '' yes
3360 # Use a header file that comes with gcc, so configuring glibc
3361 # with a fresh cross-compiler works.
3362 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3363 # <limits.h> exists even on freestanding compilers.
3364 # On the NeXT, cc -E runs the code through the compiler's parser,
3365 # not just through cpp. "Syntax error" is here to catch this case.
3366 cat >conftest.$ac_ext <<_ACEOF
3369 cat confdefs.h >>conftest.$ac_ext
3370 cat >>conftest.$ac_ext <<_ACEOF
3371 /* end confdefs.h. */
3373 # include <limits.h>
3375 # include <assert.h>
3379 if { (ac_try="$ac_cpp conftest.$ac_ext"
3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382 *) ac_try_echo=$ac_try;;
3384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3385 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3387 grep -v '^ *+' conftest.er1 >conftest.err
3389 cat conftest.err >&5
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); } >/dev/null && {
3392 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3393 test ! -s conftest.err
3397 echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.$ac_ext >&5
3400 # Broken: fails on valid input.
3404 rm -f conftest.err conftest.$ac_ext
3406 # OK, works on sane cases. Now check whether nonexistent headers
3407 # can be detected and how.
3408 cat >conftest.$ac_ext <<_ACEOF
3411 cat confdefs.h >>conftest.$ac_ext
3412 cat >>conftest.$ac_ext <<_ACEOF
3413 /* end confdefs.h. */
3414 #include <ac_nonexistent.h>
3416 if { (ac_try="$ac_cpp conftest.$ac_ext"
3418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419 *) ac_try_echo=$ac_try;;
3421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3422 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3424 grep -v '^ *+' conftest.er1 >conftest.err
3426 cat conftest.err >&5
3427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428 (exit $ac_status); } >/dev/null && {
3429 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3430 test ! -s conftest.err
3432 # Broken: success on invalid input.
3435 echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.$ac_ext >&5
3438 # Passes both tests.
3443 rm -f conftest.err conftest.$ac_ext
3446 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3447 rm -f conftest.err conftest.$ac_ext
3448 if $ac_preproc_ok; then
3451 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3452 See \`config.log' for more details." >&5
3453 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3454 See \`config.log' for more details." >&2;}
3455 { (exit 1); exit 1; }; }
3459 ac_cpp='$CPP $CPPFLAGS'
3460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3465 ac_cpp='$CXXCPP $CPPFLAGS'
3466 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3467 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3468 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3470 # Find a good install program. We prefer a C program (faster),
3471 # so one script is as good as another. But avoid the broken or
3472 # incompatible versions:
3473 # SysV /etc/install, /usr/sbin/install
3474 # SunOS /usr/etc/install
3475 # IRIX /sbin/install
3477 # AmigaOS /C/install, which installs bootblocks on floppy discs
3478 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3479 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3480 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3481 # OS/2's system install, which has a completely different semantic
3482 # ./install, which can be erroneously created by make from ./install.sh.
3483 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3484 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3485 if test -z "$INSTALL"; then
3486 if test "${ac_cv_path_install+set}" = set; then
3487 echo $ECHO_N "(cached) $ECHO_C" >&6
3489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3493 test -z "$as_dir" && as_dir=.
3494 # Account for people who put trailing slashes in PATH elements.
3496 ./ | .// | /cC/* | \
3497 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3498 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3501 # OSF1 and SCO ODT 3.0 have their own names for install.
3502 # Don't use installbsd from OSF since it installs stuff as root
3504 for ac_prog in ginstall scoinst install; do
3505 for ac_exec_ext in '' $ac_executable_extensions; do
3506 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3507 if test $ac_prog = install &&
3508 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3509 # AIX install. It has an incompatible calling convention.
3511 elif test $ac_prog = install &&
3512 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3513 # program-specific install script used by HP pwplus--don't use.
3516 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3529 if test "${ac_cv_path_install+set}" = set; then
3530 INSTALL=$ac_cv_path_install
3532 # As a last resort, use the slow shell script. Don't cache a
3533 # value for INSTALL within a source directory, because that will
3534 # break other packages using the cache if that directory is
3535 # removed, or if the value is a relative name.
3536 INSTALL=$ac_install_sh
3539 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3540 echo "${ECHO_T}$INSTALL" >&6; }
3542 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3543 # It thinks the first close brace ends the variable substitution.
3544 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3546 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3548 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3552 # Check whether --enable-shared was given.
3553 if test "${enable_shared+set}" = set; then
3554 enableval=$enable_shared; p=${PACKAGE-default}
3556 yes) enable_shared=yes ;;
3557 no) enable_shared=no ;;
3560 # Look at the argument we got. We use all the common list separators.
3561 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3562 for pkg in $enableval; do
3564 if test "X$pkg" = "X$p"; then
3576 # Check whether --enable-static was given.
3577 if test "${enable_static+set}" = set; then
3578 enableval=$enable_static; p=${PACKAGE-default}
3580 yes) enable_static=yes ;;
3581 no) enable_static=no ;;
3584 # Look at the argument we got. We use all the common list separators.
3585 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3586 for pkg in $enableval; do
3588 if test "X$pkg" = "X$p"; then
3600 # Check whether --enable-fast-install was given.
3601 if test "${enable_fast_install+set}" = set; then
3602 enableval=$enable_fast_install; p=${PACKAGE-default}
3604 yes) enable_fast_install=yes ;;
3605 no) enable_fast_install=no ;;
3607 enable_fast_install=no
3608 # Look at the argument we got. We use all the common list separators.
3609 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3610 for pkg in $enableval; do
3612 if test "X$pkg" = "X$p"; then
3613 enable_fast_install=yes
3620 enable_fast_install=yes
3624 # Make sure we can run config.sub.
3625 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3626 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3627 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3628 { (exit 1); exit 1; }; }
3630 { echo "$as_me:$LINENO: checking build system type" >&5
3631 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3632 if test "${ac_cv_build+set}" = set; then
3633 echo $ECHO_N "(cached) $ECHO_C" >&6
3635 ac_build_alias=$build_alias
3636 test "x$ac_build_alias" = x &&
3637 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3638 test "x$ac_build_alias" = x &&
3639 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3640 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3641 { (exit 1); exit 1; }; }
3642 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3643 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3644 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3645 { (exit 1); exit 1; }; }
3648 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3649 echo "${ECHO_T}$ac_cv_build" >&6; }
3650 case $ac_cv_build in
3652 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3653 echo "$as_me: error: invalid value of canonical build" >&2;}
3654 { (exit 1); exit 1; }; };;
3657 ac_save_IFS=$IFS; IFS='-'
3663 # Remember, the first character of IFS is used to create $*,
3664 # except with old shells:
3667 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3670 { echo "$as_me:$LINENO: checking host system type" >&5
3671 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3672 if test "${ac_cv_host+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3675 if test "x$host_alias" = x; then
3676 ac_cv_host=$ac_cv_build
3678 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3679 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3680 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3681 { (exit 1); exit 1; }; }
3685 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3686 echo "${ECHO_T}$ac_cv_host" >&6; }
3689 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3690 echo "$as_me: error: invalid value of canonical host" >&2;}
3691 { (exit 1); exit 1; }; };;
3694 ac_save_IFS=$IFS; IFS='-'
3700 # Remember, the first character of IFS is used to create $*,
3701 # except with old shells:
3704 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3708 ac_cpp='$CPP $CPPFLAGS'
3709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3712 if test -n "$ac_tool_prefix"; then
3713 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3714 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3715 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3717 if test "${ac_cv_prog_CC+set}" = set; then
3718 echo $ECHO_N "(cached) $ECHO_C" >&6
3720 if test -n "$CC"; then
3721 ac_cv_prog_CC="$CC" # Let the user override the test.
3723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3727 test -z "$as_dir" && as_dir=.
3728 for ac_exec_ext in '' $ac_executable_extensions; do
3729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3730 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3741 if test -n "$CC"; then
3742 { echo "$as_me:$LINENO: result: $CC" >&5
3743 echo "${ECHO_T}$CC" >&6; }
3745 { echo "$as_me:$LINENO: result: no" >&5
3746 echo "${ECHO_T}no" >&6; }
3751 if test -z "$ac_cv_prog_CC"; then
3753 # Extract the first word of "gcc", so it can be a program name with args.
3754 set dummy gcc; ac_word=$2
3755 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3757 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
3760 if test -n "$ac_ct_CC"; then
3761 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3767 test -z "$as_dir" && as_dir=.
3768 for ac_exec_ext in '' $ac_executable_extensions; do
3769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3770 ac_cv_prog_ac_ct_CC="gcc"
3771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3780 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3781 if test -n "$ac_ct_CC"; then
3782 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3783 echo "${ECHO_T}$ac_ct_CC" >&6; }
3785 { echo "$as_me:$LINENO: result: no" >&5
3786 echo "${ECHO_T}no" >&6; }
3789 if test "x$ac_ct_CC" = x; then
3792 case $cross_compiling:$ac_tool_warned in
3794 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3795 whose name does not start with the host triplet. If you think this
3796 configuration is useful to you, please write to autoconf@gnu.org." >&5
3797 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3798 whose name does not start with the host triplet. If you think this
3799 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3800 ac_tool_warned=yes ;;
3808 if test -z "$CC"; then
3809 if test -n "$ac_tool_prefix"; then
3810 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3811 set dummy ${ac_tool_prefix}cc; ac_word=$2
3812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3814 if test "${ac_cv_prog_CC+set}" = set; then
3815 echo $ECHO_N "(cached) $ECHO_C" >&6
3817 if test -n "$CC"; then
3818 ac_cv_prog_CC="$CC" # Let the user override the test.
3820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3824 test -z "$as_dir" && as_dir=.
3825 for ac_exec_ext in '' $ac_executable_extensions; do
3826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3827 ac_cv_prog_CC="${ac_tool_prefix}cc"
3828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3838 if test -n "$CC"; then
3839 { echo "$as_me:$LINENO: result: $CC" >&5
3840 echo "${ECHO_T}$CC" >&6; }
3842 { echo "$as_me:$LINENO: result: no" >&5
3843 echo "${ECHO_T}no" >&6; }
3849 if test -z "$CC"; then
3850 # Extract the first word of "cc", so it can be a program name with args.
3851 set dummy cc; ac_word=$2
3852 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3854 if test "${ac_cv_prog_CC+set}" = set; then
3855 echo $ECHO_N "(cached) $ECHO_C" >&6
3857 if test -n "$CC"; then
3858 ac_cv_prog_CC="$CC" # Let the user override the test.
3861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865 test -z "$as_dir" && as_dir=.
3866 for ac_exec_ext in '' $ac_executable_extensions; do
3867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3868 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3869 ac_prog_rejected=yes
3873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3880 if test $ac_prog_rejected = yes; then
3881 # We found a bogon in the path, so make sure we never use it.
3882 set dummy $ac_cv_prog_CC
3884 if test $# != 0; then
3885 # We chose a different compiler from the bogus one.
3886 # However, it has the same basename, so the bogon will be chosen
3887 # first if we set CC to just the basename; use the full file name.
3889 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3895 if test -n "$CC"; then
3896 { echo "$as_me:$LINENO: result: $CC" >&5
3897 echo "${ECHO_T}$CC" >&6; }
3899 { echo "$as_me:$LINENO: result: no" >&5
3900 echo "${ECHO_T}no" >&6; }
3905 if test -z "$CC"; then
3906 if test -n "$ac_tool_prefix"; then
3907 for ac_prog in cl.exe
3909 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3910 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3913 if test "${ac_cv_prog_CC+set}" = set; then
3914 echo $ECHO_N "(cached) $ECHO_C" >&6
3916 if test -n "$CC"; then
3917 ac_cv_prog_CC="$CC" # Let the user override the test.
3919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3923 test -z "$as_dir" && as_dir=.
3924 for ac_exec_ext in '' $ac_executable_extensions; do
3925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3926 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3937 if test -n "$CC"; then
3938 { echo "$as_me:$LINENO: result: $CC" >&5
3939 echo "${ECHO_T}$CC" >&6; }
3941 { echo "$as_me:$LINENO: result: no" >&5
3942 echo "${ECHO_T}no" >&6; }
3946 test -n "$CC" && break
3949 if test -z "$CC"; then
3951 for ac_prog in cl.exe
3953 # Extract the first word of "$ac_prog", so it can be a program name with args.
3954 set dummy $ac_prog; ac_word=$2
3955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3957 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3958 echo $ECHO_N "(cached) $ECHO_C" >&6
3960 if test -n "$ac_ct_CC"; then
3961 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3967 test -z "$as_dir" && as_dir=.
3968 for ac_exec_ext in '' $ac_executable_extensions; do
3969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3970 ac_cv_prog_ac_ct_CC="$ac_prog"
3971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3980 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3981 if test -n "$ac_ct_CC"; then
3982 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3983 echo "${ECHO_T}$ac_ct_CC" >&6; }
3985 { echo "$as_me:$LINENO: result: no" >&5
3986 echo "${ECHO_T}no" >&6; }
3990 test -n "$ac_ct_CC" && break
3993 if test "x$ac_ct_CC" = x; then
3996 case $cross_compiling:$ac_tool_warned in
3998 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3999 whose name does not start with the host triplet. If you think this
4000 configuration is useful to you, please write to autoconf@gnu.org." >&5
4001 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4002 whose name does not start with the host triplet. If you think this
4003 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4004 ac_tool_warned=yes ;;
4013 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4014 See \`config.log' for more details." >&5
4015 echo "$as_me: error: no acceptable C compiler found in \$PATH
4016 See \`config.log' for more details." >&2;}
4017 { (exit 1); exit 1; }; }
4019 # Provide some information about the compiler.
4020 echo "$as_me:$LINENO: checking for C compiler version" >&5
4021 ac_compiler=`set X $ac_compile; echo $2`
4022 { (ac_try="$ac_compiler --version >&5"
4024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4025 *) ac_try_echo=$ac_try;;
4027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4028 (eval "$ac_compiler --version >&5") 2>&5
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); }
4032 { (ac_try="$ac_compiler -v >&5"
4034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4035 *) ac_try_echo=$ac_try;;
4037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4038 (eval "$ac_compiler -v >&5") 2>&5
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); }
4042 { (ac_try="$ac_compiler -V >&5"
4044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4045 *) ac_try_echo=$ac_try;;
4047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4048 (eval "$ac_compiler -V >&5") 2>&5
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); }
4053 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4054 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4055 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4056 echo $ECHO_N "(cached) $ECHO_C" >&6
4058 cat >conftest.$ac_ext <<_ACEOF
4061 cat confdefs.h >>conftest.$ac_ext
4062 cat >>conftest.$ac_ext <<_ACEOF
4063 /* end confdefs.h. */
4076 rm -f conftest.$ac_objext
4077 if { (ac_try="$ac_compile"
4079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080 *) ac_try_echo=$ac_try;;
4082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4083 (eval "$ac_compile") 2>conftest.er1
4085 grep -v '^ *+' conftest.er1 >conftest.err
4087 cat conftest.err >&5
4088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089 (exit $ac_status); } && {
4090 test -z "$ac_c_werror_flag" ||
4091 test ! -s conftest.err
4092 } && test -s conftest.$ac_objext; then
4095 echo "$as_me: failed program was:" >&5
4096 sed 's/^/| /' conftest.$ac_ext >&5
4101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4102 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4105 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4106 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4107 GCC=`test $ac_compiler_gnu = yes && echo yes`
4108 ac_test_CFLAGS=${CFLAGS+set}
4109 ac_save_CFLAGS=$CFLAGS
4110 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4111 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4112 if test "${ac_cv_prog_cc_g+set}" = set; then
4113 echo $ECHO_N "(cached) $ECHO_C" >&6
4115 ac_save_c_werror_flag=$ac_c_werror_flag
4116 ac_c_werror_flag=yes
4119 cat >conftest.$ac_ext <<_ACEOF
4122 cat confdefs.h >>conftest.$ac_ext
4123 cat >>conftest.$ac_ext <<_ACEOF
4124 /* end confdefs.h. */
4134 rm -f conftest.$ac_objext
4135 if { (ac_try="$ac_compile"
4137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138 *) ac_try_echo=$ac_try;;
4140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4141 (eval "$ac_compile") 2>conftest.er1
4143 grep -v '^ *+' conftest.er1 >conftest.err
4145 cat conftest.err >&5
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); } && {
4148 test -z "$ac_c_werror_flag" ||
4149 test ! -s conftest.err
4150 } && test -s conftest.$ac_objext; then
4153 echo "$as_me: failed program was:" >&5
4154 sed 's/^/| /' conftest.$ac_ext >&5
4157 cat >conftest.$ac_ext <<_ACEOF
4160 cat confdefs.h >>conftest.$ac_ext
4161 cat >>conftest.$ac_ext <<_ACEOF
4162 /* end confdefs.h. */
4172 rm -f conftest.$ac_objext
4173 if { (ac_try="$ac_compile"
4175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4176 *) ac_try_echo=$ac_try;;
4178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4179 (eval "$ac_compile") 2>conftest.er1
4181 grep -v '^ *+' conftest.er1 >conftest.err
4183 cat conftest.err >&5
4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185 (exit $ac_status); } && {
4186 test -z "$ac_c_werror_flag" ||
4187 test ! -s conftest.err
4188 } && test -s conftest.$ac_objext; then
4191 echo "$as_me: failed program was:" >&5
4192 sed 's/^/| /' conftest.$ac_ext >&5
4194 ac_c_werror_flag=$ac_save_c_werror_flag
4196 cat >conftest.$ac_ext <<_ACEOF
4199 cat confdefs.h >>conftest.$ac_ext
4200 cat >>conftest.$ac_ext <<_ACEOF
4201 /* end confdefs.h. */
4211 rm -f conftest.$ac_objext
4212 if { (ac_try="$ac_compile"
4214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4215 *) ac_try_echo=$ac_try;;
4217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4218 (eval "$ac_compile") 2>conftest.er1
4220 grep -v '^ *+' conftest.er1 >conftest.err
4222 cat conftest.err >&5
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); } && {
4225 test -z "$ac_c_werror_flag" ||
4226 test ! -s conftest.err
4227 } && test -s conftest.$ac_objext; then
4230 echo "$as_me: failed program was:" >&5
4231 sed 's/^/| /' conftest.$ac_ext >&5
4236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4243 ac_c_werror_flag=$ac_save_c_werror_flag
4245 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4246 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4247 if test "$ac_test_CFLAGS" = set; then
4248 CFLAGS=$ac_save_CFLAGS
4249 elif test $ac_cv_prog_cc_g = yes; then
4250 if test "$GCC" = yes; then
4256 if test "$GCC" = yes; then
4262 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4263 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4264 if test "${ac_cv_prog_cc_c89+set}" = set; then
4265 echo $ECHO_N "(cached) $ECHO_C" >&6
4267 ac_cv_prog_cc_c89=no
4269 cat >conftest.$ac_ext <<_ACEOF
4272 cat confdefs.h >>conftest.$ac_ext
4273 cat >>conftest.$ac_ext <<_ACEOF
4274 /* end confdefs.h. */
4277 #include <sys/types.h>
4278 #include <sys/stat.h>
4279 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4280 struct buf { int x; };
4281 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4282 static char *e (p, i)
4288 static char *f (char * (*g) (char **, int), char **p, ...)
4293 s = g (p, va_arg (v,int));
4298 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4299 function prototypes and stuff, but not '\xHH' hex character constants.
4300 These don't provoke an error unfortunately, instead are silently treated
4301 as 'x'. The following induces an error, until -std is added to get
4302 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4303 array size at least. It's necessary to write '\x00'==0 to get something
4304 that's true only with -std. */
4305 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4307 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4308 inside strings and character constants. */
4310 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4312 int test (int i, double x);
4313 struct s1 {int (*f) (int a);};
4314 struct s2 {int (*f) (double a);};
4315 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4321 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4326 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4327 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4329 CC="$ac_save_CC $ac_arg"
4330 rm -f conftest.$ac_objext
4331 if { (ac_try="$ac_compile"
4333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4334 *) ac_try_echo=$ac_try;;
4336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4337 (eval "$ac_compile") 2>conftest.er1
4339 grep -v '^ *+' conftest.er1 >conftest.err
4341 cat conftest.err >&5
4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); } && {
4344 test -z "$ac_c_werror_flag" ||
4345 test ! -s conftest.err
4346 } && test -s conftest.$ac_objext; then
4347 ac_cv_prog_cc_c89=$ac_arg
4349 echo "$as_me: failed program was:" >&5
4350 sed 's/^/| /' conftest.$ac_ext >&5
4355 rm -f core conftest.err conftest.$ac_objext
4356 test "x$ac_cv_prog_cc_c89" != "xno" && break
4358 rm -f conftest.$ac_ext
4363 case "x$ac_cv_prog_cc_c89" in
4365 { echo "$as_me:$LINENO: result: none needed" >&5
4366 echo "${ECHO_T}none needed" >&6; } ;;
4368 { echo "$as_me:$LINENO: result: unsupported" >&5
4369 echo "${ECHO_T}unsupported" >&6; } ;;
4371 CC="$CC $ac_cv_prog_cc_c89"
4372 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4373 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4378 ac_cpp='$CXXCPP $CPPFLAGS'
4379 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4380 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4381 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4383 depcc="$CC" am_compiler_list=
4385 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4386 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4387 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4388 echo $ECHO_N "(cached) $ECHO_C" >&6
4390 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4391 # We make a subdir and do the tests there. Otherwise we can end up
4392 # making bogus files that we don't know about and never remove. For
4393 # instance it was reported that on HP-UX the gcc test will end up
4394 # making a dummy file named `D' -- because `-MD' means `put the output
4397 # Copy depcomp to subdir because otherwise we won't find it if we're
4398 # using a relative directory.
4399 cp "$am_depcomp" conftest.dir
4401 # We will build objects and dependencies in a subdirectory because
4402 # it helps to detect inapplicable dependency modes. For instance
4403 # both Tru64's cc and ICC support -MD to output dependencies as a
4404 # side effect of compilation, but ICC will put the dependencies in
4405 # the current directory while Tru64 will put them in the object
4409 am_cv_CC_dependencies_compiler_type=none
4410 if test "$am_compiler_list" = ""; then
4411 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4413 for depmode in $am_compiler_list; do
4414 # Setup a source with many dependencies, because some compilers
4415 # like to wrap large dependency lists on column 80 (with \), and
4416 # we should not choose a depcomp mode which is confused by this.
4418 # We need to recreate these files for each test, as the compiler may
4419 # overwrite some of them when testing with obscure command lines.
4420 # This happens at least with the AIX C compiler.
4422 for i in 1 2 3 4 5 6; do
4423 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4424 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4425 # Solaris 8's {/usr,}/bin/sh.
4426 touch sub/conftst$i.h
4428 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4432 # after this tag, mechanisms are not by side-effect, so they'll
4433 # only be used when explicitly requested
4434 if test "x$enable_dependency_tracking" = xyes; then
4442 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4443 # mode. It turns out that the SunPro C++ compiler does not properly
4444 # handle `-M -o', and we need to detect this.
4445 if depmode=$depmode \
4446 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4447 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4448 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4449 >/dev/null 2>conftest.err &&
4450 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4451 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4452 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4453 # icc doesn't choke on unknown options, it will just issue warnings
4454 # or remarks (even with -Werror). So we grep stderr for any message
4455 # that says an option was ignored or not supported.
4456 # When given -MP, icc 7.0 and 7.1 complain thusly:
4457 # icc: Command line warning: ignoring option '-M'; no argument required
4458 # The diagnosis changed in icc 8.0:
4459 # icc: Command line remark: option '-MP' not supported
4460 if (grep 'ignoring option' conftest.err ||
4461 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4462 am_cv_CC_dependencies_compiler_type=$depmode
4471 am_cv_CC_dependencies_compiler_type=none
4475 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4476 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4477 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4482 test "x$enable_dependency_tracking" != xno \
4483 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4485 am__fastdepCC_FALSE='#'
4487 am__fastdepCC_TRUE='#'
4488 am__fastdepCC_FALSE=
4492 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4493 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4494 if test "${lt_cv_path_SED+set}" = set; then
4495 echo $ECHO_N "(cached) $ECHO_C" >&6
4497 # Loop through the user's path and test for sed and gsed.
4498 # Then use that list of sed's as ones to test for truncation.
4499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4503 test -z "$as_dir" && as_dir=.
4504 for lt_ac_prog in sed gsed; do
4505 for ac_exec_ext in '' $ac_executable_extensions; do
4506 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4507 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4515 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4516 # along with /bin/sed that truncates output.
4517 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4518 test ! -f $lt_ac_sed && continue
4519 cat /dev/null > conftest.in
4521 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4522 # Check for GNU sed and select it if it is found.
4523 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4524 lt_cv_path_SED=$lt_ac_sed
4528 cat conftest.in conftest.in >conftest.tmp
4529 mv conftest.tmp conftest.in
4530 cp conftest.in conftest.nl
4532 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4533 cmp -s conftest.out conftest.nl || break
4534 # 10000 chars as input seems more than enough
4535 test $lt_ac_count -gt 10 && break
4536 lt_ac_count=`expr $lt_ac_count + 1`
4537 if test $lt_ac_count -gt $lt_ac_max; then
4538 lt_ac_max=$lt_ac_count
4539 lt_cv_path_SED=$lt_ac_sed
4548 { echo "$as_me:$LINENO: result: $SED" >&5
4549 echo "${ECHO_T}$SED" >&6; }
4551 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4552 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4553 if test "${ac_cv_path_GREP+set}" = set; then
4554 echo $ECHO_N "(cached) $ECHO_C" >&6
4556 # Extract the first word of "grep ggrep" to use in msg output
4557 if test -z "$GREP"; then
4558 set dummy grep ggrep; ac_prog_name=$2
4559 if test "${ac_cv_path_GREP+set}" = set; then
4560 echo $ECHO_N "(cached) $ECHO_C" >&6
4562 ac_path_GREP_found=false
4563 # Loop through the user's path and test for each of PROGNAME-LIST
4564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4568 test -z "$as_dir" && as_dir=.
4569 for ac_prog in grep ggrep; do
4570 for ac_exec_ext in '' $ac_executable_extensions; do
4571 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4572 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4573 # Check for GNU ac_path_GREP and select it if it is found.
4574 # Check for GNU $ac_path_GREP
4575 case `"$ac_path_GREP" --version 2>&1` in
4577 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4580 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4583 cat "conftest.in" "conftest.in" >"conftest.tmp"
4584 mv "conftest.tmp" "conftest.in"
4585 cp "conftest.in" "conftest.nl"
4586 echo 'GREP' >> "conftest.nl"
4587 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4588 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4589 ac_count=`expr $ac_count + 1`
4590 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4591 # Best one so far, save it but keep looking for a better one
4592 ac_cv_path_GREP="$ac_path_GREP"
4593 ac_path_GREP_max=$ac_count
4595 # 10*(2^10) chars as input seems more than enough
4596 test $ac_count -gt 10 && break
4598 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4602 $ac_path_GREP_found && break 3
4612 GREP="$ac_cv_path_GREP"
4613 if test -z "$GREP"; then
4614 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4615 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4616 { (exit 1); exit 1; }; }
4620 ac_cv_path_GREP=$GREP
4625 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4626 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4627 GREP="$ac_cv_path_GREP"
4630 { echo "$as_me:$LINENO: checking for egrep" >&5
4631 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4632 if test "${ac_cv_path_EGREP+set}" = set; then
4633 echo $ECHO_N "(cached) $ECHO_C" >&6
4635 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4636 then ac_cv_path_EGREP="$GREP -E"
4638 # Extract the first word of "egrep" to use in msg output
4639 if test -z "$EGREP"; then
4640 set dummy egrep; ac_prog_name=$2
4641 if test "${ac_cv_path_EGREP+set}" = set; then
4642 echo $ECHO_N "(cached) $ECHO_C" >&6
4644 ac_path_EGREP_found=false
4645 # Loop through the user's path and test for each of PROGNAME-LIST
4646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4650 test -z "$as_dir" && as_dir=.
4651 for ac_prog in egrep; do
4652 for ac_exec_ext in '' $ac_executable_extensions; do
4653 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4654 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4655 # Check for GNU ac_path_EGREP and select it if it is found.
4656 # Check for GNU $ac_path_EGREP
4657 case `"$ac_path_EGREP" --version 2>&1` in
4659 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4662 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4665 cat "conftest.in" "conftest.in" >"conftest.tmp"
4666 mv "conftest.tmp" "conftest.in"
4667 cp "conftest.in" "conftest.nl"
4668 echo 'EGREP' >> "conftest.nl"
4669 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4670 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4671 ac_count=`expr $ac_count + 1`
4672 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4673 # Best one so far, save it but keep looking for a better one
4674 ac_cv_path_EGREP="$ac_path_EGREP"
4675 ac_path_EGREP_max=$ac_count
4677 # 10*(2^10) chars as input seems more than enough
4678 test $ac_count -gt 10 && break
4680 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4684 $ac_path_EGREP_found && break 3
4694 EGREP="$ac_cv_path_EGREP"
4695 if test -z "$EGREP"; then
4696 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4697 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4698 { (exit 1); exit 1; }; }
4702 ac_cv_path_EGREP=$EGREP
4708 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4709 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4710 EGREP="$ac_cv_path_EGREP"
4714 # Check whether --with-gnu-ld was given.
4715 if test "${with_gnu_ld+set}" = set; then
4716 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4722 if test "$GCC" = yes; then
4723 # Check if gcc -print-prog-name=ld gives a path.
4724 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4725 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4728 # gcc leaves a trailing carriage return which upsets mingw
4729 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4731 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4734 # Accept absolute paths.
4736 re_direlt='/[^/][^/]*/\.\./'
4737 # Canonicalize the pathname of ld
4738 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4739 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4740 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4742 test -z "$LD" && LD="$ac_prog"
4745 # If it fails, then pretend we aren't using GCC.
4749 # If it is relative, then search for the first ld in PATH.
4753 elif test "$with_gnu_ld" = yes; then
4754 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4755 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4757 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4758 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4760 if test "${lt_cv_path_LD+set}" = set; then
4761 echo $ECHO_N "(cached) $ECHO_C" >&6
4763 if test -z "$LD"; then
4764 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4765 for ac_dir in $PATH; do
4767 test -z "$ac_dir" && ac_dir=.
4768 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4769 lt_cv_path_LD="$ac_dir/$ac_prog"
4770 # Check to see if the program is GNU ld. I'd rather use --version,
4771 # but apparently some variants of GNU ld only accept -v.
4772 # Break only if it was the GNU/non-GNU ld that we prefer.
4773 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4774 *GNU* | *'with BFD'*)
4775 test "$with_gnu_ld" != no && break
4778 test "$with_gnu_ld" != yes && break
4785 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4790 if test -n "$LD"; then
4791 { echo "$as_me:$LINENO: result: $LD" >&5
4792 echo "${ECHO_T}$LD" >&6; }
4794 { echo "$as_me:$LINENO: result: no" >&5
4795 echo "${ECHO_T}no" >&6; }
4797 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4798 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4799 { (exit 1); exit 1; }; }
4800 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4801 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4802 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4803 echo $ECHO_N "(cached) $ECHO_C" >&6
4805 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4806 case `$LD -v 2>&1 </dev/null` in
4807 *GNU* | *'with BFD'*)
4808 lt_cv_prog_gnu_ld=yes
4811 lt_cv_prog_gnu_ld=no
4815 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4816 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4817 with_gnu_ld=$lt_cv_prog_gnu_ld
4820 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4821 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4822 if test "${lt_cv_ld_reload_flag+set}" = set; then
4823 echo $ECHO_N "(cached) $ECHO_C" >&6
4825 lt_cv_ld_reload_flag='-r'
4827 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4828 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4829 reload_flag=$lt_cv_ld_reload_flag
4830 case $reload_flag in
4832 *) reload_flag=" $reload_flag" ;;
4834 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4837 if test "$GCC" = yes; then
4838 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4840 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4845 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4846 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4847 if test "${lt_cv_path_NM+set}" = set; then
4848 echo $ECHO_N "(cached) $ECHO_C" >&6
4850 if test -n "$NM"; then
4851 # Let the user override the test.
4854 lt_nm_to_check="${ac_tool_prefix}nm"
4855 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4856 lt_nm_to_check="$lt_nm_to_check nm"
4858 for lt_tmp_nm in $lt_nm_to_check; do
4859 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4860 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4862 test -z "$ac_dir" && ac_dir=.
4863 tmp_nm="$ac_dir/$lt_tmp_nm"
4864 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4865 # Check to see if the nm accepts a BSD-compat flag.
4866 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4867 # nm: unknown option "B" ignored
4868 # Tru64's nm complains that /dev/null is an invalid object file
4869 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4870 */dev/null* | *'Invalid file or object type'*)
4871 lt_cv_path_NM="$tmp_nm -B"
4875 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4877 lt_cv_path_NM="$tmp_nm -p"
4881 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4882 continue # so that we can try to find one that supports BSD flags
4891 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4894 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4895 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4898 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4899 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4901 if test "$LN_S" = "ln -s"; then
4902 { echo "$as_me:$LINENO: result: yes" >&5
4903 echo "${ECHO_T}yes" >&6; }
4905 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4906 echo "${ECHO_T}no, using $LN_S" >&6; }
4909 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4910 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4911 if test "${lt_cv_deplibs_check_method+set}" = set; then
4912 echo $ECHO_N "(cached) $ECHO_C" >&6
4914 lt_cv_file_magic_cmd='$MAGIC_CMD'
4915 lt_cv_file_magic_test_file=
4916 lt_cv_deplibs_check_method='unknown'
4917 # Need to set the preceding variable on all platforms that support
4918 # interlibrary dependencies.
4919 # 'none' -- dependencies not supported.
4920 # `unknown' -- same as none, but documents that we really don't know.
4921 # 'pass_all' -- all dependencies passed with no checks.
4922 # 'test_compile' -- check by making test program.
4923 # 'file_magic [[regex]]' -- check by looking for files in library path
4924 # which responds to the $file_magic_cmd with a given extended regex.
4925 # If you have `file' or equivalent on your system and you're not sure
4926 # whether `pass_all' will *always* work, you probably want this one.
4930 lt_cv_deplibs_check_method=pass_all
4934 lt_cv_deplibs_check_method=pass_all
4938 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4939 lt_cv_file_magic_cmd='/usr/bin/file -L'
4940 lt_cv_file_magic_test_file=/shlib/libc.so
4944 # func_win32_libid is a shell function defined in ltmain.sh
4945 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4946 lt_cv_file_magic_cmd='func_win32_libid'
4950 # Base MSYS/MinGW do not provide the 'file' command needed by
4951 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4952 # unless we find 'file', for example because we are cross-compiling.
4953 if ( file / ) >/dev/null 2>&1; then
4954 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4955 lt_cv_file_magic_cmd='func_win32_libid'
4957 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4958 lt_cv_file_magic_cmd='$OBJDUMP -f'
4962 darwin* | rhapsody*)
4963 lt_cv_deplibs_check_method=pass_all
4966 freebsd* | dragonfly*)
4967 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4970 # Not sure whether the presence of OpenBSD here was a mistake.
4971 # Let's accept both of them until this is cleared up.
4972 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4973 lt_cv_file_magic_cmd=/usr/bin/file
4974 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4978 lt_cv_deplibs_check_method=pass_all
4983 lt_cv_deplibs_check_method=pass_all
4986 hpux10.20* | hpux11*)
4987 lt_cv_file_magic_cmd=/usr/bin/file
4990 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4991 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4994 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]'
4995 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4998 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4999 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5005 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5006 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5009 irix5* | irix6* | nonstopux*)
5011 *-32|*"-32 ") libmagic=32-bit;;
5012 *-n32|*"-n32 ") libmagic=N32;;
5013 *-64|*"-64 ") libmagic=64-bit;;
5014 *) libmagic=never-match;;
5016 lt_cv_deplibs_check_method=pass_all
5019 # This must be Linux ELF.
5020 linux* | k*bsd*-gnu)
5021 lt_cv_deplibs_check_method=pass_all
5024 netbsd* | netbsdelf*-gnu)
5025 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5026 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5028 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5033 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5034 lt_cv_file_magic_cmd=/usr/bin/file
5035 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5039 lt_cv_deplibs_check_method=unknown
5043 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5044 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5046 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5050 osf3* | osf4* | osf5*)
5051 lt_cv_deplibs_check_method=pass_all
5055 lt_cv_deplibs_check_method=pass_all
5059 lt_cv_deplibs_check_method=pass_all
5063 case $host_vendor in
5065 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]'
5066 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5069 lt_cv_deplibs_check_method=pass_all
5072 lt_cv_file_magic_cmd='/bin/file'
5073 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5076 lt_cv_file_magic_cmd='/bin/file'
5077 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5078 lt_cv_file_magic_test_file=/lib/libc.so
5081 lt_cv_deplibs_check_method=pass_all
5084 lt_cv_deplibs_check_method=pass_all
5089 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5090 lt_cv_deplibs_check_method=pass_all
5095 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5096 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5097 file_magic_cmd=$lt_cv_file_magic_cmd
5098 deplibs_check_method=$lt_cv_deplibs_check_method
5099 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5104 # If no C compiler was specified, use CC.
5107 # If no C compiler flags were specified, use CFLAGS.
5108 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5110 # Allow CC to be a program name with arguments.
5114 # Check whether --enable-libtool-lock was given.
5115 if test "${enable_libtool_lock+set}" = set; then
5116 enableval=$enable_libtool_lock;
5119 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5121 # Some flags need to be propagated to the compiler or linker for good
5125 # Find out which ABI we are using.
5126 echo 'int i;' > conftest.$ac_ext
5127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5128 (eval $ac_compile) 2>&5
5130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131 (exit $ac_status); }; then
5132 case `/usr/bin/file conftest.$ac_objext` in
5144 # Find out which ABI we are using.
5145 echo '#line 5145 "configure"' > conftest.$ac_ext
5146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5147 (eval $ac_compile) 2>&5
5149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150 (exit $ac_status); }; then
5151 if test "$lt_cv_prog_gnu_ld" = yes; then
5152 case `/usr/bin/file conftest.$ac_objext` in
5154 LD="${LD-ld} -melf32bsmip"
5157 LD="${LD-ld} -melf32bmipn32"
5160 LD="${LD-ld} -melf64bmip"
5164 case `/usr/bin/file conftest.$ac_objext` in
5180 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5181 s390*-*linux*|sparc*-*linux*)
5182 # Find out which ABI we are using.
5183 echo 'int i;' > conftest.$ac_ext
5184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5185 (eval $ac_compile) 2>&5
5187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188 (exit $ac_status); }; then
5189 case `/usr/bin/file conftest.o` in
5192 x86_64-*kfreebsd*-gnu)
5193 LD="${LD-ld} -m elf_i386_fbsd"
5196 LD="${LD-ld} -m elf_i386"
5198 ppc64-*linux*|powerpc64-*linux*)
5199 LD="${LD-ld} -m elf32ppclinux"
5202 LD="${LD-ld} -m elf_s390"
5205 LD="${LD-ld} -m elf32_sparc"
5211 x86_64-*kfreebsd*-gnu)
5212 LD="${LD-ld} -m elf_x86_64_fbsd"
5215 LD="${LD-ld} -m elf_x86_64"
5217 ppc*-*linux*|powerpc*-*linux*)
5218 LD="${LD-ld} -m elf64ppc"
5221 LD="${LD-ld} -m elf64_s390"
5224 LD="${LD-ld} -m elf64_sparc"
5234 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5235 SAVE_CFLAGS="$CFLAGS"
5236 CFLAGS="$CFLAGS -belf"
5237 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5238 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5239 if test "${lt_cv_cc_needs_belf+set}" = set; then
5240 echo $ECHO_N "(cached) $ECHO_C" >&6
5243 ac_cpp='$CPP $CPPFLAGS'
5244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5248 cat >conftest.$ac_ext <<_ACEOF
5251 cat confdefs.h >>conftest.$ac_ext
5252 cat >>conftest.$ac_ext <<_ACEOF
5253 /* end confdefs.h. */
5263 rm -f conftest.$ac_objext conftest$ac_exeext
5264 if { (ac_try="$ac_link"
5266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5267 *) ac_try_echo=$ac_try;;
5269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5270 (eval "$ac_link") 2>conftest.er1
5272 grep -v '^ *+' conftest.er1 >conftest.err
5274 cat conftest.err >&5
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); } && {
5277 test -z "$ac_c_werror_flag" ||
5278 test ! -s conftest.err
5279 } && test -s conftest$ac_exeext &&
5280 $as_test_x conftest$ac_exeext; then
5281 lt_cv_cc_needs_belf=yes
5283 echo "$as_me: failed program was:" >&5
5284 sed 's/^/| /' conftest.$ac_ext >&5
5286 lt_cv_cc_needs_belf=no
5289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5290 conftest$ac_exeext conftest.$ac_ext
5292 ac_cpp='$CPP $CPPFLAGS'
5293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5298 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5299 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5300 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5301 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5302 CFLAGS="$SAVE_CFLAGS"
5306 # Find out which ABI we are using.
5307 echo 'int i;' > conftest.$ac_ext
5308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5309 (eval $ac_compile) 2>&5
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); }; then
5313 case `/usr/bin/file conftest.o` in
5315 case $lt_cv_prog_gnu_ld in
5316 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5317 *) LD="${LD-ld} -64" ;;
5325 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5326 if test -n "$ac_tool_prefix"; then
5327 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5328 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5329 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5331 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5332 echo $ECHO_N "(cached) $ECHO_C" >&6
5334 if test -n "$DLLTOOL"; then
5335 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5341 test -z "$as_dir" && as_dir=.
5342 for ac_exec_ext in '' $ac_executable_extensions; do
5343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5344 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5354 DLLTOOL=$ac_cv_prog_DLLTOOL
5355 if test -n "$DLLTOOL"; then
5356 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5357 echo "${ECHO_T}$DLLTOOL" >&6; }
5359 { echo "$as_me:$LINENO: result: no" >&5
5360 echo "${ECHO_T}no" >&6; }
5365 if test -z "$ac_cv_prog_DLLTOOL"; then
5366 ac_ct_DLLTOOL=$DLLTOOL
5367 # Extract the first word of "dlltool", so it can be a program name with args.
5368 set dummy dlltool; ac_word=$2
5369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5371 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5372 echo $ECHO_N "(cached) $ECHO_C" >&6
5374 if test -n "$ac_ct_DLLTOOL"; then
5375 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5381 test -z "$as_dir" && as_dir=.
5382 for ac_exec_ext in '' $ac_executable_extensions; do
5383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5384 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5394 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5395 if test -n "$ac_ct_DLLTOOL"; then
5396 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5397 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
5399 { echo "$as_me:$LINENO: result: no" >&5
5400 echo "${ECHO_T}no" >&6; }
5403 if test "x$ac_ct_DLLTOOL" = x; then
5406 case $cross_compiling:$ac_tool_warned in
5408 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5409 whose name does not start with the host triplet. If you think this
5410 configuration is useful to you, please write to autoconf@gnu.org." >&5
5411 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5412 whose name does not start with the host triplet. If you think this
5413 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5414 ac_tool_warned=yes ;;
5416 DLLTOOL=$ac_ct_DLLTOOL
5419 DLLTOOL="$ac_cv_prog_DLLTOOL"
5422 if test -n "$ac_tool_prefix"; then
5423 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5424 set dummy ${ac_tool_prefix}as; ac_word=$2
5425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5427 if test "${ac_cv_prog_AS+set}" = set; then
5428 echo $ECHO_N "(cached) $ECHO_C" >&6
5430 if test -n "$AS"; then
5431 ac_cv_prog_AS="$AS" # Let the user override the test.
5433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5437 test -z "$as_dir" && as_dir=.
5438 for ac_exec_ext in '' $ac_executable_extensions; do
5439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5440 ac_cv_prog_AS="${ac_tool_prefix}as"
5441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5451 if test -n "$AS"; then
5452 { echo "$as_me:$LINENO: result: $AS" >&5
5453 echo "${ECHO_T}$AS" >&6; }
5455 { echo "$as_me:$LINENO: result: no" >&5
5456 echo "${ECHO_T}no" >&6; }
5461 if test -z "$ac_cv_prog_AS"; then
5463 # Extract the first word of "as", so it can be a program name with args.
5464 set dummy as; ac_word=$2
5465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5467 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5468 echo $ECHO_N "(cached) $ECHO_C" >&6
5470 if test -n "$ac_ct_AS"; then
5471 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5477 test -z "$as_dir" && as_dir=.
5478 for ac_exec_ext in '' $ac_executable_extensions; do
5479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5480 ac_cv_prog_ac_ct_AS="as"
5481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5490 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5491 if test -n "$ac_ct_AS"; then
5492 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5493 echo "${ECHO_T}$ac_ct_AS" >&6; }
5495 { echo "$as_me:$LINENO: result: no" >&5
5496 echo "${ECHO_T}no" >&6; }
5499 if test "x$ac_ct_AS" = x; then
5502 case $cross_compiling:$ac_tool_warned in
5504 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5505 whose name does not start with the host triplet. If you think this
5506 configuration is useful to you, please write to autoconf@gnu.org." >&5
5507 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5508 whose name does not start with the host triplet. If you think this
5509 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5510 ac_tool_warned=yes ;;
5518 if test -n "$ac_tool_prefix"; then
5519 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5520 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5523 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5524 echo $ECHO_N "(cached) $ECHO_C" >&6
5526 if test -n "$OBJDUMP"; then
5527 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5533 test -z "$as_dir" && as_dir=.
5534 for ac_exec_ext in '' $ac_executable_extensions; do
5535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5536 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5546 OBJDUMP=$ac_cv_prog_OBJDUMP
5547 if test -n "$OBJDUMP"; then
5548 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5549 echo "${ECHO_T}$OBJDUMP" >&6; }
5551 { echo "$as_me:$LINENO: result: no" >&5
5552 echo "${ECHO_T}no" >&6; }
5557 if test -z "$ac_cv_prog_OBJDUMP"; then
5558 ac_ct_OBJDUMP=$OBJDUMP
5559 # Extract the first word of "objdump", so it can be a program name with args.
5560 set dummy objdump; ac_word=$2
5561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5563 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5564 echo $ECHO_N "(cached) $ECHO_C" >&6
5566 if test -n "$ac_ct_OBJDUMP"; then
5567 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5573 test -z "$as_dir" && as_dir=.
5574 for ac_exec_ext in '' $ac_executable_extensions; do
5575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5576 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5586 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5587 if test -n "$ac_ct_OBJDUMP"; then
5588 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5589 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
5591 { echo "$as_me:$LINENO: result: no" >&5
5592 echo "${ECHO_T}no" >&6; }
5595 if test "x$ac_ct_OBJDUMP" = x; then
5598 case $cross_compiling:$ac_tool_warned in
5600 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5601 whose name does not start with the host triplet. If you think this
5602 configuration is useful to you, please write to autoconf@gnu.org." >&5
5603 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5604 whose name does not start with the host triplet. If you think this
5605 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5606 ac_tool_warned=yes ;;
5608 OBJDUMP=$ac_ct_OBJDUMP
5611 OBJDUMP="$ac_cv_prog_OBJDUMP"
5618 need_locks="$enable_libtool_lock"
5622 ac_cpp='$CPP $CPPFLAGS'
5623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5626 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5627 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5628 # On Suns, sometimes $CPP names a directory.
5629 if test -n "$CPP" && test -d "$CPP"; then
5632 if test -z "$CPP"; then
5633 if test "${ac_cv_prog_CPP+set}" = set; then
5634 echo $ECHO_N "(cached) $ECHO_C" >&6
5636 # Double quotes because CPP needs to be expanded
5637 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5640 for ac_c_preproc_warn_flag in '' yes
5642 # Use a header file that comes with gcc, so configuring glibc
5643 # with a fresh cross-compiler works.
5644 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5645 # <limits.h> exists even on freestanding compilers.
5646 # On the NeXT, cc -E runs the code through the compiler's parser,
5647 # not just through cpp. "Syntax error" is here to catch this case.
5648 cat >conftest.$ac_ext <<_ACEOF
5651 cat confdefs.h >>conftest.$ac_ext
5652 cat >>conftest.$ac_ext <<_ACEOF
5653 /* end confdefs.h. */
5655 # include <limits.h>
5657 # include <assert.h>
5661 if { (ac_try="$ac_cpp conftest.$ac_ext"
5663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5664 *) ac_try_echo=$ac_try;;
5666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5669 grep -v '^ *+' conftest.er1 >conftest.err
5671 cat conftest.err >&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); } >/dev/null && {
5674 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5675 test ! -s conftest.err
5679 echo "$as_me: failed program was:" >&5
5680 sed 's/^/| /' conftest.$ac_ext >&5
5682 # Broken: fails on valid input.
5686 rm -f conftest.err conftest.$ac_ext
5688 # OK, works on sane cases. Now check whether nonexistent headers
5689 # can be detected and how.
5690 cat >conftest.$ac_ext <<_ACEOF
5693 cat confdefs.h >>conftest.$ac_ext
5694 cat >>conftest.$ac_ext <<_ACEOF
5695 /* end confdefs.h. */
5696 #include <ac_nonexistent.h>
5698 if { (ac_try="$ac_cpp conftest.$ac_ext"
5700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5701 *) ac_try_echo=$ac_try;;
5703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5704 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5706 grep -v '^ *+' conftest.er1 >conftest.err
5708 cat conftest.err >&5
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); } >/dev/null && {
5711 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5712 test ! -s conftest.err
5714 # Broken: success on invalid input.
5717 echo "$as_me: failed program was:" >&5
5718 sed 's/^/| /' conftest.$ac_ext >&5
5720 # Passes both tests.
5725 rm -f conftest.err conftest.$ac_ext
5728 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5729 rm -f conftest.err conftest.$ac_ext
5730 if $ac_preproc_ok; then
5742 { echo "$as_me:$LINENO: result: $CPP" >&5
5743 echo "${ECHO_T}$CPP" >&6; }
5745 for ac_c_preproc_warn_flag in '' yes
5747 # Use a header file that comes with gcc, so configuring glibc
5748 # with a fresh cross-compiler works.
5749 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5750 # <limits.h> exists even on freestanding compilers.
5751 # On the NeXT, cc -E runs the code through the compiler's parser,
5752 # not just through cpp. "Syntax error" is here to catch this case.
5753 cat >conftest.$ac_ext <<_ACEOF
5756 cat confdefs.h >>conftest.$ac_ext
5757 cat >>conftest.$ac_ext <<_ACEOF
5758 /* end confdefs.h. */
5760 # include <limits.h>
5762 # include <assert.h>
5766 if { (ac_try="$ac_cpp conftest.$ac_ext"
5768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5769 *) ac_try_echo=$ac_try;;
5771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5772 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5774 grep -v '^ *+' conftest.er1 >conftest.err
5776 cat conftest.err >&5
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); } >/dev/null && {
5779 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5780 test ! -s conftest.err
5784 echo "$as_me: failed program was:" >&5
5785 sed 's/^/| /' conftest.$ac_ext >&5
5787 # Broken: fails on valid input.
5791 rm -f conftest.err conftest.$ac_ext
5793 # OK, works on sane cases. Now check whether nonexistent headers
5794 # can be detected and how.
5795 cat >conftest.$ac_ext <<_ACEOF
5798 cat confdefs.h >>conftest.$ac_ext
5799 cat >>conftest.$ac_ext <<_ACEOF
5800 /* end confdefs.h. */
5801 #include <ac_nonexistent.h>
5803 if { (ac_try="$ac_cpp conftest.$ac_ext"
5805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5806 *) ac_try_echo=$ac_try;;
5808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5811 grep -v '^ *+' conftest.er1 >conftest.err
5813 cat conftest.err >&5
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); } >/dev/null && {
5816 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5817 test ! -s conftest.err
5819 # Broken: success on invalid input.
5822 echo "$as_me: failed program was:" >&5
5823 sed 's/^/| /' conftest.$ac_ext >&5
5825 # Passes both tests.
5830 rm -f conftest.err conftest.$ac_ext
5833 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5834 rm -f conftest.err conftest.$ac_ext
5835 if $ac_preproc_ok; then
5838 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5839 See \`config.log' for more details." >&5
5840 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5841 See \`config.log' for more details." >&2;}
5842 { (exit 1); exit 1; }; }
5846 ac_cpp='$CPP $CPPFLAGS'
5847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5852 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5853 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5854 if test "${ac_cv_header_stdc+set}" = set; then
5855 echo $ECHO_N "(cached) $ECHO_C" >&6
5857 cat >conftest.$ac_ext <<_ACEOF
5860 cat confdefs.h >>conftest.$ac_ext
5861 cat >>conftest.$ac_ext <<_ACEOF
5862 /* end confdefs.h. */
5876 rm -f conftest.$ac_objext
5877 if { (ac_try="$ac_compile"
5879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5880 *) ac_try_echo=$ac_try;;
5882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5883 (eval "$ac_compile") 2>conftest.er1
5885 grep -v '^ *+' conftest.er1 >conftest.err
5887 cat conftest.err >&5
5888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889 (exit $ac_status); } && {
5890 test -z "$ac_c_werror_flag" ||
5891 test ! -s conftest.err
5892 } && test -s conftest.$ac_objext; then
5893 ac_cv_header_stdc=yes
5895 echo "$as_me: failed program was:" >&5
5896 sed 's/^/| /' conftest.$ac_ext >&5
5898 ac_cv_header_stdc=no
5901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5903 if test $ac_cv_header_stdc = yes; then
5904 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5905 cat >conftest.$ac_ext <<_ACEOF
5908 cat confdefs.h >>conftest.$ac_ext
5909 cat >>conftest.$ac_ext <<_ACEOF
5910 /* end confdefs.h. */
5914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5915 $EGREP "memchr" >/dev/null 2>&1; then
5918 ac_cv_header_stdc=no
5924 if test $ac_cv_header_stdc = yes; then
5925 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5926 cat >conftest.$ac_ext <<_ACEOF
5929 cat confdefs.h >>conftest.$ac_ext
5930 cat >>conftest.$ac_ext <<_ACEOF
5931 /* end confdefs.h. */
5935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5936 $EGREP "free" >/dev/null 2>&1; then
5939 ac_cv_header_stdc=no
5945 if test $ac_cv_header_stdc = yes; then
5946 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5947 if test "$cross_compiling" = yes; then
5950 cat >conftest.$ac_ext <<_ACEOF
5953 cat confdefs.h >>conftest.$ac_ext
5954 cat >>conftest.$ac_ext <<_ACEOF
5955 /* end confdefs.h. */
5958 #if ((' ' & 0x0FF) == 0x020)
5959 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5960 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5962 # define ISLOWER(c) \
5963 (('a' <= (c) && (c) <= 'i') \
5964 || ('j' <= (c) && (c) <= 'r') \
5965 || ('s' <= (c) && (c) <= 'z'))
5966 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5969 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5974 for (i = 0; i < 256; i++)
5975 if (XOR (islower (i), ISLOWER (i))
5976 || toupper (i) != TOUPPER (i))
5981 rm -f conftest$ac_exeext
5982 if { (ac_try="$ac_link"
5984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5985 *) ac_try_echo=$ac_try;;
5987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5988 (eval "$ac_link") 2>&5
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5992 { (case "(($ac_try" in
5993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5994 *) ac_try_echo=$ac_try;;
5996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5997 (eval "$ac_try") 2>&5
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); }; }; then
6003 echo "$as_me: program exited with status $ac_status" >&5
6004 echo "$as_me: failed program was:" >&5
6005 sed 's/^/| /' conftest.$ac_ext >&5
6008 ac_cv_header_stdc=no
6010 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6016 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6017 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6018 if test $ac_cv_header_stdc = yes; then
6020 cat >>confdefs.h <<\_ACEOF
6021 #define STDC_HEADERS 1
6026 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6036 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6037 inttypes.h stdint.h unistd.h
6039 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6040 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6043 echo $ECHO_N "(cached) $ECHO_C" >&6
6045 cat >conftest.$ac_ext <<_ACEOF
6048 cat confdefs.h >>conftest.$ac_ext
6049 cat >>conftest.$ac_ext <<_ACEOF
6050 /* end confdefs.h. */
6051 $ac_includes_default
6053 #include <$ac_header>
6055 rm -f conftest.$ac_objext
6056 if { (ac_try="$ac_compile"
6058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6059 *) ac_try_echo=$ac_try;;
6061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6062 (eval "$ac_compile") 2>conftest.er1
6064 grep -v '^ *+' conftest.er1 >conftest.err
6066 cat conftest.err >&5
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); } && {
6069 test -z "$ac_c_werror_flag" ||
6070 test ! -s conftest.err
6071 } && test -s conftest.$ac_objext; then
6072 eval "$as_ac_Header=yes"
6074 echo "$as_me: failed program was:" >&5
6075 sed 's/^/| /' conftest.$ac_ext >&5
6077 eval "$as_ac_Header=no"
6080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6082 ac_res=`eval echo '${'$as_ac_Header'}'`
6083 { echo "$as_me:$LINENO: result: $ac_res" >&5
6084 echo "${ECHO_T}$ac_res" >&6; }
6085 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6086 cat >>confdefs.h <<_ACEOF
6087 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6096 for ac_header in dlfcn.h
6098 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6100 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6103 echo $ECHO_N "(cached) $ECHO_C" >&6
6105 ac_res=`eval echo '${'$as_ac_Header'}'`
6106 { echo "$as_me:$LINENO: result: $ac_res" >&5
6107 echo "${ECHO_T}$ac_res" >&6; }
6109 # Is the header compilable?
6110 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6111 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6112 cat >conftest.$ac_ext <<_ACEOF
6115 cat confdefs.h >>conftest.$ac_ext
6116 cat >>conftest.$ac_ext <<_ACEOF
6117 /* end confdefs.h. */
6118 $ac_includes_default
6119 #include <$ac_header>
6121 rm -f conftest.$ac_objext
6122 if { (ac_try="$ac_compile"
6124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6125 *) ac_try_echo=$ac_try;;
6127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6128 (eval "$ac_compile") 2>conftest.er1
6130 grep -v '^ *+' conftest.er1 >conftest.err
6132 cat conftest.err >&5
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); } && {
6135 test -z "$ac_c_werror_flag" ||
6136 test ! -s conftest.err
6137 } && test -s conftest.$ac_objext; then
6138 ac_header_compiler=yes
6140 echo "$as_me: failed program was:" >&5
6141 sed 's/^/| /' conftest.$ac_ext >&5
6143 ac_header_compiler=no
6146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6147 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6148 echo "${ECHO_T}$ac_header_compiler" >&6; }
6150 # Is the header present?
6151 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6152 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6153 cat >conftest.$ac_ext <<_ACEOF
6156 cat confdefs.h >>conftest.$ac_ext
6157 cat >>conftest.$ac_ext <<_ACEOF
6158 /* end confdefs.h. */
6159 #include <$ac_header>
6161 if { (ac_try="$ac_cpp conftest.$ac_ext"
6163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6164 *) ac_try_echo=$ac_try;;
6166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6167 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6169 grep -v '^ *+' conftest.er1 >conftest.err
6171 cat conftest.err >&5
6172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173 (exit $ac_status); } >/dev/null && {
6174 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6175 test ! -s conftest.err
6177 ac_header_preproc=yes
6179 echo "$as_me: failed program was:" >&5
6180 sed 's/^/| /' conftest.$ac_ext >&5
6182 ac_header_preproc=no
6185 rm -f conftest.err conftest.$ac_ext
6186 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6187 echo "${ECHO_T}$ac_header_preproc" >&6; }
6189 # So? What about this header?
6190 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6192 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6193 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6195 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6196 ac_header_preproc=yes
6199 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6200 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6201 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6202 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6203 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6204 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6205 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6206 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6208 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6209 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6210 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6214 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6217 echo $ECHO_N "(cached) $ECHO_C" >&6
6219 eval "$as_ac_Header=\$ac_header_preproc"
6221 ac_res=`eval echo '${'$as_ac_Header'}'`
6222 { echo "$as_me:$LINENO: result: $ac_res" >&5
6223 echo "${ECHO_T}$ac_res" >&6; }
6226 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6227 cat >>confdefs.h <<_ACEOF
6228 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6237 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6238 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6239 (test "X$CXX" != "Xg++"))) ; then
6241 ac_cpp='$CXXCPP $CPPFLAGS'
6242 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6243 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6244 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6245 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6246 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6247 if test -z "$CXXCPP"; then
6248 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6249 echo $ECHO_N "(cached) $ECHO_C" >&6
6251 # Double quotes because CXXCPP needs to be expanded
6252 for CXXCPP in "$CXX -E" "/lib/cpp"
6255 for ac_cxx_preproc_warn_flag in '' yes
6257 # Use a header file that comes with gcc, so configuring glibc
6258 # with a fresh cross-compiler works.
6259 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6260 # <limits.h> exists even on freestanding compilers.
6261 # On the NeXT, cc -E runs the code through the compiler's parser,
6262 # not just through cpp. "Syntax error" is here to catch this case.
6263 cat >conftest.$ac_ext <<_ACEOF
6266 cat confdefs.h >>conftest.$ac_ext
6267 cat >>conftest.$ac_ext <<_ACEOF
6268 /* end confdefs.h. */
6270 # include <limits.h>
6272 # include <assert.h>
6276 if { (ac_try="$ac_cpp conftest.$ac_ext"
6278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6279 *) ac_try_echo=$ac_try;;
6281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6282 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6284 grep -v '^ *+' conftest.er1 >conftest.err
6286 cat conftest.err >&5
6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288 (exit $ac_status); } >/dev/null && {
6289 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6290 test ! -s conftest.err
6294 echo "$as_me: failed program was:" >&5
6295 sed 's/^/| /' conftest.$ac_ext >&5
6297 # Broken: fails on valid input.
6301 rm -f conftest.err conftest.$ac_ext
6303 # OK, works on sane cases. Now check whether nonexistent headers
6304 # can be detected and how.
6305 cat >conftest.$ac_ext <<_ACEOF
6308 cat confdefs.h >>conftest.$ac_ext
6309 cat >>conftest.$ac_ext <<_ACEOF
6310 /* end confdefs.h. */
6311 #include <ac_nonexistent.h>
6313 if { (ac_try="$ac_cpp conftest.$ac_ext"
6315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6316 *) ac_try_echo=$ac_try;;
6318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6319 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6321 grep -v '^ *+' conftest.er1 >conftest.err
6323 cat conftest.err >&5
6324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325 (exit $ac_status); } >/dev/null && {
6326 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6327 test ! -s conftest.err
6329 # Broken: success on invalid input.
6332 echo "$as_me: failed program was:" >&5
6333 sed 's/^/| /' conftest.$ac_ext >&5
6335 # Passes both tests.
6340 rm -f conftest.err conftest.$ac_ext
6343 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6344 rm -f conftest.err conftest.$ac_ext
6345 if $ac_preproc_ok; then
6350 ac_cv_prog_CXXCPP=$CXXCPP
6353 CXXCPP=$ac_cv_prog_CXXCPP
6355 ac_cv_prog_CXXCPP=$CXXCPP
6357 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6358 echo "${ECHO_T}$CXXCPP" >&6; }
6360 for ac_cxx_preproc_warn_flag in '' yes
6362 # Use a header file that comes with gcc, so configuring glibc
6363 # with a fresh cross-compiler works.
6364 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6365 # <limits.h> exists even on freestanding compilers.
6366 # On the NeXT, cc -E runs the code through the compiler's parser,
6367 # not just through cpp. "Syntax error" is here to catch this case.
6368 cat >conftest.$ac_ext <<_ACEOF
6371 cat confdefs.h >>conftest.$ac_ext
6372 cat >>conftest.$ac_ext <<_ACEOF
6373 /* end confdefs.h. */
6375 # include <limits.h>
6377 # include <assert.h>
6381 if { (ac_try="$ac_cpp conftest.$ac_ext"
6383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6384 *) ac_try_echo=$ac_try;;
6386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6387 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6389 grep -v '^ *+' conftest.er1 >conftest.err
6391 cat conftest.err >&5
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); } >/dev/null && {
6394 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6395 test ! -s conftest.err
6399 echo "$as_me: failed program was:" >&5
6400 sed 's/^/| /' conftest.$ac_ext >&5
6402 # Broken: fails on valid input.
6406 rm -f conftest.err conftest.$ac_ext
6408 # OK, works on sane cases. Now check whether nonexistent headers
6409 # can be detected and how.
6410 cat >conftest.$ac_ext <<_ACEOF
6413 cat confdefs.h >>conftest.$ac_ext
6414 cat >>conftest.$ac_ext <<_ACEOF
6415 /* end confdefs.h. */
6416 #include <ac_nonexistent.h>
6418 if { (ac_try="$ac_cpp conftest.$ac_ext"
6420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6421 *) ac_try_echo=$ac_try;;
6423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6424 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6426 grep -v '^ *+' conftest.er1 >conftest.err
6428 cat conftest.err >&5
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); } >/dev/null && {
6431 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6432 test ! -s conftest.err
6434 # Broken: success on invalid input.
6437 echo "$as_me: failed program was:" >&5
6438 sed 's/^/| /' conftest.$ac_ext >&5
6440 # Passes both tests.
6445 rm -f conftest.err conftest.$ac_ext
6448 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6449 rm -f conftest.err conftest.$ac_ext
6450 if $ac_preproc_ok; then
6453 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6454 See \`config.log' for more details." >&5
6455 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6456 See \`config.log' for more details." >&2;}
6457 { (exit 1); exit 1; }; }
6461 ac_cpp='$CXXCPP $CPPFLAGS'
6462 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6463 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6464 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6470 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6471 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6472 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6473 if test -n "$ac_tool_prefix"; then
6474 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
6476 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6477 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6480 if test "${ac_cv_prog_F77+set}" = set; then
6481 echo $ECHO_N "(cached) $ECHO_C" >&6
6483 if test -n "$F77"; then
6484 ac_cv_prog_F77="$F77" # Let the user override the test.
6486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6490 test -z "$as_dir" && as_dir=.
6491 for ac_exec_ext in '' $ac_executable_extensions; do
6492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6493 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6504 if test -n "$F77"; then
6505 { echo "$as_me:$LINENO: result: $F77" >&5
6506 echo "${ECHO_T}$F77" >&6; }
6508 { echo "$as_me:$LINENO: result: no" >&5
6509 echo "${ECHO_T}no" >&6; }
6513 test -n "$F77" && break
6516 if test -z "$F77"; then
6518 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
6520 # Extract the first word of "$ac_prog", so it can be a program name with args.
6521 set dummy $ac_prog; ac_word=$2
6522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6524 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6525 echo $ECHO_N "(cached) $ECHO_C" >&6
6527 if test -n "$ac_ct_F77"; then
6528 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6534 test -z "$as_dir" && as_dir=.
6535 for ac_exec_ext in '' $ac_executable_extensions; do
6536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6537 ac_cv_prog_ac_ct_F77="$ac_prog"
6538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6547 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6548 if test -n "$ac_ct_F77"; then
6549 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6550 echo "${ECHO_T}$ac_ct_F77" >&6; }
6552 { echo "$as_me:$LINENO: result: no" >&5
6553 echo "${ECHO_T}no" >&6; }
6557 test -n "$ac_ct_F77" && break
6560 if test "x$ac_ct_F77" = x; then
6563 case $cross_compiling:$ac_tool_warned in
6565 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6566 whose name does not start with the host triplet. If you think this
6567 configuration is useful to you, please write to autoconf@gnu.org." >&5
6568 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6569 whose name does not start with the host triplet. If you think this
6570 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6571 ac_tool_warned=yes ;;
6578 # Provide some information about the compiler.
6579 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6580 ac_compiler=`set X $ac_compile; echo $2`
6581 { (ac_try="$ac_compiler --version >&5"
6583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6584 *) ac_try_echo=$ac_try;;
6586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6587 (eval "$ac_compiler --version >&5") 2>&5
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); }
6591 { (ac_try="$ac_compiler -v >&5"
6593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6594 *) ac_try_echo=$ac_try;;
6596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6597 (eval "$ac_compiler -v >&5") 2>&5
6599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600 (exit $ac_status); }
6601 { (ac_try="$ac_compiler -V >&5"
6603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6604 *) ac_try_echo=$ac_try;;
6606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6607 (eval "$ac_compiler -V >&5") 2>&5
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); }
6613 # If we don't use `.F' as extension, the preprocessor is not run on the
6614 # input file. (Note that this only needs to work for GNU compilers.)
6617 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6618 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6619 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6620 echo $ECHO_N "(cached) $ECHO_C" >&6
6622 cat >conftest.$ac_ext <<_ACEOF
6630 rm -f conftest.$ac_objext
6631 if { (ac_try="$ac_compile"
6633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6634 *) ac_try_echo=$ac_try;;
6636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6637 (eval "$ac_compile") 2>conftest.er1
6639 grep -v '^ *+' conftest.er1 >conftest.err
6641 cat conftest.err >&5
6642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643 (exit $ac_status); } && {
6644 test -z "$ac_f77_werror_flag" ||
6645 test ! -s conftest.err
6646 } && test -s conftest.$ac_objext; then
6649 echo "$as_me: failed program was:" >&5
6650 sed 's/^/| /' conftest.$ac_ext >&5
6655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6656 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6659 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6660 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6662 ac_test_FFLAGS=${FFLAGS+set}
6663 ac_save_FFLAGS=$FFLAGS
6665 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6666 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6667 if test "${ac_cv_prog_f77_g+set}" = set; then
6668 echo $ECHO_N "(cached) $ECHO_C" >&6
6671 cat >conftest.$ac_ext <<_ACEOF
6676 rm -f conftest.$ac_objext
6677 if { (ac_try="$ac_compile"
6679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6680 *) ac_try_echo=$ac_try;;
6682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6683 (eval "$ac_compile") 2>conftest.er1
6685 grep -v '^ *+' conftest.er1 >conftest.err
6687 cat conftest.err >&5
6688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689 (exit $ac_status); } && {
6690 test -z "$ac_f77_werror_flag" ||
6691 test ! -s conftest.err
6692 } && test -s conftest.$ac_objext; then
6693 ac_cv_prog_f77_g=yes
6695 echo "$as_me: failed program was:" >&5
6696 sed 's/^/| /' conftest.$ac_ext >&5
6701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6704 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6705 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6706 if test "$ac_test_FFLAGS" = set; then
6707 FFLAGS=$ac_save_FFLAGS
6708 elif test $ac_cv_prog_f77_g = yes; then
6709 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6715 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6722 G77=`test $ac_compiler_gnu = yes && echo yes`
6724 ac_cpp='$CXXCPP $CPPFLAGS'
6725 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6726 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6727 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6731 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6733 # find the maximum length of command line arguments
6734 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6735 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6736 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6737 echo $ECHO_N "(cached) $ECHO_C" >&6
6744 # On DJGPP, this test can blow up pretty badly due to problems in libc
6745 # (any single argument exceeding 2000 bytes causes a buffer overrun
6746 # during glob expansion). Even if it were fixed, the result of this
6747 # check would be larger than it should be.
6748 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6752 # Under GNU Hurd, this test is not required because there is
6753 # no limit to the length of command line arguments.
6754 # Libtool will interpret -1 as no limit whatsoever
6755 lt_cv_sys_max_cmd_len=-1;
6759 # On Win9x/ME, this test blows up -- it succeeds, but takes
6760 # about 5 minutes as the teststring grows exponentially.
6761 # Worse, since 9x/ME are not pre-emptively multitasking,
6762 # you end up with a "frozen" computer, even though with patience
6763 # the test eventually succeeds (with a max line length of 256k).
6764 # Instead, let's just punt: use the minimum linelength reported by
6765 # all of the supported platforms: 8192 (on NT/2K/XP).
6766 lt_cv_sys_max_cmd_len=8192;
6770 # On AmigaOS with pdksh, this test takes hours, literally.
6771 # So we just punt and use a minimum line length of 8192.
6772 lt_cv_sys_max_cmd_len=8192;
6775 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6776 # This has been around since 386BSD, at least. Likely further.
6777 if test -x /sbin/sysctl; then
6778 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6779 elif test -x /usr/sbin/sysctl; then
6780 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6782 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6784 # And add a safety zone
6785 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6786 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6790 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6791 lt_cv_sys_max_cmd_len=196608
6795 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6796 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6797 # nice to cause kernel panics so lets avoid the loop below.
6798 # First set a reasonable default.
6799 lt_cv_sys_max_cmd_len=16384
6801 if test -x /sbin/sysconfig; then
6802 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6803 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6808 lt_cv_sys_max_cmd_len=102400
6810 sysv5* | sco5v6* | sysv4.2uw2*)
6811 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6812 if test -n "$kargmax"; then
6813 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6815 lt_cv_sys_max_cmd_len=32768
6819 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6820 if test -n "$lt_cv_sys_max_cmd_len"; then
6821 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6822 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6824 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6825 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6826 = "XX$teststring") >/dev/null 2>&1 &&
6827 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6828 lt_cv_sys_max_cmd_len=$new_result &&
6829 test $i != 17 # 1/2 MB should be enough
6832 teststring=$teststring$teststring
6835 # Add a significant safety factor because C++ compilers can tack on massive
6836 # amounts of additional arguments before passing them to the linker.
6837 # It appears as though 1/2 is a usable value.
6838 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6845 if test -n $lt_cv_sys_max_cmd_len ; then
6846 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6847 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6849 { echo "$as_me:$LINENO: result: none" >&5
6850 echo "${ECHO_T}none" >&6; }
6857 # Check for command to grab the raw symbol name followed by C symbol from nm.
6858 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6859 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6860 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6861 echo $ECHO_N "(cached) $ECHO_C" >&6
6864 # These are sane defaults that work on at least a few old systems.
6865 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6867 # Character class describing NM global symbol codes.
6868 symcode='[BCDEGRST]'
6870 # Regexp to match symbols that can be accessed directly from C.
6871 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6873 # Transform an extracted symbol line into a proper C declaration
6874 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6876 # Transform an extracted symbol line into symbol name and symbol address
6877 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'"
6879 # Define system-specific variables.
6884 cygwin* | mingw* | pw32*)
6885 symcode='[ABCDGISTW]'
6887 hpux*) # Its linker distinguishes data from code symbols
6888 if test "$host_cpu" = ia64; then
6889 symcode='[ABCDEGRST]'
6891 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6892 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'"
6894 linux* | k*bsd*-gnu)
6895 if test "$host_cpu" = ia64; then
6896 symcode='[ABCDGIRSTW]'
6897 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6898 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'"
6902 symcode='[BCDEGRST]'
6905 symcode='[BCDEGQRST]'
6916 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6924 # Handle CRLF in mingw tool chain
6928 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6932 # If we're using GNU nm, then use its standard symbol codes.
6933 case `$NM -V 2>&1` in
6934 *GNU* | *'with BFD'*)
6935 symcode='[ABCDGIRSTW]' ;;
6938 # Try without a prefix undercore, then with it.
6939 for ac_symprfx in "" "_"; do
6941 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6942 symxfrm="\\1 $ac_symprfx\\2 \\2"
6944 # Write the raw and C identifiers.
6945 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6947 # Check to see that the pipe works correctly.
6951 cat > conftest.$ac_ext <<EOF
6956 void nm_test_func(){}
6960 int main(){nm_test_var='a';nm_test_func();return(0);}
6963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6964 (eval $ac_compile) 2>&5
6966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967 (exit $ac_status); }; then
6968 # Now try to grab the symbols.
6970 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6971 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); } && test -s "$nlist"; then
6975 # Try sorting and uniquifying the output.
6976 if sort "$nlist" | uniq > "$nlist"T; then
6977 mv -f "$nlist"T "$nlist"
6982 # Make sure that we snagged all the symbols we need.
6983 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6984 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6985 cat <<EOF > conftest.$ac_ext
6991 # Now generate the symbol file.
6992 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6994 cat <<EOF >> conftest.$ac_ext
6995 #if defined (__STDC__) && __STDC__
6996 # define lt_ptr_t void *
6998 # define lt_ptr_t char *
7002 /* The mapping between symbol names and symbols. */
7007 lt_preloaded_symbols[] =
7010 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7011 cat <<\EOF >> conftest.$ac_ext
7019 # Now try linking the two files.
7020 mv conftest.$ac_objext conftstm.$ac_objext
7021 lt_save_LIBS="$LIBS"
7022 lt_save_CFLAGS="$CFLAGS"
7023 LIBS="conftstm.$ac_objext"
7024 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7026 (eval $ac_link) 2>&5
7028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7032 LIBS="$lt_save_LIBS"
7033 CFLAGS="$lt_save_CFLAGS"
7035 echo "cannot find nm_test_func in $nlist" >&5
7038 echo "cannot find nm_test_var in $nlist" >&5
7041 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7044 echo "$progname: failed program was:" >&5
7045 cat conftest.$ac_ext >&5
7047 rm -f conftest* conftst*
7049 # Do not use the global_symbol_pipe unless it works.
7050 if test "$pipe_works" = yes; then
7053 lt_cv_sys_global_symbol_pipe=
7059 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7060 lt_cv_sys_global_symbol_to_cdecl=
7062 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7063 { echo "$as_me:$LINENO: result: failed" >&5
7064 echo "${ECHO_T}failed" >&6; }
7066 { echo "$as_me:$LINENO: result: ok" >&5
7067 echo "${ECHO_T}ok" >&6; }
7070 { echo "$as_me:$LINENO: checking for objdir" >&5
7071 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7072 if test "${lt_cv_objdir+set}" = set; then
7073 echo $ECHO_N "(cached) $ECHO_C" >&6
7075 rm -f .libs 2>/dev/null
7076 mkdir .libs 2>/dev/null
7077 if test -d .libs; then
7080 # MS-DOS does not allow filenames that begin with a dot.
7083 rmdir .libs 2>/dev/null
7085 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7086 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7087 objdir=$lt_cv_objdir
7095 # AIX sometimes has problems with the GCC collect2 program. For some
7096 # reason, if we set the COLLECT_NAMES environment variable, the problems
7097 # vanish in a puff of smoke.
7098 if test "X${COLLECT_NAMES+set}" != Xset; then
7100 export COLLECT_NAMES
7105 # Sed substitution that helps us do robust quoting. It backslashifies
7106 # metacharacters that are still active within double-quoted strings.
7107 Xsed='sed -e 1s/^X//'
7108 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7110 # Same as above, but do not quote variable references.
7111 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7113 # Sed substitution to delay expansion of an escaped shell variable in a
7114 # double_quote_subst'ed string.
7115 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7117 # Sed substitution to avoid accidental globbing in evaled expressions
7118 no_glob_subst='s/\*/\\\*/g'
7124 default_ofile=libtool
7125 can_build_shared=yes
7127 # All known linkers require a `.a' archive for static linking (except MSVC,
7128 # which needs '.lib').
7130 ltmain="$ac_aux_dir/ltmain.sh"
7131 ofile="$default_ofile"
7132 with_gnu_ld="$lt_cv_prog_gnu_ld"
7134 if test -n "$ac_tool_prefix"; then
7135 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7136 set dummy ${ac_tool_prefix}ar; ac_word=$2
7137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7139 if test "${ac_cv_prog_AR+set}" = set; then
7140 echo $ECHO_N "(cached) $ECHO_C" >&6
7142 if test -n "$AR"; then
7143 ac_cv_prog_AR="$AR" # Let the user override the test.
7145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149 test -z "$as_dir" && as_dir=.
7150 for ac_exec_ext in '' $ac_executable_extensions; do
7151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7152 ac_cv_prog_AR="${ac_tool_prefix}ar"
7153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7163 if test -n "$AR"; then
7164 { echo "$as_me:$LINENO: result: $AR" >&5
7165 echo "${ECHO_T}$AR" >&6; }
7167 { echo "$as_me:$LINENO: result: no" >&5
7168 echo "${ECHO_T}no" >&6; }
7173 if test -z "$ac_cv_prog_AR"; then
7175 # Extract the first word of "ar", so it can be a program name with args.
7176 set dummy ar; ac_word=$2
7177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7179 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7180 echo $ECHO_N "(cached) $ECHO_C" >&6
7182 if test -n "$ac_ct_AR"; then
7183 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7189 test -z "$as_dir" && as_dir=.
7190 for ac_exec_ext in '' $ac_executable_extensions; do
7191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7192 ac_cv_prog_ac_ct_AR="ar"
7193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7202 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7203 if test -n "$ac_ct_AR"; then
7204 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7205 echo "${ECHO_T}$ac_ct_AR" >&6; }
7207 { echo "$as_me:$LINENO: result: no" >&5
7208 echo "${ECHO_T}no" >&6; }
7211 if test "x$ac_ct_AR" = x; then
7214 case $cross_compiling:$ac_tool_warned in
7216 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7217 whose name does not start with the host triplet. If you think this
7218 configuration is useful to you, please write to autoconf@gnu.org." >&5
7219 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7220 whose name does not start with the host triplet. If you think this
7221 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7222 ac_tool_warned=yes ;;
7230 if test -n "$ac_tool_prefix"; then
7231 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7232 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7235 if test "${ac_cv_prog_RANLIB+set}" = set; then
7236 echo $ECHO_N "(cached) $ECHO_C" >&6
7238 if test -n "$RANLIB"; then
7239 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245 test -z "$as_dir" && as_dir=.
7246 for ac_exec_ext in '' $ac_executable_extensions; do
7247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7248 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7258 RANLIB=$ac_cv_prog_RANLIB
7259 if test -n "$RANLIB"; then
7260 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7261 echo "${ECHO_T}$RANLIB" >&6; }
7263 { echo "$as_me:$LINENO: result: no" >&5
7264 echo "${ECHO_T}no" >&6; }
7269 if test -z "$ac_cv_prog_RANLIB"; then
7270 ac_ct_RANLIB=$RANLIB
7271 # Extract the first word of "ranlib", so it can be a program name with args.
7272 set dummy ranlib; ac_word=$2
7273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7275 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7276 echo $ECHO_N "(cached) $ECHO_C" >&6
7278 if test -n "$ac_ct_RANLIB"; then
7279 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7285 test -z "$as_dir" && as_dir=.
7286 for ac_exec_ext in '' $ac_executable_extensions; do
7287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7288 ac_cv_prog_ac_ct_RANLIB="ranlib"
7289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7298 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7299 if test -n "$ac_ct_RANLIB"; then
7300 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7301 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7303 { echo "$as_me:$LINENO: result: no" >&5
7304 echo "${ECHO_T}no" >&6; }
7307 if test "x$ac_ct_RANLIB" = x; then
7310 case $cross_compiling:$ac_tool_warned in
7312 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7313 whose name does not start with the host triplet. If you think this
7314 configuration is useful to you, please write to autoconf@gnu.org." >&5
7315 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7316 whose name does not start with the host triplet. If you think this
7317 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7318 ac_tool_warned=yes ;;
7320 RANLIB=$ac_ct_RANLIB
7323 RANLIB="$ac_cv_prog_RANLIB"
7326 if test -n "$ac_tool_prefix"; then
7327 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7328 set dummy ${ac_tool_prefix}strip; ac_word=$2
7329 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7331 if test "${ac_cv_prog_STRIP+set}" = set; then
7332 echo $ECHO_N "(cached) $ECHO_C" >&6
7334 if test -n "$STRIP"; then
7335 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7341 test -z "$as_dir" && as_dir=.
7342 for ac_exec_ext in '' $ac_executable_extensions; do
7343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7344 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7354 STRIP=$ac_cv_prog_STRIP
7355 if test -n "$STRIP"; then
7356 { echo "$as_me:$LINENO: result: $STRIP" >&5
7357 echo "${ECHO_T}$STRIP" >&6; }
7359 { echo "$as_me:$LINENO: result: no" >&5
7360 echo "${ECHO_T}no" >&6; }
7365 if test -z "$ac_cv_prog_STRIP"; then
7367 # Extract the first word of "strip", so it can be a program name with args.
7368 set dummy strip; ac_word=$2
7369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7371 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7372 echo $ECHO_N "(cached) $ECHO_C" >&6
7374 if test -n "$ac_ct_STRIP"; then
7375 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381 test -z "$as_dir" && as_dir=.
7382 for ac_exec_ext in '' $ac_executable_extensions; do
7383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7384 ac_cv_prog_ac_ct_STRIP="strip"
7385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7394 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7395 if test -n "$ac_ct_STRIP"; then
7396 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7397 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7399 { echo "$as_me:$LINENO: result: no" >&5
7400 echo "${ECHO_T}no" >&6; }
7403 if test "x$ac_ct_STRIP" = x; then
7406 case $cross_compiling:$ac_tool_warned in
7408 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7409 whose name does not start with the host triplet. If you think this
7410 configuration is useful to you, please write to autoconf@gnu.org." >&5
7411 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7412 whose name does not start with the host triplet. If you think this
7413 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7414 ac_tool_warned=yes ;;
7419 STRIP="$ac_cv_prog_STRIP"
7424 old_CFLAGS="$CFLAGS"
7426 # Set sane defaults for various variables
7427 test -z "$AR" && AR=ar
7428 test -z "$AR_FLAGS" && AR_FLAGS=cru
7429 test -z "$AS" && AS=as
7430 test -z "$CC" && CC=cc
7431 test -z "$LTCC" && LTCC=$CC
7432 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7433 test -z "$DLLTOOL" && DLLTOOL=dlltool
7434 test -z "$LD" && LD=ld
7435 test -z "$LN_S" && LN_S="ln -s"
7436 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7437 test -z "$NM" && NM=nm
7438 test -z "$SED" && SED=sed
7439 test -z "$OBJDUMP" && OBJDUMP=objdump
7440 test -z "$RANLIB" && RANLIB=:
7441 test -z "$STRIP" && STRIP=:
7442 test -z "$ac_objext" && ac_objext=o
7444 # Determine commands to create old-style static archives.
7445 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7446 old_postinstall_cmds='chmod 644 $oldlib'
7447 old_postuninstall_cmds=
7449 if test -n "$RANLIB"; then
7452 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7455 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7458 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7461 for cc_temp in $compiler""; do
7463 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7464 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7469 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7472 # Only perform the check for file, if the check method requires it
7473 case $deplibs_check_method in
7475 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7476 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7477 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7478 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7479 echo $ECHO_N "(cached) $ECHO_C" >&6
7483 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7486 lt_save_MAGIC_CMD="$MAGIC_CMD"
7487 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7488 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7489 for ac_dir in $ac_dummy; do
7491 test -z "$ac_dir" && ac_dir=.
7492 if test -f $ac_dir/${ac_tool_prefix}file; then
7493 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7494 if test -n "$file_magic_test_file"; then
7495 case $deplibs_check_method in
7497 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7498 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7499 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7500 $EGREP "$file_magic_regex" > /dev/null; then
7505 *** Warning: the command libtool uses to detect shared libraries,
7506 *** $file_magic_cmd, produces output that libtool cannot recognize.
7507 *** The result is that libtool may fail to recognize shared libraries
7508 *** as such. This will affect the creation of libtool libraries that
7509 *** depend on shared libraries, but programs linked with such libtool
7510 *** libraries will work regardless of this problem. Nevertheless, you
7511 *** may want to report the problem to your system manager and/or to
7512 *** bug-libtool@gnu.org
7522 MAGIC_CMD="$lt_save_MAGIC_CMD"
7527 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7528 if test -n "$MAGIC_CMD"; then
7529 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7530 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7532 { echo "$as_me:$LINENO: result: no" >&5
7533 echo "${ECHO_T}no" >&6; }
7536 if test -z "$lt_cv_path_MAGIC_CMD"; then
7537 if test -n "$ac_tool_prefix"; then
7538 { echo "$as_me:$LINENO: checking for file" >&5
7539 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7540 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7541 echo $ECHO_N "(cached) $ECHO_C" >&6
7545 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7548 lt_save_MAGIC_CMD="$MAGIC_CMD"
7549 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7550 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7551 for ac_dir in $ac_dummy; do
7553 test -z "$ac_dir" && ac_dir=.
7554 if test -f $ac_dir/file; then
7555 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7556 if test -n "$file_magic_test_file"; then
7557 case $deplibs_check_method in
7559 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7560 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7561 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7562 $EGREP "$file_magic_regex" > /dev/null; then
7567 *** Warning: the command libtool uses to detect shared libraries,
7568 *** $file_magic_cmd, produces output that libtool cannot recognize.
7569 *** The result is that libtool may fail to recognize shared libraries
7570 *** as such. This will affect the creation of libtool libraries that
7571 *** depend on shared libraries, but programs linked with such libtool
7572 *** libraries will work regardless of this problem. Nevertheless, you
7573 *** may want to report the problem to your system manager and/or to
7574 *** bug-libtool@gnu.org
7584 MAGIC_CMD="$lt_save_MAGIC_CMD"
7589 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7590 if test -n "$MAGIC_CMD"; then
7591 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7592 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7594 { echo "$as_me:$LINENO: result: no" >&5
7595 echo "${ECHO_T}no" >&6; }
7608 enable_win32_dll=yes
7610 # Check whether --enable-libtool-lock was given.
7611 if test "${enable_libtool_lock+set}" = set; then
7612 enableval=$enable_libtool_lock;
7615 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7618 # Check whether --with-pic was given.
7619 if test "${with_pic+set}" = set; then
7620 withval=$with_pic; pic_mode="$withval"
7625 test -z "$pic_mode" && pic_mode=default
7627 # Use C for the default configuration in the libtool script
7631 ac_cpp='$CPP $CPPFLAGS'
7632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7637 # Source file extension for C test sources.
7640 # Object file extension for compiled C test sources.
7644 # Code to be used in simple compile tests
7645 lt_simple_compile_test_code="int some_variable = 0;"
7647 # Code to be used in simple link tests
7648 lt_simple_link_test_code='int main(){return(0);}'
7651 # If no C compiler was specified, use CC.
7654 # If no C compiler flags were specified, use CFLAGS.
7655 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7657 # Allow CC to be a program name with arguments.
7661 # save warnings/boilerplate of simple test code
7662 ac_outfile=conftest.$ac_objext
7663 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7664 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7665 _lt_compiler_boilerplate=`cat conftest.err`
7668 ac_outfile=conftest.$ac_objext
7669 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7670 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7671 _lt_linker_boilerplate=`cat conftest.err`
7676 lt_prog_compiler_no_builtin_flag=
7678 if test "$GCC" = yes; then
7679 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7682 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7683 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7684 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7685 echo $ECHO_N "(cached) $ECHO_C" >&6
7687 lt_cv_prog_compiler_rtti_exceptions=no
7688 ac_outfile=conftest.$ac_objext
7689 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7690 lt_compiler_flag="-fno-rtti -fno-exceptions"
7691 # Insert the option either (1) after the last *FLAGS variable, or
7692 # (2) before a word containing "conftest.", or (3) at the end.
7693 # Note that $ac_compile itself does not contain backslashes and begins
7694 # with a dollar sign (not a hyphen), so the echo should work correctly.
7695 # The option is referenced via a variable to avoid confusing sed.
7696 lt_compile=`echo "$ac_compile" | $SED \
7697 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7698 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7699 -e 's:$: $lt_compiler_flag:'`
7700 (eval echo "\"\$as_me:7700: $lt_compile\"" >&5)
7701 (eval "$lt_compile" 2>conftest.err)
7703 cat conftest.err >&5
7704 echo "$as_me:7704: \$? = $ac_status" >&5
7705 if (exit $ac_status) && test -s "$ac_outfile"; then
7706 # The compiler can only warn and ignore the option if not recognized
7707 # So say no if there are warnings other than the usual output.
7708 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7709 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7710 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7711 lt_cv_prog_compiler_rtti_exceptions=yes
7717 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7718 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7720 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7721 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7728 lt_prog_compiler_wl=
7729 lt_prog_compiler_pic=
7730 lt_prog_compiler_static=
7732 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7733 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7735 if test "$GCC" = yes; then
7736 lt_prog_compiler_wl='-Wl,'
7737 lt_prog_compiler_static='-static'
7741 # All AIX code is PIC.
7742 if test "$host_cpu" = ia64; then
7743 # AIX 5 now supports IA64 processor
7744 lt_prog_compiler_static='-Bstatic'
7749 # FIXME: we need at least 68020 code to build shared libraries, but
7750 # adding the `-m68020' flag to GCC prevents building anything better,
7752 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7755 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7756 # PIC is the default for these OSes.
7759 mingw* | cygwin* | pw32* | os2*)
7760 # This hack is so that the source file can tell whether it is being
7761 # built for inclusion in a dll (and should export symbols for example).
7762 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7763 # (--disable-auto-import) libraries
7764 lt_prog_compiler_pic='-DDLL_EXPORT'
7767 darwin* | rhapsody*)
7768 # PIC is the default on this platform
7769 # Common symbols not allowed in MH_DYLIB files
7770 lt_prog_compiler_pic='-fno-common'
7774 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7775 # Instead, we relocate shared libraries at runtime.
7779 # Just because we use GCC doesn't mean we suddenly get shared libraries
7780 # on systems that don't support them.
7781 lt_prog_compiler_can_build_shared=no
7786 if test -d /usr/nec; then
7787 lt_prog_compiler_pic=-Kconform_pic
7792 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7799 lt_prog_compiler_pic='-fPIC'
7805 lt_prog_compiler_pic='-fPIC'
7809 # PORTME Check for flag to pass linker flags through the system compiler.
7812 lt_prog_compiler_wl='-Wl,'
7813 if test "$host_cpu" = ia64; then
7814 # AIX 5 now supports IA64 processor
7815 lt_prog_compiler_static='-Bstatic'
7817 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7821 # PIC is the default on this platform
7822 # Common symbols not allowed in MH_DYLIB files
7823 case $cc_basename in
7825 lt_prog_compiler_pic='-qnocommon'
7826 lt_prog_compiler_wl='-Wl,'
7831 mingw* | cygwin* | pw32* | os2*)
7832 # This hack is so that the source file can tell whether it is being
7833 # built for inclusion in a dll (and should export symbols for example).
7834 lt_prog_compiler_pic='-DDLL_EXPORT'
7837 hpux9* | hpux10* | hpux11*)
7838 lt_prog_compiler_wl='-Wl,'
7839 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7846 lt_prog_compiler_pic='+Z'
7849 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7850 lt_prog_compiler_static='${wl}-a ${wl}archive'
7853 irix5* | irix6* | nonstopux*)
7854 lt_prog_compiler_wl='-Wl,'
7855 # PIC (with -KPIC) is the default.
7856 lt_prog_compiler_static='-non_shared'
7860 lt_prog_compiler_pic='-KPIC'
7861 lt_prog_compiler_static='-Bstatic'
7864 linux* | k*bsd*-gnu)
7865 case $cc_basename in
7867 lt_prog_compiler_wl='-Wl,'
7868 lt_prog_compiler_pic='-KPIC'
7869 lt_prog_compiler_static='-static'
7871 pgcc* | pgf77* | pgf90* | pgf95*)
7872 # Portland Group compilers (*not* the Pentium gcc compiler,
7873 # which looks to be a dead project)
7874 lt_prog_compiler_wl='-Wl,'
7875 lt_prog_compiler_pic='-fpic'
7876 lt_prog_compiler_static='-Bstatic'
7879 lt_prog_compiler_wl='-Wl,'
7880 # All Alpha code is PIC.
7881 lt_prog_compiler_static='-non_shared'
7884 case `$CC -V 2>&1 | sed 5q` in
7887 lt_prog_compiler_pic='-KPIC'
7888 lt_prog_compiler_static='-Bstatic'
7889 lt_prog_compiler_wl='-Wl,'
7892 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7893 lt_prog_compiler_pic='-KPIC'
7894 lt_prog_compiler_static='-Bstatic'
7895 lt_prog_compiler_wl=''
7902 osf3* | osf4* | osf5*)
7903 lt_prog_compiler_wl='-Wl,'
7904 # All OSF/1 code is PIC.
7905 lt_prog_compiler_static='-non_shared'
7909 lt_prog_compiler_static='-non_shared'
7913 lt_prog_compiler_pic='-KPIC'
7914 lt_prog_compiler_static='-Bstatic'
7915 case $cc_basename in
7917 lt_prog_compiler_wl='-Qoption ld ';;
7919 lt_prog_compiler_wl='-Wl,';;
7924 lt_prog_compiler_wl='-Qoption ld '
7925 lt_prog_compiler_pic='-PIC'
7926 lt_prog_compiler_static='-Bstatic'
7929 sysv4 | sysv4.2uw2* | sysv4.3*)
7930 lt_prog_compiler_wl='-Wl,'
7931 lt_prog_compiler_pic='-KPIC'
7932 lt_prog_compiler_static='-Bstatic'
7936 if test -d /usr/nec ;then
7937 lt_prog_compiler_pic='-Kconform_pic'
7938 lt_prog_compiler_static='-Bstatic'
7942 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7943 lt_prog_compiler_wl='-Wl,'
7944 lt_prog_compiler_pic='-KPIC'
7945 lt_prog_compiler_static='-Bstatic'
7949 lt_prog_compiler_wl='-Wl,'
7950 lt_prog_compiler_can_build_shared=no
7954 lt_prog_compiler_pic='-pic'
7955 lt_prog_compiler_static='-Bstatic'
7959 lt_prog_compiler_can_build_shared=no
7964 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7965 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7968 # Check to make sure the PIC flag actually works.
7970 if test -n "$lt_prog_compiler_pic"; then
7972 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7973 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7974 if test "${lt_prog_compiler_pic_works+set}" = set; then
7975 echo $ECHO_N "(cached) $ECHO_C" >&6
7977 lt_prog_compiler_pic_works=no
7978 ac_outfile=conftest.$ac_objext
7979 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7980 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7981 # Insert the option either (1) after the last *FLAGS variable, or
7982 # (2) before a word containing "conftest.", or (3) at the end.
7983 # Note that $ac_compile itself does not contain backslashes and begins
7984 # with a dollar sign (not a hyphen), so the echo should work correctly.
7985 # The option is referenced via a variable to avoid confusing sed.
7986 lt_compile=`echo "$ac_compile" | $SED \
7987 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7988 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7989 -e 's:$: $lt_compiler_flag:'`
7990 (eval echo "\"\$as_me:7990: $lt_compile\"" >&5)
7991 (eval "$lt_compile" 2>conftest.err)
7993 cat conftest.err >&5
7994 echo "$as_me:7994: \$? = $ac_status" >&5
7995 if (exit $ac_status) && test -s "$ac_outfile"; then
7996 # The compiler can only warn and ignore the option if not recognized
7997 # So say no if there are warnings other than the usual output.
7998 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7999 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8000 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8001 lt_prog_compiler_pic_works=yes
8007 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8008 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8010 if test x"$lt_prog_compiler_pic_works" = xyes; then
8011 case $lt_prog_compiler_pic in
8013 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8016 lt_prog_compiler_pic=
8017 lt_prog_compiler_can_build_shared=no
8022 # For platforms which do not support PIC, -DPIC is meaningless:
8024 lt_prog_compiler_pic=
8027 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8032 # Check to make sure the static flag actually works.
8034 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8035 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8036 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8037 if test "${lt_prog_compiler_static_works+set}" = set; then
8038 echo $ECHO_N "(cached) $ECHO_C" >&6
8040 lt_prog_compiler_static_works=no
8041 save_LDFLAGS="$LDFLAGS"
8042 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8043 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8044 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8045 # The linker can only warn and ignore the option if not recognized
8046 # So say no if there are warnings
8047 if test -s conftest.err; then
8048 # Append any errors to the config.log.
8049 cat conftest.err 1>&5
8050 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8051 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8052 if diff conftest.exp conftest.er2 >/dev/null; then
8053 lt_prog_compiler_static_works=yes
8056 lt_prog_compiler_static_works=yes
8060 LDFLAGS="$save_LDFLAGS"
8063 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8064 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8066 if test x"$lt_prog_compiler_static_works" = xyes; then
8069 lt_prog_compiler_static=
8073 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8074 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8075 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8076 echo $ECHO_N "(cached) $ECHO_C" >&6
8078 lt_cv_prog_compiler_c_o=no
8079 $rm -r conftest 2>/dev/null
8083 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8085 lt_compiler_flag="-o out/conftest2.$ac_objext"
8086 # Insert the option either (1) after the last *FLAGS variable, or
8087 # (2) before a word containing "conftest.", or (3) at the end.
8088 # Note that $ac_compile itself does not contain backslashes and begins
8089 # with a dollar sign (not a hyphen), so the echo should work correctly.
8090 lt_compile=`echo "$ac_compile" | $SED \
8091 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8092 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8093 -e 's:$: $lt_compiler_flag:'`
8094 (eval echo "\"\$as_me:8094: $lt_compile\"" >&5)
8095 (eval "$lt_compile" 2>out/conftest.err)
8097 cat out/conftest.err >&5
8098 echo "$as_me:8098: \$? = $ac_status" >&5
8099 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8101 # The compiler can only warn and ignore the option if not recognized
8102 # So say no if there are warnings
8103 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8104 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8105 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8106 lt_cv_prog_compiler_c_o=yes
8111 # SGI C++ compiler will create directory out/ii_files/ for
8112 # template instantiation
8113 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8114 $rm out/* && rmdir out
8120 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8121 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8124 hard_links="nottested"
8125 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8126 # do not overwrite the value of need_locks provided by the user
8127 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8128 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8131 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8133 ln conftest.a conftest.b 2>&5 || hard_links=no
8134 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8135 { echo "$as_me:$LINENO: result: $hard_links" >&5
8136 echo "${ECHO_T}$hard_links" >&6; }
8137 if test "$hard_links" = no; then
8138 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8139 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8146 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8147 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8150 allow_undefined_flag=
8151 enable_shared_with_static_runtimes=no
8153 archive_expsym_cmds=
8154 old_archive_From_new_cmds=
8155 old_archive_from_expsyms_cmds=
8156 export_dynamic_flag_spec=
8157 whole_archive_flag_spec=
8158 thread_safe_flag_spec=
8159 hardcode_libdir_flag_spec=
8160 hardcode_libdir_flag_spec_ld=
8161 hardcode_libdir_separator=
8164 hardcode_shlibpath_var=unsupported
8165 link_all_deplibs=unknown
8166 hardcode_automatic=no
8169 always_export_symbols=no
8170 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8171 # include_expsyms should be a list of space-separated symbols to be *always*
8172 # included in the symbol list
8174 # exclude_expsyms can be an extended regexp of symbols to exclude
8175 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8176 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8177 # as well as any symbol that contains `d'.
8178 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8179 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8180 # platforms (ab)use it in PIC code, but their linkers get confused if
8181 # the symbol is explicitly referenced. Since portable code cannot
8182 # rely on this symbol name, it's probably fine to never include it in
8183 # preloaded symbol tables.
8184 extract_expsyms_cmds=
8185 # Just being paranoid about ensuring that cc_basename is set.
8186 for cc_temp in $compiler""; do
8188 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8189 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8194 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8197 cygwin* | mingw* | pw32*)
8198 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8199 # When not using gcc, we currently assume that we are using
8200 # Microsoft Visual C++.
8201 if test "$GCC" != yes; then
8206 # we just hope/assume this is gcc and not c89 (= MSVC++)
8215 if test "$with_gnu_ld" = yes; then
8216 # If archive_cmds runs LD, not CC, wlarc should be empty
8219 # Set some defaults for GNU ld with shared library support. These
8220 # are reset later if shared libraries are not supported. Putting them
8221 # here allows them to be overridden if necessary.
8222 runpath_var=LD_RUN_PATH
8223 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8224 export_dynamic_flag_spec='${wl}--export-dynamic'
8225 # ancient GNU ld didn't support --whole-archive et. al.
8226 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8227 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8229 whole_archive_flag_spec=
8231 supports_anon_versioning=no
8232 case `$LD -v 2>/dev/null` in
8233 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8234 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8235 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8236 *\ 2.11.*) ;; # other 2.11 versions
8237 *) supports_anon_versioning=yes ;;
8240 # See if GNU ld supports shared libraries.
8242 aix3* | aix4* | aix5*)
8243 # On AIX/PPC, the GNU linker is very broken
8244 if test "$host_cpu" != ia64; then
8248 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8249 *** to be unable to reliably create shared libraries on AIX.
8250 *** Therefore, libtool is disabling shared libraries support. If you
8251 *** really care for shared libraries, you may want to modify your PATH
8252 *** so that a non-GNU linker is found, and then restart.
8259 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)'
8260 hardcode_libdir_flag_spec='-L$libdir'
8261 hardcode_minus_L=yes
8263 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8264 # that the semantics of dynamic libraries on AmigaOS, at least up
8265 # to version 4, is to share data among multiple programs linked
8266 # with the same dynamic library. Since this doesn't match the
8267 # behavior of shared libraries on other platforms, we can't use
8273 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8274 allow_undefined_flag=unsupported
8275 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8276 # support --undefined. This deserves some investigation. FIXME
8277 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8283 cygwin* | mingw* | pw32*)
8284 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8285 # as there is no search path for DLLs.
8286 hardcode_libdir_flag_spec='-L$libdir'
8287 allow_undefined_flag=unsupported
8288 always_export_symbols=no
8289 enable_shared_with_static_runtimes=yes
8290 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8292 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8293 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8294 # If the export-symbols file already is a .def file (1st line
8295 # is EXPORTS), use it as is; otherwise, prepend...
8296 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8297 cp $export_symbols $output_objdir/$soname.def;
8299 echo EXPORTS > $output_objdir/$soname.def;
8300 cat $export_symbols >> $output_objdir/$soname.def;
8302 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8310 hardcode_shlibpath_var=no
8311 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8312 export_dynamic_flag_spec='${wl}-E'
8313 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8314 # Instead, shared libraries are loaded at an image base (0x10000000 by
8315 # default) and relocated if they conflict, which is a slow very memory
8316 # consuming and fragmenting process. To avoid this, we pick a random,
8317 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8318 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8319 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8320 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'
8323 gnu* | linux* | k*bsd*-gnu)
8324 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8326 case $cc_basename,$host_cpu in
8327 pgcc*) # Portland Group C compiler
8328 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'
8329 tmp_addflag=' $pic_flag'
8331 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8332 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'
8333 tmp_addflag=' $pic_flag -Mnomain' ;;
8334 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8335 tmp_addflag=' -i_dynamic' ;;
8336 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8337 tmp_addflag=' -i_dynamic -nofor_main' ;;
8338 ifc* | ifort*) # Intel Fortran compiler
8339 tmp_addflag=' -nofor_main' ;;
8341 case `$CC -V 2>&1 | sed 5q` in
8342 *Sun\ C*) # Sun C 5.9
8343 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'
8344 tmp_sharedflag='-G' ;;
8345 *Sun\ F*) # Sun Fortran 8.3
8346 tmp_sharedflag='-G' ;;
8348 tmp_sharedflag='-shared' ;;
8350 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8352 if test $supports_anon_versioning = yes; then
8353 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8354 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8355 $echo "local: *; };" >> $output_objdir/$libname.ver~
8356 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8364 netbsd* | netbsdelf*-gnu)
8365 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8366 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8369 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8370 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8375 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8379 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8380 *** create shared libraries on Solaris systems. Therefore, libtool
8381 *** is disabling shared libraries support. We urge you to upgrade GNU
8382 *** binutils to release 2.9.1 or newer. Another option is to modify
8383 *** your PATH or compiler configuration so that the native linker is
8384 *** used, and then restart.
8387 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8388 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8389 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8395 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8396 case `$LD -v 2>&1` in
8397 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8401 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8402 *** reliably create shared libraries on SCO systems. Therefore, libtool
8403 *** is disabling shared libraries support. We urge you to upgrade GNU
8404 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8405 *** your PATH or compiler configuration so that the native linker is
8406 *** used, and then restart.
8411 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8412 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8413 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8414 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8423 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8426 hardcode_shlibpath_var=no
8430 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8431 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8432 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8439 if test "$ld_shlibs" = no; then
8441 hardcode_libdir_flag_spec=
8442 export_dynamic_flag_spec=
8443 whole_archive_flag_spec=
8446 # PORTME fill in a description of your system's linker (not GNU ld)
8449 allow_undefined_flag=unsupported
8450 always_export_symbols=yes
8451 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'
8452 # Note: this linker hardcodes the directories in LIBPATH if there
8453 # are no directories specified by -L.
8454 hardcode_minus_L=yes
8455 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8456 # Neither direct hardcoding nor static linking is supported with a
8458 hardcode_direct=unsupported
8463 if test "$host_cpu" = ia64; then
8464 # On IA64, the linker does run time linking by default, so we don't
8465 # have to do anything special.
8466 aix_use_runtimelinking=no
8467 exp_sym_flag='-Bexport'
8470 # If we're using GNU nm, then we don't want the "-C" option.
8471 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8472 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8473 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'
8475 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'
8477 aix_use_runtimelinking=no
8479 # Test if we are trying to use run time linking or normal
8480 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8481 # need to do runtime linking.
8482 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8483 for ld_flag in $LDFLAGS; do
8484 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8485 aix_use_runtimelinking=yes
8492 exp_sym_flag='-bexport'
8493 no_entry_flag='-bnoentry'
8496 # When large executables or shared objects are built, AIX ld can
8497 # have problems creating the table of contents. If linking a library
8498 # or program results in "error TOC overflow" add -mminimal-toc to
8499 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8500 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8504 hardcode_libdir_separator=':'
8505 link_all_deplibs=yes
8507 if test "$GCC" = yes; then
8508 case $host_os in aix4.[012]|aix4.[012].*)
8509 # We only want to do this on AIX 4.2 and lower, the check
8510 # below for broken collect2 doesn't work under 4.3+
8511 collect2name=`${CC} -print-prog-name=collect2`
8512 if test -f "$collect2name" && \
8513 strings "$collect2name" | grep resolve_lib_name >/dev/null
8515 # We have reworked collect2
8518 # We have old collect2
8519 hardcode_direct=unsupported
8520 # It fails to find uninstalled libraries when the uninstalled
8521 # path is not listed in the libpath. Setting hardcode_minus_L
8522 # to unsupported forces relinking
8523 hardcode_minus_L=yes
8524 hardcode_libdir_flag_spec='-L$libdir'
8525 hardcode_libdir_separator=
8529 shared_flag='-shared'
8530 if test "$aix_use_runtimelinking" = yes; then
8531 shared_flag="$shared_flag "'${wl}-G'
8535 if test "$host_cpu" = ia64; then
8536 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8537 # chokes on -Wl,-G. The following line is correct:
8540 if test "$aix_use_runtimelinking" = yes; then
8541 shared_flag='${wl}-G'
8543 shared_flag='${wl}-bM:SRE'
8548 # It seems that -bexpall does not export symbols beginning with
8549 # underscore (_), so it is better to generate a list of symbols to export.
8550 always_export_symbols=yes
8551 if test "$aix_use_runtimelinking" = yes; then
8552 # Warning - without using the other runtime loading flags (-brtl),
8553 # -berok will link without error, but may produce a broken library.
8554 allow_undefined_flag='-berok'
8555 # Determine the default libpath from the value encoded in an empty executable.
8556 cat >conftest.$ac_ext <<_ACEOF
8559 cat confdefs.h >>conftest.$ac_ext
8560 cat >>conftest.$ac_ext <<_ACEOF
8561 /* end confdefs.h. */
8571 rm -f conftest.$ac_objext conftest$ac_exeext
8572 if { (ac_try="$ac_link"
8574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8575 *) ac_try_echo=$ac_try;;
8577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8578 (eval "$ac_link") 2>conftest.er1
8580 grep -v '^ *+' conftest.er1 >conftest.err
8582 cat conftest.err >&5
8583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584 (exit $ac_status); } && {
8585 test -z "$ac_c_werror_flag" ||
8586 test ! -s conftest.err
8587 } && test -s conftest$ac_exeext &&
8588 $as_test_x conftest$ac_exeext; then
8590 lt_aix_libpath_sed='
8591 /Import File Strings/,/^$/ {
8597 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8598 # Check for a 64-bit object if we didn't find anything.
8599 if test -z "$aix_libpath"; then
8600 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8603 echo "$as_me: failed program was:" >&5
8604 sed 's/^/| /' conftest.$ac_ext >&5
8609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8610 conftest$ac_exeext conftest.$ac_ext
8611 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8613 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8614 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"
8616 if test "$host_cpu" = ia64; then
8617 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8618 allow_undefined_flag="-z nodefs"
8619 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"
8621 # Determine the default libpath from the value encoded in an empty executable.
8622 cat >conftest.$ac_ext <<_ACEOF
8625 cat confdefs.h >>conftest.$ac_ext
8626 cat >>conftest.$ac_ext <<_ACEOF
8627 /* end confdefs.h. */
8637 rm -f conftest.$ac_objext conftest$ac_exeext
8638 if { (ac_try="$ac_link"
8640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8641 *) ac_try_echo=$ac_try;;
8643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8644 (eval "$ac_link") 2>conftest.er1
8646 grep -v '^ *+' conftest.er1 >conftest.err
8648 cat conftest.err >&5
8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); } && {
8651 test -z "$ac_c_werror_flag" ||
8652 test ! -s conftest.err
8653 } && test -s conftest$ac_exeext &&
8654 $as_test_x conftest$ac_exeext; then
8656 lt_aix_libpath_sed='
8657 /Import File Strings/,/^$/ {
8663 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8664 # Check for a 64-bit object if we didn't find anything.
8665 if test -z "$aix_libpath"; then
8666 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8669 echo "$as_me: failed program was:" >&5
8670 sed 's/^/| /' conftest.$ac_ext >&5
8675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8676 conftest$ac_exeext conftest.$ac_ext
8677 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8679 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8680 # Warning - without using the other run time loading flags,
8681 # -berok will link without error, but may produce a broken library.
8682 no_undefined_flag=' ${wl}-bernotok'
8683 allow_undefined_flag=' ${wl}-berok'
8684 # Exported symbols can be pulled into shared objects from archives
8685 whole_archive_flag_spec='$convenience'
8686 archive_cmds_need_lc=yes
8687 # This is similar to how AIX traditionally builds its shared libraries.
8688 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'
8694 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)'
8695 hardcode_libdir_flag_spec='-L$libdir'
8696 hardcode_minus_L=yes
8697 # see comment about different semantics on the GNU ld section
8702 export_dynamic_flag_spec=-rdynamic
8705 cygwin* | mingw* | pw32*)
8706 # When not using gcc, we currently assume that we are using
8707 # Microsoft Visual C++.
8708 # hardcode_libdir_flag_spec is actually meaningless, as there is
8709 # no search path for DLLs.
8710 hardcode_libdir_flag_spec=' '
8711 allow_undefined_flag=unsupported
8712 # Tell ltmain to make .lib files, not .a files.
8714 # Tell ltmain to make .dll files, not .so files.
8716 # FIXME: Setting linknames here is a bad hack.
8717 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8718 # The linker will automatically build a .lib file if we build a DLL.
8719 old_archive_From_new_cmds='true'
8720 # FIXME: Should let the user specify the lib program.
8721 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8722 fix_srcfile_path='`cygpath -w "$srcfile"`'
8723 enable_shared_with_static_runtimes=yes
8726 darwin* | rhapsody*)
8728 rhapsody* | darwin1.[012])
8729 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8732 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8733 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8735 case ${MACOSX_DEPLOYMENT_TARGET} in
8737 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8740 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8746 archive_cmds_need_lc=no
8748 hardcode_automatic=yes
8749 hardcode_shlibpath_var=unsupported
8750 whole_archive_flag_spec=''
8751 link_all_deplibs=yes
8752 if test "$GCC" = yes ; then
8753 output_verbose_link_cmd='echo'
8754 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8755 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8756 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8757 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8758 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}'
8760 case $cc_basename in
8762 output_verbose_link_cmd='echo'
8763 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8764 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8765 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8766 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}'
8767 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}'
8777 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8778 hardcode_libdir_flag_spec='-L$libdir'
8779 hardcode_shlibpath_var=no
8786 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8787 # support. Future versions do this automatically, but an explicit c++rt0.o
8788 # does not break anything, and helps significantly (at the cost of a little
8791 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8792 hardcode_libdir_flag_spec='-R$libdir'
8794 hardcode_shlibpath_var=no
8797 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8799 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8801 hardcode_minus_L=yes
8802 hardcode_shlibpath_var=no
8805 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8806 freebsd* | dragonfly*)
8807 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8808 hardcode_libdir_flag_spec='-R$libdir'
8810 hardcode_shlibpath_var=no
8814 if test "$GCC" = yes; then
8815 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'
8817 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'
8819 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8820 hardcode_libdir_separator=:
8823 # hardcode_minus_L: Not really in the search PATH,
8824 # but as the default location of the library.
8825 hardcode_minus_L=yes
8826 export_dynamic_flag_spec='${wl}-E'
8830 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8831 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8833 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8835 if test "$with_gnu_ld" = no; then
8836 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8837 hardcode_libdir_separator=:
8840 export_dynamic_flag_spec='${wl}-E'
8842 # hardcode_minus_L: Not really in the search PATH,
8843 # but as the default location of the library.
8844 hardcode_minus_L=yes
8849 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8852 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8855 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8858 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8864 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8867 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8870 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8874 if test "$with_gnu_ld" = no; then
8875 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8876 hardcode_libdir_separator=:
8880 hardcode_libdir_flag_spec_ld='+b $libdir'
8882 hardcode_shlibpath_var=no
8886 export_dynamic_flag_spec='${wl}-E'
8888 # hardcode_minus_L: Not really in the search PATH,
8889 # but as the default location of the library.
8890 hardcode_minus_L=yes
8896 irix5* | irix6* | nonstopux*)
8897 if test "$GCC" = yes; then
8898 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'
8900 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'
8901 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8903 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8904 hardcode_libdir_separator=:
8905 link_all_deplibs=yes
8908 netbsd* | netbsdelf*-gnu)
8909 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8910 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8912 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8914 hardcode_libdir_flag_spec='-R$libdir'
8916 hardcode_shlibpath_var=no
8920 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8922 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8923 hardcode_libdir_separator=:
8924 hardcode_shlibpath_var=no
8928 if test -f /usr/libexec/ld.so; then
8930 hardcode_shlibpath_var=no
8931 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8932 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8933 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8934 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8935 export_dynamic_flag_spec='${wl}-E'
8938 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8939 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8940 hardcode_libdir_flag_spec='-R$libdir'
8943 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8944 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8954 hardcode_libdir_flag_spec='-L$libdir'
8955 hardcode_minus_L=yes
8956 allow_undefined_flag=unsupported
8957 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'
8958 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8962 if test "$GCC" = yes; then
8963 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8964 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'
8966 allow_undefined_flag=' -expect_unresolved \*'
8967 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'
8969 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8970 hardcode_libdir_separator=:
8973 osf4* | osf5*) # as osf3* with the addition of -msym flag
8974 if test "$GCC" = yes; then
8975 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8976 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'
8977 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8979 allow_undefined_flag=' -expect_unresolved \*'
8980 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'
8981 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8982 $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'
8984 # Both c and cxx compiler support -rpath directly
8985 hardcode_libdir_flag_spec='-rpath $libdir'
8987 hardcode_libdir_separator=:
8991 no_undefined_flag=' -z text'
8992 if test "$GCC" = yes; then
8994 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8995 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8996 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8999 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9000 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9001 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9003 hardcode_libdir_flag_spec='-R$libdir'
9004 hardcode_shlibpath_var=no
9006 solaris2.[0-5] | solaris2.[0-5].*) ;;
9008 # The compiler driver will combine and reorder linker options,
9009 # but understands `-z linker_flag'. GCC discards it without `$wl',
9010 # but is careful enough not to reorder.
9011 # Supported since Solaris 2.6 (maybe 2.5.1?)
9012 if test "$GCC" = yes; then
9013 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9015 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9019 link_all_deplibs=yes
9023 if test "x$host_vendor" = xsequent; then
9024 # Use $CC to link under sequent, because it throws in some extra .o
9025 # files that make .init and .fini sections work.
9026 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9028 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9030 hardcode_libdir_flag_spec='-L$libdir'
9032 hardcode_minus_L=yes
9033 hardcode_shlibpath_var=no
9037 case $host_vendor in
9039 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9040 hardcode_direct=yes # is this really true???
9043 ## LD is ld it makes a PLAMLIB
9044 ## CC just makes a GrossModule.
9045 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9046 reload_cmds='$CC -r -o $output$reload_objs'
9050 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9051 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9054 runpath_var='LD_RUN_PATH'
9055 hardcode_shlibpath_var=no
9059 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9060 hardcode_shlibpath_var=no
9061 export_dynamic_flag_spec='-Bexport'
9065 if test -d /usr/nec; then
9066 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9067 hardcode_shlibpath_var=no
9068 runpath_var=LD_RUN_PATH
9069 hardcode_runpath_var=yes
9074 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9075 no_undefined_flag='${wl}-z,text'
9076 archive_cmds_need_lc=no
9077 hardcode_shlibpath_var=no
9078 runpath_var='LD_RUN_PATH'
9080 if test "$GCC" = yes; then
9081 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9082 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9084 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9085 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9089 sysv5* | sco3.2v5* | sco5v6*)
9090 # Note: We can NOT use -z defs as we might desire, because we do not
9091 # link with -lc, and that would cause any symbols used from libc to
9092 # always be unresolved, which means just about no library would
9093 # ever link correctly. If we're not using GNU ld we use -z text
9094 # though, which does catch some bad symbols but isn't as heavy-handed
9096 no_undefined_flag='${wl}-z,text'
9097 allow_undefined_flag='${wl}-z,nodefs'
9098 archive_cmds_need_lc=no
9099 hardcode_shlibpath_var=no
9100 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9101 hardcode_libdir_separator=':'
9102 link_all_deplibs=yes
9103 export_dynamic_flag_spec='${wl}-Bexport'
9104 runpath_var='LD_RUN_PATH'
9106 if test "$GCC" = yes; then
9107 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9108 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9110 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9111 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9116 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9117 hardcode_libdir_flag_spec='-L$libdir'
9118 hardcode_shlibpath_var=no
9127 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9128 echo "${ECHO_T}$ld_shlibs" >&6; }
9129 test "$ld_shlibs" = no && can_build_shared=no
9132 # Do we need to explicitly link libc?
9134 case "x$archive_cmds_need_lc" in
9136 # Assume -lc should be added
9137 archive_cmds_need_lc=yes
9139 if test "$enable_shared" = yes && test "$GCC" = yes; then
9140 case $archive_cmds in
9142 # FIXME: we may have to deal with multi-command sequences.
9145 # Test whether the compiler implicitly links with -lc since on some
9146 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9147 # to ld, don't add -lc before -lgcc.
9148 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9149 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9151 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9154 (eval $ac_compile) 2>&5
9156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157 (exit $ac_status); } 2>conftest.err; then
9160 libobjs=conftest.$ac_objext
9162 wl=$lt_prog_compiler_wl
9163 pic_flag=$lt_prog_compiler_pic
9169 lt_save_allow_undefined_flag=$allow_undefined_flag
9170 allow_undefined_flag=
9171 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9172 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); }
9177 archive_cmds_need_lc=no
9179 archive_cmds_need_lc=yes
9181 allow_undefined_flag=$lt_save_allow_undefined_flag
9183 cat conftest.err 1>&5
9186 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9187 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9194 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9195 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9197 libname_spec='lib$name'
9205 shlibpath_overrides_runpath=unknown
9207 dynamic_linker="$host_os ld.so"
9208 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9210 if test "$GCC" = yes; then
9212 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9213 *) lt_awk_arg="/^libraries:/" ;;
9215 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9216 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9217 # if the path contains ";" then we assume it to be the separator
9218 # otherwise default to the standard path separator (i.e. ":") - it is
9219 # assumed that no part of a normal pathname contains ";" but that should
9220 # okay in the real world where ";" in dirpaths is itself problematic.
9221 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9223 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9225 # Ok, now we have the path, separated by spaces, we can step through it
9226 # and add multilib dir if necessary.
9227 lt_tmp_lt_search_path_spec=
9228 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9229 for lt_sys_path in $lt_search_path_spec; do
9230 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9231 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9233 test -d "$lt_sys_path" && \
9234 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9237 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9238 BEGIN {RS=" "; FS="/|\n";} {
9241 for (lt_i = NF; lt_i > 0; lt_i--) {
9242 if ($lt_i != "" && $lt_i != ".") {
9243 if ($lt_i == "..") {
9246 if (lt_count == 0) {
9247 lt_foo="/" $lt_i lt_foo;
9254 if (lt_foo != "") { lt_freq[lt_foo]++; }
9255 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9257 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9259 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9261 need_lib_prefix=unknown
9262 hardcode_into_libs=no
9264 # when you set need_version to no, make sure it does not cause -set_version
9265 # flags to be left without arguments
9266 need_version=unknown
9271 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9272 shlibpath_var=LIBPATH
9274 # AIX 3 has no versioning support, so we append a major version to the name.
9275 soname_spec='${libname}${release}${shared_ext}$major'
9282 hardcode_into_libs=yes
9283 if test "$host_cpu" = ia64; then
9284 # AIX 5 supports IA64
9285 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9286 shlibpath_var=LD_LIBRARY_PATH
9288 # With GCC up to 2.95.x, collect2 would create an import file
9289 # for dependence libraries. The import file would start with
9290 # the line `#! .'. This would cause the generated library to
9291 # depend on `.', always an invalid library. This was fixed in
9292 # development snapshots of GCC prior to 3.0.
9294 aix4 | aix4.[01] | aix4.[01].*)
9295 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9297 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9304 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9305 # soname into executable. Probably we can add versioning support to
9306 # collect2, so additional links can be useful in future.
9307 if test "$aix_use_runtimelinking" = yes; then
9308 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9309 # instead of lib<name>.a to let people know that these are not
9310 # typical AIX shared libraries.
9311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9313 # We preserve .a as extension for shared libraries through AIX4.2
9314 # and later when we are not doing run time linking.
9315 library_names_spec='${libname}${release}.a $libname.a'
9316 soname_spec='${libname}${release}${shared_ext}$major'
9318 shlibpath_var=LIBPATH
9323 library_names_spec='$libname.ixlibrary $libname.a'
9324 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9325 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'
9329 library_names_spec='${libname}${shared_ext}'
9330 dynamic_linker="$host_os ld.so"
9331 shlibpath_var=LIBRARY_PATH
9337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9338 soname_spec='${libname}${release}${shared_ext}$major'
9339 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9340 shlibpath_var=LD_LIBRARY_PATH
9341 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9342 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9343 # the default ld.so.conf also contains /usr/contrib/lib and
9344 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9345 # libtool to hard-code these into programs
9348 cygwin* | mingw* | pw32*)
9349 version_type=windows
9354 case $GCC,$host_os in
9355 yes,cygwin* | yes,mingw* | yes,pw32*)
9356 library_names_spec='$libname.dll.a'
9357 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9358 postinstall_cmds='base_file=`basename \${file}`~
9359 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9360 dldir=$destdir/`dirname \$dlpath`~
9361 test -d \$dldir || mkdir -p \$dldir~
9362 $install_prog $dir/$dlname \$dldir/$dlname~
9363 chmod a+x \$dldir/$dlname'
9364 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9365 dlpath=$dir/\$dldll~
9367 shlibpath_overrides_runpath=yes
9371 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9372 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9373 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9376 # MinGW DLLs use traditional 'lib' prefix
9377 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9378 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9379 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9380 # It is most probably a Windows format PATH printed by
9381 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9382 # path with ; separators, and with drive letters. We can handle the
9383 # drive letters (cygwin fileutils understands them), so leave them,
9384 # especially as we might pass files found there to a mingw objdump,
9385 # which wouldn't understand a cygwinified path. Ahh.
9386 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9388 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9392 # pw32 DLLs use 'pw' prefix rather than 'lib'
9393 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9399 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9402 dynamic_linker='Win32 ld.exe'
9403 # FIXME: first we should search . and the directory the executable is in
9407 darwin* | rhapsody*)
9408 dynamic_linker="$host_os dyld"
9412 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9413 soname_spec='${libname}${release}${major}$shared_ext'
9414 shlibpath_overrides_runpath=yes
9415 shlibpath_var=DYLD_LIBRARY_PATH
9416 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9418 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9419 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9427 soname_spec='${libname}${release}${shared_ext}$major'
9428 shlibpath_var=LD_LIBRARY_PATH
9435 freebsd* | dragonfly*)
9436 # DragonFly does not have aout. When/if they implement a new
9437 # versioning mechanism, adjust this.
9438 if test -x /usr/bin/objformat; then
9439 objformat=`/usr/bin/objformat`
9442 freebsd[123]*) objformat=aout ;;
9446 version_type=freebsd-$objformat
9447 case $version_type in
9449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9454 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9458 shlibpath_var=LD_LIBRARY_PATH
9461 shlibpath_overrides_runpath=yes
9463 freebsd3.[01]* | freebsdelf3.[01]*)
9464 shlibpath_overrides_runpath=yes
9465 hardcode_into_libs=yes
9467 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9468 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9469 shlibpath_overrides_runpath=no
9470 hardcode_into_libs=yes
9472 *) # from 4.6 on, and DragonFly
9473 shlibpath_overrides_runpath=yes
9474 hardcode_into_libs=yes
9483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9484 soname_spec='${libname}${release}${shared_ext}$major'
9485 shlibpath_var=LD_LIBRARY_PATH
9486 hardcode_into_libs=yes
9489 hpux9* | hpux10* | hpux11*)
9490 # Give a soname corresponding to the major version so that dld.sl refuses to
9491 # link against other versions.
9498 hardcode_into_libs=yes
9499 dynamic_linker="$host_os dld.so"
9500 shlibpath_var=LD_LIBRARY_PATH
9501 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9503 soname_spec='${libname}${release}${shared_ext}$major'
9504 if test "X$HPUX_IA64_MODE" = X32; then
9505 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9507 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9509 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9513 hardcode_into_libs=yes
9514 dynamic_linker="$host_os dld.sl"
9515 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9516 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9518 soname_spec='${libname}${release}${shared_ext}$major'
9519 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9520 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9524 dynamic_linker="$host_os dld.sl"
9525 shlibpath_var=SHLIB_PATH
9526 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9528 soname_spec='${libname}${release}${shared_ext}$major'
9531 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9532 postinstall_cmds='chmod 555 $lib'
9539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9540 soname_spec='${libname}${release}${shared_ext}$major'
9541 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9542 shlibpath_var=LD_LIBRARY_PATH
9543 shlibpath_overrides_runpath=no
9544 hardcode_into_libs=yes
9547 irix5* | irix6* | nonstopux*)
9549 nonstopux*) version_type=nonstopux ;;
9551 if test "$lt_cv_prog_gnu_ld" = yes; then
9559 soname_spec='${libname}${release}${shared_ext}$major'
9560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9562 irix5* | nonstopux*)
9566 case $LD in # libtool.m4 will add one of these switches to LD
9567 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9568 libsuff= shlibsuff= libmagic=32-bit;;
9569 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9570 libsuff=32 shlibsuff=N32 libmagic=N32;;
9571 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9572 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9573 *) libsuff= shlibsuff= libmagic=never-match;;
9577 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9578 shlibpath_overrides_runpath=no
9579 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9580 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9581 hardcode_into_libs=yes
9584 # No shared lib support for Linux oldld, aout, or coff.
9585 linux*oldld* | linux*aout* | linux*coff*)
9589 # This must be Linux ELF.
9590 linux* | k*bsd*-gnu)
9594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9595 soname_spec='${libname}${release}${shared_ext}$major'
9596 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9597 shlibpath_var=LD_LIBRARY_PATH
9598 shlibpath_overrides_runpath=no
9599 # This implies no fast_install, which is unacceptable.
9600 # Some rework will be needed to allow for fast_install
9601 # before this can be enabled.
9602 hardcode_into_libs=yes
9604 # Append ld.so.conf contents to the search path
9605 if test -f /etc/ld.so.conf; then
9606 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' ' '`
9607 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9610 # We used to test for /lib/ld.so.1 and disable shared libraries on
9611 # powerpc, because MkLinux only supported shared libraries with the
9612 # GNU dynamic linker. Since this was broken with cross compilers,
9613 # most powerpc-linux boxes support dynamic linking these days and
9614 # people can always --disable-shared, the test was removed, and we
9615 # assume the GNU/Linux dynamic linker is in use.
9616 dynamic_linker='GNU/Linux ld.so'
9623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9624 soname_spec='${libname}${release}${shared_ext}$major'
9625 shlibpath_var=LD_LIBRARY_PATH
9626 shlibpath_overrides_runpath=no
9627 hardcode_into_libs=yes
9628 dynamic_linker='NetBSD ld.elf_so'
9635 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9637 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9638 dynamic_linker='NetBSD (a.out) ld.so'
9640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9641 soname_spec='${libname}${release}${shared_ext}$major'
9642 dynamic_linker='NetBSD ld.elf_so'
9644 shlibpath_var=LD_LIBRARY_PATH
9645 shlibpath_overrides_runpath=yes
9646 hardcode_into_libs=yes
9651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9652 shlibpath_var=LD_LIBRARY_PATH
9653 shlibpath_overrides_runpath=yes
9660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9661 soname_spec='${libname}${release}${shared_ext}$major'
9662 shlibpath_var=LD_LIBRARY_PATH
9663 shlibpath_overrides_runpath=yes
9668 sys_lib_dlsearch_path_spec="/usr/lib"
9670 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9672 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9673 *) need_version=no ;;
9675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9676 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9677 shlibpath_var=LD_LIBRARY_PATH
9678 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9680 openbsd2.[89] | openbsd2.[89].*)
9681 shlibpath_overrides_runpath=no
9684 shlibpath_overrides_runpath=yes
9688 shlibpath_overrides_runpath=yes
9693 libname_spec='$name'
9696 library_names_spec='$libname${shared_ext} $libname.a'
9697 dynamic_linker='OS/2 ld.exe'
9698 shlibpath_var=LIBPATH
9701 osf3* | osf4* | osf5*)
9705 soname_spec='${libname}${release}${shared_ext}$major'
9706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9707 shlibpath_var=LD_LIBRARY_PATH
9708 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9709 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9721 soname_spec='${libname}${release}${shared_ext}$major'
9722 shlibpath_var=LD_LIBRARY_PATH
9723 shlibpath_overrides_runpath=yes
9724 hardcode_into_libs=yes
9725 # ldd complains unless libraries are executable
9726 postinstall_cmds='chmod +x $lib'
9731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9732 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9733 shlibpath_var=LD_LIBRARY_PATH
9734 shlibpath_overrides_runpath=yes
9735 if test "$with_gnu_ld" = yes; then
9743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9744 soname_spec='${libname}${release}${shared_ext}$major'
9745 shlibpath_var=LD_LIBRARY_PATH
9746 case $host_vendor in
9748 shlibpath_overrides_runpath=no
9750 export_dynamic_flag_spec='${wl}-Blargedynsym'
9751 runpath_var=LD_RUN_PATH
9759 shlibpath_overrides_runpath=no
9760 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9766 if test -d /usr/nec ;then
9768 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9769 soname_spec='$libname${shared_ext}.$major'
9770 shlibpath_var=LD_LIBRARY_PATH
9774 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9775 version_type=freebsd-elf
9778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9779 soname_spec='${libname}${release}${shared_ext}$major'
9780 shlibpath_var=LD_LIBRARY_PATH
9781 hardcode_into_libs=yes
9782 if test "$with_gnu_ld" = yes; then
9783 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9784 shlibpath_overrides_runpath=no
9786 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9787 shlibpath_overrides_runpath=yes
9790 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9794 sys_lib_dlsearch_path_spec='/usr/lib'
9799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9800 soname_spec='${libname}${release}${shared_ext}$major'
9801 shlibpath_var=LD_LIBRARY_PATH
9808 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9809 echo "${ECHO_T}$dynamic_linker" >&6; }
9810 test "$dynamic_linker" = no && can_build_shared=no
9812 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9813 if test "$GCC" = yes; then
9814 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9817 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9818 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9820 if test -n "$hardcode_libdir_flag_spec" || \
9821 test -n "$runpath_var" || \
9822 test "X$hardcode_automatic" = "Xyes" ; then
9824 # We can hardcode non-existant directories.
9825 if test "$hardcode_direct" != no &&
9826 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9827 # have to relink, otherwise we might link with an installed library
9828 # when we should be linking with a yet-to-be-installed one
9829 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9830 test "$hardcode_minus_L" != no; then
9831 # Linking always hardcodes the temporary library directory.
9832 hardcode_action=relink
9834 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9835 hardcode_action=immediate
9838 # We cannot hardcode anything, or else we can only hardcode existing
9840 hardcode_action=unsupported
9842 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9843 echo "${ECHO_T}$hardcode_action" >&6; }
9845 if test "$hardcode_action" = relink; then
9846 # Fast installation is not supported
9847 enable_fast_install=no
9848 elif test "$shlibpath_overrides_runpath" = yes ||
9849 test "$enable_shared" = no; then
9850 # Fast installation is not necessary
9851 enable_fast_install=needless
9856 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9857 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9858 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9859 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9860 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9861 { echo "$as_me:$LINENO: result: yes" >&5
9862 echo "${ECHO_T}yes" >&6; }
9864 # FIXME - insert some real tests, host_os isn't really good enough
9867 if test -n "$STRIP" ; then
9868 striplib="$STRIP -x"
9869 old_striplib="$STRIP -S"
9870 { echo "$as_me:$LINENO: result: yes" >&5
9871 echo "${ECHO_T}yes" >&6; }
9873 { echo "$as_me:$LINENO: result: no" >&5
9874 echo "${ECHO_T}no" >&6; }
9878 { echo "$as_me:$LINENO: result: no" >&5
9879 echo "${ECHO_T}no" >&6; }
9884 if test "x$enable_dlopen" != xyes; then
9885 enable_dlopen=unknown
9886 enable_dlopen_self=unknown
9887 enable_dlopen_self_static=unknown
9894 lt_cv_dlopen="load_add_on"
9896 lt_cv_dlopen_self=yes
9900 lt_cv_dlopen="LoadLibrary"
9905 lt_cv_dlopen="dlopen"
9910 # if libdl is installed we need to link against it
9911 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9912 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9913 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9914 echo $ECHO_N "(cached) $ECHO_C" >&6
9916 ac_check_lib_save_LIBS=$LIBS
9918 cat >conftest.$ac_ext <<_ACEOF
9921 cat confdefs.h >>conftest.$ac_ext
9922 cat >>conftest.$ac_ext <<_ACEOF
9923 /* end confdefs.h. */
9925 /* Override any GCC internal prototype to avoid an error.
9926 Use char because int might match the return type of a GCC
9927 builtin and then its argument prototype would still apply. */
9940 rm -f conftest.$ac_objext conftest$ac_exeext
9941 if { (ac_try="$ac_link"
9943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9944 *) ac_try_echo=$ac_try;;
9946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9947 (eval "$ac_link") 2>conftest.er1
9949 grep -v '^ *+' conftest.er1 >conftest.err
9951 cat conftest.err >&5
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); } && {
9954 test -z "$ac_c_werror_flag" ||
9955 test ! -s conftest.err
9956 } && test -s conftest$ac_exeext &&
9957 $as_test_x conftest$ac_exeext; then
9958 ac_cv_lib_dl_dlopen=yes
9960 echo "$as_me: failed program was:" >&5
9961 sed 's/^/| /' conftest.$ac_ext >&5
9963 ac_cv_lib_dl_dlopen=no
9966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9967 conftest$ac_exeext conftest.$ac_ext
9968 LIBS=$ac_check_lib_save_LIBS
9970 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9971 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9972 if test $ac_cv_lib_dl_dlopen = yes; then
9973 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9978 lt_cv_dlopen_self=yes
9985 { echo "$as_me:$LINENO: checking for shl_load" >&5
9986 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9987 if test "${ac_cv_func_shl_load+set}" = set; then
9988 echo $ECHO_N "(cached) $ECHO_C" >&6
9990 cat >conftest.$ac_ext <<_ACEOF
9993 cat confdefs.h >>conftest.$ac_ext
9994 cat >>conftest.$ac_ext <<_ACEOF
9995 /* end confdefs.h. */
9996 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9997 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9998 #define shl_load innocuous_shl_load
10000 /* System header to define __stub macros and hopefully few prototypes,
10001 which can conflict with char shl_load (); below.
10002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10003 <limits.h> exists even on freestanding compilers. */
10006 # include <limits.h>
10008 # include <assert.h>
10013 /* Override any GCC internal prototype to avoid an error.
10014 Use char because int might match the return type of a GCC
10015 builtin and then its argument prototype would still apply. */
10020 /* The GNU C library defines this for functions which it implements
10021 to always fail with ENOSYS. Some functions are actually named
10022 something starting with __ and the normal name is an alias. */
10023 #if defined __stub_shl_load || defined __stub___shl_load
10030 return shl_load ();
10035 rm -f conftest.$ac_objext conftest$ac_exeext
10036 if { (ac_try="$ac_link"
10037 case "(($ac_try" in
10038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10039 *) ac_try_echo=$ac_try;;
10041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10042 (eval "$ac_link") 2>conftest.er1
10044 grep -v '^ *+' conftest.er1 >conftest.err
10046 cat conftest.err >&5
10047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048 (exit $ac_status); } && {
10049 test -z "$ac_c_werror_flag" ||
10050 test ! -s conftest.err
10051 } && test -s conftest$ac_exeext &&
10052 $as_test_x conftest$ac_exeext; then
10053 ac_cv_func_shl_load=yes
10055 echo "$as_me: failed program was:" >&5
10056 sed 's/^/| /' conftest.$ac_ext >&5
10058 ac_cv_func_shl_load=no
10061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10062 conftest$ac_exeext conftest.$ac_ext
10064 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10065 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10066 if test $ac_cv_func_shl_load = yes; then
10067 lt_cv_dlopen="shl_load"
10069 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10070 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10071 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10072 echo $ECHO_N "(cached) $ECHO_C" >&6
10074 ac_check_lib_save_LIBS=$LIBS
10076 cat >conftest.$ac_ext <<_ACEOF
10079 cat confdefs.h >>conftest.$ac_ext
10080 cat >>conftest.$ac_ext <<_ACEOF
10081 /* end confdefs.h. */
10083 /* Override any GCC internal prototype to avoid an error.
10084 Use char because int might match the return type of a GCC
10085 builtin and then its argument prototype would still apply. */
10093 return shl_load ();
10098 rm -f conftest.$ac_objext conftest$ac_exeext
10099 if { (ac_try="$ac_link"
10100 case "(($ac_try" in
10101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10102 *) ac_try_echo=$ac_try;;
10104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10105 (eval "$ac_link") 2>conftest.er1
10107 grep -v '^ *+' conftest.er1 >conftest.err
10109 cat conftest.err >&5
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); } && {
10112 test -z "$ac_c_werror_flag" ||
10113 test ! -s conftest.err
10114 } && test -s conftest$ac_exeext &&
10115 $as_test_x conftest$ac_exeext; then
10116 ac_cv_lib_dld_shl_load=yes
10118 echo "$as_me: failed program was:" >&5
10119 sed 's/^/| /' conftest.$ac_ext >&5
10121 ac_cv_lib_dld_shl_load=no
10124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10125 conftest$ac_exeext conftest.$ac_ext
10126 LIBS=$ac_check_lib_save_LIBS
10128 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10129 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10130 if test $ac_cv_lib_dld_shl_load = yes; then
10131 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10133 { echo "$as_me:$LINENO: checking for dlopen" >&5
10134 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10135 if test "${ac_cv_func_dlopen+set}" = set; then
10136 echo $ECHO_N "(cached) $ECHO_C" >&6
10138 cat >conftest.$ac_ext <<_ACEOF
10141 cat confdefs.h >>conftest.$ac_ext
10142 cat >>conftest.$ac_ext <<_ACEOF
10143 /* end confdefs.h. */
10144 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10145 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10146 #define dlopen innocuous_dlopen
10148 /* System header to define __stub macros and hopefully few prototypes,
10149 which can conflict with char dlopen (); below.
10150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10151 <limits.h> exists even on freestanding compilers. */
10154 # include <limits.h>
10156 # include <assert.h>
10161 /* Override any GCC internal prototype to avoid an error.
10162 Use char because int might match the return type of a GCC
10163 builtin and then its argument prototype would still apply. */
10168 /* The GNU C library defines this for functions which it implements
10169 to always fail with ENOSYS. Some functions are actually named
10170 something starting with __ and the normal name is an alias. */
10171 #if defined __stub_dlopen || defined __stub___dlopen
10183 rm -f conftest.$ac_objext conftest$ac_exeext
10184 if { (ac_try="$ac_link"
10185 case "(($ac_try" in
10186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10187 *) ac_try_echo=$ac_try;;
10189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10190 (eval "$ac_link") 2>conftest.er1
10192 grep -v '^ *+' conftest.er1 >conftest.err
10194 cat conftest.err >&5
10195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196 (exit $ac_status); } && {
10197 test -z "$ac_c_werror_flag" ||
10198 test ! -s conftest.err
10199 } && test -s conftest$ac_exeext &&
10200 $as_test_x conftest$ac_exeext; then
10201 ac_cv_func_dlopen=yes
10203 echo "$as_me: failed program was:" >&5
10204 sed 's/^/| /' conftest.$ac_ext >&5
10206 ac_cv_func_dlopen=no
10209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10210 conftest$ac_exeext conftest.$ac_ext
10212 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10213 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10214 if test $ac_cv_func_dlopen = yes; then
10215 lt_cv_dlopen="dlopen"
10217 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10218 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10219 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10220 echo $ECHO_N "(cached) $ECHO_C" >&6
10222 ac_check_lib_save_LIBS=$LIBS
10224 cat >conftest.$ac_ext <<_ACEOF
10227 cat confdefs.h >>conftest.$ac_ext
10228 cat >>conftest.$ac_ext <<_ACEOF
10229 /* end confdefs.h. */
10231 /* Override any GCC internal prototype to avoid an error.
10232 Use char because int might match the return type of a GCC
10233 builtin and then its argument prototype would still apply. */
10246 rm -f conftest.$ac_objext conftest$ac_exeext
10247 if { (ac_try="$ac_link"
10248 case "(($ac_try" in
10249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10250 *) ac_try_echo=$ac_try;;
10252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10253 (eval "$ac_link") 2>conftest.er1
10255 grep -v '^ *+' conftest.er1 >conftest.err
10257 cat conftest.err >&5
10258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); } && {
10260 test -z "$ac_c_werror_flag" ||
10261 test ! -s conftest.err
10262 } && test -s conftest$ac_exeext &&
10263 $as_test_x conftest$ac_exeext; then
10264 ac_cv_lib_dl_dlopen=yes
10266 echo "$as_me: failed program was:" >&5
10267 sed 's/^/| /' conftest.$ac_ext >&5
10269 ac_cv_lib_dl_dlopen=no
10272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10273 conftest$ac_exeext conftest.$ac_ext
10274 LIBS=$ac_check_lib_save_LIBS
10276 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10277 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10278 if test $ac_cv_lib_dl_dlopen = yes; then
10279 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10281 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10282 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10283 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10284 echo $ECHO_N "(cached) $ECHO_C" >&6
10286 ac_check_lib_save_LIBS=$LIBS
10287 LIBS="-lsvld $LIBS"
10288 cat >conftest.$ac_ext <<_ACEOF
10291 cat confdefs.h >>conftest.$ac_ext
10292 cat >>conftest.$ac_ext <<_ACEOF
10293 /* end confdefs.h. */
10295 /* Override any GCC internal prototype to avoid an error.
10296 Use char because int might match the return type of a GCC
10297 builtin and then its argument prototype would still apply. */
10310 rm -f conftest.$ac_objext conftest$ac_exeext
10311 if { (ac_try="$ac_link"
10312 case "(($ac_try" in
10313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10314 *) ac_try_echo=$ac_try;;
10316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10317 (eval "$ac_link") 2>conftest.er1
10319 grep -v '^ *+' conftest.er1 >conftest.err
10321 cat conftest.err >&5
10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323 (exit $ac_status); } && {
10324 test -z "$ac_c_werror_flag" ||
10325 test ! -s conftest.err
10326 } && test -s conftest$ac_exeext &&
10327 $as_test_x conftest$ac_exeext; then
10328 ac_cv_lib_svld_dlopen=yes
10330 echo "$as_me: failed program was:" >&5
10331 sed 's/^/| /' conftest.$ac_ext >&5
10333 ac_cv_lib_svld_dlopen=no
10336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10337 conftest$ac_exeext conftest.$ac_ext
10338 LIBS=$ac_check_lib_save_LIBS
10340 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10341 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10342 if test $ac_cv_lib_svld_dlopen = yes; then
10343 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10345 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10346 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10347 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10348 echo $ECHO_N "(cached) $ECHO_C" >&6
10350 ac_check_lib_save_LIBS=$LIBS
10352 cat >conftest.$ac_ext <<_ACEOF
10355 cat confdefs.h >>conftest.$ac_ext
10356 cat >>conftest.$ac_ext <<_ACEOF
10357 /* end confdefs.h. */
10359 /* Override any GCC internal prototype to avoid an error.
10360 Use char because int might match the return type of a GCC
10361 builtin and then its argument prototype would still apply. */
10369 return dld_link ();
10374 rm -f conftest.$ac_objext conftest$ac_exeext
10375 if { (ac_try="$ac_link"
10376 case "(($ac_try" in
10377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10378 *) ac_try_echo=$ac_try;;
10380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10381 (eval "$ac_link") 2>conftest.er1
10383 grep -v '^ *+' conftest.er1 >conftest.err
10385 cat conftest.err >&5
10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); } && {
10388 test -z "$ac_c_werror_flag" ||
10389 test ! -s conftest.err
10390 } && test -s conftest$ac_exeext &&
10391 $as_test_x conftest$ac_exeext; then
10392 ac_cv_lib_dld_dld_link=yes
10394 echo "$as_me: failed program was:" >&5
10395 sed 's/^/| /' conftest.$ac_ext >&5
10397 ac_cv_lib_dld_dld_link=no
10400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10401 conftest$ac_exeext conftest.$ac_ext
10402 LIBS=$ac_check_lib_save_LIBS
10404 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10405 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10406 if test $ac_cv_lib_dld_dld_link = yes; then
10407 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10428 if test "x$lt_cv_dlopen" != xno; then
10434 case $lt_cv_dlopen in
10436 save_CPPFLAGS="$CPPFLAGS"
10437 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10439 save_LDFLAGS="$LDFLAGS"
10440 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10443 LIBS="$lt_cv_dlopen_libs $LIBS"
10445 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10446 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10447 if test "${lt_cv_dlopen_self+set}" = set; then
10448 echo $ECHO_N "(cached) $ECHO_C" >&6
10450 if test "$cross_compiling" = yes; then :
10451 lt_cv_dlopen_self=cross
10453 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10454 lt_status=$lt_dlunknown
10455 cat > conftest.$ac_ext <<EOF
10456 #line 10456 "configure"
10457 #include "confdefs.h"
10466 # define LT_DLGLOBAL RTLD_GLOBAL
10469 # define LT_DLGLOBAL DL_GLOBAL
10471 # define LT_DLGLOBAL 0
10475 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10476 find out it does not work in some platform. */
10477 #ifndef LT_DLLAZY_OR_NOW
10479 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10482 # define LT_DLLAZY_OR_NOW DL_LAZY
10485 # define LT_DLLAZY_OR_NOW RTLD_NOW
10488 # define LT_DLLAZY_OR_NOW DL_NOW
10490 # define LT_DLLAZY_OR_NOW 0
10498 extern "C" void exit (int);
10501 void fnord() { int i=42;}
10504 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10505 int status = $lt_dlunknown;
10509 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10510 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10511 /* dlclose (self); */
10519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10520 (eval $ac_link) 2>&5
10522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10524 (./conftest; exit; ) >&5 2>/dev/null
10526 case x$lt_status in
10527 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10528 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10529 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10532 # compilation failed
10533 lt_cv_dlopen_self=no
10540 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10541 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10543 if test "x$lt_cv_dlopen_self" = xyes; then
10544 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10545 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10546 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10547 if test "${lt_cv_dlopen_self_static+set}" = set; then
10548 echo $ECHO_N "(cached) $ECHO_C" >&6
10550 if test "$cross_compiling" = yes; then :
10551 lt_cv_dlopen_self_static=cross
10553 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10554 lt_status=$lt_dlunknown
10555 cat > conftest.$ac_ext <<EOF
10556 #line 10556 "configure"
10557 #include "confdefs.h"
10566 # define LT_DLGLOBAL RTLD_GLOBAL
10569 # define LT_DLGLOBAL DL_GLOBAL
10571 # define LT_DLGLOBAL 0
10575 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10576 find out it does not work in some platform. */
10577 #ifndef LT_DLLAZY_OR_NOW
10579 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10582 # define LT_DLLAZY_OR_NOW DL_LAZY
10585 # define LT_DLLAZY_OR_NOW RTLD_NOW
10588 # define LT_DLLAZY_OR_NOW DL_NOW
10590 # define LT_DLLAZY_OR_NOW 0
10598 extern "C" void exit (int);
10601 void fnord() { int i=42;}
10604 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10605 int status = $lt_dlunknown;
10609 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10610 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10611 /* dlclose (self); */
10619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10620 (eval $ac_link) 2>&5
10622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10624 (./conftest; exit; ) >&5 2>/dev/null
10626 case x$lt_status in
10627 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10628 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10629 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10632 # compilation failed
10633 lt_cv_dlopen_self_static=no
10640 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10641 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10644 CPPFLAGS="$save_CPPFLAGS"
10645 LDFLAGS="$save_LDFLAGS"
10650 case $lt_cv_dlopen_self in
10651 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10652 *) enable_dlopen_self=unknown ;;
10655 case $lt_cv_dlopen_self_static in
10656 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10657 *) enable_dlopen_self_static=unknown ;;
10662 # Report which library types will actually be built
10663 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10664 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10665 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10666 echo "${ECHO_T}$can_build_shared" >&6; }
10668 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10669 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10670 test "$can_build_shared" = "no" && enable_shared=no
10672 # On AIX, shared libraries and static libraries use the same namespace, and
10673 # are all built from PIC.
10676 test "$enable_shared" = yes && enable_static=no
10677 if test -n "$RANLIB"; then
10678 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10679 postinstall_cmds='$RANLIB $lib'
10684 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10685 test "$enable_shared" = yes && enable_static=no
10689 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10690 echo "${ECHO_T}$enable_shared" >&6; }
10692 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10693 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10694 # Make sure either enable_shared or enable_static is yes.
10695 test "$enable_shared" = yes || enable_static=yes
10696 { echo "$as_me:$LINENO: result: $enable_static" >&5
10697 echo "${ECHO_T}$enable_static" >&6; }
10699 # The else clause should only fire when bootstrapping the
10700 # libtool distribution, otherwise you forgot to ship ltmain.sh
10701 # with your package, and you will get complaints that there are
10702 # no rules to generate ltmain.sh.
10703 if test -f "$ltmain"; then
10704 # See if we are running on zsh, and set the options which allow our commands through
10705 # without removal of \ escapes.
10706 if test -n "${ZSH_VERSION+set}" ; then
10707 setopt NO_GLOB_SUBST
10709 # Now quote all the things that may contain metacharacters while being
10710 # careful not to overquote the AC_SUBSTed values. We take copies of the
10711 # variables and quote the copies for generation of the libtool script.
10712 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10714 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10715 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10716 deplibs_check_method reload_flag reload_cmds need_locks \
10717 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10718 lt_cv_sys_global_symbol_to_c_name_address \
10719 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10720 old_postinstall_cmds old_postuninstall_cmds \
10724 lt_prog_compiler_wl \
10725 lt_prog_compiler_pic \
10726 lt_prog_compiler_static \
10727 lt_prog_compiler_no_builtin_flag \
10728 export_dynamic_flag_spec \
10729 thread_safe_flag_spec \
10730 whole_archive_flag_spec \
10731 enable_shared_with_static_runtimes \
10733 old_archive_from_new_cmds \
10738 compiler_lib_search_path \
10740 archive_expsym_cmds \
10742 postuninstall_cmds \
10743 old_archive_from_expsyms_cmds \
10744 allow_undefined_flag \
10745 no_undefined_flag \
10746 export_symbols_cmds \
10747 hardcode_libdir_flag_spec \
10748 hardcode_libdir_flag_spec_ld \
10749 hardcode_libdir_separator \
10750 hardcode_automatic \
10752 module_expsym_cmds \
10753 lt_cv_prog_compiler_c_o \
10756 include_expsyms; do
10759 old_archive_cmds | \
10760 old_archive_from_new_cmds | \
10762 archive_expsym_cmds | \
10764 module_expsym_cmds | \
10765 old_archive_from_expsyms_cmds | \
10766 export_symbols_cmds | \
10767 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10768 postinstall_cmds | postuninstall_cmds | \
10769 old_postinstall_cmds | old_postuninstall_cmds | \
10770 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10771 # Double-quote double-evaled strings.
10772 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10775 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10781 *'\$0 --fallback-echo"')
10782 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10786 cfgfile="${ofile}T"
10787 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10789 { echo "$as_me:$LINENO: creating $ofile" >&5
10790 echo "$as_me: creating $ofile" >&6;}
10792 cat <<__EOF__ >> "$cfgfile"
10795 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10796 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10797 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10799 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10800 # Free Software Foundation, Inc.
10802 # This file is part of GNU Libtool:
10803 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10805 # This program is free software; you can redistribute it and/or modify
10806 # it under the terms of the GNU General Public License as published by
10807 # the Free Software Foundation; either version 2 of the License, or
10808 # (at your option) any later version.
10810 # This program is distributed in the hope that it will be useful, but
10811 # WITHOUT ANY WARRANTY; without even the implied warranty of
10812 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10813 # General Public License for more details.
10815 # You should have received a copy of the GNU General Public License
10816 # along with this program; if not, write to the Free Software
10817 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10819 # As a special exception to the GNU General Public License, if you
10820 # distribute this file as part of a program that contains a
10821 # configuration script generated by Autoconf, you may include it under
10822 # the same distribution terms that you use for the rest of that program.
10824 # A sed program that does not truncate output.
10827 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10828 Xsed="$SED -e 1s/^X//"
10830 # The HP-UX ksh and POSIX shell print the target directory to stdout
10831 # if CDPATH is set.
10832 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10834 # The names of the tagged configurations supported by this script.
10837 # ### BEGIN LIBTOOL CONFIG
10839 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10841 # Shell to use when invoking shell scripts.
10844 # Whether or not to build shared libraries.
10845 build_libtool_libs=$enable_shared
10847 # Whether or not to build static libraries.
10848 build_old_libs=$enable_static
10850 # Whether or not to add -lc for building shared libraries.
10851 build_libtool_need_lc=$archive_cmds_need_lc
10853 # Whether or not to disallow shared libs when runtime libs are static
10854 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10856 # Whether or not to optimize for fast installation.
10857 fast_install=$enable_fast_install
10860 host_alias=$host_alias
10864 # The build system.
10865 build_alias=$build_alias
10869 # An echo program that does not interpret backslashes.
10874 AR_FLAGS=$lt_AR_FLAGS
10879 # LTCC compiler flags.
10880 LTCFLAGS=$lt_LTCFLAGS
10882 # A language-specific compiler.
10885 # Is the compiler the GNU C compiler?
10891 # The linker used to build libraries.
10894 # Whether we need hard or soft links.
10897 # A BSD-compatible nm program.
10900 # A symbol stripping program
10903 # Used to examine libraries when file_magic_cmd begins "file"
10904 MAGIC_CMD=$MAGIC_CMD
10906 # Used on cygwin: DLL creation program.
10909 # Used on cygwin: object dumper.
10912 # Used on cygwin: assembler.
10915 # The name of the directory that contains temporary libtool files.
10918 # How to create reloadable object files.
10919 reload_flag=$lt_reload_flag
10920 reload_cmds=$lt_reload_cmds
10922 # How to pass a linker flag through the compiler.
10923 wl=$lt_lt_prog_compiler_wl
10925 # Object file suffix (normally "o").
10926 objext="$ac_objext"
10928 # Old archive suffix (normally "a").
10931 # Shared library suffix (normally ".so").
10932 shrext_cmds='$shrext_cmds'
10934 # Executable file suffix (normally "").
10937 # Additional compiler flags for building library objects.
10938 pic_flag=$lt_lt_prog_compiler_pic
10941 # What is the maximum length of a command?
10942 max_cmd_len=$lt_cv_sys_max_cmd_len
10944 # Does compiler simultaneously support -c and -o options?
10945 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10947 # Must we lock files when doing compilation?
10948 need_locks=$lt_need_locks
10950 # Do we need the lib prefix for modules?
10951 need_lib_prefix=$need_lib_prefix
10953 # Do we need a version for libraries?
10954 need_version=$need_version
10956 # Whether dlopen is supported.
10957 dlopen_support=$enable_dlopen
10959 # Whether dlopen of programs is supported.
10960 dlopen_self=$enable_dlopen_self
10962 # Whether dlopen of statically linked programs is supported.
10963 dlopen_self_static=$enable_dlopen_self_static
10965 # Compiler flag to prevent dynamic linking.
10966 link_static_flag=$lt_lt_prog_compiler_static
10968 # Compiler flag to turn off builtin functions.
10969 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10971 # Compiler flag to allow reflexive dlopens.
10972 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10974 # Compiler flag to generate shared objects directly from archives.
10975 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10977 # Compiler flag to generate thread-safe objects.
10978 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10980 # Library versioning type.
10981 version_type=$version_type
10983 # Format of library name prefix.
10984 libname_spec=$lt_libname_spec
10986 # List of archive names. First name is the real one, the rest are links.
10987 # The last name is the one that the linker finds with -lNAME.
10988 library_names_spec=$lt_library_names_spec
10990 # The coded name of the library, if different from the real name.
10991 soname_spec=$lt_soname_spec
10993 # Commands used to build and install an old-style archive.
10995 old_archive_cmds=$lt_old_archive_cmds
10996 old_postinstall_cmds=$lt_old_postinstall_cmds
10997 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10999 # Create an old-style archive from a shared archive.
11000 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11002 # Create a temporary old-style archive to link instead of a shared archive.
11003 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11005 # Commands used to build and install a shared archive.
11006 archive_cmds=$lt_archive_cmds
11007 archive_expsym_cmds=$lt_archive_expsym_cmds
11008 postinstall_cmds=$lt_postinstall_cmds
11009 postuninstall_cmds=$lt_postuninstall_cmds
11011 # Commands used to build a loadable module (assumed same as above if empty)
11012 module_cmds=$lt_module_cmds
11013 module_expsym_cmds=$lt_module_expsym_cmds
11015 # Commands to strip libraries.
11016 old_striplib=$lt_old_striplib
11017 striplib=$lt_striplib
11019 # Dependencies to place before the objects being linked to create a
11021 predep_objects=$lt_predep_objects
11023 # Dependencies to place after the objects being linked to create a
11025 postdep_objects=$lt_postdep_objects
11027 # Dependencies to place before the objects being linked to create a
11029 predeps=$lt_predeps
11031 # Dependencies to place after the objects being linked to create a
11033 postdeps=$lt_postdeps
11035 # The library search path used internally by the compiler when linking
11036 # a shared library.
11037 compiler_lib_search_path=$lt_compiler_lib_search_path
11039 # Method to check whether dependent libraries are shared objects.
11040 deplibs_check_method=$lt_deplibs_check_method
11042 # Command to use when deplibs_check_method == file_magic.
11043 file_magic_cmd=$lt_file_magic_cmd
11045 # Flag that allows shared libraries with undefined symbols to be built.
11046 allow_undefined_flag=$lt_allow_undefined_flag
11048 # Flag that forces no undefined symbols.
11049 no_undefined_flag=$lt_no_undefined_flag
11051 # Commands used to finish a libtool library installation in a directory.
11052 finish_cmds=$lt_finish_cmds
11054 # Same as above, but a single script fragment to be evaled but not shown.
11055 finish_eval=$lt_finish_eval
11057 # Take the output of nm and produce a listing of raw symbols and C names.
11058 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11060 # Transform the output of nm in a proper C declaration
11061 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11063 # Transform the output of nm in a C name address pair
11064 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11066 # This is the shared library runtime path variable.
11067 runpath_var=$runpath_var
11069 # This is the shared library path variable.
11070 shlibpath_var=$shlibpath_var
11072 # Is shlibpath searched before the hard-coded library search path?
11073 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11075 # How to hardcode a shared library path into an executable.
11076 hardcode_action=$hardcode_action
11078 # Whether we should hardcode library paths into libraries.
11079 hardcode_into_libs=$hardcode_into_libs
11081 # Flag to hardcode \$libdir into a binary during linking.
11082 # This must work even if \$libdir does not exist.
11083 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11085 # If ld is used when linking, flag to hardcode \$libdir into
11086 # a binary during linking. This must work even if \$libdir does
11088 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11090 # Whether we need a single -rpath flag with a separated argument.
11091 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11093 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11094 # resulting binary.
11095 hardcode_direct=$hardcode_direct
11097 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11098 # resulting binary.
11099 hardcode_minus_L=$hardcode_minus_L
11101 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11102 # the resulting binary.
11103 hardcode_shlibpath_var=$hardcode_shlibpath_var
11105 # Set to yes if building a shared library automatically hardcodes DIR into the library
11106 # and all subsequent libraries and executables linked against it.
11107 hardcode_automatic=$hardcode_automatic
11109 # Variables whose values should be saved in libtool wrapper scripts and
11110 # restored at relink time.
11111 variables_saved_for_relink="$variables_saved_for_relink"
11113 # Whether libtool must link a program against all its dependency libraries.
11114 link_all_deplibs=$link_all_deplibs
11116 # Compile-time system search path for libraries
11117 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11119 # Run-time system search path for libraries
11120 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11122 # Fix the shell variable \$srcfile for the compiler.
11123 fix_srcfile_path=$lt_fix_srcfile_path
11125 # Set to yes if exported symbols are required.
11126 always_export_symbols=$always_export_symbols
11128 # The commands to list exported symbols.
11129 export_symbols_cmds=$lt_export_symbols_cmds
11131 # The commands to extract the exported symbol list from a shared archive.
11132 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11134 # Symbols that should not be listed in the preloaded symbols.
11135 exclude_expsyms=$lt_exclude_expsyms
11137 # Symbols that must always be exported.
11138 include_expsyms=$lt_include_expsyms
11140 # ### END LIBTOOL CONFIG
11147 cat <<\EOF >> "$cfgfile"
11149 # AIX sometimes has problems with the GCC collect2 program. For some
11150 # reason, if we set the COLLECT_NAMES environment variable, the problems
11151 # vanish in a puff of smoke.
11152 if test "X${COLLECT_NAMES+set}" != Xset; then
11154 export COLLECT_NAMES
11160 # We use sed instead of cat because bash on DJGPP gets confused if
11161 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11162 # text mode, it properly converts lines to CR/LF. This bash problem
11163 # is reportedly fixed, but why not run on old versions too?
11164 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11166 mv -f "$cfgfile" "$ofile" || \
11167 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11171 # If there is no Makefile yet, we rely on a make rule to execute
11172 # `config.status --recheck' to rerun these tests and create the
11173 # libtool script then.
11174 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11175 if test -f "$ltmain_in"; then
11176 test -f Makefile && make "$ltmain"
11182 ac_cpp='$CXXCPP $CPPFLAGS'
11183 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11184 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11185 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11190 # Check whether --with-tags was given.
11191 if test "${with_tags+set}" = set; then
11192 withval=$with_tags; tagnames="$withval"
11196 if test -f "$ltmain" && test -n "$tagnames"; then
11197 if test ! -f "${ofile}"; then
11198 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11199 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11202 if test -z "$LTCC"; then
11203 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11204 if test -z "$LTCC"; then
11205 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11206 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11208 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11209 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11212 if test -z "$LTCFLAGS"; then
11213 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11216 # Extract list of available tagged configurations in $ofile.
11217 # Note that this assumes the entire list is on one line.
11218 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11220 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11221 for tagname in $tagnames; do
11223 # Check whether tagname contains only valid characters
11224 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11226 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11227 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11228 { (exit 1); exit 1; }; }
11232 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11234 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11235 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11236 { (exit 1); exit 1; }; }
11239 # Update the list of available tags.
11240 if test -n "$tagname"; then
11241 echo appending configuration tag \"$tagname\" to $ofile
11245 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11246 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11247 (test "X$CXX" != "Xg++"))) ; then
11249 ac_cpp='$CXXCPP $CPPFLAGS'
11250 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11251 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11252 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11257 archive_cmds_need_lc_CXX=no
11258 allow_undefined_flag_CXX=
11259 always_export_symbols_CXX=no
11260 archive_expsym_cmds_CXX=
11261 export_dynamic_flag_spec_CXX=
11262 hardcode_direct_CXX=no
11263 hardcode_libdir_flag_spec_CXX=
11264 hardcode_libdir_flag_spec_ld_CXX=
11265 hardcode_libdir_separator_CXX=
11266 hardcode_minus_L_CXX=no
11267 hardcode_shlibpath_var_CXX=unsupported
11268 hardcode_automatic_CXX=no
11270 module_expsym_cmds_CXX=
11271 link_all_deplibs_CXX=unknown
11272 old_archive_cmds_CXX=$old_archive_cmds
11273 no_undefined_flag_CXX=
11274 whole_archive_flag_spec_CXX=
11275 enable_shared_with_static_runtimes_CXX=no
11277 # Dependencies to place before and after the object being linked:
11278 predep_objects_CXX=
11279 postdep_objects_CXX=
11282 compiler_lib_search_path_CXX=
11284 # Source file extension for C++ test sources.
11287 # Object file extension for compiled C++ test sources.
11291 # Code to be used in simple compile tests
11292 lt_simple_compile_test_code="int some_variable = 0;"
11294 # Code to be used in simple link tests
11295 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11297 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11299 # If no C compiler was specified, use CC.
11302 # If no C compiler flags were specified, use CFLAGS.
11303 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11305 # Allow CC to be a program name with arguments.
11309 # save warnings/boilerplate of simple test code
11310 ac_outfile=conftest.$ac_objext
11311 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11312 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11313 _lt_compiler_boilerplate=`cat conftest.err`
11316 ac_outfile=conftest.$ac_objext
11317 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11318 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11319 _lt_linker_boilerplate=`cat conftest.err`
11323 # Allow CC to be a program name with arguments.
11328 lt_save_with_gnu_ld=$with_gnu_ld
11329 lt_save_path_LD=$lt_cv_path_LD
11330 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11331 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11333 $as_unset lt_cv_prog_gnu_ld
11335 if test -n "${lt_cv_path_LDCXX+set}"; then
11336 lt_cv_path_LD=$lt_cv_path_LDCXX
11338 $as_unset lt_cv_path_LD
11340 test -z "${LDCXX+set}" || LD=$LDCXX
11344 for cc_temp in $compiler""; do
11346 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11347 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11352 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11355 # We don't want -fno-exception wen compiling C++ code, so set the
11356 # no_builtin_flag separately
11357 if test "$GXX" = yes; then
11358 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11360 lt_prog_compiler_no_builtin_flag_CXX=
11363 if test "$GXX" = yes; then
11364 # Set up default GNU C++ configuration
11367 # Check whether --with-gnu-ld was given.
11368 if test "${with_gnu_ld+set}" = set; then
11369 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11375 if test "$GCC" = yes; then
11376 # Check if gcc -print-prog-name=ld gives a path.
11377 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11378 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11381 # gcc leaves a trailing carriage return which upsets mingw
11382 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11384 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11387 # Accept absolute paths.
11389 re_direlt='/[^/][^/]*/\.\./'
11390 # Canonicalize the pathname of ld
11391 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11392 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11393 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11395 test -z "$LD" && LD="$ac_prog"
11398 # If it fails, then pretend we aren't using GCC.
11402 # If it is relative, then search for the first ld in PATH.
11403 with_gnu_ld=unknown
11406 elif test "$with_gnu_ld" = yes; then
11407 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11408 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11410 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11411 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11413 if test "${lt_cv_path_LD+set}" = set; then
11414 echo $ECHO_N "(cached) $ECHO_C" >&6
11416 if test -z "$LD"; then
11417 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11418 for ac_dir in $PATH; do
11420 test -z "$ac_dir" && ac_dir=.
11421 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11422 lt_cv_path_LD="$ac_dir/$ac_prog"
11423 # Check to see if the program is GNU ld. I'd rather use --version,
11424 # but apparently some variants of GNU ld only accept -v.
11425 # Break only if it was the GNU/non-GNU ld that we prefer.
11426 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11427 *GNU* | *'with BFD'*)
11428 test "$with_gnu_ld" != no && break
11431 test "$with_gnu_ld" != yes && break
11438 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11442 LD="$lt_cv_path_LD"
11443 if test -n "$LD"; then
11444 { echo "$as_me:$LINENO: result: $LD" >&5
11445 echo "${ECHO_T}$LD" >&6; }
11447 { echo "$as_me:$LINENO: result: no" >&5
11448 echo "${ECHO_T}no" >&6; }
11450 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11451 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11452 { (exit 1); exit 1; }; }
11453 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11454 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11455 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11456 echo $ECHO_N "(cached) $ECHO_C" >&6
11458 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11459 case `$LD -v 2>&1 </dev/null` in
11460 *GNU* | *'with BFD'*)
11461 lt_cv_prog_gnu_ld=yes
11464 lt_cv_prog_gnu_ld=no
11468 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11469 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11470 with_gnu_ld=$lt_cv_prog_gnu_ld
11474 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11475 # archiving commands below assume that GNU ld is being used.
11476 if test "$with_gnu_ld" = yes; then
11477 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11478 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'
11480 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11481 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11483 # If archive_cmds runs LD, not CC, wlarc should be empty
11484 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11485 # investigate it a little bit more. (MM)
11488 # ancient GNU ld didn't support --whole-archive et. al.
11489 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11490 grep 'no-whole-archive' > /dev/null; then
11491 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11493 whole_archive_flag_spec_CXX=
11499 # A generic and very simple default shared library creation
11500 # command for GNU C++ for the case where it uses the native
11501 # linker, instead of GNU ld. If possible, this setting should
11502 # overridden to take advantage of the native linker features on
11503 # the platform it is being used on.
11504 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11507 # Commands to make compiler produce verbose output that lists
11508 # what "hidden" libraries, object files and flags are used when
11509 # linking a shared library.
11510 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11518 # PORTME: fill in a description of your system's C++ link characteristics
11519 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11520 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11524 # FIXME: insert proper C++ library support
11528 if test "$host_cpu" = ia64; then
11529 # On IA64, the linker does run time linking by default, so we don't
11530 # have to do anything special.
11531 aix_use_runtimelinking=no
11532 exp_sym_flag='-Bexport'
11535 aix_use_runtimelinking=no
11537 # Test if we are trying to use run time linking or normal
11538 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11539 # need to do runtime linking.
11540 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11541 for ld_flag in $LDFLAGS; do
11544 aix_use_runtimelinking=yes
11552 exp_sym_flag='-bexport'
11553 no_entry_flag='-bnoentry'
11556 # When large executables or shared objects are built, AIX ld can
11557 # have problems creating the table of contents. If linking a library
11558 # or program results in "error TOC overflow" add -mminimal-toc to
11559 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11560 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11562 archive_cmds_CXX=''
11563 hardcode_direct_CXX=yes
11564 hardcode_libdir_separator_CXX=':'
11565 link_all_deplibs_CXX=yes
11567 if test "$GXX" = yes; then
11568 case $host_os in aix4.[012]|aix4.[012].*)
11569 # We only want to do this on AIX 4.2 and lower, the check
11570 # below for broken collect2 doesn't work under 4.3+
11571 collect2name=`${CC} -print-prog-name=collect2`
11572 if test -f "$collect2name" && \
11573 strings "$collect2name" | grep resolve_lib_name >/dev/null
11575 # We have reworked collect2
11578 # We have old collect2
11579 hardcode_direct_CXX=unsupported
11580 # It fails to find uninstalled libraries when the uninstalled
11581 # path is not listed in the libpath. Setting hardcode_minus_L
11582 # to unsupported forces relinking
11583 hardcode_minus_L_CXX=yes
11584 hardcode_libdir_flag_spec_CXX='-L$libdir'
11585 hardcode_libdir_separator_CXX=
11589 shared_flag='-shared'
11590 if test "$aix_use_runtimelinking" = yes; then
11591 shared_flag="$shared_flag "'${wl}-G'
11595 if test "$host_cpu" = ia64; then
11596 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11597 # chokes on -Wl,-G. The following line is correct:
11600 if test "$aix_use_runtimelinking" = yes; then
11601 shared_flag='${wl}-G'
11603 shared_flag='${wl}-bM:SRE'
11608 # It seems that -bexpall does not export symbols beginning with
11609 # underscore (_), so it is better to generate a list of symbols to export.
11610 always_export_symbols_CXX=yes
11611 if test "$aix_use_runtimelinking" = yes; then
11612 # Warning - without using the other runtime loading flags (-brtl),
11613 # -berok will link without error, but may produce a broken library.
11614 allow_undefined_flag_CXX='-berok'
11615 # Determine the default libpath from the value encoded in an empty executable.
11616 cat >conftest.$ac_ext <<_ACEOF
11619 cat confdefs.h >>conftest.$ac_ext
11620 cat >>conftest.$ac_ext <<_ACEOF
11621 /* end confdefs.h. */
11631 rm -f conftest.$ac_objext conftest$ac_exeext
11632 if { (ac_try="$ac_link"
11633 case "(($ac_try" in
11634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11635 *) ac_try_echo=$ac_try;;
11637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11638 (eval "$ac_link") 2>conftest.er1
11640 grep -v '^ *+' conftest.er1 >conftest.err
11642 cat conftest.err >&5
11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); } && {
11645 test -z "$ac_cxx_werror_flag" ||
11646 test ! -s conftest.err
11647 } && test -s conftest$ac_exeext &&
11648 $as_test_x conftest$ac_exeext; then
11650 lt_aix_libpath_sed='
11651 /Import File Strings/,/^$/ {
11657 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11658 # Check for a 64-bit object if we didn't find anything.
11659 if test -z "$aix_libpath"; then
11660 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11663 echo "$as_me: failed program was:" >&5
11664 sed 's/^/| /' conftest.$ac_ext >&5
11669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11670 conftest$ac_exeext conftest.$ac_ext
11671 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11673 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11675 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"
11677 if test "$host_cpu" = ia64; then
11678 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11679 allow_undefined_flag_CXX="-z nodefs"
11680 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"
11682 # Determine the default libpath from the value encoded in an empty executable.
11683 cat >conftest.$ac_ext <<_ACEOF
11686 cat confdefs.h >>conftest.$ac_ext
11687 cat >>conftest.$ac_ext <<_ACEOF
11688 /* end confdefs.h. */
11698 rm -f conftest.$ac_objext conftest$ac_exeext
11699 if { (ac_try="$ac_link"
11700 case "(($ac_try" in
11701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11702 *) ac_try_echo=$ac_try;;
11704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11705 (eval "$ac_link") 2>conftest.er1
11707 grep -v '^ *+' conftest.er1 >conftest.err
11709 cat conftest.err >&5
11710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711 (exit $ac_status); } && {
11712 test -z "$ac_cxx_werror_flag" ||
11713 test ! -s conftest.err
11714 } && test -s conftest$ac_exeext &&
11715 $as_test_x conftest$ac_exeext; then
11717 lt_aix_libpath_sed='
11718 /Import File Strings/,/^$/ {
11724 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11725 # Check for a 64-bit object if we didn't find anything.
11726 if test -z "$aix_libpath"; then
11727 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11730 echo "$as_me: failed program was:" >&5
11731 sed 's/^/| /' conftest.$ac_ext >&5
11736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11737 conftest$ac_exeext conftest.$ac_ext
11738 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11740 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11741 # Warning - without using the other run time loading flags,
11742 # -berok will link without error, but may produce a broken library.
11743 no_undefined_flag_CXX=' ${wl}-bernotok'
11744 allow_undefined_flag_CXX=' ${wl}-berok'
11745 # Exported symbols can be pulled into shared objects from archives
11746 whole_archive_flag_spec_CXX='$convenience'
11747 archive_cmds_need_lc_CXX=yes
11748 # This is similar to how AIX traditionally builds its shared libraries.
11749 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'
11755 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11756 allow_undefined_flag_CXX=unsupported
11757 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11758 # support --undefined. This deserves some investigation. FIXME
11759 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11766 case $cc_basename in
11768 # FIXME: insert proper C++ library support
11774 cygwin* | mingw* | pw32*)
11775 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11776 # as there is no search path for DLLs.
11777 hardcode_libdir_flag_spec_CXX='-L$libdir'
11778 allow_undefined_flag_CXX=unsupported
11779 always_export_symbols_CXX=no
11780 enable_shared_with_static_runtimes_CXX=yes
11782 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11783 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'
11784 # If the export-symbols file already is a .def file (1st line
11785 # is EXPORTS), use it as is; otherwise, prepend...
11786 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11787 cp $export_symbols $output_objdir/$soname.def;
11789 echo EXPORTS > $output_objdir/$soname.def;
11790 cat $export_symbols >> $output_objdir/$soname.def;
11792 $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'
11797 darwin* | rhapsody*)
11799 rhapsody* | darwin1.[012])
11800 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11803 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11804 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11806 case ${MACOSX_DEPLOYMENT_TARGET} in
11808 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11811 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11817 archive_cmds_need_lc_CXX=no
11818 hardcode_direct_CXX=no
11819 hardcode_automatic_CXX=yes
11820 hardcode_shlibpath_var_CXX=unsupported
11821 whole_archive_flag_spec_CXX=''
11822 link_all_deplibs_CXX=yes
11824 if test "$GXX" = yes ; then
11825 lt_int_apple_cc_single_mod=no
11826 output_verbose_link_cmd='echo'
11827 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11828 lt_int_apple_cc_single_mod=yes
11830 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11831 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11833 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'
11835 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11836 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11837 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11838 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11840 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11842 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}'
11844 case $cc_basename in
11846 output_verbose_link_cmd='echo'
11847 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'
11848 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11849 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11850 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}'
11851 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}'
11861 case $cc_basename in
11863 # FIXME: insert proper C++ library support
11867 # Green Hills C++ Compiler
11868 # FIXME: insert proper C++ library support
11872 # FIXME: insert proper C++ library support
11878 # C++ shared libraries reported to be fairly broken before switch to ELF
11882 archive_cmds_need_lc_CXX=no
11884 freebsd* | dragonfly*)
11885 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11892 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11893 hardcode_libdir_separator_CXX=:
11894 export_dynamic_flag_spec_CXX='${wl}-E'
11895 hardcode_direct_CXX=yes
11896 hardcode_minus_L_CXX=yes # Not in the search PATH,
11897 # but as the default
11898 # location of the library.
11900 case $cc_basename in
11902 # FIXME: insert proper C++ library support
11906 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'
11907 # Commands to make compiler produce verbose output that lists
11908 # what "hidden" libraries, object files and flags are used when
11909 # linking a shared library.
11911 # There doesn't appear to be a way to prevent this compiler from
11912 # explicitly linking system object files so we need to strip them
11913 # from the output so that they don't get included in the library
11915 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'
11918 if test "$GXX" = yes; then
11919 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'
11921 # FIXME: insert proper C++ library support
11928 if test $with_gnu_ld = no; then
11929 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11930 hardcode_libdir_separator_CXX=:
11935 export_dynamic_flag_spec_CXX='${wl}-E'
11941 hardcode_direct_CXX=no
11942 hardcode_shlibpath_var_CXX=no
11945 hardcode_direct_CXX=yes
11946 hardcode_minus_L_CXX=yes # Not in the search PATH,
11947 # but as the default
11948 # location of the library.
11952 case $cc_basename in
11954 # FIXME: insert proper C++ library support
11960 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11963 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11966 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11969 # Commands to make compiler produce verbose output that lists
11970 # what "hidden" libraries, object files and flags are used when
11971 # linking a shared library.
11973 # There doesn't appear to be a way to prevent this compiler from
11974 # explicitly linking system object files so we need to strip them
11975 # from the output so that they don't get included in the library
11977 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'
11980 if test "$GXX" = yes; then
11981 if test $with_gnu_ld = no; then
11984 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11987 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11990 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'
11995 # FIXME: insert proper C++ library support
12002 hardcode_direct_CXX=no
12003 hardcode_shlibpath_var_CXX=no
12004 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12005 export_dynamic_flag_spec_CXX='${wl}-E'
12006 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12007 # Instead, shared libraries are loaded at an image base (0x10000000 by
12008 # default) and relocated if they conflict, which is a slow very memory
12009 # consuming and fragmenting process. To avoid this, we pick a random,
12010 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12011 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12012 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'
12013 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'
12016 case $cc_basename in
12019 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'
12021 # Archives containing C++ object files must be created using
12022 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12023 # necessary to make sure instantiated templates are included
12025 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12028 if test "$GXX" = yes; then
12029 if test "$with_gnu_ld" = no; then
12030 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'
12032 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'
12035 link_all_deplibs_CXX=yes
12038 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12039 hardcode_libdir_separator_CXX=:
12041 linux* | k*bsd*-gnu)
12042 case $cc_basename in
12044 # Kuck and Associates, Inc. (KAI) C++ Compiler
12046 # KCC will only create a shared library if the output file
12047 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12048 # to its proper name (with version) after linking.
12049 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'
12050 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'
12051 # Commands to make compiler produce verbose output that lists
12052 # what "hidden" libraries, object files and flags are used when
12053 # linking a shared library.
12055 # There doesn't appear to be a way to prevent this compiler from
12056 # explicitly linking system object files so we need to strip them
12057 # from the output so that they don't get included in the library
12059 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'
12061 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12062 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12064 # Archives containing C++ object files must be created using
12065 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12066 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12071 # version 8.0 and above of icpc choke on multiply defined symbols
12072 # if we add $predep_objects and $postdep_objects, however 7.1 and
12073 # earlier do not add the objects themselves.
12074 case `$CC -V 2>&1` in
12076 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12077 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'
12079 *) # Version 8.0 or newer
12082 ia64*) tmp_idyn=' -i_dynamic';;
12084 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12085 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'
12088 archive_cmds_need_lc_CXX=no
12089 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12090 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12091 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12094 # Portland Group C++ compiler
12095 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12096 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'
12098 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12099 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12100 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'
12104 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12105 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'
12107 runpath_var=LD_RUN_PATH
12108 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12109 hardcode_libdir_separator_CXX=:
12111 # Commands to make compiler produce verbose output that lists
12112 # what "hidden" libraries, object files and flags are used when
12113 # linking a shared library.
12115 # There doesn't appear to be a way to prevent this compiler from
12116 # explicitly linking system object files so we need to strip them
12117 # from the output so that they don't get included in the library
12119 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'
12122 case `$CC -V 2>&1 | sed 5q` in
12125 no_undefined_flag_CXX=' -zdefs'
12126 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12127 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'
12128 hardcode_libdir_flag_spec_CXX='-R$libdir'
12129 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'
12131 # Not sure whether something based on
12132 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12134 output_verbose_link_cmd='echo'
12136 # Archives containing C++ object files must be created using
12137 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12138 # necessary to make sure instantiated templates are included
12140 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12147 # FIXME: insert proper C++ library support
12151 # FIXME: insert proper C++ library support
12155 case $cc_basename in
12157 # FIXME: insert proper C++ library support
12161 # FIXME: insert proper C++ library support
12166 netbsd* | netbsdelf*-gnu)
12167 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12168 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12170 hardcode_libdir_flag_spec_CXX='-R$libdir'
12171 hardcode_direct_CXX=yes
12172 hardcode_shlibpath_var_CXX=no
12174 # Workaround some broken pre-1.5 toolchains
12175 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12178 # C++ shared libraries are fairly broken
12182 if test -f /usr/libexec/ld.so; then
12183 hardcode_direct_CXX=yes
12184 hardcode_shlibpath_var_CXX=no
12185 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12186 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12187 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12188 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12189 export_dynamic_flag_spec_CXX='${wl}-E'
12190 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12192 output_verbose_link_cmd='echo'
12198 case $cc_basename in
12200 # Kuck and Associates, Inc. (KAI) C++ Compiler
12202 # KCC will only create a shared library if the output file
12203 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12204 # to its proper name (with version) after linking.
12205 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'
12207 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12208 hardcode_libdir_separator_CXX=:
12210 # Archives containing C++ object files must be created using
12211 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12212 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12216 # Rational C++ 2.4.1
12217 # FIXME: insert proper C++ library support
12221 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12222 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'
12224 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12225 hardcode_libdir_separator_CXX=:
12227 # Commands to make compiler produce verbose output that lists
12228 # what "hidden" libraries, object files and flags are used when
12229 # linking a shared library.
12231 # There doesn't appear to be a way to prevent this compiler from
12232 # explicitly linking system object files so we need to strip them
12233 # from the output so that they don't get included in the library
12235 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'
12238 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12239 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12240 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'
12242 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12243 hardcode_libdir_separator_CXX=:
12245 # Commands to make compiler produce verbose output that lists
12246 # what "hidden" libraries, object files and flags are used when
12247 # linking a shared library.
12248 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12251 # FIXME: insert proper C++ library support
12258 case $cc_basename in
12260 # Kuck and Associates, Inc. (KAI) C++ Compiler
12262 # KCC will only create a shared library if the output file
12263 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12264 # to its proper name (with version) after linking.
12265 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'
12267 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12268 hardcode_libdir_separator_CXX=:
12270 # Archives containing C++ object files must be created using
12271 # the KAI C++ compiler.
12272 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12275 # Rational C++ 2.4.1
12276 # FIXME: insert proper C++ library support
12280 allow_undefined_flag_CXX=' -expect_unresolved \*'
12281 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'
12282 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12283 echo "-hidden">> $lib.exp~
12284 $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~
12287 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12288 hardcode_libdir_separator_CXX=:
12290 # Commands to make compiler produce verbose output that lists
12291 # what "hidden" libraries, object files and flags are used when
12292 # linking a shared library.
12294 # There doesn't appear to be a way to prevent this compiler from
12295 # explicitly linking system object files so we need to strip them
12296 # from the output so that they don't get included in the library
12298 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'
12301 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12302 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12303 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'
12305 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12306 hardcode_libdir_separator_CXX=:
12308 # Commands to make compiler produce verbose output that lists
12309 # what "hidden" libraries, object files and flags are used when
12310 # linking a shared library.
12311 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12314 # FIXME: insert proper C++ library support
12321 # FIXME: insert proper C++ library support
12325 case $cc_basename in
12328 # FIXME: insert proper C++ library support
12333 # FIXME: insert proper C++ library support
12337 # FIXME: insert proper C++ library support
12343 case $cc_basename in
12345 # Sun C++ 4.2, 5.x and Centerline C++
12346 archive_cmds_need_lc_CXX=yes
12347 no_undefined_flag_CXX=' -zdefs'
12348 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12349 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12350 $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'
12352 hardcode_libdir_flag_spec_CXX='-R$libdir'
12353 hardcode_shlibpath_var_CXX=no
12355 solaris2.[0-5] | solaris2.[0-5].*) ;;
12357 # The compiler driver will combine and reorder linker options,
12358 # but understands `-z linker_flag'.
12359 # Supported since Solaris 2.6 (maybe 2.5.1?)
12360 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12363 link_all_deplibs_CXX=yes
12365 output_verbose_link_cmd='echo'
12367 # Archives containing C++ object files must be created using
12368 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12369 # necessary to make sure instantiated templates are included
12371 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12374 # Green Hills C++ Compiler
12375 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12377 # The C++ compiler must be used to create the archive.
12378 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12381 # GNU C++ compiler with Solaris linker
12382 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12383 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12384 if $CC --version | grep -v '^2\.7' > /dev/null; then
12385 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12386 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12387 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12389 # Commands to make compiler produce verbose output that lists
12390 # what "hidden" libraries, object files and flags are used when
12391 # linking a shared library.
12392 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12394 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12396 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12397 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12398 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12400 # Commands to make compiler produce verbose output that lists
12401 # what "hidden" libraries, object files and flags are used when
12402 # linking a shared library.
12403 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12406 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12408 solaris2.[0-5] | solaris2.[0-5].*) ;;
12410 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12417 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12418 no_undefined_flag_CXX='${wl}-z,text'
12419 archive_cmds_need_lc_CXX=no
12420 hardcode_shlibpath_var_CXX=no
12421 runpath_var='LD_RUN_PATH'
12423 case $cc_basename in
12425 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12426 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12429 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12430 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12434 sysv5* | sco3.2v5* | sco5v6*)
12435 # Note: We can NOT use -z defs as we might desire, because we do not
12436 # link with -lc, and that would cause any symbols used from libc to
12437 # always be unresolved, which means just about no library would
12438 # ever link correctly. If we're not using GNU ld we use -z text
12439 # though, which does catch some bad symbols but isn't as heavy-handed
12441 # For security reasons, it is highly recommended that you always
12442 # use absolute paths for naming shared libraries, and exclude the
12443 # DT_RUNPATH tag from executables and libraries. But doing so
12444 # requires that you compile everything twice, which is a pain.
12445 # So that behaviour is only enabled if SCOABSPATH is set to a
12446 # non-empty value in the environment. Most likely only useful for
12447 # creating official distributions of packages.
12448 # This is a hack until libtool officially supports absolute path
12449 # names for shared libraries.
12450 no_undefined_flag_CXX='${wl}-z,text'
12451 allow_undefined_flag_CXX='${wl}-z,nodefs'
12452 archive_cmds_need_lc_CXX=no
12453 hardcode_shlibpath_var_CXX=no
12454 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12455 hardcode_libdir_separator_CXX=':'
12456 link_all_deplibs_CXX=yes
12457 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12458 runpath_var='LD_RUN_PATH'
12460 case $cc_basename in
12462 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12463 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12466 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12467 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12472 case $cc_basename in
12474 # NonStop-UX NCC 3.20
12475 # FIXME: insert proper C++ library support
12479 # FIXME: insert proper C++ library support
12485 # FIXME: insert proper C++ library support
12489 # FIXME: insert proper C++ library support
12493 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12494 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12495 test "$ld_shlibs_CXX" = no && can_build_shared=no
12501 cat > conftest.$ac_ext <<EOF
12505 Foo (void) { a = 0; }
12511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12512 (eval $ac_compile) 2>&5
12514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); }; then
12516 # Parse the compiler output and extract the necessary
12517 # objects, libraries and library flags.
12519 # Sentinel used to keep track of whether or not we are before
12520 # the conftest object file.
12521 pre_test_object_deps_done=no
12523 # The `*' in the case matches for architectures that use `case' in
12524 # $output_verbose_cmd can trigger glob expansion during the loop
12525 # eval without this substitution.
12526 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12528 for p in `eval $output_verbose_link_cmd`; do
12532 # Some compilers place space between "-{L,R}" and the path.
12533 # Remove the space.
12534 if test $p = "-L" \
12535 || test $p = "-R"; then
12542 if test "$pre_test_object_deps_done" = no; then
12545 # Internal compiler library paths should come after those
12546 # provided the user. The postdeps already come after the
12547 # user supplied libs so there is no need to process them.
12548 if test -z "$compiler_lib_search_path_CXX"; then
12549 compiler_lib_search_path_CXX="${prev}${p}"
12551 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12554 # The "-l" case would never come before the object being
12555 # linked, so don't bother handling this case.
12558 if test -z "$postdeps_CXX"; then
12559 postdeps_CXX="${prev}${p}"
12561 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12567 # This assumes that the test object file only shows up
12568 # once in the compiler output.
12569 if test "$p" = "conftest.$objext"; then
12570 pre_test_object_deps_done=yes
12574 if test "$pre_test_object_deps_done" = no; then
12575 if test -z "$predep_objects_CXX"; then
12576 predep_objects_CXX="$p"
12578 predep_objects_CXX="$predep_objects_CXX $p"
12581 if test -z "$postdep_objects_CXX"; then
12582 postdep_objects_CXX="$p"
12584 postdep_objects_CXX="$postdep_objects_CXX $p"
12589 *) ;; # Ignore the rest.
12597 echo "libtool.m4: error: problem compiling CXX test program"
12600 $rm -f confest.$objext
12602 # PORTME: override above test on systems where it is broken
12605 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12606 # hack all around it, let's just trust "g++" to DTRT.
12607 predep_objects_CXX=
12608 postdep_objects_CXX=
12613 case `$CC -V 2>&1 | sed 5q` in
12617 # The more standards-conforming stlport4 library is
12618 # incompatible with the Cstd library. Avoid specifying
12619 # it if it's in CXXFLAGS. Ignore libCrun as
12620 # -library=stlport4 depends on it.
12621 case " $CXX $CXXFLAGS " in
12622 *" -library=stlport4 "*)
12623 solaris_use_stlport4=yes
12626 if test "$solaris_use_stlport4" != yes; then
12627 postdeps_CXX='-library=Cstd -library=Crun'
12634 case $cc_basename in
12636 # The more standards-conforming stlport4 library is
12637 # incompatible with the Cstd library. Avoid specifying
12638 # it if it's in CXXFLAGS. Ignore libCrun as
12639 # -library=stlport4 depends on it.
12640 case " $CXX $CXXFLAGS " in
12641 *" -library=stlport4 "*)
12642 solaris_use_stlport4=yes
12646 # Adding this requires a known-good setup of shared libraries for
12647 # Sun compiler versions before 5.6, else PIC objects from an old
12648 # archive will be linked into the output, leading to subtle bugs.
12649 if test "$solaris_use_stlport4" != yes; then
12650 postdeps_CXX='-library=Cstd -library=Crun'
12658 case " $postdeps_CXX " in
12659 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12662 lt_prog_compiler_wl_CXX=
12663 lt_prog_compiler_pic_CXX=
12664 lt_prog_compiler_static_CXX=
12666 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12667 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12669 # C++ specific cases for pic, static, wl, etc.
12670 if test "$GXX" = yes; then
12671 lt_prog_compiler_wl_CXX='-Wl,'
12672 lt_prog_compiler_static_CXX='-static'
12676 # All AIX code is PIC.
12677 if test "$host_cpu" = ia64; then
12678 # AIX 5 now supports IA64 processor
12679 lt_prog_compiler_static_CXX='-Bstatic'
12683 # FIXME: we need at least 68020 code to build shared libraries, but
12684 # adding the `-m68020' flag to GCC prevents building anything better,
12686 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12688 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12689 # PIC is the default for these OSes.
12691 mingw* | cygwin* | os2* | pw32*)
12692 # This hack is so that the source file can tell whether it is being
12693 # built for inclusion in a dll (and should export symbols for example).
12694 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12695 # (--disable-auto-import) libraries
12696 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12698 darwin* | rhapsody*)
12699 # PIC is the default on this platform
12700 # Common symbols not allowed in MH_DYLIB files
12701 lt_prog_compiler_pic_CXX='-fno-common'
12704 # DJGPP does not support shared libraries at all
12705 lt_prog_compiler_pic_CXX=
12708 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12709 # Instead, we relocate shared libraries at runtime.
12712 if test -d /usr/nec; then
12713 lt_prog_compiler_pic_CXX=-Kconform_pic
12717 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12718 # not for PA HP-UX.
12723 lt_prog_compiler_pic_CXX='-fPIC'
12728 lt_prog_compiler_pic_CXX='-fPIC'
12734 # All AIX code is PIC.
12735 if test "$host_cpu" = ia64; then
12736 # AIX 5 now supports IA64 processor
12737 lt_prog_compiler_static_CXX='-Bstatic'
12739 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12743 case $cc_basename in
12745 # Green Hills C++ Compiler
12746 # _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"
12751 # PIC is the default on this platform
12752 # Common symbols not allowed in MH_DYLIB files
12753 case $cc_basename in
12755 lt_prog_compiler_pic_CXX='-qnocommon'
12756 lt_prog_compiler_wl_CXX='-Wl,'
12761 case $cc_basename in
12763 lt_prog_compiler_pic_CXX='-KPIC'
12766 # Green Hills C++ Compiler
12767 lt_prog_compiler_pic_CXX='-pic'
12773 freebsd* | dragonfly*)
12774 # FreeBSD uses GNU C++
12776 hpux9* | hpux10* | hpux11*)
12777 case $cc_basename in
12779 lt_prog_compiler_wl_CXX='-Wl,'
12780 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12781 if test "$host_cpu" != ia64; then
12782 lt_prog_compiler_pic_CXX='+Z'
12786 lt_prog_compiler_wl_CXX='-Wl,'
12787 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12793 lt_prog_compiler_pic_CXX='+Z'
12802 # This is c89, which is MS Visual C++ (no shared libs)
12803 # Anyone wants to do a port?
12805 irix5* | irix6* | nonstopux*)
12806 case $cc_basename in
12808 lt_prog_compiler_wl_CXX='-Wl,'
12809 lt_prog_compiler_static_CXX='-non_shared'
12810 # CC pic flag -KPIC is the default.
12816 linux* | k*bsd*-gnu)
12817 case $cc_basename in
12820 lt_prog_compiler_wl_CXX='--backend -Wl,'
12821 lt_prog_compiler_pic_CXX='-fPIC'
12825 lt_prog_compiler_wl_CXX='-Wl,'
12826 lt_prog_compiler_pic_CXX='-KPIC'
12827 lt_prog_compiler_static_CXX='-static'
12830 # Portland Group C++ compiler.
12831 lt_prog_compiler_wl_CXX='-Wl,'
12832 lt_prog_compiler_pic_CXX='-fpic'
12833 lt_prog_compiler_static_CXX='-Bstatic'
12837 # Make sure the PIC flag is empty. It appears that all Alpha
12838 # Linux and Compaq Tru64 Unix objects are PIC.
12839 lt_prog_compiler_pic_CXX=
12840 lt_prog_compiler_static_CXX='-non_shared'
12843 case `$CC -V 2>&1 | sed 5q` in
12846 lt_prog_compiler_pic_CXX='-KPIC'
12847 lt_prog_compiler_static_CXX='-Bstatic'
12848 lt_prog_compiler_wl_CXX='-Qoption ld '
12859 case $cc_basename in
12861 lt_prog_compiler_pic_CXX='-W c,exportall'
12867 netbsd* | netbsdelf*-gnu)
12869 osf3* | osf4* | osf5*)
12870 case $cc_basename in
12872 lt_prog_compiler_wl_CXX='--backend -Wl,'
12875 # Rational C++ 2.4.1
12876 lt_prog_compiler_pic_CXX='-pic'
12879 # Digital/Compaq C++
12880 lt_prog_compiler_wl_CXX='-Wl,'
12881 # Make sure the PIC flag is empty. It appears that all Alpha
12882 # Linux and Compaq Tru64 Unix objects are PIC.
12883 lt_prog_compiler_pic_CXX=
12884 lt_prog_compiler_static_CXX='-non_shared'
12893 case $cc_basename in
12895 # Sun C++ 4.2, 5.x and Centerline C++
12896 lt_prog_compiler_pic_CXX='-KPIC'
12897 lt_prog_compiler_static_CXX='-Bstatic'
12898 lt_prog_compiler_wl_CXX='-Qoption ld '
12901 # Green Hills C++ Compiler
12902 lt_prog_compiler_pic_CXX='-PIC'
12909 case $cc_basename in
12912 lt_prog_compiler_pic_CXX='-pic'
12913 lt_prog_compiler_static_CXX='-Bstatic'
12917 lt_prog_compiler_pic_CXX='-pic'
12924 case $cc_basename in
12926 # NonStop-UX NCC 3.20
12927 lt_prog_compiler_pic_CXX='-KPIC'
12933 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12934 case $cc_basename in
12936 lt_prog_compiler_wl_CXX='-Wl,'
12937 lt_prog_compiler_pic_CXX='-KPIC'
12938 lt_prog_compiler_static_CXX='-Bstatic'
12945 lt_prog_compiler_can_build_shared_CXX=no
12950 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12951 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12954 # Check to make sure the PIC flag actually works.
12956 if test -n "$lt_prog_compiler_pic_CXX"; then
12958 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12959 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12960 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12961 echo $ECHO_N "(cached) $ECHO_C" >&6
12963 lt_prog_compiler_pic_works_CXX=no
12964 ac_outfile=conftest.$ac_objext
12965 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12966 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12967 # Insert the option either (1) after the last *FLAGS variable, or
12968 # (2) before a word containing "conftest.", or (3) at the end.
12969 # Note that $ac_compile itself does not contain backslashes and begins
12970 # with a dollar sign (not a hyphen), so the echo should work correctly.
12971 # The option is referenced via a variable to avoid confusing sed.
12972 lt_compile=`echo "$ac_compile" | $SED \
12973 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12974 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12975 -e 's:$: $lt_compiler_flag:'`
12976 (eval echo "\"\$as_me:12976: $lt_compile\"" >&5)
12977 (eval "$lt_compile" 2>conftest.err)
12979 cat conftest.err >&5
12980 echo "$as_me:12980: \$? = $ac_status" >&5
12981 if (exit $ac_status) && test -s "$ac_outfile"; then
12982 # The compiler can only warn and ignore the option if not recognized
12983 # So say no if there are warnings other than the usual output.
12984 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12985 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12986 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12987 lt_prog_compiler_pic_works_CXX=yes
12993 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12994 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12996 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12997 case $lt_prog_compiler_pic_CXX in
12999 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13002 lt_prog_compiler_pic_CXX=
13003 lt_prog_compiler_can_build_shared_CXX=no
13008 # For platforms which do not support PIC, -DPIC is meaningless:
13010 lt_prog_compiler_pic_CXX=
13013 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13018 # Check to make sure the static flag actually works.
13020 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13021 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13022 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13023 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13024 echo $ECHO_N "(cached) $ECHO_C" >&6
13026 lt_prog_compiler_static_works_CXX=no
13027 save_LDFLAGS="$LDFLAGS"
13028 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13029 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13030 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13031 # The linker can only warn and ignore the option if not recognized
13032 # So say no if there are warnings
13033 if test -s conftest.err; then
13034 # Append any errors to the config.log.
13035 cat conftest.err 1>&5
13036 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13037 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13038 if diff conftest.exp conftest.er2 >/dev/null; then
13039 lt_prog_compiler_static_works_CXX=yes
13042 lt_prog_compiler_static_works_CXX=yes
13046 LDFLAGS="$save_LDFLAGS"
13049 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13050 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13052 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13055 lt_prog_compiler_static_CXX=
13059 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13060 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13061 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13062 echo $ECHO_N "(cached) $ECHO_C" >&6
13064 lt_cv_prog_compiler_c_o_CXX=no
13065 $rm -r conftest 2>/dev/null
13069 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13071 lt_compiler_flag="-o out/conftest2.$ac_objext"
13072 # Insert the option either (1) after the last *FLAGS variable, or
13073 # (2) before a word containing "conftest.", or (3) at the end.
13074 # Note that $ac_compile itself does not contain backslashes and begins
13075 # with a dollar sign (not a hyphen), so the echo should work correctly.
13076 lt_compile=`echo "$ac_compile" | $SED \
13077 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13078 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13079 -e 's:$: $lt_compiler_flag:'`
13080 (eval echo "\"\$as_me:13080: $lt_compile\"" >&5)
13081 (eval "$lt_compile" 2>out/conftest.err)
13083 cat out/conftest.err >&5
13084 echo "$as_me:13084: \$? = $ac_status" >&5
13085 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13087 # The compiler can only warn and ignore the option if not recognized
13088 # So say no if there are warnings
13089 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13090 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13091 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13092 lt_cv_prog_compiler_c_o_CXX=yes
13097 # SGI C++ compiler will create directory out/ii_files/ for
13098 # template instantiation
13099 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13100 $rm out/* && rmdir out
13106 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13107 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13110 hard_links="nottested"
13111 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13112 # do not overwrite the value of need_locks provided by the user
13113 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13114 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13117 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13119 ln conftest.a conftest.b 2>&5 || hard_links=no
13120 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13121 { echo "$as_me:$LINENO: result: $hard_links" >&5
13122 echo "${ECHO_T}$hard_links" >&6; }
13123 if test "$hard_links" = no; then
13124 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13125 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13132 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13133 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13135 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13138 # If we're using GNU nm, then we don't want the "-C" option.
13139 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13140 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13141 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'
13143 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'
13147 export_symbols_cmds_CXX="$ltdll_cmds"
13150 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'
13152 linux* | k*bsd*-gnu)
13153 link_all_deplibs_CXX=no
13156 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13160 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13161 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13162 test "$ld_shlibs_CXX" = no && can_build_shared=no
13165 # Do we need to explicitly link libc?
13167 case "x$archive_cmds_need_lc_CXX" in
13169 # Assume -lc should be added
13170 archive_cmds_need_lc_CXX=yes
13172 if test "$enable_shared" = yes && test "$GCC" = yes; then
13173 case $archive_cmds_CXX in
13175 # FIXME: we may have to deal with multi-command sequences.
13178 # Test whether the compiler implicitly links with -lc since on some
13179 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13180 # to ld, don't add -lc before -lgcc.
13181 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13182 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13184 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13187 (eval $ac_compile) 2>&5
13189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190 (exit $ac_status); } 2>conftest.err; then
13193 libobjs=conftest.$ac_objext
13195 wl=$lt_prog_compiler_wl_CXX
13196 pic_flag=$lt_prog_compiler_pic_CXX
13202 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13203 allow_undefined_flag_CXX=
13204 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13205 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208 (exit $ac_status); }
13210 archive_cmds_need_lc_CXX=no
13212 archive_cmds_need_lc_CXX=yes
13214 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13216 cat conftest.err 1>&5
13219 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13220 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13227 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13228 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13229 library_names_spec=
13230 libname_spec='lib$name'
13234 postuninstall_cmds=
13238 shlibpath_overrides_runpath=unknown
13240 dynamic_linker="$host_os ld.so"
13241 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13243 need_lib_prefix=unknown
13244 hardcode_into_libs=no
13246 # when you set need_version to no, make sure it does not cause -set_version
13247 # flags to be left without arguments
13248 need_version=unknown
13253 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13254 shlibpath_var=LIBPATH
13256 # AIX 3 has no versioning support, so we append a major version to the name.
13257 soname_spec='${libname}${release}${shared_ext}$major'
13264 hardcode_into_libs=yes
13265 if test "$host_cpu" = ia64; then
13266 # AIX 5 supports IA64
13267 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13268 shlibpath_var=LD_LIBRARY_PATH
13270 # With GCC up to 2.95.x, collect2 would create an import file
13271 # for dependence libraries. The import file would start with
13272 # the line `#! .'. This would cause the generated library to
13273 # depend on `.', always an invalid library. This was fixed in
13274 # development snapshots of GCC prior to 3.0.
13276 aix4 | aix4.[01] | aix4.[01].*)
13277 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13279 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13282 can_build_shared=no
13286 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13287 # soname into executable. Probably we can add versioning support to
13288 # collect2, so additional links can be useful in future.
13289 if test "$aix_use_runtimelinking" = yes; then
13290 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13291 # instead of lib<name>.a to let people know that these are not
13292 # typical AIX shared libraries.
13293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13295 # We preserve .a as extension for shared libraries through AIX4.2
13296 # and later when we are not doing run time linking.
13297 library_names_spec='${libname}${release}.a $libname.a'
13298 soname_spec='${libname}${release}${shared_ext}$major'
13300 shlibpath_var=LIBPATH
13305 library_names_spec='$libname.ixlibrary $libname.a'
13306 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13307 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'
13311 library_names_spec='${libname}${shared_ext}'
13312 dynamic_linker="$host_os ld.so"
13313 shlibpath_var=LIBRARY_PATH
13319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13320 soname_spec='${libname}${release}${shared_ext}$major'
13321 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13322 shlibpath_var=LD_LIBRARY_PATH
13323 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13324 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13325 # the default ld.so.conf also contains /usr/contrib/lib and
13326 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13327 # libtool to hard-code these into programs
13330 cygwin* | mingw* | pw32*)
13331 version_type=windows
13336 case $GCC,$host_os in
13337 yes,cygwin* | yes,mingw* | yes,pw32*)
13338 library_names_spec='$libname.dll.a'
13339 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13340 postinstall_cmds='base_file=`basename \${file}`~
13341 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13342 dldir=$destdir/`dirname \$dlpath`~
13343 test -d \$dldir || mkdir -p \$dldir~
13344 $install_prog $dir/$dlname \$dldir/$dlname~
13345 chmod a+x \$dldir/$dlname'
13346 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13347 dlpath=$dir/\$dldll~
13349 shlibpath_overrides_runpath=yes
13353 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13354 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13355 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13358 # MinGW DLLs use traditional 'lib' prefix
13359 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13360 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13361 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13362 # It is most probably a Windows format PATH printed by
13363 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13364 # path with ; separators, and with drive letters. We can handle the
13365 # drive letters (cygwin fileutils understands them), so leave them,
13366 # especially as we might pass files found there to a mingw objdump,
13367 # which wouldn't understand a cygwinified path. Ahh.
13368 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13370 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13374 # pw32 DLLs use 'pw' prefix rather than 'lib'
13375 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13381 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13384 dynamic_linker='Win32 ld.exe'
13385 # FIXME: first we should search . and the directory the executable is in
13389 darwin* | rhapsody*)
13390 dynamic_linker="$host_os dyld"
13391 version_type=darwin
13394 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13395 soname_spec='${libname}${release}${major}$shared_ext'
13396 shlibpath_overrides_runpath=yes
13397 shlibpath_var=DYLD_LIBRARY_PATH
13398 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13400 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13408 soname_spec='${libname}${release}${shared_ext}$major'
13409 shlibpath_var=LD_LIBRARY_PATH
13416 freebsd* | dragonfly*)
13417 # DragonFly does not have aout. When/if they implement a new
13418 # versioning mechanism, adjust this.
13419 if test -x /usr/bin/objformat; then
13420 objformat=`/usr/bin/objformat`
13423 freebsd[123]*) objformat=aout ;;
13424 *) objformat=elf ;;
13427 version_type=freebsd-$objformat
13428 case $version_type in
13430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13435 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13439 shlibpath_var=LD_LIBRARY_PATH
13442 shlibpath_overrides_runpath=yes
13444 freebsd3.[01]* | freebsdelf3.[01]*)
13445 shlibpath_overrides_runpath=yes
13446 hardcode_into_libs=yes
13448 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13449 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13450 shlibpath_overrides_runpath=no
13451 hardcode_into_libs=yes
13453 *) # from 4.6 on, and DragonFly
13454 shlibpath_overrides_runpath=yes
13455 hardcode_into_libs=yes
13464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13465 soname_spec='${libname}${release}${shared_ext}$major'
13466 shlibpath_var=LD_LIBRARY_PATH
13467 hardcode_into_libs=yes
13470 hpux9* | hpux10* | hpux11*)
13471 # Give a soname corresponding to the major version so that dld.sl refuses to
13472 # link against other versions.
13479 hardcode_into_libs=yes
13480 dynamic_linker="$host_os dld.so"
13481 shlibpath_var=LD_LIBRARY_PATH
13482 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32; then
13486 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13488 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13490 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13494 hardcode_into_libs=yes
13495 dynamic_linker="$host_os dld.sl"
13496 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13497 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13499 soname_spec='${libname}${release}${shared_ext}$major'
13500 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13501 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13505 dynamic_linker="$host_os dld.sl"
13506 shlibpath_var=SHLIB_PATH
13507 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13509 soname_spec='${libname}${release}${shared_ext}$major'
13512 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13513 postinstall_cmds='chmod 555 $lib'
13520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13521 soname_spec='${libname}${release}${shared_ext}$major'
13522 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13523 shlibpath_var=LD_LIBRARY_PATH
13524 shlibpath_overrides_runpath=no
13525 hardcode_into_libs=yes
13528 irix5* | irix6* | nonstopux*)
13530 nonstopux*) version_type=nonstopux ;;
13532 if test "$lt_cv_prog_gnu_ld" = yes; then
13540 soname_spec='${libname}${release}${shared_ext}$major'
13541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13543 irix5* | nonstopux*)
13544 libsuff= shlibsuff=
13547 case $LD in # libtool.m4 will add one of these switches to LD
13548 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13549 libsuff= shlibsuff= libmagic=32-bit;;
13550 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13551 libsuff=32 shlibsuff=N32 libmagic=N32;;
13552 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13553 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13554 *) libsuff= shlibsuff= libmagic=never-match;;
13558 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13559 shlibpath_overrides_runpath=no
13560 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13561 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13562 hardcode_into_libs=yes
13565 # No shared lib support for Linux oldld, aout, or coff.
13566 linux*oldld* | linux*aout* | linux*coff*)
13570 # This must be Linux ELF.
13571 linux* | k*bsd*-gnu)
13575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13576 soname_spec='${libname}${release}${shared_ext}$major'
13577 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13578 shlibpath_var=LD_LIBRARY_PATH
13579 shlibpath_overrides_runpath=no
13580 # This implies no fast_install, which is unacceptable.
13581 # Some rework will be needed to allow for fast_install
13582 # before this can be enabled.
13583 hardcode_into_libs=yes
13585 # Append ld.so.conf contents to the search path
13586 if test -f /etc/ld.so.conf; then
13587 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' ' '`
13588 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13591 # We used to test for /lib/ld.so.1 and disable shared libraries on
13592 # powerpc, because MkLinux only supported shared libraries with the
13593 # GNU dynamic linker. Since this was broken with cross compilers,
13594 # most powerpc-linux boxes support dynamic linking these days and
13595 # people can always --disable-shared, the test was removed, and we
13596 # assume the GNU/Linux dynamic linker is in use.
13597 dynamic_linker='GNU/Linux ld.so'
13604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13605 soname_spec='${libname}${release}${shared_ext}$major'
13606 shlibpath_var=LD_LIBRARY_PATH
13607 shlibpath_overrides_runpath=no
13608 hardcode_into_libs=yes
13609 dynamic_linker='NetBSD ld.elf_so'
13616 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13618 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13619 dynamic_linker='NetBSD (a.out) ld.so'
13621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13622 soname_spec='${libname}${release}${shared_ext}$major'
13623 dynamic_linker='NetBSD ld.elf_so'
13625 shlibpath_var=LD_LIBRARY_PATH
13626 shlibpath_overrides_runpath=yes
13627 hardcode_into_libs=yes
13632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13633 shlibpath_var=LD_LIBRARY_PATH
13634 shlibpath_overrides_runpath=yes
13641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13642 soname_spec='${libname}${release}${shared_ext}$major'
13643 shlibpath_var=LD_LIBRARY_PATH
13644 shlibpath_overrides_runpath=yes
13649 sys_lib_dlsearch_path_spec="/usr/lib"
13651 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13653 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13654 *) need_version=no ;;
13656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13657 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13658 shlibpath_var=LD_LIBRARY_PATH
13659 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13661 openbsd2.[89] | openbsd2.[89].*)
13662 shlibpath_overrides_runpath=no
13665 shlibpath_overrides_runpath=yes
13669 shlibpath_overrides_runpath=yes
13674 libname_spec='$name'
13677 library_names_spec='$libname${shared_ext} $libname.a'
13678 dynamic_linker='OS/2 ld.exe'
13679 shlibpath_var=LIBPATH
13682 osf3* | osf4* | osf5*)
13686 soname_spec='${libname}${release}${shared_ext}$major'
13687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13688 shlibpath_var=LD_LIBRARY_PATH
13689 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13690 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13702 soname_spec='${libname}${release}${shared_ext}$major'
13703 shlibpath_var=LD_LIBRARY_PATH
13704 shlibpath_overrides_runpath=yes
13705 hardcode_into_libs=yes
13706 # ldd complains unless libraries are executable
13707 postinstall_cmds='chmod +x $lib'
13712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13713 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13714 shlibpath_var=LD_LIBRARY_PATH
13715 shlibpath_overrides_runpath=yes
13716 if test "$with_gnu_ld" = yes; then
13724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13725 soname_spec='${libname}${release}${shared_ext}$major'
13726 shlibpath_var=LD_LIBRARY_PATH
13727 case $host_vendor in
13729 shlibpath_overrides_runpath=no
13731 export_dynamic_flag_spec='${wl}-Blargedynsym'
13732 runpath_var=LD_RUN_PATH
13740 shlibpath_overrides_runpath=no
13741 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13747 if test -d /usr/nec ;then
13749 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13750 soname_spec='$libname${shared_ext}.$major'
13751 shlibpath_var=LD_LIBRARY_PATH
13755 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13756 version_type=freebsd-elf
13759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13760 soname_spec='${libname}${release}${shared_ext}$major'
13761 shlibpath_var=LD_LIBRARY_PATH
13762 hardcode_into_libs=yes
13763 if test "$with_gnu_ld" = yes; then
13764 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13765 shlibpath_overrides_runpath=no
13767 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13768 shlibpath_overrides_runpath=yes
13771 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13775 sys_lib_dlsearch_path_spec='/usr/lib'
13780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13781 soname_spec='${libname}${release}${shared_ext}$major'
13782 shlibpath_var=LD_LIBRARY_PATH
13789 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13790 echo "${ECHO_T}$dynamic_linker" >&6; }
13791 test "$dynamic_linker" = no && can_build_shared=no
13793 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13794 if test "$GCC" = yes; then
13795 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13798 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13799 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13800 hardcode_action_CXX=
13801 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13802 test -n "$runpath_var_CXX" || \
13803 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13805 # We can hardcode non-existant directories.
13806 if test "$hardcode_direct_CXX" != no &&
13807 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13808 # have to relink, otherwise we might link with an installed library
13809 # when we should be linking with a yet-to-be-installed one
13810 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13811 test "$hardcode_minus_L_CXX" != no; then
13812 # Linking always hardcodes the temporary library directory.
13813 hardcode_action_CXX=relink
13815 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13816 hardcode_action_CXX=immediate
13819 # We cannot hardcode anything, or else we can only hardcode existing
13821 hardcode_action_CXX=unsupported
13823 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13824 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13826 if test "$hardcode_action_CXX" = relink; then
13827 # Fast installation is not supported
13828 enable_fast_install=no
13829 elif test "$shlibpath_overrides_runpath" = yes ||
13830 test "$enable_shared" = no; then
13831 # Fast installation is not necessary
13832 enable_fast_install=needless
13836 # The else clause should only fire when bootstrapping the
13837 # libtool distribution, otherwise you forgot to ship ltmain.sh
13838 # with your package, and you will get complaints that there are
13839 # no rules to generate ltmain.sh.
13840 if test -f "$ltmain"; then
13841 # See if we are running on zsh, and set the options which allow our commands through
13842 # without removal of \ escapes.
13843 if test -n "${ZSH_VERSION+set}" ; then
13844 setopt NO_GLOB_SUBST
13846 # Now quote all the things that may contain metacharacters while being
13847 # careful not to overquote the AC_SUBSTed values. We take copies of the
13848 # variables and quote the copies for generation of the libtool script.
13849 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13851 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13852 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13853 deplibs_check_method reload_flag reload_cmds need_locks \
13854 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13855 lt_cv_sys_global_symbol_to_c_name_address \
13856 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13857 old_postinstall_cmds old_postuninstall_cmds \
13861 lt_prog_compiler_wl_CXX \
13862 lt_prog_compiler_pic_CXX \
13863 lt_prog_compiler_static_CXX \
13864 lt_prog_compiler_no_builtin_flag_CXX \
13865 export_dynamic_flag_spec_CXX \
13866 thread_safe_flag_spec_CXX \
13867 whole_archive_flag_spec_CXX \
13868 enable_shared_with_static_runtimes_CXX \
13869 old_archive_cmds_CXX \
13870 old_archive_from_new_cmds_CXX \
13871 predep_objects_CXX \
13872 postdep_objects_CXX \
13875 compiler_lib_search_path_CXX \
13877 archive_expsym_cmds_CXX \
13878 postinstall_cmds_CXX \
13879 postuninstall_cmds_CXX \
13880 old_archive_from_expsyms_cmds_CXX \
13881 allow_undefined_flag_CXX \
13882 no_undefined_flag_CXX \
13883 export_symbols_cmds_CXX \
13884 hardcode_libdir_flag_spec_CXX \
13885 hardcode_libdir_flag_spec_ld_CXX \
13886 hardcode_libdir_separator_CXX \
13887 hardcode_automatic_CXX \
13889 module_expsym_cmds_CXX \
13890 lt_cv_prog_compiler_c_o_CXX \
13891 fix_srcfile_path_CXX \
13892 exclude_expsyms_CXX \
13893 include_expsyms_CXX; do
13896 old_archive_cmds_CXX | \
13897 old_archive_from_new_cmds_CXX | \
13898 archive_cmds_CXX | \
13899 archive_expsym_cmds_CXX | \
13900 module_cmds_CXX | \
13901 module_expsym_cmds_CXX | \
13902 old_archive_from_expsyms_cmds_CXX | \
13903 export_symbols_cmds_CXX | \
13904 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13905 postinstall_cmds | postuninstall_cmds | \
13906 old_postinstall_cmds | old_postuninstall_cmds | \
13907 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13908 # Double-quote double-evaled strings.
13909 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13912 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13918 *'\$0 --fallback-echo"')
13919 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13925 cat <<__EOF__ >> "$cfgfile"
13926 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13928 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13930 # Shell to use when invoking shell scripts.
13933 # Whether or not to build shared libraries.
13934 build_libtool_libs=$enable_shared
13936 # Whether or not to build static libraries.
13937 build_old_libs=$enable_static
13939 # Whether or not to add -lc for building shared libraries.
13940 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13942 # Whether or not to disallow shared libs when runtime libs are static
13943 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13945 # Whether or not to optimize for fast installation.
13946 fast_install=$enable_fast_install
13949 host_alias=$host_alias
13953 # The build system.
13954 build_alias=$build_alias
13958 # An echo program that does not interpret backslashes.
13963 AR_FLAGS=$lt_AR_FLAGS
13968 # LTCC compiler flags.
13969 LTCFLAGS=$lt_LTCFLAGS
13971 # A language-specific compiler.
13972 CC=$lt_compiler_CXX
13974 # Is the compiler the GNU C compiler?
13980 # The linker used to build libraries.
13983 # Whether we need hard or soft links.
13986 # A BSD-compatible nm program.
13989 # A symbol stripping program
13992 # Used to examine libraries when file_magic_cmd begins "file"
13993 MAGIC_CMD=$MAGIC_CMD
13995 # Used on cygwin: DLL creation program.
13998 # Used on cygwin: object dumper.
14001 # Used on cygwin: assembler.
14004 # The name of the directory that contains temporary libtool files.
14007 # How to create reloadable object files.
14008 reload_flag=$lt_reload_flag
14009 reload_cmds=$lt_reload_cmds
14011 # How to pass a linker flag through the compiler.
14012 wl=$lt_lt_prog_compiler_wl_CXX
14014 # Object file suffix (normally "o").
14015 objext="$ac_objext"
14017 # Old archive suffix (normally "a").
14020 # Shared library suffix (normally ".so").
14021 shrext_cmds='$shrext_cmds'
14023 # Executable file suffix (normally "").
14026 # Additional compiler flags for building library objects.
14027 pic_flag=$lt_lt_prog_compiler_pic_CXX
14030 # What is the maximum length of a command?
14031 max_cmd_len=$lt_cv_sys_max_cmd_len
14033 # Does compiler simultaneously support -c and -o options?
14034 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14036 # Must we lock files when doing compilation?
14037 need_locks=$lt_need_locks
14039 # Do we need the lib prefix for modules?
14040 need_lib_prefix=$need_lib_prefix
14042 # Do we need a version for libraries?
14043 need_version=$need_version
14045 # Whether dlopen is supported.
14046 dlopen_support=$enable_dlopen
14048 # Whether dlopen of programs is supported.
14049 dlopen_self=$enable_dlopen_self
14051 # Whether dlopen of statically linked programs is supported.
14052 dlopen_self_static=$enable_dlopen_self_static
14054 # Compiler flag to prevent dynamic linking.
14055 link_static_flag=$lt_lt_prog_compiler_static_CXX
14057 # Compiler flag to turn off builtin functions.
14058 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14060 # Compiler flag to allow reflexive dlopens.
14061 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14063 # Compiler flag to generate shared objects directly from archives.
14064 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14066 # Compiler flag to generate thread-safe objects.
14067 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14069 # Library versioning type.
14070 version_type=$version_type
14072 # Format of library name prefix.
14073 libname_spec=$lt_libname_spec
14075 # List of archive names. First name is the real one, the rest are links.
14076 # The last name is the one that the linker finds with -lNAME.
14077 library_names_spec=$lt_library_names_spec
14079 # The coded name of the library, if different from the real name.
14080 soname_spec=$lt_soname_spec
14082 # Commands used to build and install an old-style archive.
14084 old_archive_cmds=$lt_old_archive_cmds_CXX
14085 old_postinstall_cmds=$lt_old_postinstall_cmds
14086 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14088 # Create an old-style archive from a shared archive.
14089 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14091 # Create a temporary old-style archive to link instead of a shared archive.
14092 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14094 # Commands used to build and install a shared archive.
14095 archive_cmds=$lt_archive_cmds_CXX
14096 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14097 postinstall_cmds=$lt_postinstall_cmds
14098 postuninstall_cmds=$lt_postuninstall_cmds
14100 # Commands used to build a loadable module (assumed same as above if empty)
14101 module_cmds=$lt_module_cmds_CXX
14102 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14104 # Commands to strip libraries.
14105 old_striplib=$lt_old_striplib
14106 striplib=$lt_striplib
14108 # Dependencies to place before the objects being linked to create a
14110 predep_objects=$lt_predep_objects_CXX
14112 # Dependencies to place after the objects being linked to create a
14114 postdep_objects=$lt_postdep_objects_CXX
14116 # Dependencies to place before the objects being linked to create a
14118 predeps=$lt_predeps_CXX
14120 # Dependencies to place after the objects being linked to create a
14122 postdeps=$lt_postdeps_CXX
14124 # The library search path used internally by the compiler when linking
14125 # a shared library.
14126 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14128 # Method to check whether dependent libraries are shared objects.
14129 deplibs_check_method=$lt_deplibs_check_method
14131 # Command to use when deplibs_check_method == file_magic.
14132 file_magic_cmd=$lt_file_magic_cmd
14134 # Flag that allows shared libraries with undefined symbols to be built.
14135 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14137 # Flag that forces no undefined symbols.
14138 no_undefined_flag=$lt_no_undefined_flag_CXX
14140 # Commands used to finish a libtool library installation in a directory.
14141 finish_cmds=$lt_finish_cmds
14143 # Same as above, but a single script fragment to be evaled but not shown.
14144 finish_eval=$lt_finish_eval
14146 # Take the output of nm and produce a listing of raw symbols and C names.
14147 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14149 # Transform the output of nm in a proper C declaration
14150 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14152 # Transform the output of nm in a C name address pair
14153 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14155 # This is the shared library runtime path variable.
14156 runpath_var=$runpath_var
14158 # This is the shared library path variable.
14159 shlibpath_var=$shlibpath_var
14161 # Is shlibpath searched before the hard-coded library search path?
14162 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14164 # How to hardcode a shared library path into an executable.
14165 hardcode_action=$hardcode_action_CXX
14167 # Whether we should hardcode library paths into libraries.
14168 hardcode_into_libs=$hardcode_into_libs
14170 # Flag to hardcode \$libdir into a binary during linking.
14171 # This must work even if \$libdir does not exist.
14172 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14174 # If ld is used when linking, flag to hardcode \$libdir into
14175 # a binary during linking. This must work even if \$libdir does
14177 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14179 # Whether we need a single -rpath flag with a separated argument.
14180 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14182 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14183 # resulting binary.
14184 hardcode_direct=$hardcode_direct_CXX
14186 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14187 # resulting binary.
14188 hardcode_minus_L=$hardcode_minus_L_CXX
14190 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14191 # the resulting binary.
14192 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14194 # Set to yes if building a shared library automatically hardcodes DIR into the library
14195 # and all subsequent libraries and executables linked against it.
14196 hardcode_automatic=$hardcode_automatic_CXX
14198 # Variables whose values should be saved in libtool wrapper scripts and
14199 # restored at relink time.
14200 variables_saved_for_relink="$variables_saved_for_relink"
14202 # Whether libtool must link a program against all its dependency libraries.
14203 link_all_deplibs=$link_all_deplibs_CXX
14205 # Compile-time system search path for libraries
14206 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14208 # Run-time system search path for libraries
14209 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14211 # Fix the shell variable \$srcfile for the compiler.
14212 fix_srcfile_path=$lt_fix_srcfile_path
14214 # Set to yes if exported symbols are required.
14215 always_export_symbols=$always_export_symbols_CXX
14217 # The commands to list exported symbols.
14218 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14220 # The commands to extract the exported symbol list from a shared archive.
14221 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14223 # Symbols that should not be listed in the preloaded symbols.
14224 exclude_expsyms=$lt_exclude_expsyms_CXX
14226 # Symbols that must always be exported.
14227 include_expsyms=$lt_include_expsyms_CXX
14229 # ### END LIBTOOL TAG CONFIG: $tagname
14235 # If there is no Makefile yet, we rely on a make rule to execute
14236 # `config.status --recheck' to rerun these tests and create the
14237 # libtool script then.
14238 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14239 if test -f "$ltmain_in"; then
14240 test -f Makefile && make "$ltmain"
14246 ac_cpp='$CXXCPP $CPPFLAGS'
14247 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14248 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14249 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14255 with_gnu_ldcxx=$with_gnu_ld
14256 with_gnu_ld=$lt_save_with_gnu_ld
14257 lt_cv_path_LDCXX=$lt_cv_path_LD
14258 lt_cv_path_LD=$lt_save_path_LD
14259 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14260 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14268 if test -n "$F77" && test "X$F77" != "Xno"; then
14271 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14272 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14273 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14276 archive_cmds_need_lc_F77=no
14277 allow_undefined_flag_F77=
14278 always_export_symbols_F77=no
14279 archive_expsym_cmds_F77=
14280 export_dynamic_flag_spec_F77=
14281 hardcode_direct_F77=no
14282 hardcode_libdir_flag_spec_F77=
14283 hardcode_libdir_flag_spec_ld_F77=
14284 hardcode_libdir_separator_F77=
14285 hardcode_minus_L_F77=no
14286 hardcode_automatic_F77=no
14288 module_expsym_cmds_F77=
14289 link_all_deplibs_F77=unknown
14290 old_archive_cmds_F77=$old_archive_cmds
14291 no_undefined_flag_F77=
14292 whole_archive_flag_spec_F77=
14293 enable_shared_with_static_runtimes_F77=no
14295 # Source file extension for f77 test sources.
14298 # Object file extension for compiled f77 test sources.
14302 # Code to be used in simple compile tests
14303 lt_simple_compile_test_code="\
14309 # Code to be used in simple link tests
14310 lt_simple_link_test_code="\
14315 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14317 # If no C compiler was specified, use CC.
14320 # If no C compiler flags were specified, use CFLAGS.
14321 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14323 # Allow CC to be a program name with arguments.
14327 # save warnings/boilerplate of simple test code
14328 ac_outfile=conftest.$ac_objext
14329 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14330 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14331 _lt_compiler_boilerplate=`cat conftest.err`
14334 ac_outfile=conftest.$ac_objext
14335 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14336 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14337 _lt_linker_boilerplate=`cat conftest.err`
14341 # Allow CC to be a program name with arguments.
14346 for cc_temp in $compiler""; do
14348 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14349 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14354 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14357 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14358 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14359 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14360 echo "${ECHO_T}$can_build_shared" >&6; }
14362 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14363 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14364 test "$can_build_shared" = "no" && enable_shared=no
14366 # On AIX, shared libraries and static libraries use the same namespace, and
14367 # are all built from PIC.
14370 test "$enable_shared" = yes && enable_static=no
14371 if test -n "$RANLIB"; then
14372 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14373 postinstall_cmds='$RANLIB $lib'
14377 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14378 test "$enable_shared" = yes && enable_static=no
14382 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14383 echo "${ECHO_T}$enable_shared" >&6; }
14385 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14386 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14387 # Make sure either enable_shared or enable_static is yes.
14388 test "$enable_shared" = yes || enable_static=yes
14389 { echo "$as_me:$LINENO: result: $enable_static" >&5
14390 echo "${ECHO_T}$enable_static" >&6; }
14395 lt_prog_compiler_wl_F77=
14396 lt_prog_compiler_pic_F77=
14397 lt_prog_compiler_static_F77=
14399 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14400 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14402 if test "$GCC" = yes; then
14403 lt_prog_compiler_wl_F77='-Wl,'
14404 lt_prog_compiler_static_F77='-static'
14408 # All AIX code is PIC.
14409 if test "$host_cpu" = ia64; then
14410 # AIX 5 now supports IA64 processor
14411 lt_prog_compiler_static_F77='-Bstatic'
14416 # FIXME: we need at least 68020 code to build shared libraries, but
14417 # adding the `-m68020' flag to GCC prevents building anything better,
14419 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14422 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14423 # PIC is the default for these OSes.
14426 mingw* | cygwin* | pw32* | os2*)
14427 # This hack is so that the source file can tell whether it is being
14428 # built for inclusion in a dll (and should export symbols for example).
14429 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14430 # (--disable-auto-import) libraries
14431 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14434 darwin* | rhapsody*)
14435 # PIC is the default on this platform
14436 # Common symbols not allowed in MH_DYLIB files
14437 lt_prog_compiler_pic_F77='-fno-common'
14441 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14442 # Instead, we relocate shared libraries at runtime.
14446 # Just because we use GCC doesn't mean we suddenly get shared libraries
14447 # on systems that don't support them.
14448 lt_prog_compiler_can_build_shared_F77=no
14453 if test -d /usr/nec; then
14454 lt_prog_compiler_pic_F77=-Kconform_pic
14459 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14460 # not for PA HP-UX.
14466 lt_prog_compiler_pic_F77='-fPIC'
14472 lt_prog_compiler_pic_F77='-fPIC'
14476 # PORTME Check for flag to pass linker flags through the system compiler.
14479 lt_prog_compiler_wl_F77='-Wl,'
14480 if test "$host_cpu" = ia64; then
14481 # AIX 5 now supports IA64 processor
14482 lt_prog_compiler_static_F77='-Bstatic'
14484 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14488 # PIC is the default on this platform
14489 # Common symbols not allowed in MH_DYLIB files
14490 case $cc_basename in
14492 lt_prog_compiler_pic_F77='-qnocommon'
14493 lt_prog_compiler_wl_F77='-Wl,'
14498 mingw* | cygwin* | pw32* | os2*)
14499 # This hack is so that the source file can tell whether it is being
14500 # built for inclusion in a dll (and should export symbols for example).
14501 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14504 hpux9* | hpux10* | hpux11*)
14505 lt_prog_compiler_wl_F77='-Wl,'
14506 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14507 # not for PA HP-UX.
14513 lt_prog_compiler_pic_F77='+Z'
14516 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14517 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14520 irix5* | irix6* | nonstopux*)
14521 lt_prog_compiler_wl_F77='-Wl,'
14522 # PIC (with -KPIC) is the default.
14523 lt_prog_compiler_static_F77='-non_shared'
14527 lt_prog_compiler_pic_F77='-KPIC'
14528 lt_prog_compiler_static_F77='-Bstatic'
14531 linux* | k*bsd*-gnu)
14532 case $cc_basename in
14534 lt_prog_compiler_wl_F77='-Wl,'
14535 lt_prog_compiler_pic_F77='-KPIC'
14536 lt_prog_compiler_static_F77='-static'
14538 pgcc* | pgf77* | pgf90* | pgf95*)
14539 # Portland Group compilers (*not* the Pentium gcc compiler,
14540 # which looks to be a dead project)
14541 lt_prog_compiler_wl_F77='-Wl,'
14542 lt_prog_compiler_pic_F77='-fpic'
14543 lt_prog_compiler_static_F77='-Bstatic'
14546 lt_prog_compiler_wl_F77='-Wl,'
14547 # All Alpha code is PIC.
14548 lt_prog_compiler_static_F77='-non_shared'
14551 case `$CC -V 2>&1 | sed 5q` in
14554 lt_prog_compiler_pic_F77='-KPIC'
14555 lt_prog_compiler_static_F77='-Bstatic'
14556 lt_prog_compiler_wl_F77='-Wl,'
14559 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14560 lt_prog_compiler_pic_F77='-KPIC'
14561 lt_prog_compiler_static_F77='-Bstatic'
14562 lt_prog_compiler_wl_F77=''
14569 osf3* | osf4* | osf5*)
14570 lt_prog_compiler_wl_F77='-Wl,'
14571 # All OSF/1 code is PIC.
14572 lt_prog_compiler_static_F77='-non_shared'
14576 lt_prog_compiler_static_F77='-non_shared'
14580 lt_prog_compiler_pic_F77='-KPIC'
14581 lt_prog_compiler_static_F77='-Bstatic'
14582 case $cc_basename in
14583 f77* | f90* | f95*)
14584 lt_prog_compiler_wl_F77='-Qoption ld ';;
14586 lt_prog_compiler_wl_F77='-Wl,';;
14591 lt_prog_compiler_wl_F77='-Qoption ld '
14592 lt_prog_compiler_pic_F77='-PIC'
14593 lt_prog_compiler_static_F77='-Bstatic'
14596 sysv4 | sysv4.2uw2* | sysv4.3*)
14597 lt_prog_compiler_wl_F77='-Wl,'
14598 lt_prog_compiler_pic_F77='-KPIC'
14599 lt_prog_compiler_static_F77='-Bstatic'
14603 if test -d /usr/nec ;then
14604 lt_prog_compiler_pic_F77='-Kconform_pic'
14605 lt_prog_compiler_static_F77='-Bstatic'
14609 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14610 lt_prog_compiler_wl_F77='-Wl,'
14611 lt_prog_compiler_pic_F77='-KPIC'
14612 lt_prog_compiler_static_F77='-Bstatic'
14616 lt_prog_compiler_wl_F77='-Wl,'
14617 lt_prog_compiler_can_build_shared_F77=no
14621 lt_prog_compiler_pic_F77='-pic'
14622 lt_prog_compiler_static_F77='-Bstatic'
14626 lt_prog_compiler_can_build_shared_F77=no
14631 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14632 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14635 # Check to make sure the PIC flag actually works.
14637 if test -n "$lt_prog_compiler_pic_F77"; then
14639 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14640 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14641 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14642 echo $ECHO_N "(cached) $ECHO_C" >&6
14644 lt_prog_compiler_pic_works_F77=no
14645 ac_outfile=conftest.$ac_objext
14646 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14647 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14648 # Insert the option either (1) after the last *FLAGS variable, or
14649 # (2) before a word containing "conftest.", or (3) at the end.
14650 # Note that $ac_compile itself does not contain backslashes and begins
14651 # with a dollar sign (not a hyphen), so the echo should work correctly.
14652 # The option is referenced via a variable to avoid confusing sed.
14653 lt_compile=`echo "$ac_compile" | $SED \
14654 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14655 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14656 -e 's:$: $lt_compiler_flag:'`
14657 (eval echo "\"\$as_me:14657: $lt_compile\"" >&5)
14658 (eval "$lt_compile" 2>conftest.err)
14660 cat conftest.err >&5
14661 echo "$as_me:14661: \$? = $ac_status" >&5
14662 if (exit $ac_status) && test -s "$ac_outfile"; then
14663 # The compiler can only warn and ignore the option if not recognized
14664 # So say no if there are warnings other than the usual output.
14665 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14666 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14667 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14668 lt_prog_compiler_pic_works_F77=yes
14674 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14675 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14677 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14678 case $lt_prog_compiler_pic_F77 in
14680 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14683 lt_prog_compiler_pic_F77=
14684 lt_prog_compiler_can_build_shared_F77=no
14689 # For platforms which do not support PIC, -DPIC is meaningless:
14691 lt_prog_compiler_pic_F77=
14694 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14699 # Check to make sure the static flag actually works.
14701 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14702 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14703 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14704 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14705 echo $ECHO_N "(cached) $ECHO_C" >&6
14707 lt_prog_compiler_static_works_F77=no
14708 save_LDFLAGS="$LDFLAGS"
14709 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14710 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14711 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14712 # The linker can only warn and ignore the option if not recognized
14713 # So say no if there are warnings
14714 if test -s conftest.err; then
14715 # Append any errors to the config.log.
14716 cat conftest.err 1>&5
14717 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14718 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14719 if diff conftest.exp conftest.er2 >/dev/null; then
14720 lt_prog_compiler_static_works_F77=yes
14723 lt_prog_compiler_static_works_F77=yes
14727 LDFLAGS="$save_LDFLAGS"
14730 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14731 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14733 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14736 lt_prog_compiler_static_F77=
14740 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14741 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14742 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14743 echo $ECHO_N "(cached) $ECHO_C" >&6
14745 lt_cv_prog_compiler_c_o_F77=no
14746 $rm -r conftest 2>/dev/null
14750 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14752 lt_compiler_flag="-o out/conftest2.$ac_objext"
14753 # Insert the option either (1) after the last *FLAGS variable, or
14754 # (2) before a word containing "conftest.", or (3) at the end.
14755 # Note that $ac_compile itself does not contain backslashes and begins
14756 # with a dollar sign (not a hyphen), so the echo should work correctly.
14757 lt_compile=`echo "$ac_compile" | $SED \
14758 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14759 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14760 -e 's:$: $lt_compiler_flag:'`
14761 (eval echo "\"\$as_me:14761: $lt_compile\"" >&5)
14762 (eval "$lt_compile" 2>out/conftest.err)
14764 cat out/conftest.err >&5
14765 echo "$as_me:14765: \$? = $ac_status" >&5
14766 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14768 # The compiler can only warn and ignore the option if not recognized
14769 # So say no if there are warnings
14770 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14771 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14772 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14773 lt_cv_prog_compiler_c_o_F77=yes
14778 # SGI C++ compiler will create directory out/ii_files/ for
14779 # template instantiation
14780 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14781 $rm out/* && rmdir out
14787 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14788 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14791 hard_links="nottested"
14792 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14793 # do not overwrite the value of need_locks provided by the user
14794 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14795 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14798 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14800 ln conftest.a conftest.b 2>&5 || hard_links=no
14801 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14802 { echo "$as_me:$LINENO: result: $hard_links" >&5
14803 echo "${ECHO_T}$hard_links" >&6; }
14804 if test "$hard_links" = no; then
14805 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14806 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14813 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14814 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14817 allow_undefined_flag_F77=
14818 enable_shared_with_static_runtimes_F77=no
14820 archive_expsym_cmds_F77=
14821 old_archive_From_new_cmds_F77=
14822 old_archive_from_expsyms_cmds_F77=
14823 export_dynamic_flag_spec_F77=
14824 whole_archive_flag_spec_F77=
14825 thread_safe_flag_spec_F77=
14826 hardcode_libdir_flag_spec_F77=
14827 hardcode_libdir_flag_spec_ld_F77=
14828 hardcode_libdir_separator_F77=
14829 hardcode_direct_F77=no
14830 hardcode_minus_L_F77=no
14831 hardcode_shlibpath_var_F77=unsupported
14832 link_all_deplibs_F77=unknown
14833 hardcode_automatic_F77=no
14835 module_expsym_cmds_F77=
14836 always_export_symbols_F77=no
14837 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14838 # include_expsyms should be a list of space-separated symbols to be *always*
14839 # included in the symbol list
14840 include_expsyms_F77=
14841 # exclude_expsyms can be an extended regexp of symbols to exclude
14842 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14843 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14844 # as well as any symbol that contains `d'.
14845 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14846 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14847 # platforms (ab)use it in PIC code, but their linkers get confused if
14848 # the symbol is explicitly referenced. Since portable code cannot
14849 # rely on this symbol name, it's probably fine to never include it in
14850 # preloaded symbol tables.
14851 extract_expsyms_cmds=
14852 # Just being paranoid about ensuring that cc_basename is set.
14853 for cc_temp in $compiler""; do
14855 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14856 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14861 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14864 cygwin* | mingw* | pw32*)
14865 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14866 # When not using gcc, we currently assume that we are using
14867 # Microsoft Visual C++.
14868 if test "$GCC" != yes; then
14873 # we just hope/assume this is gcc and not c89 (= MSVC++)
14882 if test "$with_gnu_ld" = yes; then
14883 # If archive_cmds runs LD, not CC, wlarc should be empty
14886 # Set some defaults for GNU ld with shared library support. These
14887 # are reset later if shared libraries are not supported. Putting them
14888 # here allows them to be overridden if necessary.
14889 runpath_var=LD_RUN_PATH
14890 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14891 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14892 # ancient GNU ld didn't support --whole-archive et. al.
14893 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14894 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14896 whole_archive_flag_spec_F77=
14898 supports_anon_versioning=no
14899 case `$LD -v 2>/dev/null` in
14900 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14901 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14902 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14903 *\ 2.11.*) ;; # other 2.11 versions
14904 *) supports_anon_versioning=yes ;;
14907 # See if GNU ld supports shared libraries.
14909 aix3* | aix4* | aix5*)
14910 # On AIX/PPC, the GNU linker is very broken
14911 if test "$host_cpu" != ia64; then
14915 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14916 *** to be unable to reliably create shared libraries on AIX.
14917 *** Therefore, libtool is disabling shared libraries support. If you
14918 *** really care for shared libraries, you may want to modify your PATH
14919 *** so that a non-GNU linker is found, and then restart.
14926 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)'
14927 hardcode_libdir_flag_spec_F77='-L$libdir'
14928 hardcode_minus_L_F77=yes
14930 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14931 # that the semantics of dynamic libraries on AmigaOS, at least up
14932 # to version 4, is to share data among multiple programs linked
14933 # with the same dynamic library. Since this doesn't match the
14934 # behavior of shared libraries on other platforms, we can't use
14940 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14941 allow_undefined_flag_F77=unsupported
14942 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14943 # support --undefined. This deserves some investigation. FIXME
14944 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14950 cygwin* | mingw* | pw32*)
14951 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14952 # as there is no search path for DLLs.
14953 hardcode_libdir_flag_spec_F77='-L$libdir'
14954 allow_undefined_flag_F77=unsupported
14955 always_export_symbols_F77=no
14956 enable_shared_with_static_runtimes_F77=yes
14957 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14959 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14960 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14961 # If the export-symbols file already is a .def file (1st line
14962 # is EXPORTS), use it as is; otherwise, prepend...
14963 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14964 cp $export_symbols $output_objdir/$soname.def;
14966 echo EXPORTS > $output_objdir/$soname.def;
14967 cat $export_symbols >> $output_objdir/$soname.def;
14969 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14976 hardcode_direct_F77=no
14977 hardcode_shlibpath_var_F77=no
14978 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14979 export_dynamic_flag_spec_F77='${wl}-E'
14980 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14981 # Instead, shared libraries are loaded at an image base (0x10000000 by
14982 # default) and relocated if they conflict, which is a slow very memory
14983 # consuming and fragmenting process. To avoid this, we pick a random,
14984 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14985 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14986 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'
14987 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'
14990 gnu* | linux* | k*bsd*-gnu)
14991 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14993 case $cc_basename,$host_cpu in
14994 pgcc*) # Portland Group C compiler
14995 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'
14996 tmp_addflag=' $pic_flag'
14998 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14999 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'
15000 tmp_addflag=' $pic_flag -Mnomain' ;;
15001 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15002 tmp_addflag=' -i_dynamic' ;;
15003 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15004 tmp_addflag=' -i_dynamic -nofor_main' ;;
15005 ifc* | ifort*) # Intel Fortran compiler
15006 tmp_addflag=' -nofor_main' ;;
15008 case `$CC -V 2>&1 | sed 5q` in
15009 *Sun\ C*) # Sun C 5.9
15010 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'
15011 tmp_sharedflag='-G' ;;
15012 *Sun\ F*) # Sun Fortran 8.3
15013 tmp_sharedflag='-G' ;;
15015 tmp_sharedflag='-shared' ;;
15017 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15019 if test $supports_anon_versioning = yes; then
15020 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15021 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15022 $echo "local: *; };" >> $output_objdir/$libname.ver~
15023 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15025 link_all_deplibs_F77=no
15031 netbsd* | netbsdelf*-gnu)
15032 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15033 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15036 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15037 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15042 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15046 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15047 *** create shared libraries on Solaris systems. Therefore, libtool
15048 *** is disabling shared libraries support. We urge you to upgrade GNU
15049 *** binutils to release 2.9.1 or newer. Another option is to modify
15050 *** your PATH or compiler configuration so that the native linker is
15051 *** used, and then restart.
15054 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15055 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15056 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15062 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15063 case `$LD -v 2>&1` in
15064 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15068 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15069 *** reliably create shared libraries on SCO systems. Therefore, libtool
15070 *** is disabling shared libraries support. We urge you to upgrade GNU
15071 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15072 *** your PATH or compiler configuration so that the native linker is
15073 *** used, and then restart.
15078 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15079 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15080 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15081 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15090 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15092 hardcode_direct_F77=yes
15093 hardcode_shlibpath_var_F77=no
15097 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15098 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15099 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15106 if test "$ld_shlibs_F77" = no; then
15108 hardcode_libdir_flag_spec_F77=
15109 export_dynamic_flag_spec_F77=
15110 whole_archive_flag_spec_F77=
15113 # PORTME fill in a description of your system's linker (not GNU ld)
15116 allow_undefined_flag_F77=unsupported
15117 always_export_symbols_F77=yes
15118 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'
15119 # Note: this linker hardcodes the directories in LIBPATH if there
15120 # are no directories specified by -L.
15121 hardcode_minus_L_F77=yes
15122 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15123 # Neither direct hardcoding nor static linking is supported with a
15125 hardcode_direct_F77=unsupported
15130 if test "$host_cpu" = ia64; then
15131 # On IA64, the linker does run time linking by default, so we don't
15132 # have to do anything special.
15133 aix_use_runtimelinking=no
15134 exp_sym_flag='-Bexport'
15137 # If we're using GNU nm, then we don't want the "-C" option.
15138 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15139 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15140 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'
15142 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'
15144 aix_use_runtimelinking=no
15146 # Test if we are trying to use run time linking or normal
15147 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15148 # need to do runtime linking.
15149 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15150 for ld_flag in $LDFLAGS; do
15151 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15152 aix_use_runtimelinking=yes
15159 exp_sym_flag='-bexport'
15160 no_entry_flag='-bnoentry'
15163 # When large executables or shared objects are built, AIX ld can
15164 # have problems creating the table of contents. If linking a library
15165 # or program results in "error TOC overflow" add -mminimal-toc to
15166 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15167 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15169 archive_cmds_F77=''
15170 hardcode_direct_F77=yes
15171 hardcode_libdir_separator_F77=':'
15172 link_all_deplibs_F77=yes
15174 if test "$GCC" = yes; then
15175 case $host_os in aix4.[012]|aix4.[012].*)
15176 # We only want to do this on AIX 4.2 and lower, the check
15177 # below for broken collect2 doesn't work under 4.3+
15178 collect2name=`${CC} -print-prog-name=collect2`
15179 if test -f "$collect2name" && \
15180 strings "$collect2name" | grep resolve_lib_name >/dev/null
15182 # We have reworked collect2
15185 # We have old collect2
15186 hardcode_direct_F77=unsupported
15187 # It fails to find uninstalled libraries when the uninstalled
15188 # path is not listed in the libpath. Setting hardcode_minus_L
15189 # to unsupported forces relinking
15190 hardcode_minus_L_F77=yes
15191 hardcode_libdir_flag_spec_F77='-L$libdir'
15192 hardcode_libdir_separator_F77=
15196 shared_flag='-shared'
15197 if test "$aix_use_runtimelinking" = yes; then
15198 shared_flag="$shared_flag "'${wl}-G'
15202 if test "$host_cpu" = ia64; then
15203 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15204 # chokes on -Wl,-G. The following line is correct:
15207 if test "$aix_use_runtimelinking" = yes; then
15208 shared_flag='${wl}-G'
15210 shared_flag='${wl}-bM:SRE'
15215 # It seems that -bexpall does not export symbols beginning with
15216 # underscore (_), so it is better to generate a list of symbols to export.
15217 always_export_symbols_F77=yes
15218 if test "$aix_use_runtimelinking" = yes; then
15219 # Warning - without using the other runtime loading flags (-brtl),
15220 # -berok will link without error, but may produce a broken library.
15221 allow_undefined_flag_F77='-berok'
15222 # Determine the default libpath from the value encoded in an empty executable.
15223 cat >conftest.$ac_ext <<_ACEOF
15228 rm -f conftest.$ac_objext conftest$ac_exeext
15229 if { (ac_try="$ac_link"
15230 case "(($ac_try" in
15231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15232 *) ac_try_echo=$ac_try;;
15234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15235 (eval "$ac_link") 2>conftest.er1
15237 grep -v '^ *+' conftest.er1 >conftest.err
15239 cat conftest.err >&5
15240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); } && {
15242 test -z "$ac_f77_werror_flag" ||
15243 test ! -s conftest.err
15244 } && test -s conftest$ac_exeext &&
15245 $as_test_x conftest$ac_exeext; then
15247 lt_aix_libpath_sed='
15248 /Import File Strings/,/^$/ {
15254 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15255 # Check for a 64-bit object if we didn't find anything.
15256 if test -z "$aix_libpath"; then
15257 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15260 echo "$as_me: failed program was:" >&5
15261 sed 's/^/| /' conftest.$ac_ext >&5
15266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15267 conftest$ac_exeext conftest.$ac_ext
15268 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15270 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15271 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"
15273 if test "$host_cpu" = ia64; then
15274 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15275 allow_undefined_flag_F77="-z nodefs"
15276 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"
15278 # Determine the default libpath from the value encoded in an empty executable.
15279 cat >conftest.$ac_ext <<_ACEOF
15284 rm -f conftest.$ac_objext conftest$ac_exeext
15285 if { (ac_try="$ac_link"
15286 case "(($ac_try" in
15287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15288 *) ac_try_echo=$ac_try;;
15290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15291 (eval "$ac_link") 2>conftest.er1
15293 grep -v '^ *+' conftest.er1 >conftest.err
15295 cat conftest.err >&5
15296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297 (exit $ac_status); } && {
15298 test -z "$ac_f77_werror_flag" ||
15299 test ! -s conftest.err
15300 } && test -s conftest$ac_exeext &&
15301 $as_test_x conftest$ac_exeext; then
15303 lt_aix_libpath_sed='
15304 /Import File Strings/,/^$/ {
15310 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15311 # Check for a 64-bit object if we didn't find anything.
15312 if test -z "$aix_libpath"; then
15313 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15316 echo "$as_me: failed program was:" >&5
15317 sed 's/^/| /' conftest.$ac_ext >&5
15322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15323 conftest$ac_exeext conftest.$ac_ext
15324 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15326 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15327 # Warning - without using the other run time loading flags,
15328 # -berok will link without error, but may produce a broken library.
15329 no_undefined_flag_F77=' ${wl}-bernotok'
15330 allow_undefined_flag_F77=' ${wl}-berok'
15331 # Exported symbols can be pulled into shared objects from archives
15332 whole_archive_flag_spec_F77='$convenience'
15333 archive_cmds_need_lc_F77=yes
15334 # This is similar to how AIX traditionally builds its shared libraries.
15335 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'
15341 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)'
15342 hardcode_libdir_flag_spec_F77='-L$libdir'
15343 hardcode_minus_L_F77=yes
15344 # see comment about different semantics on the GNU ld section
15349 export_dynamic_flag_spec_F77=-rdynamic
15352 cygwin* | mingw* | pw32*)
15353 # When not using gcc, we currently assume that we are using
15354 # Microsoft Visual C++.
15355 # hardcode_libdir_flag_spec is actually meaningless, as there is
15356 # no search path for DLLs.
15357 hardcode_libdir_flag_spec_F77=' '
15358 allow_undefined_flag_F77=unsupported
15359 # Tell ltmain to make .lib files, not .a files.
15361 # Tell ltmain to make .dll files, not .so files.
15363 # FIXME: Setting linknames here is a bad hack.
15364 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15365 # The linker will automatically build a .lib file if we build a DLL.
15366 old_archive_From_new_cmds_F77='true'
15367 # FIXME: Should let the user specify the lib program.
15368 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15369 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15370 enable_shared_with_static_runtimes_F77=yes
15373 darwin* | rhapsody*)
15375 rhapsody* | darwin1.[012])
15376 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15379 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15380 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15382 case ${MACOSX_DEPLOYMENT_TARGET} in
15384 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15387 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15393 archive_cmds_need_lc_F77=no
15394 hardcode_direct_F77=no
15395 hardcode_automatic_F77=yes
15396 hardcode_shlibpath_var_F77=unsupported
15397 whole_archive_flag_spec_F77=''
15398 link_all_deplibs_F77=yes
15399 if test "$GCC" = yes ; then
15400 output_verbose_link_cmd='echo'
15401 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15402 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15403 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15404 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15405 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}'
15407 case $cc_basename in
15409 output_verbose_link_cmd='echo'
15410 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15411 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15412 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15413 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}'
15414 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}'
15424 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15425 hardcode_libdir_flag_spec_F77='-L$libdir'
15426 hardcode_shlibpath_var_F77=no
15433 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15434 # support. Future versions do this automatically, but an explicit c++rt0.o
15435 # does not break anything, and helps significantly (at the cost of a little
15438 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15439 hardcode_libdir_flag_spec_F77='-R$libdir'
15440 hardcode_direct_F77=yes
15441 hardcode_shlibpath_var_F77=no
15444 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15446 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15447 hardcode_direct_F77=yes
15448 hardcode_minus_L_F77=yes
15449 hardcode_shlibpath_var_F77=no
15452 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15453 freebsd* | dragonfly*)
15454 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15455 hardcode_libdir_flag_spec_F77='-R$libdir'
15456 hardcode_direct_F77=yes
15457 hardcode_shlibpath_var_F77=no
15461 if test "$GCC" = yes; then
15462 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'
15464 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'
15466 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15467 hardcode_libdir_separator_F77=:
15468 hardcode_direct_F77=yes
15470 # hardcode_minus_L: Not really in the search PATH,
15471 # but as the default location of the library.
15472 hardcode_minus_L_F77=yes
15473 export_dynamic_flag_spec_F77='${wl}-E'
15477 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15478 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15480 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15482 if test "$with_gnu_ld" = no; then
15483 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15484 hardcode_libdir_separator_F77=:
15486 hardcode_direct_F77=yes
15487 export_dynamic_flag_spec_F77='${wl}-E'
15489 # hardcode_minus_L: Not really in the search PATH,
15490 # but as the default location of the library.
15491 hardcode_minus_L_F77=yes
15496 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15499 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15502 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15505 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15511 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15514 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15517 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15521 if test "$with_gnu_ld" = no; then
15522 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15523 hardcode_libdir_separator_F77=:
15527 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15528 hardcode_direct_F77=no
15529 hardcode_shlibpath_var_F77=no
15532 hardcode_direct_F77=yes
15533 export_dynamic_flag_spec_F77='${wl}-E'
15535 # hardcode_minus_L: Not really in the search PATH,
15536 # but as the default location of the library.
15537 hardcode_minus_L_F77=yes
15543 irix5* | irix6* | nonstopux*)
15544 if test "$GCC" = yes; then
15545 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'
15547 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'
15548 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15550 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15551 hardcode_libdir_separator_F77=:
15552 link_all_deplibs_F77=yes
15555 netbsd* | netbsdelf*-gnu)
15556 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15557 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15559 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15561 hardcode_libdir_flag_spec_F77='-R$libdir'
15562 hardcode_direct_F77=yes
15563 hardcode_shlibpath_var_F77=no
15567 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15568 hardcode_direct_F77=yes
15569 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15570 hardcode_libdir_separator_F77=:
15571 hardcode_shlibpath_var_F77=no
15575 if test -f /usr/libexec/ld.so; then
15576 hardcode_direct_F77=yes
15577 hardcode_shlibpath_var_F77=no
15578 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15579 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15580 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15581 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15582 export_dynamic_flag_spec_F77='${wl}-E'
15585 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15586 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15587 hardcode_libdir_flag_spec_F77='-R$libdir'
15590 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15591 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15601 hardcode_libdir_flag_spec_F77='-L$libdir'
15602 hardcode_minus_L_F77=yes
15603 allow_undefined_flag_F77=unsupported
15604 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'
15605 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15609 if test "$GCC" = yes; then
15610 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15611 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'
15613 allow_undefined_flag_F77=' -expect_unresolved \*'
15614 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'
15616 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15617 hardcode_libdir_separator_F77=:
15620 osf4* | osf5*) # as osf3* with the addition of -msym flag
15621 if test "$GCC" = yes; then
15622 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15623 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'
15624 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15626 allow_undefined_flag_F77=' -expect_unresolved \*'
15627 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'
15628 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~
15629 $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'
15631 # Both c and cxx compiler support -rpath directly
15632 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15634 hardcode_libdir_separator_F77=:
15638 no_undefined_flag_F77=' -z text'
15639 if test "$GCC" = yes; then
15641 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15642 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15643 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15646 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15647 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15648 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15650 hardcode_libdir_flag_spec_F77='-R$libdir'
15651 hardcode_shlibpath_var_F77=no
15653 solaris2.[0-5] | solaris2.[0-5].*) ;;
15655 # The compiler driver will combine and reorder linker options,
15656 # but understands `-z linker_flag'. GCC discards it without `$wl',
15657 # but is careful enough not to reorder.
15658 # Supported since Solaris 2.6 (maybe 2.5.1?)
15659 if test "$GCC" = yes; then
15660 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15662 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15666 link_all_deplibs_F77=yes
15670 if test "x$host_vendor" = xsequent; then
15671 # Use $CC to link under sequent, because it throws in some extra .o
15672 # files that make .init and .fini sections work.
15673 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15675 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15677 hardcode_libdir_flag_spec_F77='-L$libdir'
15678 hardcode_direct_F77=yes
15679 hardcode_minus_L_F77=yes
15680 hardcode_shlibpath_var_F77=no
15684 case $host_vendor in
15686 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15687 hardcode_direct_F77=yes # is this really true???
15690 ## LD is ld it makes a PLAMLIB
15691 ## CC just makes a GrossModule.
15692 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15693 reload_cmds_F77='$CC -r -o $output$reload_objs'
15694 hardcode_direct_F77=no
15697 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15698 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15701 runpath_var='LD_RUN_PATH'
15702 hardcode_shlibpath_var_F77=no
15706 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15707 hardcode_shlibpath_var_F77=no
15708 export_dynamic_flag_spec_F77='-Bexport'
15712 if test -d /usr/nec; then
15713 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15714 hardcode_shlibpath_var_F77=no
15715 runpath_var=LD_RUN_PATH
15716 hardcode_runpath_var=yes
15721 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15722 no_undefined_flag_F77='${wl}-z,text'
15723 archive_cmds_need_lc_F77=no
15724 hardcode_shlibpath_var_F77=no
15725 runpath_var='LD_RUN_PATH'
15727 if test "$GCC" = yes; then
15728 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15729 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15731 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15732 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15736 sysv5* | sco3.2v5* | sco5v6*)
15737 # Note: We can NOT use -z defs as we might desire, because we do not
15738 # link with -lc, and that would cause any symbols used from libc to
15739 # always be unresolved, which means just about no library would
15740 # ever link correctly. If we're not using GNU ld we use -z text
15741 # though, which does catch some bad symbols but isn't as heavy-handed
15743 no_undefined_flag_F77='${wl}-z,text'
15744 allow_undefined_flag_F77='${wl}-z,nodefs'
15745 archive_cmds_need_lc_F77=no
15746 hardcode_shlibpath_var_F77=no
15747 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15748 hardcode_libdir_separator_F77=':'
15749 link_all_deplibs_F77=yes
15750 export_dynamic_flag_spec_F77='${wl}-Bexport'
15751 runpath_var='LD_RUN_PATH'
15753 if test "$GCC" = yes; then
15754 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15755 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15757 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15758 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15763 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15764 hardcode_libdir_flag_spec_F77='-L$libdir'
15765 hardcode_shlibpath_var_F77=no
15774 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15775 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15776 test "$ld_shlibs_F77" = no && can_build_shared=no
15779 # Do we need to explicitly link libc?
15781 case "x$archive_cmds_need_lc_F77" in
15783 # Assume -lc should be added
15784 archive_cmds_need_lc_F77=yes
15786 if test "$enable_shared" = yes && test "$GCC" = yes; then
15787 case $archive_cmds_F77 in
15789 # FIXME: we may have to deal with multi-command sequences.
15792 # Test whether the compiler implicitly links with -lc since on some
15793 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15794 # to ld, don't add -lc before -lgcc.
15795 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15796 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15798 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15801 (eval $ac_compile) 2>&5
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); } 2>conftest.err; then
15807 libobjs=conftest.$ac_objext
15809 wl=$lt_prog_compiler_wl_F77
15810 pic_flag=$lt_prog_compiler_pic_F77
15816 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15817 allow_undefined_flag_F77=
15818 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15819 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822 (exit $ac_status); }
15824 archive_cmds_need_lc_F77=no
15826 archive_cmds_need_lc_F77=yes
15828 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15830 cat conftest.err 1>&5
15833 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15834 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15841 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15842 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15843 library_names_spec=
15844 libname_spec='lib$name'
15848 postuninstall_cmds=
15852 shlibpath_overrides_runpath=unknown
15854 dynamic_linker="$host_os ld.so"
15855 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15857 need_lib_prefix=unknown
15858 hardcode_into_libs=no
15860 # when you set need_version to no, make sure it does not cause -set_version
15861 # flags to be left without arguments
15862 need_version=unknown
15867 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15868 shlibpath_var=LIBPATH
15870 # AIX 3 has no versioning support, so we append a major version to the name.
15871 soname_spec='${libname}${release}${shared_ext}$major'
15878 hardcode_into_libs=yes
15879 if test "$host_cpu" = ia64; then
15880 # AIX 5 supports IA64
15881 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15882 shlibpath_var=LD_LIBRARY_PATH
15884 # With GCC up to 2.95.x, collect2 would create an import file
15885 # for dependence libraries. The import file would start with
15886 # the line `#! .'. This would cause the generated library to
15887 # depend on `.', always an invalid library. This was fixed in
15888 # development snapshots of GCC prior to 3.0.
15890 aix4 | aix4.[01] | aix4.[01].*)
15891 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15893 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15896 can_build_shared=no
15900 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15901 # soname into executable. Probably we can add versioning support to
15902 # collect2, so additional links can be useful in future.
15903 if test "$aix_use_runtimelinking" = yes; then
15904 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15905 # instead of lib<name>.a to let people know that these are not
15906 # typical AIX shared libraries.
15907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15909 # We preserve .a as extension for shared libraries through AIX4.2
15910 # and later when we are not doing run time linking.
15911 library_names_spec='${libname}${release}.a $libname.a'
15912 soname_spec='${libname}${release}${shared_ext}$major'
15914 shlibpath_var=LIBPATH
15919 library_names_spec='$libname.ixlibrary $libname.a'
15920 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15921 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'
15925 library_names_spec='${libname}${shared_ext}'
15926 dynamic_linker="$host_os ld.so"
15927 shlibpath_var=LIBRARY_PATH
15933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15934 soname_spec='${libname}${release}${shared_ext}$major'
15935 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15936 shlibpath_var=LD_LIBRARY_PATH
15937 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15938 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15939 # the default ld.so.conf also contains /usr/contrib/lib and
15940 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15941 # libtool to hard-code these into programs
15944 cygwin* | mingw* | pw32*)
15945 version_type=windows
15950 case $GCC,$host_os in
15951 yes,cygwin* | yes,mingw* | yes,pw32*)
15952 library_names_spec='$libname.dll.a'
15953 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15954 postinstall_cmds='base_file=`basename \${file}`~
15955 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15956 dldir=$destdir/`dirname \$dlpath`~
15957 test -d \$dldir || mkdir -p \$dldir~
15958 $install_prog $dir/$dlname \$dldir/$dlname~
15959 chmod a+x \$dldir/$dlname'
15960 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15961 dlpath=$dir/\$dldll~
15963 shlibpath_overrides_runpath=yes
15967 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15968 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15969 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15972 # MinGW DLLs use traditional 'lib' prefix
15973 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15974 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15975 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15976 # It is most probably a Windows format PATH printed by
15977 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15978 # path with ; separators, and with drive letters. We can handle the
15979 # drive letters (cygwin fileutils understands them), so leave them,
15980 # especially as we might pass files found there to a mingw objdump,
15981 # which wouldn't understand a cygwinified path. Ahh.
15982 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15984 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15988 # pw32 DLLs use 'pw' prefix rather than 'lib'
15989 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15995 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15998 dynamic_linker='Win32 ld.exe'
15999 # FIXME: first we should search . and the directory the executable is in
16003 darwin* | rhapsody*)
16004 dynamic_linker="$host_os dyld"
16005 version_type=darwin
16008 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16009 soname_spec='${libname}${release}${major}$shared_ext'
16010 shlibpath_overrides_runpath=yes
16011 shlibpath_var=DYLD_LIBRARY_PATH
16012 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16014 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16022 soname_spec='${libname}${release}${shared_ext}$major'
16023 shlibpath_var=LD_LIBRARY_PATH
16030 freebsd* | dragonfly*)
16031 # DragonFly does not have aout. When/if they implement a new
16032 # versioning mechanism, adjust this.
16033 if test -x /usr/bin/objformat; then
16034 objformat=`/usr/bin/objformat`
16037 freebsd[123]*) objformat=aout ;;
16038 *) objformat=elf ;;
16041 version_type=freebsd-$objformat
16042 case $version_type in
16044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16049 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16053 shlibpath_var=LD_LIBRARY_PATH
16056 shlibpath_overrides_runpath=yes
16058 freebsd3.[01]* | freebsdelf3.[01]*)
16059 shlibpath_overrides_runpath=yes
16060 hardcode_into_libs=yes
16062 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16063 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16064 shlibpath_overrides_runpath=no
16065 hardcode_into_libs=yes
16067 *) # from 4.6 on, and DragonFly
16068 shlibpath_overrides_runpath=yes
16069 hardcode_into_libs=yes
16078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16079 soname_spec='${libname}${release}${shared_ext}$major'
16080 shlibpath_var=LD_LIBRARY_PATH
16081 hardcode_into_libs=yes
16084 hpux9* | hpux10* | hpux11*)
16085 # Give a soname corresponding to the major version so that dld.sl refuses to
16086 # link against other versions.
16093 hardcode_into_libs=yes
16094 dynamic_linker="$host_os dld.so"
16095 shlibpath_var=LD_LIBRARY_PATH
16096 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16098 soname_spec='${libname}${release}${shared_ext}$major'
16099 if test "X$HPUX_IA64_MODE" = X32; then
16100 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16102 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16104 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16108 hardcode_into_libs=yes
16109 dynamic_linker="$host_os dld.sl"
16110 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16111 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16113 soname_spec='${libname}${release}${shared_ext}$major'
16114 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16115 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16119 dynamic_linker="$host_os dld.sl"
16120 shlibpath_var=SHLIB_PATH
16121 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16123 soname_spec='${libname}${release}${shared_ext}$major'
16126 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16127 postinstall_cmds='chmod 555 $lib'
16134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16135 soname_spec='${libname}${release}${shared_ext}$major'
16136 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16137 shlibpath_var=LD_LIBRARY_PATH
16138 shlibpath_overrides_runpath=no
16139 hardcode_into_libs=yes
16142 irix5* | irix6* | nonstopux*)
16144 nonstopux*) version_type=nonstopux ;;
16146 if test "$lt_cv_prog_gnu_ld" = yes; then
16154 soname_spec='${libname}${release}${shared_ext}$major'
16155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16157 irix5* | nonstopux*)
16158 libsuff= shlibsuff=
16161 case $LD in # libtool.m4 will add one of these switches to LD
16162 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16163 libsuff= shlibsuff= libmagic=32-bit;;
16164 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16165 libsuff=32 shlibsuff=N32 libmagic=N32;;
16166 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16167 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16168 *) libsuff= shlibsuff= libmagic=never-match;;
16172 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16173 shlibpath_overrides_runpath=no
16174 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16175 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16176 hardcode_into_libs=yes
16179 # No shared lib support for Linux oldld, aout, or coff.
16180 linux*oldld* | linux*aout* | linux*coff*)
16184 # This must be Linux ELF.
16185 linux* | k*bsd*-gnu)
16189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16190 soname_spec='${libname}${release}${shared_ext}$major'
16191 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16192 shlibpath_var=LD_LIBRARY_PATH
16193 shlibpath_overrides_runpath=no
16194 # This implies no fast_install, which is unacceptable.
16195 # Some rework will be needed to allow for fast_install
16196 # before this can be enabled.
16197 hardcode_into_libs=yes
16199 # Append ld.so.conf contents to the search path
16200 if test -f /etc/ld.so.conf; then
16201 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' ' '`
16202 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16205 # We used to test for /lib/ld.so.1 and disable shared libraries on
16206 # powerpc, because MkLinux only supported shared libraries with the
16207 # GNU dynamic linker. Since this was broken with cross compilers,
16208 # most powerpc-linux boxes support dynamic linking these days and
16209 # people can always --disable-shared, the test was removed, and we
16210 # assume the GNU/Linux dynamic linker is in use.
16211 dynamic_linker='GNU/Linux ld.so'
16218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16219 soname_spec='${libname}${release}${shared_ext}$major'
16220 shlibpath_var=LD_LIBRARY_PATH
16221 shlibpath_overrides_runpath=no
16222 hardcode_into_libs=yes
16223 dynamic_linker='NetBSD ld.elf_so'
16230 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16232 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16233 dynamic_linker='NetBSD (a.out) ld.so'
16235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16236 soname_spec='${libname}${release}${shared_ext}$major'
16237 dynamic_linker='NetBSD ld.elf_so'
16239 shlibpath_var=LD_LIBRARY_PATH
16240 shlibpath_overrides_runpath=yes
16241 hardcode_into_libs=yes
16246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16247 shlibpath_var=LD_LIBRARY_PATH
16248 shlibpath_overrides_runpath=yes
16255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16256 soname_spec='${libname}${release}${shared_ext}$major'
16257 shlibpath_var=LD_LIBRARY_PATH
16258 shlibpath_overrides_runpath=yes
16263 sys_lib_dlsearch_path_spec="/usr/lib"
16265 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16267 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16268 *) need_version=no ;;
16270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16271 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16272 shlibpath_var=LD_LIBRARY_PATH
16273 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16275 openbsd2.[89] | openbsd2.[89].*)
16276 shlibpath_overrides_runpath=no
16279 shlibpath_overrides_runpath=yes
16283 shlibpath_overrides_runpath=yes
16288 libname_spec='$name'
16291 library_names_spec='$libname${shared_ext} $libname.a'
16292 dynamic_linker='OS/2 ld.exe'
16293 shlibpath_var=LIBPATH
16296 osf3* | osf4* | osf5*)
16300 soname_spec='${libname}${release}${shared_ext}$major'
16301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16302 shlibpath_var=LD_LIBRARY_PATH
16303 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16304 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16316 soname_spec='${libname}${release}${shared_ext}$major'
16317 shlibpath_var=LD_LIBRARY_PATH
16318 shlibpath_overrides_runpath=yes
16319 hardcode_into_libs=yes
16320 # ldd complains unless libraries are executable
16321 postinstall_cmds='chmod +x $lib'
16326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16327 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16328 shlibpath_var=LD_LIBRARY_PATH
16329 shlibpath_overrides_runpath=yes
16330 if test "$with_gnu_ld" = yes; then
16338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16339 soname_spec='${libname}${release}${shared_ext}$major'
16340 shlibpath_var=LD_LIBRARY_PATH
16341 case $host_vendor in
16343 shlibpath_overrides_runpath=no
16345 export_dynamic_flag_spec='${wl}-Blargedynsym'
16346 runpath_var=LD_RUN_PATH
16354 shlibpath_overrides_runpath=no
16355 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16361 if test -d /usr/nec ;then
16363 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16364 soname_spec='$libname${shared_ext}.$major'
16365 shlibpath_var=LD_LIBRARY_PATH
16369 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16370 version_type=freebsd-elf
16373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16374 soname_spec='${libname}${release}${shared_ext}$major'
16375 shlibpath_var=LD_LIBRARY_PATH
16376 hardcode_into_libs=yes
16377 if test "$with_gnu_ld" = yes; then
16378 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16379 shlibpath_overrides_runpath=no
16381 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16382 shlibpath_overrides_runpath=yes
16385 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16389 sys_lib_dlsearch_path_spec='/usr/lib'
16394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16395 soname_spec='${libname}${release}${shared_ext}$major'
16396 shlibpath_var=LD_LIBRARY_PATH
16403 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16404 echo "${ECHO_T}$dynamic_linker" >&6; }
16405 test "$dynamic_linker" = no && can_build_shared=no
16407 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16408 if test "$GCC" = yes; then
16409 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16412 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16413 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16414 hardcode_action_F77=
16415 if test -n "$hardcode_libdir_flag_spec_F77" || \
16416 test -n "$runpath_var_F77" || \
16417 test "X$hardcode_automatic_F77" = "Xyes" ; then
16419 # We can hardcode non-existant directories.
16420 if test "$hardcode_direct_F77" != no &&
16421 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16422 # have to relink, otherwise we might link with an installed library
16423 # when we should be linking with a yet-to-be-installed one
16424 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16425 test "$hardcode_minus_L_F77" != no; then
16426 # Linking always hardcodes the temporary library directory.
16427 hardcode_action_F77=relink
16429 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16430 hardcode_action_F77=immediate
16433 # We cannot hardcode anything, or else we can only hardcode existing
16435 hardcode_action_F77=unsupported
16437 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16438 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16440 if test "$hardcode_action_F77" = relink; then
16441 # Fast installation is not supported
16442 enable_fast_install=no
16443 elif test "$shlibpath_overrides_runpath" = yes ||
16444 test "$enable_shared" = no; then
16445 # Fast installation is not necessary
16446 enable_fast_install=needless
16450 # The else clause should only fire when bootstrapping the
16451 # libtool distribution, otherwise you forgot to ship ltmain.sh
16452 # with your package, and you will get complaints that there are
16453 # no rules to generate ltmain.sh.
16454 if test -f "$ltmain"; then
16455 # See if we are running on zsh, and set the options which allow our commands through
16456 # without removal of \ escapes.
16457 if test -n "${ZSH_VERSION+set}" ; then
16458 setopt NO_GLOB_SUBST
16460 # Now quote all the things that may contain metacharacters while being
16461 # careful not to overquote the AC_SUBSTed values. We take copies of the
16462 # variables and quote the copies for generation of the libtool script.
16463 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16465 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16466 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16467 deplibs_check_method reload_flag reload_cmds need_locks \
16468 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16469 lt_cv_sys_global_symbol_to_c_name_address \
16470 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16471 old_postinstall_cmds old_postuninstall_cmds \
16475 lt_prog_compiler_wl_F77 \
16476 lt_prog_compiler_pic_F77 \
16477 lt_prog_compiler_static_F77 \
16478 lt_prog_compiler_no_builtin_flag_F77 \
16479 export_dynamic_flag_spec_F77 \
16480 thread_safe_flag_spec_F77 \
16481 whole_archive_flag_spec_F77 \
16482 enable_shared_with_static_runtimes_F77 \
16483 old_archive_cmds_F77 \
16484 old_archive_from_new_cmds_F77 \
16485 predep_objects_F77 \
16486 postdep_objects_F77 \
16489 compiler_lib_search_path_F77 \
16491 archive_expsym_cmds_F77 \
16492 postinstall_cmds_F77 \
16493 postuninstall_cmds_F77 \
16494 old_archive_from_expsyms_cmds_F77 \
16495 allow_undefined_flag_F77 \
16496 no_undefined_flag_F77 \
16497 export_symbols_cmds_F77 \
16498 hardcode_libdir_flag_spec_F77 \
16499 hardcode_libdir_flag_spec_ld_F77 \
16500 hardcode_libdir_separator_F77 \
16501 hardcode_automatic_F77 \
16503 module_expsym_cmds_F77 \
16504 lt_cv_prog_compiler_c_o_F77 \
16505 fix_srcfile_path_F77 \
16506 exclude_expsyms_F77 \
16507 include_expsyms_F77; do
16510 old_archive_cmds_F77 | \
16511 old_archive_from_new_cmds_F77 | \
16512 archive_cmds_F77 | \
16513 archive_expsym_cmds_F77 | \
16514 module_cmds_F77 | \
16515 module_expsym_cmds_F77 | \
16516 old_archive_from_expsyms_cmds_F77 | \
16517 export_symbols_cmds_F77 | \
16518 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16519 postinstall_cmds | postuninstall_cmds | \
16520 old_postinstall_cmds | old_postuninstall_cmds | \
16521 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16522 # Double-quote double-evaled strings.
16523 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16526 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16532 *'\$0 --fallback-echo"')
16533 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16539 cat <<__EOF__ >> "$cfgfile"
16540 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16542 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16544 # Shell to use when invoking shell scripts.
16547 # Whether or not to build shared libraries.
16548 build_libtool_libs=$enable_shared
16550 # Whether or not to build static libraries.
16551 build_old_libs=$enable_static
16553 # Whether or not to add -lc for building shared libraries.
16554 build_libtool_need_lc=$archive_cmds_need_lc_F77
16556 # Whether or not to disallow shared libs when runtime libs are static
16557 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16559 # Whether or not to optimize for fast installation.
16560 fast_install=$enable_fast_install
16563 host_alias=$host_alias
16567 # The build system.
16568 build_alias=$build_alias
16572 # An echo program that does not interpret backslashes.
16577 AR_FLAGS=$lt_AR_FLAGS
16582 # LTCC compiler flags.
16583 LTCFLAGS=$lt_LTCFLAGS
16585 # A language-specific compiler.
16586 CC=$lt_compiler_F77
16588 # Is the compiler the GNU C compiler?
16594 # The linker used to build libraries.
16597 # Whether we need hard or soft links.
16600 # A BSD-compatible nm program.
16603 # A symbol stripping program
16606 # Used to examine libraries when file_magic_cmd begins "file"
16607 MAGIC_CMD=$MAGIC_CMD
16609 # Used on cygwin: DLL creation program.
16612 # Used on cygwin: object dumper.
16615 # Used on cygwin: assembler.
16618 # The name of the directory that contains temporary libtool files.
16621 # How to create reloadable object files.
16622 reload_flag=$lt_reload_flag
16623 reload_cmds=$lt_reload_cmds
16625 # How to pass a linker flag through the compiler.
16626 wl=$lt_lt_prog_compiler_wl_F77
16628 # Object file suffix (normally "o").
16629 objext="$ac_objext"
16631 # Old archive suffix (normally "a").
16634 # Shared library suffix (normally ".so").
16635 shrext_cmds='$shrext_cmds'
16637 # Executable file suffix (normally "").
16640 # Additional compiler flags for building library objects.
16641 pic_flag=$lt_lt_prog_compiler_pic_F77
16644 # What is the maximum length of a command?
16645 max_cmd_len=$lt_cv_sys_max_cmd_len
16647 # Does compiler simultaneously support -c and -o options?
16648 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16650 # Must we lock files when doing compilation?
16651 need_locks=$lt_need_locks
16653 # Do we need the lib prefix for modules?
16654 need_lib_prefix=$need_lib_prefix
16656 # Do we need a version for libraries?
16657 need_version=$need_version
16659 # Whether dlopen is supported.
16660 dlopen_support=$enable_dlopen
16662 # Whether dlopen of programs is supported.
16663 dlopen_self=$enable_dlopen_self
16665 # Whether dlopen of statically linked programs is supported.
16666 dlopen_self_static=$enable_dlopen_self_static
16668 # Compiler flag to prevent dynamic linking.
16669 link_static_flag=$lt_lt_prog_compiler_static_F77
16671 # Compiler flag to turn off builtin functions.
16672 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16674 # Compiler flag to allow reflexive dlopens.
16675 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16677 # Compiler flag to generate shared objects directly from archives.
16678 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16680 # Compiler flag to generate thread-safe objects.
16681 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16683 # Library versioning type.
16684 version_type=$version_type
16686 # Format of library name prefix.
16687 libname_spec=$lt_libname_spec
16689 # List of archive names. First name is the real one, the rest are links.
16690 # The last name is the one that the linker finds with -lNAME.
16691 library_names_spec=$lt_library_names_spec
16693 # The coded name of the library, if different from the real name.
16694 soname_spec=$lt_soname_spec
16696 # Commands used to build and install an old-style archive.
16698 old_archive_cmds=$lt_old_archive_cmds_F77
16699 old_postinstall_cmds=$lt_old_postinstall_cmds
16700 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16702 # Create an old-style archive from a shared archive.
16703 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16705 # Create a temporary old-style archive to link instead of a shared archive.
16706 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16708 # Commands used to build and install a shared archive.
16709 archive_cmds=$lt_archive_cmds_F77
16710 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16711 postinstall_cmds=$lt_postinstall_cmds
16712 postuninstall_cmds=$lt_postuninstall_cmds
16714 # Commands used to build a loadable module (assumed same as above if empty)
16715 module_cmds=$lt_module_cmds_F77
16716 module_expsym_cmds=$lt_module_expsym_cmds_F77
16718 # Commands to strip libraries.
16719 old_striplib=$lt_old_striplib
16720 striplib=$lt_striplib
16722 # Dependencies to place before the objects being linked to create a
16724 predep_objects=$lt_predep_objects_F77
16726 # Dependencies to place after the objects being linked to create a
16728 postdep_objects=$lt_postdep_objects_F77
16730 # Dependencies to place before the objects being linked to create a
16732 predeps=$lt_predeps_F77
16734 # Dependencies to place after the objects being linked to create a
16736 postdeps=$lt_postdeps_F77
16738 # The library search path used internally by the compiler when linking
16739 # a shared library.
16740 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16742 # Method to check whether dependent libraries are shared objects.
16743 deplibs_check_method=$lt_deplibs_check_method
16745 # Command to use when deplibs_check_method == file_magic.
16746 file_magic_cmd=$lt_file_magic_cmd
16748 # Flag that allows shared libraries with undefined symbols to be built.
16749 allow_undefined_flag=$lt_allow_undefined_flag_F77
16751 # Flag that forces no undefined symbols.
16752 no_undefined_flag=$lt_no_undefined_flag_F77
16754 # Commands used to finish a libtool library installation in a directory.
16755 finish_cmds=$lt_finish_cmds
16757 # Same as above, but a single script fragment to be evaled but not shown.
16758 finish_eval=$lt_finish_eval
16760 # Take the output of nm and produce a listing of raw symbols and C names.
16761 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16763 # Transform the output of nm in a proper C declaration
16764 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16766 # Transform the output of nm in a C name address pair
16767 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16769 # This is the shared library runtime path variable.
16770 runpath_var=$runpath_var
16772 # This is the shared library path variable.
16773 shlibpath_var=$shlibpath_var
16775 # Is shlibpath searched before the hard-coded library search path?
16776 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16778 # How to hardcode a shared library path into an executable.
16779 hardcode_action=$hardcode_action_F77
16781 # Whether we should hardcode library paths into libraries.
16782 hardcode_into_libs=$hardcode_into_libs
16784 # Flag to hardcode \$libdir into a binary during linking.
16785 # This must work even if \$libdir does not exist.
16786 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16788 # If ld is used when linking, flag to hardcode \$libdir into
16789 # a binary during linking. This must work even if \$libdir does
16791 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16793 # Whether we need a single -rpath flag with a separated argument.
16794 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16796 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16797 # resulting binary.
16798 hardcode_direct=$hardcode_direct_F77
16800 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16801 # resulting binary.
16802 hardcode_minus_L=$hardcode_minus_L_F77
16804 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16805 # the resulting binary.
16806 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16808 # Set to yes if building a shared library automatically hardcodes DIR into the library
16809 # and all subsequent libraries and executables linked against it.
16810 hardcode_automatic=$hardcode_automatic_F77
16812 # Variables whose values should be saved in libtool wrapper scripts and
16813 # restored at relink time.
16814 variables_saved_for_relink="$variables_saved_for_relink"
16816 # Whether libtool must link a program against all its dependency libraries.
16817 link_all_deplibs=$link_all_deplibs_F77
16819 # Compile-time system search path for libraries
16820 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16822 # Run-time system search path for libraries
16823 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16825 # Fix the shell variable \$srcfile for the compiler.
16826 fix_srcfile_path=$lt_fix_srcfile_path
16828 # Set to yes if exported symbols are required.
16829 always_export_symbols=$always_export_symbols_F77
16831 # The commands to list exported symbols.
16832 export_symbols_cmds=$lt_export_symbols_cmds_F77
16834 # The commands to extract the exported symbol list from a shared archive.
16835 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16837 # Symbols that should not be listed in the preloaded symbols.
16838 exclude_expsyms=$lt_exclude_expsyms_F77
16840 # Symbols that must always be exported.
16841 include_expsyms=$lt_include_expsyms_F77
16843 # ### END LIBTOOL TAG CONFIG: $tagname
16849 # If there is no Makefile yet, we rely on a make rule to execute
16850 # `config.status --recheck' to rerun these tests and create the
16851 # libtool script then.
16852 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16853 if test -f "$ltmain_in"; then
16854 test -f Makefile && make "$ltmain"
16860 ac_cpp='$CXXCPP $CPPFLAGS'
16861 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16862 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16863 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16873 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16876 # Source file extension for Java test sources.
16879 # Object file extension for compiled Java test sources.
16883 # Code to be used in simple compile tests
16884 lt_simple_compile_test_code="class foo {}"
16886 # Code to be used in simple link tests
16887 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16889 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16891 # If no C compiler was specified, use CC.
16894 # If no C compiler flags were specified, use CFLAGS.
16895 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16897 # Allow CC to be a program name with arguments.
16901 # save warnings/boilerplate of simple test code
16902 ac_outfile=conftest.$ac_objext
16903 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16904 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16905 _lt_compiler_boilerplate=`cat conftest.err`
16908 ac_outfile=conftest.$ac_objext
16909 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16910 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16911 _lt_linker_boilerplate=`cat conftest.err`
16915 # Allow CC to be a program name with arguments.
16920 for cc_temp in $compiler""; do
16922 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16923 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16928 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16931 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16932 archive_cmds_need_lc_GCJ=no
16934 old_archive_cmds_GCJ=$old_archive_cmds
16937 lt_prog_compiler_no_builtin_flag_GCJ=
16939 if test "$GCC" = yes; then
16940 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16943 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16944 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16945 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16946 echo $ECHO_N "(cached) $ECHO_C" >&6
16948 lt_cv_prog_compiler_rtti_exceptions=no
16949 ac_outfile=conftest.$ac_objext
16950 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16951 lt_compiler_flag="-fno-rtti -fno-exceptions"
16952 # Insert the option either (1) after the last *FLAGS variable, or
16953 # (2) before a word containing "conftest.", or (3) at the end.
16954 # Note that $ac_compile itself does not contain backslashes and begins
16955 # with a dollar sign (not a hyphen), so the echo should work correctly.
16956 # The option is referenced via a variable to avoid confusing sed.
16957 lt_compile=`echo "$ac_compile" | $SED \
16958 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16959 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16960 -e 's:$: $lt_compiler_flag:'`
16961 (eval echo "\"\$as_me:16961: $lt_compile\"" >&5)
16962 (eval "$lt_compile" 2>conftest.err)
16964 cat conftest.err >&5
16965 echo "$as_me:16965: \$? = $ac_status" >&5
16966 if (exit $ac_status) && test -s "$ac_outfile"; then
16967 # The compiler can only warn and ignore the option if not recognized
16968 # So say no if there are warnings other than the usual output.
16969 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16970 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16971 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16972 lt_cv_prog_compiler_rtti_exceptions=yes
16978 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16979 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16981 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16982 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16989 lt_prog_compiler_wl_GCJ=
16990 lt_prog_compiler_pic_GCJ=
16991 lt_prog_compiler_static_GCJ=
16993 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16994 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16996 if test "$GCC" = yes; then
16997 lt_prog_compiler_wl_GCJ='-Wl,'
16998 lt_prog_compiler_static_GCJ='-static'
17002 # All AIX code is PIC.
17003 if test "$host_cpu" = ia64; then
17004 # AIX 5 now supports IA64 processor
17005 lt_prog_compiler_static_GCJ='-Bstatic'
17010 # FIXME: we need at least 68020 code to build shared libraries, but
17011 # adding the `-m68020' flag to GCC prevents building anything better,
17013 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17016 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17017 # PIC is the default for these OSes.
17020 mingw* | cygwin* | pw32* | os2*)
17021 # This hack is so that the source file can tell whether it is being
17022 # built for inclusion in a dll (and should export symbols for example).
17023 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17024 # (--disable-auto-import) libraries
17025 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17028 darwin* | rhapsody*)
17029 # PIC is the default on this platform
17030 # Common symbols not allowed in MH_DYLIB files
17031 lt_prog_compiler_pic_GCJ='-fno-common'
17035 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17036 # Instead, we relocate shared libraries at runtime.
17040 # Just because we use GCC doesn't mean we suddenly get shared libraries
17041 # on systems that don't support them.
17042 lt_prog_compiler_can_build_shared_GCJ=no
17047 if test -d /usr/nec; then
17048 lt_prog_compiler_pic_GCJ=-Kconform_pic
17053 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17054 # not for PA HP-UX.
17060 lt_prog_compiler_pic_GCJ='-fPIC'
17066 lt_prog_compiler_pic_GCJ='-fPIC'
17070 # PORTME Check for flag to pass linker flags through the system compiler.
17073 lt_prog_compiler_wl_GCJ='-Wl,'
17074 if test "$host_cpu" = ia64; then
17075 # AIX 5 now supports IA64 processor
17076 lt_prog_compiler_static_GCJ='-Bstatic'
17078 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17082 # PIC is the default on this platform
17083 # Common symbols not allowed in MH_DYLIB files
17084 case $cc_basename in
17086 lt_prog_compiler_pic_GCJ='-qnocommon'
17087 lt_prog_compiler_wl_GCJ='-Wl,'
17092 mingw* | cygwin* | pw32* | os2*)
17093 # This hack is so that the source file can tell whether it is being
17094 # built for inclusion in a dll (and should export symbols for example).
17095 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17098 hpux9* | hpux10* | hpux11*)
17099 lt_prog_compiler_wl_GCJ='-Wl,'
17100 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17101 # not for PA HP-UX.
17107 lt_prog_compiler_pic_GCJ='+Z'
17110 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17111 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17114 irix5* | irix6* | nonstopux*)
17115 lt_prog_compiler_wl_GCJ='-Wl,'
17116 # PIC (with -KPIC) is the default.
17117 lt_prog_compiler_static_GCJ='-non_shared'
17121 lt_prog_compiler_pic_GCJ='-KPIC'
17122 lt_prog_compiler_static_GCJ='-Bstatic'
17125 linux* | k*bsd*-gnu)
17126 case $cc_basename in
17128 lt_prog_compiler_wl_GCJ='-Wl,'
17129 lt_prog_compiler_pic_GCJ='-KPIC'
17130 lt_prog_compiler_static_GCJ='-static'
17132 pgcc* | pgf77* | pgf90* | pgf95*)
17133 # Portland Group compilers (*not* the Pentium gcc compiler,
17134 # which looks to be a dead project)
17135 lt_prog_compiler_wl_GCJ='-Wl,'
17136 lt_prog_compiler_pic_GCJ='-fpic'
17137 lt_prog_compiler_static_GCJ='-Bstatic'
17140 lt_prog_compiler_wl_GCJ='-Wl,'
17141 # All Alpha code is PIC.
17142 lt_prog_compiler_static_GCJ='-non_shared'
17145 case `$CC -V 2>&1 | sed 5q` in
17148 lt_prog_compiler_pic_GCJ='-KPIC'
17149 lt_prog_compiler_static_GCJ='-Bstatic'
17150 lt_prog_compiler_wl_GCJ='-Wl,'
17153 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17154 lt_prog_compiler_pic_GCJ='-KPIC'
17155 lt_prog_compiler_static_GCJ='-Bstatic'
17156 lt_prog_compiler_wl_GCJ=''
17163 osf3* | osf4* | osf5*)
17164 lt_prog_compiler_wl_GCJ='-Wl,'
17165 # All OSF/1 code is PIC.
17166 lt_prog_compiler_static_GCJ='-non_shared'
17170 lt_prog_compiler_static_GCJ='-non_shared'
17174 lt_prog_compiler_pic_GCJ='-KPIC'
17175 lt_prog_compiler_static_GCJ='-Bstatic'
17176 case $cc_basename in
17177 f77* | f90* | f95*)
17178 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17180 lt_prog_compiler_wl_GCJ='-Wl,';;
17185 lt_prog_compiler_wl_GCJ='-Qoption ld '
17186 lt_prog_compiler_pic_GCJ='-PIC'
17187 lt_prog_compiler_static_GCJ='-Bstatic'
17190 sysv4 | sysv4.2uw2* | sysv4.3*)
17191 lt_prog_compiler_wl_GCJ='-Wl,'
17192 lt_prog_compiler_pic_GCJ='-KPIC'
17193 lt_prog_compiler_static_GCJ='-Bstatic'
17197 if test -d /usr/nec ;then
17198 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17199 lt_prog_compiler_static_GCJ='-Bstatic'
17203 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17204 lt_prog_compiler_wl_GCJ='-Wl,'
17205 lt_prog_compiler_pic_GCJ='-KPIC'
17206 lt_prog_compiler_static_GCJ='-Bstatic'
17210 lt_prog_compiler_wl_GCJ='-Wl,'
17211 lt_prog_compiler_can_build_shared_GCJ=no
17215 lt_prog_compiler_pic_GCJ='-pic'
17216 lt_prog_compiler_static_GCJ='-Bstatic'
17220 lt_prog_compiler_can_build_shared_GCJ=no
17225 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17226 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17229 # Check to make sure the PIC flag actually works.
17231 if test -n "$lt_prog_compiler_pic_GCJ"; then
17233 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17234 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17235 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17236 echo $ECHO_N "(cached) $ECHO_C" >&6
17238 lt_prog_compiler_pic_works_GCJ=no
17239 ac_outfile=conftest.$ac_objext
17240 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17241 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17242 # Insert the option either (1) after the last *FLAGS variable, or
17243 # (2) before a word containing "conftest.", or (3) at the end.
17244 # Note that $ac_compile itself does not contain backslashes and begins
17245 # with a dollar sign (not a hyphen), so the echo should work correctly.
17246 # The option is referenced via a variable to avoid confusing sed.
17247 lt_compile=`echo "$ac_compile" | $SED \
17248 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17249 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17250 -e 's:$: $lt_compiler_flag:'`
17251 (eval echo "\"\$as_me:17251: $lt_compile\"" >&5)
17252 (eval "$lt_compile" 2>conftest.err)
17254 cat conftest.err >&5
17255 echo "$as_me:17255: \$? = $ac_status" >&5
17256 if (exit $ac_status) && test -s "$ac_outfile"; then
17257 # The compiler can only warn and ignore the option if not recognized
17258 # So say no if there are warnings other than the usual output.
17259 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17260 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17261 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17262 lt_prog_compiler_pic_works_GCJ=yes
17268 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17269 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17271 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17272 case $lt_prog_compiler_pic_GCJ in
17274 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17277 lt_prog_compiler_pic_GCJ=
17278 lt_prog_compiler_can_build_shared_GCJ=no
17283 # For platforms which do not support PIC, -DPIC is meaningless:
17285 lt_prog_compiler_pic_GCJ=
17288 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17293 # Check to make sure the static flag actually works.
17295 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17296 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17297 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17298 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17299 echo $ECHO_N "(cached) $ECHO_C" >&6
17301 lt_prog_compiler_static_works_GCJ=no
17302 save_LDFLAGS="$LDFLAGS"
17303 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17304 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17305 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17306 # The linker can only warn and ignore the option if not recognized
17307 # So say no if there are warnings
17308 if test -s conftest.err; then
17309 # Append any errors to the config.log.
17310 cat conftest.err 1>&5
17311 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17312 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17313 if diff conftest.exp conftest.er2 >/dev/null; then
17314 lt_prog_compiler_static_works_GCJ=yes
17317 lt_prog_compiler_static_works_GCJ=yes
17321 LDFLAGS="$save_LDFLAGS"
17324 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17325 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17327 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17330 lt_prog_compiler_static_GCJ=
17334 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17335 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17336 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17337 echo $ECHO_N "(cached) $ECHO_C" >&6
17339 lt_cv_prog_compiler_c_o_GCJ=no
17340 $rm -r conftest 2>/dev/null
17344 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17346 lt_compiler_flag="-o out/conftest2.$ac_objext"
17347 # Insert the option either (1) after the last *FLAGS variable, or
17348 # (2) before a word containing "conftest.", or (3) at the end.
17349 # Note that $ac_compile itself does not contain backslashes and begins
17350 # with a dollar sign (not a hyphen), so the echo should work correctly.
17351 lt_compile=`echo "$ac_compile" | $SED \
17352 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17353 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17354 -e 's:$: $lt_compiler_flag:'`
17355 (eval echo "\"\$as_me:17355: $lt_compile\"" >&5)
17356 (eval "$lt_compile" 2>out/conftest.err)
17358 cat out/conftest.err >&5
17359 echo "$as_me:17359: \$? = $ac_status" >&5
17360 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17362 # The compiler can only warn and ignore the option if not recognized
17363 # So say no if there are warnings
17364 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17365 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17366 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17367 lt_cv_prog_compiler_c_o_GCJ=yes
17372 # SGI C++ compiler will create directory out/ii_files/ for
17373 # template instantiation
17374 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17375 $rm out/* && rmdir out
17381 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17382 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17385 hard_links="nottested"
17386 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17387 # do not overwrite the value of need_locks provided by the user
17388 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17389 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17392 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17394 ln conftest.a conftest.b 2>&5 || hard_links=no
17395 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17396 { echo "$as_me:$LINENO: result: $hard_links" >&5
17397 echo "${ECHO_T}$hard_links" >&6; }
17398 if test "$hard_links" = no; then
17399 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17400 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17407 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17408 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17411 allow_undefined_flag_GCJ=
17412 enable_shared_with_static_runtimes_GCJ=no
17414 archive_expsym_cmds_GCJ=
17415 old_archive_From_new_cmds_GCJ=
17416 old_archive_from_expsyms_cmds_GCJ=
17417 export_dynamic_flag_spec_GCJ=
17418 whole_archive_flag_spec_GCJ=
17419 thread_safe_flag_spec_GCJ=
17420 hardcode_libdir_flag_spec_GCJ=
17421 hardcode_libdir_flag_spec_ld_GCJ=
17422 hardcode_libdir_separator_GCJ=
17423 hardcode_direct_GCJ=no
17424 hardcode_minus_L_GCJ=no
17425 hardcode_shlibpath_var_GCJ=unsupported
17426 link_all_deplibs_GCJ=unknown
17427 hardcode_automatic_GCJ=no
17429 module_expsym_cmds_GCJ=
17430 always_export_symbols_GCJ=no
17431 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17432 # include_expsyms should be a list of space-separated symbols to be *always*
17433 # included in the symbol list
17434 include_expsyms_GCJ=
17435 # exclude_expsyms can be an extended regexp of symbols to exclude
17436 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17437 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17438 # as well as any symbol that contains `d'.
17439 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17440 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17441 # platforms (ab)use it in PIC code, but their linkers get confused if
17442 # the symbol is explicitly referenced. Since portable code cannot
17443 # rely on this symbol name, it's probably fine to never include it in
17444 # preloaded symbol tables.
17445 extract_expsyms_cmds=
17446 # Just being paranoid about ensuring that cc_basename is set.
17447 for cc_temp in $compiler""; do
17449 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17450 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17455 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17458 cygwin* | mingw* | pw32*)
17459 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17460 # When not using gcc, we currently assume that we are using
17461 # Microsoft Visual C++.
17462 if test "$GCC" != yes; then
17467 # we just hope/assume this is gcc and not c89 (= MSVC++)
17476 if test "$with_gnu_ld" = yes; then
17477 # If archive_cmds runs LD, not CC, wlarc should be empty
17480 # Set some defaults for GNU ld with shared library support. These
17481 # are reset later if shared libraries are not supported. Putting them
17482 # here allows them to be overridden if necessary.
17483 runpath_var=LD_RUN_PATH
17484 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17485 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17486 # ancient GNU ld didn't support --whole-archive et. al.
17487 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17488 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17490 whole_archive_flag_spec_GCJ=
17492 supports_anon_versioning=no
17493 case `$LD -v 2>/dev/null` in
17494 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17495 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17496 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17497 *\ 2.11.*) ;; # other 2.11 versions
17498 *) supports_anon_versioning=yes ;;
17501 # See if GNU ld supports shared libraries.
17503 aix3* | aix4* | aix5*)
17504 # On AIX/PPC, the GNU linker is very broken
17505 if test "$host_cpu" != ia64; then
17509 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17510 *** to be unable to reliably create shared libraries on AIX.
17511 *** Therefore, libtool is disabling shared libraries support. If you
17512 *** really care for shared libraries, you may want to modify your PATH
17513 *** so that a non-GNU linker is found, and then restart.
17520 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)'
17521 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17522 hardcode_minus_L_GCJ=yes
17524 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17525 # that the semantics of dynamic libraries on AmigaOS, at least up
17526 # to version 4, is to share data among multiple programs linked
17527 # with the same dynamic library. Since this doesn't match the
17528 # behavior of shared libraries on other platforms, we can't use
17534 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17535 allow_undefined_flag_GCJ=unsupported
17536 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17537 # support --undefined. This deserves some investigation. FIXME
17538 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17544 cygwin* | mingw* | pw32*)
17545 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17546 # as there is no search path for DLLs.
17547 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17548 allow_undefined_flag_GCJ=unsupported
17549 always_export_symbols_GCJ=no
17550 enable_shared_with_static_runtimes_GCJ=yes
17551 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17553 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17554 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17555 # If the export-symbols file already is a .def file (1st line
17556 # is EXPORTS), use it as is; otherwise, prepend...
17557 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17558 cp $export_symbols $output_objdir/$soname.def;
17560 echo EXPORTS > $output_objdir/$soname.def;
17561 cat $export_symbols >> $output_objdir/$soname.def;
17563 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17570 hardcode_direct_GCJ=no
17571 hardcode_shlibpath_var_GCJ=no
17572 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17573 export_dynamic_flag_spec_GCJ='${wl}-E'
17574 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17575 # Instead, shared libraries are loaded at an image base (0x10000000 by
17576 # default) and relocated if they conflict, which is a slow very memory
17577 # consuming and fragmenting process. To avoid this, we pick a random,
17578 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17579 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17580 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'
17581 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'
17584 gnu* | linux* | k*bsd*-gnu)
17585 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17587 case $cc_basename,$host_cpu in
17588 pgcc*) # Portland Group C compiler
17589 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'
17590 tmp_addflag=' $pic_flag'
17592 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17593 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'
17594 tmp_addflag=' $pic_flag -Mnomain' ;;
17595 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17596 tmp_addflag=' -i_dynamic' ;;
17597 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17598 tmp_addflag=' -i_dynamic -nofor_main' ;;
17599 ifc* | ifort*) # Intel Fortran compiler
17600 tmp_addflag=' -nofor_main' ;;
17602 case `$CC -V 2>&1 | sed 5q` in
17603 *Sun\ C*) # Sun C 5.9
17604 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'
17605 tmp_sharedflag='-G' ;;
17606 *Sun\ F*) # Sun Fortran 8.3
17607 tmp_sharedflag='-G' ;;
17609 tmp_sharedflag='-shared' ;;
17611 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17613 if test $supports_anon_versioning = yes; then
17614 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17615 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17616 $echo "local: *; };" >> $output_objdir/$libname.ver~
17617 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17619 link_all_deplibs_GCJ=no
17625 netbsd* | netbsdelf*-gnu)
17626 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17627 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17630 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17631 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17636 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17640 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17641 *** create shared libraries on Solaris systems. Therefore, libtool
17642 *** is disabling shared libraries support. We urge you to upgrade GNU
17643 *** binutils to release 2.9.1 or newer. Another option is to modify
17644 *** your PATH or compiler configuration so that the native linker is
17645 *** used, and then restart.
17648 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17649 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17650 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17656 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17657 case `$LD -v 2>&1` in
17658 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17662 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17663 *** reliably create shared libraries on SCO systems. Therefore, libtool
17664 *** is disabling shared libraries support. We urge you to upgrade GNU
17665 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17666 *** your PATH or compiler configuration so that the native linker is
17667 *** used, and then restart.
17672 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17673 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17674 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17675 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17684 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17686 hardcode_direct_GCJ=yes
17687 hardcode_shlibpath_var_GCJ=no
17691 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17692 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17693 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17700 if test "$ld_shlibs_GCJ" = no; then
17702 hardcode_libdir_flag_spec_GCJ=
17703 export_dynamic_flag_spec_GCJ=
17704 whole_archive_flag_spec_GCJ=
17707 # PORTME fill in a description of your system's linker (not GNU ld)
17710 allow_undefined_flag_GCJ=unsupported
17711 always_export_symbols_GCJ=yes
17712 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'
17713 # Note: this linker hardcodes the directories in LIBPATH if there
17714 # are no directories specified by -L.
17715 hardcode_minus_L_GCJ=yes
17716 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17717 # Neither direct hardcoding nor static linking is supported with a
17719 hardcode_direct_GCJ=unsupported
17724 if test "$host_cpu" = ia64; then
17725 # On IA64, the linker does run time linking by default, so we don't
17726 # have to do anything special.
17727 aix_use_runtimelinking=no
17728 exp_sym_flag='-Bexport'
17731 # If we're using GNU nm, then we don't want the "-C" option.
17732 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17733 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17734 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'
17736 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'
17738 aix_use_runtimelinking=no
17740 # Test if we are trying to use run time linking or normal
17741 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17742 # need to do runtime linking.
17743 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17744 for ld_flag in $LDFLAGS; do
17745 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17746 aix_use_runtimelinking=yes
17753 exp_sym_flag='-bexport'
17754 no_entry_flag='-bnoentry'
17757 # When large executables or shared objects are built, AIX ld can
17758 # have problems creating the table of contents. If linking a library
17759 # or program results in "error TOC overflow" add -mminimal-toc to
17760 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17761 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17763 archive_cmds_GCJ=''
17764 hardcode_direct_GCJ=yes
17765 hardcode_libdir_separator_GCJ=':'
17766 link_all_deplibs_GCJ=yes
17768 if test "$GCC" = yes; then
17769 case $host_os in aix4.[012]|aix4.[012].*)
17770 # We only want to do this on AIX 4.2 and lower, the check
17771 # below for broken collect2 doesn't work under 4.3+
17772 collect2name=`${CC} -print-prog-name=collect2`
17773 if test -f "$collect2name" && \
17774 strings "$collect2name" | grep resolve_lib_name >/dev/null
17776 # We have reworked collect2
17779 # We have old collect2
17780 hardcode_direct_GCJ=unsupported
17781 # It fails to find uninstalled libraries when the uninstalled
17782 # path is not listed in the libpath. Setting hardcode_minus_L
17783 # to unsupported forces relinking
17784 hardcode_minus_L_GCJ=yes
17785 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17786 hardcode_libdir_separator_GCJ=
17790 shared_flag='-shared'
17791 if test "$aix_use_runtimelinking" = yes; then
17792 shared_flag="$shared_flag "'${wl}-G'
17796 if test "$host_cpu" = ia64; then
17797 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17798 # chokes on -Wl,-G. The following line is correct:
17801 if test "$aix_use_runtimelinking" = yes; then
17802 shared_flag='${wl}-G'
17804 shared_flag='${wl}-bM:SRE'
17809 # It seems that -bexpall does not export symbols beginning with
17810 # underscore (_), so it is better to generate a list of symbols to export.
17811 always_export_symbols_GCJ=yes
17812 if test "$aix_use_runtimelinking" = yes; then
17813 # Warning - without using the other runtime loading flags (-brtl),
17814 # -berok will link without error, but may produce a broken library.
17815 allow_undefined_flag_GCJ='-berok'
17816 # Determine the default libpath from the value encoded in an empty executable.
17817 cat >conftest.$ac_ext <<_ACEOF
17820 cat confdefs.h >>conftest.$ac_ext
17821 cat >>conftest.$ac_ext <<_ACEOF
17822 /* end confdefs.h. */
17832 rm -f conftest.$ac_objext conftest$ac_exeext
17833 if { (ac_try="$ac_link"
17834 case "(($ac_try" in
17835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17836 *) ac_try_echo=$ac_try;;
17838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17839 (eval "$ac_link") 2>conftest.er1
17841 grep -v '^ *+' conftest.er1 >conftest.err
17843 cat conftest.err >&5
17844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845 (exit $ac_status); } && {
17846 test -z "$ac_cxx_werror_flag" ||
17847 test ! -s conftest.err
17848 } && test -s conftest$ac_exeext &&
17849 $as_test_x conftest$ac_exeext; then
17851 lt_aix_libpath_sed='
17852 /Import File Strings/,/^$/ {
17858 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17859 # Check for a 64-bit object if we didn't find anything.
17860 if test -z "$aix_libpath"; then
17861 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17864 echo "$as_me: failed program was:" >&5
17865 sed 's/^/| /' conftest.$ac_ext >&5
17870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17871 conftest$ac_exeext conftest.$ac_ext
17872 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17874 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17875 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"
17877 if test "$host_cpu" = ia64; then
17878 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17879 allow_undefined_flag_GCJ="-z nodefs"
17880 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"
17882 # Determine the default libpath from the value encoded in an empty executable.
17883 cat >conftest.$ac_ext <<_ACEOF
17886 cat confdefs.h >>conftest.$ac_ext
17887 cat >>conftest.$ac_ext <<_ACEOF
17888 /* end confdefs.h. */
17898 rm -f conftest.$ac_objext conftest$ac_exeext
17899 if { (ac_try="$ac_link"
17900 case "(($ac_try" in
17901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17902 *) ac_try_echo=$ac_try;;
17904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17905 (eval "$ac_link") 2>conftest.er1
17907 grep -v '^ *+' conftest.er1 >conftest.err
17909 cat conftest.err >&5
17910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911 (exit $ac_status); } && {
17912 test -z "$ac_cxx_werror_flag" ||
17913 test ! -s conftest.err
17914 } && test -s conftest$ac_exeext &&
17915 $as_test_x conftest$ac_exeext; then
17917 lt_aix_libpath_sed='
17918 /Import File Strings/,/^$/ {
17924 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17925 # Check for a 64-bit object if we didn't find anything.
17926 if test -z "$aix_libpath"; then
17927 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17930 echo "$as_me: failed program was:" >&5
17931 sed 's/^/| /' conftest.$ac_ext >&5
17936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17937 conftest$ac_exeext conftest.$ac_ext
17938 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17940 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17941 # Warning - without using the other run time loading flags,
17942 # -berok will link without error, but may produce a broken library.
17943 no_undefined_flag_GCJ=' ${wl}-bernotok'
17944 allow_undefined_flag_GCJ=' ${wl}-berok'
17945 # Exported symbols can be pulled into shared objects from archives
17946 whole_archive_flag_spec_GCJ='$convenience'
17947 archive_cmds_need_lc_GCJ=yes
17948 # This is similar to how AIX traditionally builds its shared libraries.
17949 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'
17955 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)'
17956 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17957 hardcode_minus_L_GCJ=yes
17958 # see comment about different semantics on the GNU ld section
17963 export_dynamic_flag_spec_GCJ=-rdynamic
17966 cygwin* | mingw* | pw32*)
17967 # When not using gcc, we currently assume that we are using
17968 # Microsoft Visual C++.
17969 # hardcode_libdir_flag_spec is actually meaningless, as there is
17970 # no search path for DLLs.
17971 hardcode_libdir_flag_spec_GCJ=' '
17972 allow_undefined_flag_GCJ=unsupported
17973 # Tell ltmain to make .lib files, not .a files.
17975 # Tell ltmain to make .dll files, not .so files.
17977 # FIXME: Setting linknames here is a bad hack.
17978 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17979 # The linker will automatically build a .lib file if we build a DLL.
17980 old_archive_From_new_cmds_GCJ='true'
17981 # FIXME: Should let the user specify the lib program.
17982 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17983 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17984 enable_shared_with_static_runtimes_GCJ=yes
17987 darwin* | rhapsody*)
17989 rhapsody* | darwin1.[012])
17990 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17993 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17994 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17996 case ${MACOSX_DEPLOYMENT_TARGET} in
17998 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18001 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18007 archive_cmds_need_lc_GCJ=no
18008 hardcode_direct_GCJ=no
18009 hardcode_automatic_GCJ=yes
18010 hardcode_shlibpath_var_GCJ=unsupported
18011 whole_archive_flag_spec_GCJ=''
18012 link_all_deplibs_GCJ=yes
18013 if test "$GCC" = yes ; then
18014 output_verbose_link_cmd='echo'
18015 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18016 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18017 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18018 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18019 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}'
18021 case $cc_basename in
18023 output_verbose_link_cmd='echo'
18024 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18025 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18026 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18027 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}'
18028 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}'
18038 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18039 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18040 hardcode_shlibpath_var_GCJ=no
18047 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18048 # support. Future versions do this automatically, but an explicit c++rt0.o
18049 # does not break anything, and helps significantly (at the cost of a little
18052 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18053 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18054 hardcode_direct_GCJ=yes
18055 hardcode_shlibpath_var_GCJ=no
18058 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18060 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18061 hardcode_direct_GCJ=yes
18062 hardcode_minus_L_GCJ=yes
18063 hardcode_shlibpath_var_GCJ=no
18066 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18067 freebsd* | dragonfly*)
18068 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18069 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18070 hardcode_direct_GCJ=yes
18071 hardcode_shlibpath_var_GCJ=no
18075 if test "$GCC" = yes; then
18076 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'
18078 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'
18080 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18081 hardcode_libdir_separator_GCJ=:
18082 hardcode_direct_GCJ=yes
18084 # hardcode_minus_L: Not really in the search PATH,
18085 # but as the default location of the library.
18086 hardcode_minus_L_GCJ=yes
18087 export_dynamic_flag_spec_GCJ='${wl}-E'
18091 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18092 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18094 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18096 if test "$with_gnu_ld" = no; then
18097 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18098 hardcode_libdir_separator_GCJ=:
18100 hardcode_direct_GCJ=yes
18101 export_dynamic_flag_spec_GCJ='${wl}-E'
18103 # hardcode_minus_L: Not really in the search PATH,
18104 # but as the default location of the library.
18105 hardcode_minus_L_GCJ=yes
18110 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18113 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18116 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18119 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18125 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18128 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18131 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18135 if test "$with_gnu_ld" = no; then
18136 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18137 hardcode_libdir_separator_GCJ=:
18141 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18142 hardcode_direct_GCJ=no
18143 hardcode_shlibpath_var_GCJ=no
18146 hardcode_direct_GCJ=yes
18147 export_dynamic_flag_spec_GCJ='${wl}-E'
18149 # hardcode_minus_L: Not really in the search PATH,
18150 # but as the default location of the library.
18151 hardcode_minus_L_GCJ=yes
18157 irix5* | irix6* | nonstopux*)
18158 if test "$GCC" = yes; then
18159 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'
18161 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'
18162 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18164 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18165 hardcode_libdir_separator_GCJ=:
18166 link_all_deplibs_GCJ=yes
18169 netbsd* | netbsdelf*-gnu)
18170 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18171 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18173 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18175 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18176 hardcode_direct_GCJ=yes
18177 hardcode_shlibpath_var_GCJ=no
18181 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18182 hardcode_direct_GCJ=yes
18183 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18184 hardcode_libdir_separator_GCJ=:
18185 hardcode_shlibpath_var_GCJ=no
18189 if test -f /usr/libexec/ld.so; then
18190 hardcode_direct_GCJ=yes
18191 hardcode_shlibpath_var_GCJ=no
18192 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18193 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18194 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18195 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18196 export_dynamic_flag_spec_GCJ='${wl}-E'
18199 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18200 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18201 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18204 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18205 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18215 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18216 hardcode_minus_L_GCJ=yes
18217 allow_undefined_flag_GCJ=unsupported
18218 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'
18219 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18223 if test "$GCC" = yes; then
18224 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18225 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'
18227 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18228 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'
18230 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18231 hardcode_libdir_separator_GCJ=:
18234 osf4* | osf5*) # as osf3* with the addition of -msym flag
18235 if test "$GCC" = yes; then
18236 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18237 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'
18238 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18240 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18241 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'
18242 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~
18243 $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'
18245 # Both c and cxx compiler support -rpath directly
18246 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18248 hardcode_libdir_separator_GCJ=:
18252 no_undefined_flag_GCJ=' -z text'
18253 if test "$GCC" = yes; then
18255 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18256 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18257 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18260 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18261 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18262 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18264 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18265 hardcode_shlibpath_var_GCJ=no
18267 solaris2.[0-5] | solaris2.[0-5].*) ;;
18269 # The compiler driver will combine and reorder linker options,
18270 # but understands `-z linker_flag'. GCC discards it without `$wl',
18271 # but is careful enough not to reorder.
18272 # Supported since Solaris 2.6 (maybe 2.5.1?)
18273 if test "$GCC" = yes; then
18274 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18276 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18280 link_all_deplibs_GCJ=yes
18284 if test "x$host_vendor" = xsequent; then
18285 # Use $CC to link under sequent, because it throws in some extra .o
18286 # files that make .init and .fini sections work.
18287 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18289 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18291 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18292 hardcode_direct_GCJ=yes
18293 hardcode_minus_L_GCJ=yes
18294 hardcode_shlibpath_var_GCJ=no
18298 case $host_vendor in
18300 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18301 hardcode_direct_GCJ=yes # is this really true???
18304 ## LD is ld it makes a PLAMLIB
18305 ## CC just makes a GrossModule.
18306 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18307 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18308 hardcode_direct_GCJ=no
18311 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18312 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18315 runpath_var='LD_RUN_PATH'
18316 hardcode_shlibpath_var_GCJ=no
18320 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18321 hardcode_shlibpath_var_GCJ=no
18322 export_dynamic_flag_spec_GCJ='-Bexport'
18326 if test -d /usr/nec; then
18327 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18328 hardcode_shlibpath_var_GCJ=no
18329 runpath_var=LD_RUN_PATH
18330 hardcode_runpath_var=yes
18335 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18336 no_undefined_flag_GCJ='${wl}-z,text'
18337 archive_cmds_need_lc_GCJ=no
18338 hardcode_shlibpath_var_GCJ=no
18339 runpath_var='LD_RUN_PATH'
18341 if test "$GCC" = yes; then
18342 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18343 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18345 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18346 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18350 sysv5* | sco3.2v5* | sco5v6*)
18351 # Note: We can NOT use -z defs as we might desire, because we do not
18352 # link with -lc, and that would cause any symbols used from libc to
18353 # always be unresolved, which means just about no library would
18354 # ever link correctly. If we're not using GNU ld we use -z text
18355 # though, which does catch some bad symbols but isn't as heavy-handed
18357 no_undefined_flag_GCJ='${wl}-z,text'
18358 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18359 archive_cmds_need_lc_GCJ=no
18360 hardcode_shlibpath_var_GCJ=no
18361 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18362 hardcode_libdir_separator_GCJ=':'
18363 link_all_deplibs_GCJ=yes
18364 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18365 runpath_var='LD_RUN_PATH'
18367 if test "$GCC" = yes; then
18368 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18369 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18371 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18372 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18377 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18378 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18379 hardcode_shlibpath_var_GCJ=no
18388 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18389 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18390 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18393 # Do we need to explicitly link libc?
18395 case "x$archive_cmds_need_lc_GCJ" in
18397 # Assume -lc should be added
18398 archive_cmds_need_lc_GCJ=yes
18400 if test "$enable_shared" = yes && test "$GCC" = yes; then
18401 case $archive_cmds_GCJ in
18403 # FIXME: we may have to deal with multi-command sequences.
18406 # Test whether the compiler implicitly links with -lc since on some
18407 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18408 # to ld, don't add -lc before -lgcc.
18409 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18410 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18412 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18415 (eval $ac_compile) 2>&5
18417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18418 (exit $ac_status); } 2>conftest.err; then
18421 libobjs=conftest.$ac_objext
18423 wl=$lt_prog_compiler_wl_GCJ
18424 pic_flag=$lt_prog_compiler_pic_GCJ
18430 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18431 allow_undefined_flag_GCJ=
18432 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18433 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436 (exit $ac_status); }
18438 archive_cmds_need_lc_GCJ=no
18440 archive_cmds_need_lc_GCJ=yes
18442 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18444 cat conftest.err 1>&5
18447 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18448 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18455 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18456 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18457 library_names_spec=
18458 libname_spec='lib$name'
18462 postuninstall_cmds=
18466 shlibpath_overrides_runpath=unknown
18468 dynamic_linker="$host_os ld.so"
18469 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18471 need_lib_prefix=unknown
18472 hardcode_into_libs=no
18474 # when you set need_version to no, make sure it does not cause -set_version
18475 # flags to be left without arguments
18476 need_version=unknown
18481 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18482 shlibpath_var=LIBPATH
18484 # AIX 3 has no versioning support, so we append a major version to the name.
18485 soname_spec='${libname}${release}${shared_ext}$major'
18492 hardcode_into_libs=yes
18493 if test "$host_cpu" = ia64; then
18494 # AIX 5 supports IA64
18495 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18496 shlibpath_var=LD_LIBRARY_PATH
18498 # With GCC up to 2.95.x, collect2 would create an import file
18499 # for dependence libraries. The import file would start with
18500 # the line `#! .'. This would cause the generated library to
18501 # depend on `.', always an invalid library. This was fixed in
18502 # development snapshots of GCC prior to 3.0.
18504 aix4 | aix4.[01] | aix4.[01].*)
18505 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18507 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18510 can_build_shared=no
18514 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18515 # soname into executable. Probably we can add versioning support to
18516 # collect2, so additional links can be useful in future.
18517 if test "$aix_use_runtimelinking" = yes; then
18518 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18519 # instead of lib<name>.a to let people know that these are not
18520 # typical AIX shared libraries.
18521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18523 # We preserve .a as extension for shared libraries through AIX4.2
18524 # and later when we are not doing run time linking.
18525 library_names_spec='${libname}${release}.a $libname.a'
18526 soname_spec='${libname}${release}${shared_ext}$major'
18528 shlibpath_var=LIBPATH
18533 library_names_spec='$libname.ixlibrary $libname.a'
18534 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18535 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'
18539 library_names_spec='${libname}${shared_ext}'
18540 dynamic_linker="$host_os ld.so"
18541 shlibpath_var=LIBRARY_PATH
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18550 shlibpath_var=LD_LIBRARY_PATH
18551 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18552 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18553 # the default ld.so.conf also contains /usr/contrib/lib and
18554 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18555 # libtool to hard-code these into programs
18558 cygwin* | mingw* | pw32*)
18559 version_type=windows
18564 case $GCC,$host_os in
18565 yes,cygwin* | yes,mingw* | yes,pw32*)
18566 library_names_spec='$libname.dll.a'
18567 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18568 postinstall_cmds='base_file=`basename \${file}`~
18569 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18570 dldir=$destdir/`dirname \$dlpath`~
18571 test -d \$dldir || mkdir -p \$dldir~
18572 $install_prog $dir/$dlname \$dldir/$dlname~
18573 chmod a+x \$dldir/$dlname'
18574 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18575 dlpath=$dir/\$dldll~
18577 shlibpath_overrides_runpath=yes
18581 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18582 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18583 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18586 # MinGW DLLs use traditional 'lib' prefix
18587 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18588 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18589 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18590 # It is most probably a Windows format PATH printed by
18591 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18592 # path with ; separators, and with drive letters. We can handle the
18593 # drive letters (cygwin fileutils understands them), so leave them,
18594 # especially as we might pass files found there to a mingw objdump,
18595 # which wouldn't understand a cygwinified path. Ahh.
18596 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18598 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18602 # pw32 DLLs use 'pw' prefix rather than 'lib'
18603 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18609 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18612 dynamic_linker='Win32 ld.exe'
18613 # FIXME: first we should search . and the directory the executable is in
18617 darwin* | rhapsody*)
18618 dynamic_linker="$host_os dyld"
18619 version_type=darwin
18622 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18623 soname_spec='${libname}${release}${major}$shared_ext'
18624 shlibpath_overrides_runpath=yes
18625 shlibpath_var=DYLD_LIBRARY_PATH
18626 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18628 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18636 soname_spec='${libname}${release}${shared_ext}$major'
18637 shlibpath_var=LD_LIBRARY_PATH
18644 freebsd* | dragonfly*)
18645 # DragonFly does not have aout. When/if they implement a new
18646 # versioning mechanism, adjust this.
18647 if test -x /usr/bin/objformat; then
18648 objformat=`/usr/bin/objformat`
18651 freebsd[123]*) objformat=aout ;;
18652 *) objformat=elf ;;
18655 version_type=freebsd-$objformat
18656 case $version_type in
18658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18663 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18667 shlibpath_var=LD_LIBRARY_PATH
18670 shlibpath_overrides_runpath=yes
18672 freebsd3.[01]* | freebsdelf3.[01]*)
18673 shlibpath_overrides_runpath=yes
18674 hardcode_into_libs=yes
18676 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18677 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18678 shlibpath_overrides_runpath=no
18679 hardcode_into_libs=yes
18681 *) # from 4.6 on, and DragonFly
18682 shlibpath_overrides_runpath=yes
18683 hardcode_into_libs=yes
18692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18693 soname_spec='${libname}${release}${shared_ext}$major'
18694 shlibpath_var=LD_LIBRARY_PATH
18695 hardcode_into_libs=yes
18698 hpux9* | hpux10* | hpux11*)
18699 # Give a soname corresponding to the major version so that dld.sl refuses to
18700 # link against other versions.
18707 hardcode_into_libs=yes
18708 dynamic_linker="$host_os dld.so"
18709 shlibpath_var=LD_LIBRARY_PATH
18710 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18712 soname_spec='${libname}${release}${shared_ext}$major'
18713 if test "X$HPUX_IA64_MODE" = X32; then
18714 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18716 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18718 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18722 hardcode_into_libs=yes
18723 dynamic_linker="$host_os dld.sl"
18724 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18725 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18727 soname_spec='${libname}${release}${shared_ext}$major'
18728 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18729 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18733 dynamic_linker="$host_os dld.sl"
18734 shlibpath_var=SHLIB_PATH
18735 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18737 soname_spec='${libname}${release}${shared_ext}$major'
18740 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18741 postinstall_cmds='chmod 555 $lib'
18748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18749 soname_spec='${libname}${release}${shared_ext}$major'
18750 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18751 shlibpath_var=LD_LIBRARY_PATH
18752 shlibpath_overrides_runpath=no
18753 hardcode_into_libs=yes
18756 irix5* | irix6* | nonstopux*)
18758 nonstopux*) version_type=nonstopux ;;
18760 if test "$lt_cv_prog_gnu_ld" = yes; then
18768 soname_spec='${libname}${release}${shared_ext}$major'
18769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18771 irix5* | nonstopux*)
18772 libsuff= shlibsuff=
18775 case $LD in # libtool.m4 will add one of these switches to LD
18776 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18777 libsuff= shlibsuff= libmagic=32-bit;;
18778 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18779 libsuff=32 shlibsuff=N32 libmagic=N32;;
18780 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18781 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18782 *) libsuff= shlibsuff= libmagic=never-match;;
18786 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18787 shlibpath_overrides_runpath=no
18788 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18789 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18790 hardcode_into_libs=yes
18793 # No shared lib support for Linux oldld, aout, or coff.
18794 linux*oldld* | linux*aout* | linux*coff*)
18798 # This must be Linux ELF.
18799 linux* | k*bsd*-gnu)
18803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18804 soname_spec='${libname}${release}${shared_ext}$major'
18805 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18806 shlibpath_var=LD_LIBRARY_PATH
18807 shlibpath_overrides_runpath=no
18808 # This implies no fast_install, which is unacceptable.
18809 # Some rework will be needed to allow for fast_install
18810 # before this can be enabled.
18811 hardcode_into_libs=yes
18813 # Append ld.so.conf contents to the search path
18814 if test -f /etc/ld.so.conf; then
18815 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' ' '`
18816 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18819 # We used to test for /lib/ld.so.1 and disable shared libraries on
18820 # powerpc, because MkLinux only supported shared libraries with the
18821 # GNU dynamic linker. Since this was broken with cross compilers,
18822 # most powerpc-linux boxes support dynamic linking these days and
18823 # people can always --disable-shared, the test was removed, and we
18824 # assume the GNU/Linux dynamic linker is in use.
18825 dynamic_linker='GNU/Linux ld.so'
18832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18833 soname_spec='${libname}${release}${shared_ext}$major'
18834 shlibpath_var=LD_LIBRARY_PATH
18835 shlibpath_overrides_runpath=no
18836 hardcode_into_libs=yes
18837 dynamic_linker='NetBSD ld.elf_so'
18844 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18846 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18847 dynamic_linker='NetBSD (a.out) ld.so'
18849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18850 soname_spec='${libname}${release}${shared_ext}$major'
18851 dynamic_linker='NetBSD ld.elf_so'
18853 shlibpath_var=LD_LIBRARY_PATH
18854 shlibpath_overrides_runpath=yes
18855 hardcode_into_libs=yes
18860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18861 shlibpath_var=LD_LIBRARY_PATH
18862 shlibpath_overrides_runpath=yes
18869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18870 soname_spec='${libname}${release}${shared_ext}$major'
18871 shlibpath_var=LD_LIBRARY_PATH
18872 shlibpath_overrides_runpath=yes
18877 sys_lib_dlsearch_path_spec="/usr/lib"
18879 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18881 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18882 *) need_version=no ;;
18884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18885 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18886 shlibpath_var=LD_LIBRARY_PATH
18887 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18889 openbsd2.[89] | openbsd2.[89].*)
18890 shlibpath_overrides_runpath=no
18893 shlibpath_overrides_runpath=yes
18897 shlibpath_overrides_runpath=yes
18902 libname_spec='$name'
18905 library_names_spec='$libname${shared_ext} $libname.a'
18906 dynamic_linker='OS/2 ld.exe'
18907 shlibpath_var=LIBPATH
18910 osf3* | osf4* | osf5*)
18914 soname_spec='${libname}${release}${shared_ext}$major'
18915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18916 shlibpath_var=LD_LIBRARY_PATH
18917 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18918 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18930 soname_spec='${libname}${release}${shared_ext}$major'
18931 shlibpath_var=LD_LIBRARY_PATH
18932 shlibpath_overrides_runpath=yes
18933 hardcode_into_libs=yes
18934 # ldd complains unless libraries are executable
18935 postinstall_cmds='chmod +x $lib'
18940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18941 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18942 shlibpath_var=LD_LIBRARY_PATH
18943 shlibpath_overrides_runpath=yes
18944 if test "$with_gnu_ld" = yes; then
18952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18953 soname_spec='${libname}${release}${shared_ext}$major'
18954 shlibpath_var=LD_LIBRARY_PATH
18955 case $host_vendor in
18957 shlibpath_overrides_runpath=no
18959 export_dynamic_flag_spec='${wl}-Blargedynsym'
18960 runpath_var=LD_RUN_PATH
18968 shlibpath_overrides_runpath=no
18969 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18975 if test -d /usr/nec ;then
18977 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18978 soname_spec='$libname${shared_ext}.$major'
18979 shlibpath_var=LD_LIBRARY_PATH
18983 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18984 version_type=freebsd-elf
18987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18988 soname_spec='${libname}${release}${shared_ext}$major'
18989 shlibpath_var=LD_LIBRARY_PATH
18990 hardcode_into_libs=yes
18991 if test "$with_gnu_ld" = yes; then
18992 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18993 shlibpath_overrides_runpath=no
18995 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18996 shlibpath_overrides_runpath=yes
18999 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19003 sys_lib_dlsearch_path_spec='/usr/lib'
19008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19009 soname_spec='${libname}${release}${shared_ext}$major'
19010 shlibpath_var=LD_LIBRARY_PATH
19017 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19018 echo "${ECHO_T}$dynamic_linker" >&6; }
19019 test "$dynamic_linker" = no && can_build_shared=no
19021 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19022 if test "$GCC" = yes; then
19023 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19026 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19027 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19028 hardcode_action_GCJ=
19029 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19030 test -n "$runpath_var_GCJ" || \
19031 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19033 # We can hardcode non-existant directories.
19034 if test "$hardcode_direct_GCJ" != no &&
19035 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19036 # have to relink, otherwise we might link with an installed library
19037 # when we should be linking with a yet-to-be-installed one
19038 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19039 test "$hardcode_minus_L_GCJ" != no; then
19040 # Linking always hardcodes the temporary library directory.
19041 hardcode_action_GCJ=relink
19043 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19044 hardcode_action_GCJ=immediate
19047 # We cannot hardcode anything, or else we can only hardcode existing
19049 hardcode_action_GCJ=unsupported
19051 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19052 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19054 if test "$hardcode_action_GCJ" = relink; then
19055 # Fast installation is not supported
19056 enable_fast_install=no
19057 elif test "$shlibpath_overrides_runpath" = yes ||
19058 test "$enable_shared" = no; then
19059 # Fast installation is not necessary
19060 enable_fast_install=needless
19064 # The else clause should only fire when bootstrapping the
19065 # libtool distribution, otherwise you forgot to ship ltmain.sh
19066 # with your package, and you will get complaints that there are
19067 # no rules to generate ltmain.sh.
19068 if test -f "$ltmain"; then
19069 # See if we are running on zsh, and set the options which allow our commands through
19070 # without removal of \ escapes.
19071 if test -n "${ZSH_VERSION+set}" ; then
19072 setopt NO_GLOB_SUBST
19074 # Now quote all the things that may contain metacharacters while being
19075 # careful not to overquote the AC_SUBSTed values. We take copies of the
19076 # variables and quote the copies for generation of the libtool script.
19077 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19079 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19080 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19081 deplibs_check_method reload_flag reload_cmds need_locks \
19082 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19083 lt_cv_sys_global_symbol_to_c_name_address \
19084 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19085 old_postinstall_cmds old_postuninstall_cmds \
19089 lt_prog_compiler_wl_GCJ \
19090 lt_prog_compiler_pic_GCJ \
19091 lt_prog_compiler_static_GCJ \
19092 lt_prog_compiler_no_builtin_flag_GCJ \
19093 export_dynamic_flag_spec_GCJ \
19094 thread_safe_flag_spec_GCJ \
19095 whole_archive_flag_spec_GCJ \
19096 enable_shared_with_static_runtimes_GCJ \
19097 old_archive_cmds_GCJ \
19098 old_archive_from_new_cmds_GCJ \
19099 predep_objects_GCJ \
19100 postdep_objects_GCJ \
19103 compiler_lib_search_path_GCJ \
19105 archive_expsym_cmds_GCJ \
19106 postinstall_cmds_GCJ \
19107 postuninstall_cmds_GCJ \
19108 old_archive_from_expsyms_cmds_GCJ \
19109 allow_undefined_flag_GCJ \
19110 no_undefined_flag_GCJ \
19111 export_symbols_cmds_GCJ \
19112 hardcode_libdir_flag_spec_GCJ \
19113 hardcode_libdir_flag_spec_ld_GCJ \
19114 hardcode_libdir_separator_GCJ \
19115 hardcode_automatic_GCJ \
19117 module_expsym_cmds_GCJ \
19118 lt_cv_prog_compiler_c_o_GCJ \
19119 fix_srcfile_path_GCJ \
19120 exclude_expsyms_GCJ \
19121 include_expsyms_GCJ; do
19124 old_archive_cmds_GCJ | \
19125 old_archive_from_new_cmds_GCJ | \
19126 archive_cmds_GCJ | \
19127 archive_expsym_cmds_GCJ | \
19128 module_cmds_GCJ | \
19129 module_expsym_cmds_GCJ | \
19130 old_archive_from_expsyms_cmds_GCJ | \
19131 export_symbols_cmds_GCJ | \
19132 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19133 postinstall_cmds | postuninstall_cmds | \
19134 old_postinstall_cmds | old_postuninstall_cmds | \
19135 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19136 # Double-quote double-evaled strings.
19137 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19140 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19146 *'\$0 --fallback-echo"')
19147 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19153 cat <<__EOF__ >> "$cfgfile"
19154 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19156 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19158 # Shell to use when invoking shell scripts.
19161 # Whether or not to build shared libraries.
19162 build_libtool_libs=$enable_shared
19164 # Whether or not to build static libraries.
19165 build_old_libs=$enable_static
19167 # Whether or not to add -lc for building shared libraries.
19168 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19170 # Whether or not to disallow shared libs when runtime libs are static
19171 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19173 # Whether or not to optimize for fast installation.
19174 fast_install=$enable_fast_install
19177 host_alias=$host_alias
19181 # The build system.
19182 build_alias=$build_alias
19186 # An echo program that does not interpret backslashes.
19191 AR_FLAGS=$lt_AR_FLAGS
19196 # LTCC compiler flags.
19197 LTCFLAGS=$lt_LTCFLAGS
19199 # A language-specific compiler.
19200 CC=$lt_compiler_GCJ
19202 # Is the compiler the GNU C compiler?
19208 # The linker used to build libraries.
19211 # Whether we need hard or soft links.
19214 # A BSD-compatible nm program.
19217 # A symbol stripping program
19220 # Used to examine libraries when file_magic_cmd begins "file"
19221 MAGIC_CMD=$MAGIC_CMD
19223 # Used on cygwin: DLL creation program.
19226 # Used on cygwin: object dumper.
19229 # Used on cygwin: assembler.
19232 # The name of the directory that contains temporary libtool files.
19235 # How to create reloadable object files.
19236 reload_flag=$lt_reload_flag
19237 reload_cmds=$lt_reload_cmds
19239 # How to pass a linker flag through the compiler.
19240 wl=$lt_lt_prog_compiler_wl_GCJ
19242 # Object file suffix (normally "o").
19243 objext="$ac_objext"
19245 # Old archive suffix (normally "a").
19248 # Shared library suffix (normally ".so").
19249 shrext_cmds='$shrext_cmds'
19251 # Executable file suffix (normally "").
19254 # Additional compiler flags for building library objects.
19255 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19258 # What is the maximum length of a command?
19259 max_cmd_len=$lt_cv_sys_max_cmd_len
19261 # Does compiler simultaneously support -c and -o options?
19262 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19264 # Must we lock files when doing compilation?
19265 need_locks=$lt_need_locks
19267 # Do we need the lib prefix for modules?
19268 need_lib_prefix=$need_lib_prefix
19270 # Do we need a version for libraries?
19271 need_version=$need_version
19273 # Whether dlopen is supported.
19274 dlopen_support=$enable_dlopen
19276 # Whether dlopen of programs is supported.
19277 dlopen_self=$enable_dlopen_self
19279 # Whether dlopen of statically linked programs is supported.
19280 dlopen_self_static=$enable_dlopen_self_static
19282 # Compiler flag to prevent dynamic linking.
19283 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19285 # Compiler flag to turn off builtin functions.
19286 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19288 # Compiler flag to allow reflexive dlopens.
19289 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19291 # Compiler flag to generate shared objects directly from archives.
19292 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19294 # Compiler flag to generate thread-safe objects.
19295 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19297 # Library versioning type.
19298 version_type=$version_type
19300 # Format of library name prefix.
19301 libname_spec=$lt_libname_spec
19303 # List of archive names. First name is the real one, the rest are links.
19304 # The last name is the one that the linker finds with -lNAME.
19305 library_names_spec=$lt_library_names_spec
19307 # The coded name of the library, if different from the real name.
19308 soname_spec=$lt_soname_spec
19310 # Commands used to build and install an old-style archive.
19312 old_archive_cmds=$lt_old_archive_cmds_GCJ
19313 old_postinstall_cmds=$lt_old_postinstall_cmds
19314 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19316 # Create an old-style archive from a shared archive.
19317 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19319 # Create a temporary old-style archive to link instead of a shared archive.
19320 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19322 # Commands used to build and install a shared archive.
19323 archive_cmds=$lt_archive_cmds_GCJ
19324 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19325 postinstall_cmds=$lt_postinstall_cmds
19326 postuninstall_cmds=$lt_postuninstall_cmds
19328 # Commands used to build a loadable module (assumed same as above if empty)
19329 module_cmds=$lt_module_cmds_GCJ
19330 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19332 # Commands to strip libraries.
19333 old_striplib=$lt_old_striplib
19334 striplib=$lt_striplib
19336 # Dependencies to place before the objects being linked to create a
19338 predep_objects=$lt_predep_objects_GCJ
19340 # Dependencies to place after the objects being linked to create a
19342 postdep_objects=$lt_postdep_objects_GCJ
19344 # Dependencies to place before the objects being linked to create a
19346 predeps=$lt_predeps_GCJ
19348 # Dependencies to place after the objects being linked to create a
19350 postdeps=$lt_postdeps_GCJ
19352 # The library search path used internally by the compiler when linking
19353 # a shared library.
19354 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19356 # Method to check whether dependent libraries are shared objects.
19357 deplibs_check_method=$lt_deplibs_check_method
19359 # Command to use when deplibs_check_method == file_magic.
19360 file_magic_cmd=$lt_file_magic_cmd
19362 # Flag that allows shared libraries with undefined symbols to be built.
19363 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19365 # Flag that forces no undefined symbols.
19366 no_undefined_flag=$lt_no_undefined_flag_GCJ
19368 # Commands used to finish a libtool library installation in a directory.
19369 finish_cmds=$lt_finish_cmds
19371 # Same as above, but a single script fragment to be evaled but not shown.
19372 finish_eval=$lt_finish_eval
19374 # Take the output of nm and produce a listing of raw symbols and C names.
19375 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19377 # Transform the output of nm in a proper C declaration
19378 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19380 # Transform the output of nm in a C name address pair
19381 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19383 # This is the shared library runtime path variable.
19384 runpath_var=$runpath_var
19386 # This is the shared library path variable.
19387 shlibpath_var=$shlibpath_var
19389 # Is shlibpath searched before the hard-coded library search path?
19390 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19392 # How to hardcode a shared library path into an executable.
19393 hardcode_action=$hardcode_action_GCJ
19395 # Whether we should hardcode library paths into libraries.
19396 hardcode_into_libs=$hardcode_into_libs
19398 # Flag to hardcode \$libdir into a binary during linking.
19399 # This must work even if \$libdir does not exist.
19400 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19402 # If ld is used when linking, flag to hardcode \$libdir into
19403 # a binary during linking. This must work even if \$libdir does
19405 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19407 # Whether we need a single -rpath flag with a separated argument.
19408 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19410 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19411 # resulting binary.
19412 hardcode_direct=$hardcode_direct_GCJ
19414 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19415 # resulting binary.
19416 hardcode_minus_L=$hardcode_minus_L_GCJ
19418 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19419 # the resulting binary.
19420 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19422 # Set to yes if building a shared library automatically hardcodes DIR into the library
19423 # and all subsequent libraries and executables linked against it.
19424 hardcode_automatic=$hardcode_automatic_GCJ
19426 # Variables whose values should be saved in libtool wrapper scripts and
19427 # restored at relink time.
19428 variables_saved_for_relink="$variables_saved_for_relink"
19430 # Whether libtool must link a program against all its dependency libraries.
19431 link_all_deplibs=$link_all_deplibs_GCJ
19433 # Compile-time system search path for libraries
19434 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19436 # Run-time system search path for libraries
19437 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19439 # Fix the shell variable \$srcfile for the compiler.
19440 fix_srcfile_path=$lt_fix_srcfile_path
19442 # Set to yes if exported symbols are required.
19443 always_export_symbols=$always_export_symbols_GCJ
19445 # The commands to list exported symbols.
19446 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19448 # The commands to extract the exported symbol list from a shared archive.
19449 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19451 # Symbols that should not be listed in the preloaded symbols.
19452 exclude_expsyms=$lt_exclude_expsyms_GCJ
19454 # Symbols that must always be exported.
19455 include_expsyms=$lt_include_expsyms_GCJ
19457 # ### END LIBTOOL TAG CONFIG: $tagname
19463 # If there is no Makefile yet, we rely on a make rule to execute
19464 # `config.status --recheck' to rerun these tests and create the
19465 # libtool script then.
19466 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19467 if test -f "$ltmain_in"; then
19468 test -f Makefile && make "$ltmain"
19474 ac_cpp='$CXXCPP $CPPFLAGS'
19475 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19476 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19477 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19489 # Source file extension for RC test sources.
19492 # Object file extension for compiled RC test sources.
19496 # Code to be used in simple compile tests
19497 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19499 # Code to be used in simple link tests
19500 lt_simple_link_test_code="$lt_simple_compile_test_code"
19502 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19504 # If no C compiler was specified, use CC.
19507 # If no C compiler flags were specified, use CFLAGS.
19508 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19510 # Allow CC to be a program name with arguments.
19514 # save warnings/boilerplate of simple test code
19515 ac_outfile=conftest.$ac_objext
19516 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19517 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19518 _lt_compiler_boilerplate=`cat conftest.err`
19521 ac_outfile=conftest.$ac_objext
19522 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19523 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19524 _lt_linker_boilerplate=`cat conftest.err`
19528 # Allow CC to be a program name with arguments.
19533 for cc_temp in $compiler""; do
19535 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19536 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19541 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19543 lt_cv_prog_compiler_c_o_RC=yes
19545 # The else clause should only fire when bootstrapping the
19546 # libtool distribution, otherwise you forgot to ship ltmain.sh
19547 # with your package, and you will get complaints that there are
19548 # no rules to generate ltmain.sh.
19549 if test -f "$ltmain"; then
19550 # See if we are running on zsh, and set the options which allow our commands through
19551 # without removal of \ escapes.
19552 if test -n "${ZSH_VERSION+set}" ; then
19553 setopt NO_GLOB_SUBST
19555 # Now quote all the things that may contain metacharacters while being
19556 # careful not to overquote the AC_SUBSTed values. We take copies of the
19557 # variables and quote the copies for generation of the libtool script.
19558 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19560 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19561 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19562 deplibs_check_method reload_flag reload_cmds need_locks \
19563 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19564 lt_cv_sys_global_symbol_to_c_name_address \
19565 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19566 old_postinstall_cmds old_postuninstall_cmds \
19570 lt_prog_compiler_wl_RC \
19571 lt_prog_compiler_pic_RC \
19572 lt_prog_compiler_static_RC \
19573 lt_prog_compiler_no_builtin_flag_RC \
19574 export_dynamic_flag_spec_RC \
19575 thread_safe_flag_spec_RC \
19576 whole_archive_flag_spec_RC \
19577 enable_shared_with_static_runtimes_RC \
19578 old_archive_cmds_RC \
19579 old_archive_from_new_cmds_RC \
19580 predep_objects_RC \
19581 postdep_objects_RC \
19584 compiler_lib_search_path_RC \
19586 archive_expsym_cmds_RC \
19587 postinstall_cmds_RC \
19588 postuninstall_cmds_RC \
19589 old_archive_from_expsyms_cmds_RC \
19590 allow_undefined_flag_RC \
19591 no_undefined_flag_RC \
19592 export_symbols_cmds_RC \
19593 hardcode_libdir_flag_spec_RC \
19594 hardcode_libdir_flag_spec_ld_RC \
19595 hardcode_libdir_separator_RC \
19596 hardcode_automatic_RC \
19598 module_expsym_cmds_RC \
19599 lt_cv_prog_compiler_c_o_RC \
19600 fix_srcfile_path_RC \
19601 exclude_expsyms_RC \
19602 include_expsyms_RC; do
19605 old_archive_cmds_RC | \
19606 old_archive_from_new_cmds_RC | \
19607 archive_cmds_RC | \
19608 archive_expsym_cmds_RC | \
19610 module_expsym_cmds_RC | \
19611 old_archive_from_expsyms_cmds_RC | \
19612 export_symbols_cmds_RC | \
19613 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19614 postinstall_cmds | postuninstall_cmds | \
19615 old_postinstall_cmds | old_postuninstall_cmds | \
19616 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19617 # Double-quote double-evaled strings.
19618 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19621 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19627 *'\$0 --fallback-echo"')
19628 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19634 cat <<__EOF__ >> "$cfgfile"
19635 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19637 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19639 # Shell to use when invoking shell scripts.
19642 # Whether or not to build shared libraries.
19643 build_libtool_libs=$enable_shared
19645 # Whether or not to build static libraries.
19646 build_old_libs=$enable_static
19648 # Whether or not to add -lc for building shared libraries.
19649 build_libtool_need_lc=$archive_cmds_need_lc_RC
19651 # Whether or not to disallow shared libs when runtime libs are static
19652 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19654 # Whether or not to optimize for fast installation.
19655 fast_install=$enable_fast_install
19658 host_alias=$host_alias
19662 # The build system.
19663 build_alias=$build_alias
19667 # An echo program that does not interpret backslashes.
19672 AR_FLAGS=$lt_AR_FLAGS
19677 # LTCC compiler flags.
19678 LTCFLAGS=$lt_LTCFLAGS
19680 # A language-specific compiler.
19683 # Is the compiler the GNU C compiler?
19689 # The linker used to build libraries.
19692 # Whether we need hard or soft links.
19695 # A BSD-compatible nm program.
19698 # A symbol stripping program
19701 # Used to examine libraries when file_magic_cmd begins "file"
19702 MAGIC_CMD=$MAGIC_CMD
19704 # Used on cygwin: DLL creation program.
19707 # Used on cygwin: object dumper.
19710 # Used on cygwin: assembler.
19713 # The name of the directory that contains temporary libtool files.
19716 # How to create reloadable object files.
19717 reload_flag=$lt_reload_flag
19718 reload_cmds=$lt_reload_cmds
19720 # How to pass a linker flag through the compiler.
19721 wl=$lt_lt_prog_compiler_wl_RC
19723 # Object file suffix (normally "o").
19724 objext="$ac_objext"
19726 # Old archive suffix (normally "a").
19729 # Shared library suffix (normally ".so").
19730 shrext_cmds='$shrext_cmds'
19732 # Executable file suffix (normally "").
19735 # Additional compiler flags for building library objects.
19736 pic_flag=$lt_lt_prog_compiler_pic_RC
19739 # What is the maximum length of a command?
19740 max_cmd_len=$lt_cv_sys_max_cmd_len
19742 # Does compiler simultaneously support -c and -o options?
19743 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19745 # Must we lock files when doing compilation?
19746 need_locks=$lt_need_locks
19748 # Do we need the lib prefix for modules?
19749 need_lib_prefix=$need_lib_prefix
19751 # Do we need a version for libraries?
19752 need_version=$need_version
19754 # Whether dlopen is supported.
19755 dlopen_support=$enable_dlopen
19757 # Whether dlopen of programs is supported.
19758 dlopen_self=$enable_dlopen_self
19760 # Whether dlopen of statically linked programs is supported.
19761 dlopen_self_static=$enable_dlopen_self_static
19763 # Compiler flag to prevent dynamic linking.
19764 link_static_flag=$lt_lt_prog_compiler_static_RC
19766 # Compiler flag to turn off builtin functions.
19767 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19769 # Compiler flag to allow reflexive dlopens.
19770 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19772 # Compiler flag to generate shared objects directly from archives.
19773 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19775 # Compiler flag to generate thread-safe objects.
19776 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19778 # Library versioning type.
19779 version_type=$version_type
19781 # Format of library name prefix.
19782 libname_spec=$lt_libname_spec
19784 # List of archive names. First name is the real one, the rest are links.
19785 # The last name is the one that the linker finds with -lNAME.
19786 library_names_spec=$lt_library_names_spec
19788 # The coded name of the library, if different from the real name.
19789 soname_spec=$lt_soname_spec
19791 # Commands used to build and install an old-style archive.
19793 old_archive_cmds=$lt_old_archive_cmds_RC
19794 old_postinstall_cmds=$lt_old_postinstall_cmds
19795 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19797 # Create an old-style archive from a shared archive.
19798 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19800 # Create a temporary old-style archive to link instead of a shared archive.
19801 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19803 # Commands used to build and install a shared archive.
19804 archive_cmds=$lt_archive_cmds_RC
19805 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19806 postinstall_cmds=$lt_postinstall_cmds
19807 postuninstall_cmds=$lt_postuninstall_cmds
19809 # Commands used to build a loadable module (assumed same as above if empty)
19810 module_cmds=$lt_module_cmds_RC
19811 module_expsym_cmds=$lt_module_expsym_cmds_RC
19813 # Commands to strip libraries.
19814 old_striplib=$lt_old_striplib
19815 striplib=$lt_striplib
19817 # Dependencies to place before the objects being linked to create a
19819 predep_objects=$lt_predep_objects_RC
19821 # Dependencies to place after the objects being linked to create a
19823 postdep_objects=$lt_postdep_objects_RC
19825 # Dependencies to place before the objects being linked to create a
19827 predeps=$lt_predeps_RC
19829 # Dependencies to place after the objects being linked to create a
19831 postdeps=$lt_postdeps_RC
19833 # The library search path used internally by the compiler when linking
19834 # a shared library.
19835 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19837 # Method to check whether dependent libraries are shared objects.
19838 deplibs_check_method=$lt_deplibs_check_method
19840 # Command to use when deplibs_check_method == file_magic.
19841 file_magic_cmd=$lt_file_magic_cmd
19843 # Flag that allows shared libraries with undefined symbols to be built.
19844 allow_undefined_flag=$lt_allow_undefined_flag_RC
19846 # Flag that forces no undefined symbols.
19847 no_undefined_flag=$lt_no_undefined_flag_RC
19849 # Commands used to finish a libtool library installation in a directory.
19850 finish_cmds=$lt_finish_cmds
19852 # Same as above, but a single script fragment to be evaled but not shown.
19853 finish_eval=$lt_finish_eval
19855 # Take the output of nm and produce a listing of raw symbols and C names.
19856 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19858 # Transform the output of nm in a proper C declaration
19859 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19861 # Transform the output of nm in a C name address pair
19862 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19864 # This is the shared library runtime path variable.
19865 runpath_var=$runpath_var
19867 # This is the shared library path variable.
19868 shlibpath_var=$shlibpath_var
19870 # Is shlibpath searched before the hard-coded library search path?
19871 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19873 # How to hardcode a shared library path into an executable.
19874 hardcode_action=$hardcode_action_RC
19876 # Whether we should hardcode library paths into libraries.
19877 hardcode_into_libs=$hardcode_into_libs
19879 # Flag to hardcode \$libdir into a binary during linking.
19880 # This must work even if \$libdir does not exist.
19881 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19883 # If ld is used when linking, flag to hardcode \$libdir into
19884 # a binary during linking. This must work even if \$libdir does
19886 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19888 # Whether we need a single -rpath flag with a separated argument.
19889 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19891 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19892 # resulting binary.
19893 hardcode_direct=$hardcode_direct_RC
19895 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19896 # resulting binary.
19897 hardcode_minus_L=$hardcode_minus_L_RC
19899 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19900 # the resulting binary.
19901 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19903 # Set to yes if building a shared library automatically hardcodes DIR into the library
19904 # and all subsequent libraries and executables linked against it.
19905 hardcode_automatic=$hardcode_automatic_RC
19907 # Variables whose values should be saved in libtool wrapper scripts and
19908 # restored at relink time.
19909 variables_saved_for_relink="$variables_saved_for_relink"
19911 # Whether libtool must link a program against all its dependency libraries.
19912 link_all_deplibs=$link_all_deplibs_RC
19914 # Compile-time system search path for libraries
19915 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19917 # Run-time system search path for libraries
19918 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19920 # Fix the shell variable \$srcfile for the compiler.
19921 fix_srcfile_path=$lt_fix_srcfile_path
19923 # Set to yes if exported symbols are required.
19924 always_export_symbols=$always_export_symbols_RC
19926 # The commands to list exported symbols.
19927 export_symbols_cmds=$lt_export_symbols_cmds_RC
19929 # The commands to extract the exported symbol list from a shared archive.
19930 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19932 # Symbols that should not be listed in the preloaded symbols.
19933 exclude_expsyms=$lt_exclude_expsyms_RC
19935 # Symbols that must always be exported.
19936 include_expsyms=$lt_include_expsyms_RC
19938 # ### END LIBTOOL TAG CONFIG: $tagname
19944 # If there is no Makefile yet, we rely on a make rule to execute
19945 # `config.status --recheck' to rerun these tests and create the
19946 # libtool script then.
19947 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19948 if test -f "$ltmain_in"; then
19949 test -f Makefile && make "$ltmain"
19955 ac_cpp='$CXXCPP $CPPFLAGS'
19956 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19957 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19958 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19965 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19966 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19967 { (exit 1); exit 1; }; }
19971 # Append the new tag name to the list of available tags.
19972 if test -n "$tagname" ; then
19973 available_tags="$available_tags $tagname"
19979 # Now substitute the updated list of available tags.
19980 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19981 mv "${ofile}T" "$ofile"
19985 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19986 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19987 { (exit 1); exit 1; }; }
19993 # This can be used to rebuild libtool when needed
19994 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19996 # Always use our own libtool.
19997 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19999 # Prevent multiple expansion
20021 { echo "$as_me:$LINENO: checking for some Win32 platform" >&5
20022 echo $ECHO_N "checking for some Win32 platform... $ECHO_C" >&6; }
20024 *-*-mingw*|*-*-cygwin*)
20031 { echo "$as_me:$LINENO: result: $platform_win32" >&5
20032 echo "${ECHO_T}$platform_win32" >&6; }
20035 if test "$platform_win32" = "yes"; then
20036 PLATFORM_WIN32_TRUE=
20037 PLATFORM_WIN32_FALSE='#'
20039 PLATFORM_WIN32_TRUE='#'
20040 PLATFORM_WIN32_FALSE=
20044 { echo "$as_me:$LINENO: checking for native Win32" >&5
20045 echo $ECHO_N "checking for native Win32... $ECHO_C" >&6; }
20054 { echo "$as_me:$LINENO: result: $os_win32" >&5
20055 echo "${ECHO_T}$os_win32" >&6; }
20058 if test "$os_win32" = "yes"; then
20067 # Ensure MSVC-compatible struct packing convention is used when
20068 # compiling for Win32 with gcc.
20069 # What flag to depends on gcc version: gcc3 uses "-mms-bitfields", while
20070 # gcc2 uses "-fnative-struct".
20071 if test x"$os_win32" = xyes; then
20072 if test x"$GCC" = xyes; then
20074 { echo "$as_me:$LINENO: checking how to get MSVC-compatible struct packing" >&5
20075 echo $ECHO_N "checking how to get MSVC-compatible struct packing... $ECHO_C" >&6; }
20076 if test -z "$ac_cv_prog_CC"; then
20079 our_gcc="$ac_cv_prog_CC"
20081 case `$our_gcc --version | sed -e 's,\..*,.,' -e q` in
20083 if $our_gcc -v --help 2>/dev/null | grep fnative-struct >/dev/null; then
20084 msnative_struct='-fnative-struct'
20088 if $our_gcc -v --help 2>/dev/null | grep ms-bitfields >/dev/null; then
20089 msnative_struct='-mms-bitfields'
20093 if test x"$msnative_struct" = x ; then
20094 { echo "$as_me:$LINENO: result: no way" >&5
20095 echo "${ECHO_T}no way" >&6; }
20096 { echo "$as_me:$LINENO: WARNING: produced libraries might be incompatible with MSVC-compiled code" >&5
20097 echo "$as_me: WARNING: produced libraries might be incompatible with MSVC-compiled code" >&2;}
20099 CXXFLAGS="$CXXFLAGS $msnative_struct"
20100 { echo "$as_me:$LINENO: result: ${msnative_struct}" >&5
20101 echo "${ECHO_T}${msnative_struct}" >&6; }
20110 for ac_header in string list map
20112 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20114 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20116 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20117 echo $ECHO_N "(cached) $ECHO_C" >&6
20119 ac_res=`eval echo '${'$as_ac_Header'}'`
20120 { echo "$as_me:$LINENO: result: $ac_res" >&5
20121 echo "${ECHO_T}$ac_res" >&6; }
20123 # Is the header compilable?
20124 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20125 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20126 cat >conftest.$ac_ext <<_ACEOF
20129 cat confdefs.h >>conftest.$ac_ext
20130 cat >>conftest.$ac_ext <<_ACEOF
20131 /* end confdefs.h. */
20132 $ac_includes_default
20133 #include <$ac_header>
20135 rm -f conftest.$ac_objext
20136 if { (ac_try="$ac_compile"
20137 case "(($ac_try" in
20138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20139 *) ac_try_echo=$ac_try;;
20141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20142 (eval "$ac_compile") 2>conftest.er1
20144 grep -v '^ *+' conftest.er1 >conftest.err
20146 cat conftest.err >&5
20147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148 (exit $ac_status); } && {
20149 test -z "$ac_cxx_werror_flag" ||
20150 test ! -s conftest.err
20151 } && test -s conftest.$ac_objext; then
20152 ac_header_compiler=yes
20154 echo "$as_me: failed program was:" >&5
20155 sed 's/^/| /' conftest.$ac_ext >&5
20157 ac_header_compiler=no
20160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20161 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20162 echo "${ECHO_T}$ac_header_compiler" >&6; }
20164 # Is the header present?
20165 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20166 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20167 cat >conftest.$ac_ext <<_ACEOF
20170 cat confdefs.h >>conftest.$ac_ext
20171 cat >>conftest.$ac_ext <<_ACEOF
20172 /* end confdefs.h. */
20173 #include <$ac_header>
20175 if { (ac_try="$ac_cpp conftest.$ac_ext"
20176 case "(($ac_try" in
20177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20178 *) ac_try_echo=$ac_try;;
20180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20181 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20183 grep -v '^ *+' conftest.er1 >conftest.err
20185 cat conftest.err >&5
20186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187 (exit $ac_status); } >/dev/null && {
20188 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
20189 test ! -s conftest.err
20191 ac_header_preproc=yes
20193 echo "$as_me: failed program was:" >&5
20194 sed 's/^/| /' conftest.$ac_ext >&5
20196 ac_header_preproc=no
20199 rm -f conftest.err conftest.$ac_ext
20200 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20201 echo "${ECHO_T}$ac_header_preproc" >&6; }
20203 # So? What about this header?
20204 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20206 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20207 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20209 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20210 ac_header_preproc=yes
20213 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20214 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20215 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20216 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20217 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20218 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20219 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20220 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20222 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20223 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20224 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20228 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20231 echo $ECHO_N "(cached) $ECHO_C" >&6
20233 eval "$as_ac_Header=\$ac_header_preproc"
20235 ac_res=`eval echo '${'$as_ac_Header'}'`
20236 { echo "$as_me:$LINENO: result: $ac_res" >&5
20237 echo "${ECHO_T}$ac_res" >&6; }
20240 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20241 cat >>confdefs.h <<_ACEOF
20242 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20254 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20255 if test -n "$ac_tool_prefix"; then
20256 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20257 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20258 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20260 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20261 echo $ECHO_N "(cached) $ECHO_C" >&6
20263 case $PKG_CONFIG in
20265 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20269 for as_dir in $PATH
20272 test -z "$as_dir" && as_dir=.
20273 for ac_exec_ext in '' $ac_executable_extensions; do
20274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20275 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20286 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20287 if test -n "$PKG_CONFIG"; then
20288 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20289 echo "${ECHO_T}$PKG_CONFIG" >&6; }
20291 { echo "$as_me:$LINENO: result: no" >&5
20292 echo "${ECHO_T}no" >&6; }
20297 if test -z "$ac_cv_path_PKG_CONFIG"; then
20298 ac_pt_PKG_CONFIG=$PKG_CONFIG
20299 # Extract the first word of "pkg-config", so it can be a program name with args.
20300 set dummy pkg-config; ac_word=$2
20301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20303 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20304 echo $ECHO_N "(cached) $ECHO_C" >&6
20306 case $ac_pt_PKG_CONFIG in
20308 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20312 for as_dir in $PATH
20315 test -z "$as_dir" && as_dir=.
20316 for ac_exec_ext in '' $ac_executable_extensions; do
20317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20318 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20329 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20330 if test -n "$ac_pt_PKG_CONFIG"; then
20331 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20332 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
20334 { echo "$as_me:$LINENO: result: no" >&5
20335 echo "${ECHO_T}no" >&6; }
20338 if test "x$ac_pt_PKG_CONFIG" = x; then
20341 case $cross_compiling:$ac_tool_warned in
20343 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20344 whose name does not start with the host triplet. If you think this
20345 configuration is useful to you, please write to autoconf@gnu.org." >&5
20346 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20347 whose name does not start with the host triplet. If you think this
20348 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20349 ac_tool_warned=yes ;;
20351 PKG_CONFIG=$ac_pt_PKG_CONFIG
20354 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20358 if test -n "$PKG_CONFIG"; then
20359 _pkg_min_version=0.9.0
20360 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20361 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
20362 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20363 { echo "$as_me:$LINENO: result: yes" >&5
20364 echo "${ECHO_T}yes" >&6; }
20366 { echo "$as_me:$LINENO: result: no" >&5
20367 echo "${ECHO_T}no" >&6; }
20374 { echo "$as_me:$LINENO: checking for CAIROMM" >&5
20375 echo $ECHO_N "checking for CAIROMM... $ECHO_C" >&6; }
20377 if test -n "$PKG_CONFIG"; then
20378 if test -n "$CAIROMM_CFLAGS"; then
20379 pkg_cv_CAIROMM_CFLAGS="$CAIROMM_CFLAGS"
20381 if test -n "$PKG_CONFIG" && \
20382 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.4\"") >&5
20383 ($PKG_CONFIG --exists --print-errors "cairo >= 1.4") 2>&5
20385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20386 (exit $ac_status); }; then
20387 pkg_cv_CAIROMM_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.4" 2>/dev/null`
20395 if test -n "$PKG_CONFIG"; then
20396 if test -n "$CAIROMM_LIBS"; then
20397 pkg_cv_CAIROMM_LIBS="$CAIROMM_LIBS"
20399 if test -n "$PKG_CONFIG" && \
20400 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.4\"") >&5
20401 ($PKG_CONFIG --exists --print-errors "cairo >= 1.4") 2>&5
20403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404 (exit $ac_status); }; then
20405 pkg_cv_CAIROMM_LIBS=`$PKG_CONFIG --libs "cairo >= 1.4" 2>/dev/null`
20416 if test $pkg_failed = yes; then
20418 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20419 _pkg_short_errors_supported=yes
20421 _pkg_short_errors_supported=no
20423 if test $_pkg_short_errors_supported = yes; then
20424 CAIROMM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo >= 1.4"`
20426 CAIROMM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo >= 1.4"`
20428 # Put the nasty error message in config.log where it belongs
20429 echo "$CAIROMM_PKG_ERRORS" >&5
20431 { { echo "$as_me:$LINENO: error: Package requirements (cairo >= 1.4) were not met:
20433 $CAIROMM_PKG_ERRORS
20435 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20436 installed software in a non-standard prefix.
20438 Alternatively, you may set the environment variables CAIROMM_CFLAGS
20439 and CAIROMM_LIBS to avoid the need to call pkg-config.
20440 See the pkg-config man page for more details.
20442 echo "$as_me: error: Package requirements (cairo >= 1.4) were not met:
20444 $CAIROMM_PKG_ERRORS
20446 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20447 installed software in a non-standard prefix.
20449 Alternatively, you may set the environment variables CAIROMM_CFLAGS
20450 and CAIROMM_LIBS to avoid the need to call pkg-config.
20451 See the pkg-config man page for more details.
20453 { (exit 1); exit 1; }; }
20454 elif test $pkg_failed = untried; then
20455 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
20456 is in your PATH or set the PKG_CONFIG environment variable to the full
20457 path to pkg-config.
20459 Alternatively, you may set the environment variables CAIROMM_CFLAGS
20460 and CAIROMM_LIBS to avoid the need to call pkg-config.
20461 See the pkg-config man page for more details.
20463 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20464 See \`config.log' for more details." >&5
20465 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
20466 is in your PATH or set the PKG_CONFIG environment variable to the full
20467 path to pkg-config.
20469 Alternatively, you may set the environment variables CAIROMM_CFLAGS
20470 and CAIROMM_LIBS to avoid the need to call pkg-config.
20471 See the pkg-config man page for more details.
20473 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20474 See \`config.log' for more details." >&2;}
20475 { (exit 1); exit 1; }; }
20477 CAIROMM_CFLAGS=$pkg_cv_CAIROMM_CFLAGS
20478 CAIROMM_LIBS=$pkg_cv_CAIROMM_LIBS
20479 { echo "$as_me:$LINENO: result: yes" >&5
20480 echo "${ECHO_T}yes" >&6; }
20484 # Check whether --enable-tests was given.
20485 if test "${enable_tests+set}" = set; then
20486 enableval=$enable_tests; ENABLE_TESTS=$enableval
20491 if test x$CAIROMM_DEVEL = xon ; then
20495 if test x$ENABLE_TESTS = xyes ; then
20498 # Check whether --with-boost was given.
20499 if test "${with_boost+set}" = set; then
20500 withval=$with_boost;
20501 if test "$withval" = "no"; then
20503 elif test "$withval" = "yes"; then
20508 ac_boost_path="$withval"
20516 if test "x$want_boost" = "xyes"; then
20517 boost_lib_version_req=1.33.1
20518 boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([0-9]*\.[0-9]*\)'`
20519 boost_lib_version_req_major=`expr $boost_lib_version_req : '\([0-9]*\)'`
20520 boost_lib_version_req_minor=`expr $boost_lib_version_req : '[0-9]*\.\([0-9]*\)'`
20521 boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
20522 if test "x$boost_lib_version_req_sub_minor" = "x" ; then
20523 boost_lib_version_req_sub_minor="0"
20525 WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+ $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor`
20526 { echo "$as_me:$LINENO: checking for boostlib >= $boost_lib_version_req" >&5
20527 echo $ECHO_N "checking for boostlib >= $boost_lib_version_req... $ECHO_C" >&6; }
20530 if test "$ac_boost_path" != ""; then
20531 BOOST_LDFLAGS="-L$ac_boost_path/lib"
20532 BOOST_CPPFLAGS="-I$ac_boost_path/include"
20534 for ac_boost_path_tmp in /usr /usr/local /opt ; do
20535 if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
20536 BOOST_LDFLAGS="-L$ac_boost_path_tmp/lib"
20537 BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
20543 CPPFLAGS_SAVED="$CPPFLAGS"
20544 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
20547 LDFLAGS_SAVED="$LDFLAGS"
20548 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
20552 ac_cpp='$CXXCPP $CPPFLAGS'
20553 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20554 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20555 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20557 cat >conftest.$ac_ext <<_ACEOF
20560 cat confdefs.h >>conftest.$ac_ext
20561 cat >>conftest.$ac_ext <<_ACEOF
20562 /* end confdefs.h. */
20564 #include <boost/version.hpp>
20570 #if BOOST_VERSION >= $WANT_BOOST_VERSION
20571 // Everything is okay
20573 # error Boost version is too old
20580 rm -f conftest.$ac_objext
20581 if { (ac_try="$ac_compile"
20582 case "(($ac_try" in
20583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20584 *) ac_try_echo=$ac_try;;
20586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20587 (eval "$ac_compile") 2>conftest.er1
20589 grep -v '^ *+' conftest.er1 >conftest.err
20591 cat conftest.err >&5
20592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593 (exit $ac_status); } && {
20594 test -z "$ac_cxx_werror_flag" ||
20595 test ! -s conftest.err
20596 } && test -s conftest.$ac_objext; then
20598 { echo "$as_me:$LINENO: result: yes" >&5
20599 echo "${ECHO_T}yes" >&6; }
20604 echo "$as_me: failed program was:" >&5
20605 sed 's/^/| /' conftest.$ac_ext >&5
20611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20613 ac_cpp='$CXXCPP $CPPFLAGS'
20614 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20615 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20616 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20621 if test "x$succeeded" != "xyes"; then
20623 if test "$ac_boost_path" != ""; then
20624 BOOST_LDFLAGS="-L$ac_boost_path/lib"
20625 if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
20626 for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
20627 _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
20628 V_CHECK=`expr $_version_tmp \> $_version`
20629 if test "$V_CHECK" = "1" ; then
20630 _version=$_version_tmp
20632 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
20633 BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE"
20637 for ac_boost_path in /usr /usr/local /opt ; do
20638 if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
20639 for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
20640 _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
20641 V_CHECK=`expr $_version_tmp \> $_version`
20642 if test "$V_CHECK" = "1" ; then
20643 _version=$_version_tmp
20644 best_path=$ac_boost_path
20650 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
20651 BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
20652 BOOST_LDFLAGS="-L$best_path/lib"
20654 if test "x$BOOST_ROOT" != "x"; then
20655 if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/lib" && test -r "$BOOST_ROOT/stage/lib"; then
20656 version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
20657 stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
20658 stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
20659 V_CHECK=`expr $stage_version_shorten \>\= $_version`
20660 if test "$V_CHECK" = "1" ; then
20661 { echo "$as_me:$LINENO: We will use a staged boost library from $BOOST_ROOT" >&5
20662 echo "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
20663 BOOST_CPPFLAGS="-I$BOOST_ROOT"
20664 BOOST_LDFLAGS="-L$BOOST_ROOT/stage/lib"
20670 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
20672 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
20676 ac_cpp='$CXXCPP $CPPFLAGS'
20677 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20678 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20679 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20681 cat >conftest.$ac_ext <<_ACEOF
20684 cat confdefs.h >>conftest.$ac_ext
20685 cat >>conftest.$ac_ext <<_ACEOF
20686 /* end confdefs.h. */
20688 #include <boost/version.hpp>
20694 #if BOOST_VERSION >= $WANT_BOOST_VERSION
20695 // Everything is okay
20697 # error Boost version is too old
20704 rm -f conftest.$ac_objext
20705 if { (ac_try="$ac_compile"
20706 case "(($ac_try" in
20707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20708 *) ac_try_echo=$ac_try;;
20710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20711 (eval "$ac_compile") 2>conftest.er1
20713 grep -v '^ *+' conftest.er1 >conftest.err
20715 cat conftest.err >&5
20716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717 (exit $ac_status); } && {
20718 test -z "$ac_cxx_werror_flag" ||
20719 test ! -s conftest.err
20720 } && test -s conftest.$ac_objext; then
20722 { echo "$as_me:$LINENO: result: yes" >&5
20723 echo "${ECHO_T}yes" >&6; }
20728 echo "$as_me: failed program was:" >&5
20729 sed 's/^/| /' conftest.$ac_ext >&5
20735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20737 ac_cpp='$CXXCPP $CPPFLAGS'
20738 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20739 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20740 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20744 if test "$succeeded" != "yes" ; then
20745 if test "$_version" = "0" ; then
20746 { { echo "$as_me:$LINENO: error: We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&5
20747 echo "$as_me: error: We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&2;}
20748 { (exit 1); exit 1; }; }
20750 { echo "$as_me:$LINENO: Your boost libraries seems to old (version $_version)." >&5
20751 echo "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
20757 cat >>confdefs.h <<\_ACEOF
20763 CPPFLAGS="$CPPFLAGS_SAVED"
20764 LDFLAGS="$LDFLAGS_SAVED"
20770 # Check whether --with-boost-unit-test-framework was given.
20771 if test "${with_boost_unit_test_framework+set}" = set; then
20772 withval=$with_boost_unit_test_framework;
20773 if test "$withval" = "no"; then
20775 elif test "$withval" = "yes"; then
20777 ax_boost_user_unit_test_framework_lib=""
20780 ax_boost_user_unit_test_framework_lib="$withval"
20789 if test "x$want_boost" = "xyes"; then
20791 CPPFLAGS_SAVED="$CPPFLAGS"
20792 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
20795 LDFLAGS_SAVED="$LDFLAGS"
20796 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
20799 { echo "$as_me:$LINENO: checking whether the Boost::Unit_Test_Framework library is available" >&5
20800 echo $ECHO_N "checking whether the Boost::Unit_Test_Framework library is available... $ECHO_C" >&6; }
20801 if test "${ax_cv_boost_unit_test_framework+set}" = set; then
20802 echo $ECHO_N "(cached) $ECHO_C" >&6
20805 ac_cpp='$CXXCPP $CPPFLAGS'
20806 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20807 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20808 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20810 cat >conftest.$ac_ext <<_ACEOF
20813 cat confdefs.h >>conftest.$ac_ext
20814 cat >>conftest.$ac_ext <<_ACEOF
20815 /* end confdefs.h. */
20816 #include <boost/test/unit_test.hpp>
20820 using boost::unit_test::test_suite;
20821 test_suite* test= BOOST_TEST_SUITE( "Unit test example 1" ); return 0;
20826 rm -f conftest.$ac_objext
20827 if { (ac_try="$ac_compile"
20828 case "(($ac_try" in
20829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20830 *) ac_try_echo=$ac_try;;
20832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20833 (eval "$ac_compile") 2>conftest.er1
20835 grep -v '^ *+' conftest.er1 >conftest.err
20837 cat conftest.err >&5
20838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20839 (exit $ac_status); } && {
20840 test -z "$ac_cxx_werror_flag" ||
20841 test ! -s conftest.err
20842 } && test -s conftest.$ac_objext; then
20843 ax_cv_boost_unit_test_framework=yes
20845 echo "$as_me: failed program was:" >&5
20846 sed 's/^/| /' conftest.$ac_ext >&5
20848 ax_cv_boost_unit_test_framework=no
20851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20853 ac_cpp='$CXXCPP $CPPFLAGS'
20854 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20855 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20856 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20860 { echo "$as_me:$LINENO: result: $ax_cv_boost_unit_test_framework" >&5
20861 echo "${ECHO_T}$ax_cv_boost_unit_test_framework" >&6; }
20862 if test "x$ax_cv_boost_unit_test_framework" = "xyes"; then
20864 cat >>confdefs.h <<\_ACEOF
20865 #define HAVE_BOOST_UNIT_TEST_FRAMEWORK
20868 BN=boost_unit_test_framework
20869 if test "x$ax_boost_user_unit_test_framework_lib" = "x"; then
20870 saved_ldflags="${LDFLAGS}"
20871 for ax_lib in $BN $BN-$CC $BN-$CC-mt $BN-$CC-mt-s $BN-$CC-s \
20872 lib$BN lib$BN-$CC lib$BN-$CC-mt lib$BN-$CC-mt-s lib$BN-$CC-s \
20873 $BN-mgw $BN-mgw $BN-mgw-mt $BN-mgw-mt-s $BN-mgw-s ; do
20874 LDFLAGS="${LDFLAGS} -l$ax_lib"
20875 { echo "$as_me:$LINENO: checking Boost::UnitTestFramework library linkage" >&5
20876 echo $ECHO_N "checking Boost::UnitTestFramework library linkage... $ECHO_C" >&6; }
20877 if test "${ax_cv_boost_unit_test_framework_link+set}" = set; then
20878 echo $ECHO_N "(cached) $ECHO_C" >&6
20881 ac_cpp='$CXXCPP $CPPFLAGS'
20882 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20883 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20884 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20886 cat >conftest.$ac_ext <<_ACEOF
20889 cat confdefs.h >>conftest.$ac_ext
20890 cat >>conftest.$ac_ext <<_ACEOF
20891 /* end confdefs.h. */
20892 #include <boost/test/unit_test.hpp>
20893 using boost::unit_test::test_suite;
20894 test_suite* init_unit_test_suite( int argc, char * argv[] ) {
20895 test_suite* test= BOOST_TEST_SUITE( "Unit test example 1" );
20907 rm -f conftest.$ac_objext conftest$ac_exeext
20908 if { (ac_try="$ac_link"
20909 case "(($ac_try" in
20910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20911 *) ac_try_echo=$ac_try;;
20913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20914 (eval "$ac_link") 2>conftest.er1
20916 grep -v '^ *+' conftest.er1 >conftest.err
20918 cat conftest.err >&5
20919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20920 (exit $ac_status); } && {
20921 test -z "$ac_cxx_werror_flag" ||
20922 test ! -s conftest.err
20923 } && test -s conftest$ac_exeext &&
20924 $as_test_x conftest$ac_exeext; then
20925 link_unit_test_framework="yes"
20927 echo "$as_me: failed program was:" >&5
20928 sed 's/^/| /' conftest.$ac_ext >&5
20930 link_unit_test_framework="no"
20933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20934 conftest$ac_exeext conftest.$ac_ext
20936 ac_cpp='$CXXCPP $CPPFLAGS'
20937 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20938 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20939 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20943 { echo "$as_me:$LINENO: result: $ax_cv_boost_unit_test_framework_link" >&5
20944 echo "${ECHO_T}$ax_cv_boost_unit_test_framework_link" >&6; }
20945 LDFLAGS="${saved_ldflags}"
20947 if test "x$link_unit_test_framework" = "xyes"; then
20948 BOOST_UNIT_TEST_FRAMEWORK_LIB="-l$ax_lib"
20954 saved_ldflags="${LDFLAGS}"
20955 for ax_lib in $ax_boost_user_unit_test_framework_lib $BN-$ax_boost_user_unit_test_framework_lib; do
20956 LDFLAGS="${LDFLAGS} -l$ax_lib"
20957 { echo "$as_me:$LINENO: checking Boost::UnitTestFramework library linkage" >&5
20958 echo $ECHO_N "checking Boost::UnitTestFramework library linkage... $ECHO_C" >&6; }
20959 if test "${ax_cv_boost_unit_test_framework_link+set}" = set; then
20960 echo $ECHO_N "(cached) $ECHO_C" >&6
20963 ac_cpp='$CXXCPP $CPPFLAGS'
20964 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20965 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20966 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20968 cat >conftest.$ac_ext <<_ACEOF
20971 cat confdefs.h >>conftest.$ac_ext
20972 cat >>conftest.$ac_ext <<_ACEOF
20973 /* end confdefs.h. */
20974 #include <boost/test/unit_test.hpp>
20975 using boost::unit_test::test_suite;
20976 test_suite* init_unit_test_suite( int argc, char * argv[] ) {
20977 test_suite* test= BOOST_TEST_SUITE( "Unit test example 1" );
20989 rm -f conftest.$ac_objext conftest$ac_exeext
20990 if { (ac_try="$ac_link"
20991 case "(($ac_try" in
20992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20993 *) ac_try_echo=$ac_try;;
20995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20996 (eval "$ac_link") 2>conftest.er1
20998 grep -v '^ *+' conftest.er1 >conftest.err
21000 cat conftest.err >&5
21001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002 (exit $ac_status); } && {
21003 test -z "$ac_cxx_werror_flag" ||
21004 test ! -s conftest.err
21005 } && test -s conftest$ac_exeext &&
21006 $as_test_x conftest$ac_exeext; then
21007 link_unit_test_framework="yes"
21009 echo "$as_me: failed program was:" >&5
21010 sed 's/^/| /' conftest.$ac_ext >&5
21012 link_unit_test_framework="no"
21015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21016 conftest$ac_exeext conftest.$ac_ext
21018 ac_cpp='$CXXCPP $CPPFLAGS'
21019 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21020 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21021 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21025 { echo "$as_me:$LINENO: result: $ax_cv_boost_unit_test_framework_link" >&5
21026 echo "${ECHO_T}$ax_cv_boost_unit_test_framework_link" >&6; }
21027 LDFLAGS="${saved_ldflags}"
21028 if test "x$link_unit_test_framework" = "xyes"; then
21029 BOOST_UNIT_TEST_FRAMEWORK_LIB="-l$ax_lib"
21035 if test "x$link_unit_test_framework" = "xno"; then
21036 { { echo "$as_me:$LINENO: error: Could not link against $ax_lib !" >&5
21037 echo "$as_me: error: Could not link against $ax_lib !" >&2;}
21038 { (exit 1); exit 1; }; }
21042 CPPFLAGS="$CPPFLAGS_SAVED"
21043 LDFLAGS="$LDFLAGS_SAVED"
21046 { echo "$as_me:$LINENO: support of automated tests enabled" >&5
21047 echo "$as_me: support of automated tests enabled" >&6;}
21049 { echo "$as_me:$LINENO: disabled support of automated tests" >&5
21050 echo "$as_me: disabled support of automated tests" >&6;}
21054 if test x$ENABLE_TESTS = xyes; then
21056 AUTOTESTS_FALSE='#'
21063 if test "x$CAIROMM_DEVEL" = "xon" ; then
21064 CXXFLAGS="$CXXFLAGS -Wall -g -Werror -Wextra"
21068 # Check whether --enable-api-exceptions was given.
21069 if test "${enable_api_exceptions+set}" = set; then
21070 enableval=$enable_api_exceptions; cairomm_enable_api_exceptions="$enableval"
21072 cairomm_enable_api_exceptions='yes'
21076 if test "x$cairomm_enable_api_exceptions" = "xyes"; then
21079 cat >>confdefs.h <<\_ACEOF
21080 #define CAIROMM_EXCEPTIONS_ENABLED 1
21087 DOCS_SUBDIR="" # Check whether --enable-docs was given.
21088 if test "${enable_docs+set}" = set; then
21089 enableval=$enable_docs;
21094 if test "x$enable_docs" = "xyes"; then
21095 for ac_prog in doxygen
21097 # Extract the first word of "$ac_prog", so it can be a program name with args.
21098 set dummy $ac_prog; ac_word=$2
21099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21101 if test "${ac_cv_prog_DOXYGEN+set}" = set; then
21102 echo $ECHO_N "(cached) $ECHO_C" >&6
21104 if test -n "$DOXYGEN"; then
21105 ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
21107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21108 for as_dir in $PATH
21111 test -z "$as_dir" && as_dir=.
21112 for ac_exec_ext in '' $ac_executable_extensions; do
21113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21114 ac_cv_prog_DOXYGEN="$ac_prog"
21115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21124 DOXYGEN=$ac_cv_prog_DOXYGEN
21125 if test -n "$DOXYGEN"; then
21126 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
21127 echo "${ECHO_T}$DOXYGEN" >&6; }
21129 { echo "$as_me:$LINENO: result: no" >&5
21130 echo "${ECHO_T}no" >&6; }
21134 test -n "$DOXYGEN" && break
21136 test -n "$DOXYGEN" || DOXYGEN="no"
21138 if test x$DOXYGEN = xno; then
21139 { echo "$as_me:$LINENO: WARNING: Doxygen not found, documentation will not be rebuilt" >&5
21140 echo "$as_me: WARNING: Doxygen not found, documentation will not be rebuilt" >&2;}
21144 # Extract the first word of "$ac_prog", so it can be a program name with args.
21145 set dummy $ac_prog; ac_word=$2
21146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21148 if test "${ac_cv_prog_DOT+set}" = set; then
21149 echo $ECHO_N "(cached) $ECHO_C" >&6
21151 if test -n "$DOT"; then
21152 ac_cv_prog_DOT="$DOT" # Let the user override the test.
21154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21155 for as_dir in $PATH
21158 test -z "$as_dir" && as_dir=.
21159 for ac_exec_ext in '' $ac_executable_extensions; do
21160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21161 ac_cv_prog_DOT="$ac_prog"
21162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21171 DOT=$ac_cv_prog_DOT
21172 if test -n "$DOT"; then
21173 { echo "$as_me:$LINENO: result: $DOT" >&5
21174 echo "${ECHO_T}$DOT" >&6; }
21176 { echo "$as_me:$LINENO: result: no" >&5
21177 echo "${ECHO_T}no" >&6; }
21181 test -n "$DOT" && break
21183 test -n "$DOT" || DOT="no"
21185 if test x$DOT = xno; then
21186 { echo "$as_me:$LINENO: WARNING: graphviz / dot not found, documentation graphs will not be rebuilt" >&5
21187 echo "$as_me: WARNING: graphviz / dot not found, documentation graphs will not be rebuilt" >&2;}
21192 ac_config_files="$ac_config_files docs/Makefile docs/reference/Makefile docs/reference/Doxyfile"
21198 ac_config_files="$ac_config_files Makefile cairomm/Makefile examples/Makefile examples/png_file/Makefile examples/pdf-surface/Makefile examples/ps-surface/Makefile examples/svg-surface/Makefile examples/text-rotate/Makefile tests/Makefile cairomm-1.0.pc"
21201 ac_config_files="$ac_config_files MSVC/Makefile MSVC/gendef/Makefile MSVC/cairomm/Makefile MSVC/cairomm/cairomm.rc MSVC/examples/Makefile MSVC/examples/pdf-surface/Makefile MSVC/examples/png_file/Makefile MSVC/examples/ps-surface/Makefile MSVC/examples/svg-surface/Makefile MSVC/examples/text-rotate/Makefile"
21204 cat >confcache <<\_ACEOF
21205 # This file is a shell script that caches the results of configure
21206 # tests run on this system so they can be shared between configure
21207 # scripts and configure runs, see configure's option --config-cache.
21208 # It is not useful on other systems. If it contains results you don't
21209 # want to keep, you may remove or edit it.
21211 # config.status only pays attention to the cache file if you give it
21212 # the --recheck option to rerun configure.
21214 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21215 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21216 # following values.
21220 # The following way of writing the cache mishandles newlines in values,
21221 # but we know of no workaround that is simple, portable, and efficient.
21222 # So, we kill variables containing newlines.
21223 # Ultrix sh set writes to stderr and can't be redirected directly,
21224 # and sets the high bit in the cache file unless we assign to the vars.
21226 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21227 eval ac_val=\$$ac_var
21231 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21232 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21235 _ | IFS | as_nl) ;; #(
21236 *) $as_unset $ac_var ;;
21242 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21243 *${as_nl}ac_space=\ *)
21244 # `set' does not quote correctly, so add quotes (double-quote
21245 # substitution turns \\\\ into \\, and sed turns \\ into \).
21248 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21251 # `set' quotes correctly as required by POSIX, so do not add quotes.
21252 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21261 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21263 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21265 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21266 if test -w "$cache_file"; then
21267 test "x$cache_file" != "x/dev/null" &&
21268 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21269 echo "$as_me: updating cache $cache_file" >&6;}
21270 cat confcache >$cache_file
21272 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21273 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21278 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21279 # Let make expand exec_prefix.
21280 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21282 DEFS=-DHAVE_CONFIG_H
21286 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21287 # 1. Remove the extension, and $U if already installed.
21288 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21289 ac_i=`echo "$ac_i" | sed "$ac_script"`
21290 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21291 # will be set to the directory where LIBOBJS objects are built.
21292 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21293 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21295 LIBOBJS=$ac_libobjs
21297 LTLIBOBJS=$ac_ltlibobjs
21300 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21301 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21302 Usually this means the macro was only invoked conditionally." >&5
21303 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21304 Usually this means the macro was only invoked conditionally." >&2;}
21305 { (exit 1); exit 1; }; }
21307 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21308 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21309 Usually this means the macro was only invoked conditionally." >&5
21310 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21311 Usually this means the macro was only invoked conditionally." >&2;}
21312 { (exit 1); exit 1; }; }
21314 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21315 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21316 Usually this means the macro was only invoked conditionally." >&5
21317 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21318 Usually this means the macro was only invoked conditionally." >&2;}
21319 { (exit 1); exit 1; }; }
21321 if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then
21322 { { echo "$as_me:$LINENO: error: conditional \"PLATFORM_WIN32\" was never defined.
21323 Usually this means the macro was only invoked conditionally." >&5
21324 echo "$as_me: error: conditional \"PLATFORM_WIN32\" was never defined.
21325 Usually this means the macro was only invoked conditionally." >&2;}
21326 { (exit 1); exit 1; }; }
21328 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
21329 { { echo "$as_me:$LINENO: error: conditional \"OS_WIN32\" was never defined.
21330 Usually this means the macro was only invoked conditionally." >&5
21331 echo "$as_me: error: conditional \"OS_WIN32\" was never defined.
21332 Usually this means the macro was only invoked conditionally." >&2;}
21333 { (exit 1); exit 1; }; }
21335 if test -z "${AUTOTESTS_TRUE}" && test -z "${AUTOTESTS_FALSE}"; then
21336 { { echo "$as_me:$LINENO: error: conditional \"AUTOTESTS\" was never defined.
21337 Usually this means the macro was only invoked conditionally." >&5
21338 echo "$as_me: error: conditional \"AUTOTESTS\" was never defined.
21339 Usually this means the macro was only invoked conditionally." >&2;}
21340 { (exit 1); exit 1; }; }
21343 : ${CONFIG_STATUS=./config.status}
21344 ac_clean_files_save=$ac_clean_files
21345 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21346 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21347 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21348 cat >$CONFIG_STATUS <<_ACEOF
21350 # Generated by $as_me.
21351 # Run this file to recreate the current configuration.
21352 # Compiler output produced by configure, useful for debugging
21353 # configure, is in config.log if it exists.
21356 ac_cs_recheck=false
21358 SHELL=\${CONFIG_SHELL-$SHELL}
21361 cat >>$CONFIG_STATUS <<\_ACEOF
21362 ## --------------------- ##
21363 ## M4sh Initialization. ##
21364 ## --------------------- ##
21366 # Be more Bourne compatible
21367 DUALCASE=1; export DUALCASE # for MKS sh
21368 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21371 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21372 # is contrary to our usage. Disable this feature.
21373 alias -g '${1+"$@"}'='"$@"'
21374 setopt NO_GLOB_SUBST
21376 case `(set -o) 2>/dev/null` in
21377 *posix*) set -o posix ;;
21386 # Avoid depending upon Character Ranges.
21387 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21388 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21389 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21390 as_cr_digits='0123456789'
21391 as_cr_alnum=$as_cr_Letters$as_cr_digits
21393 # The user is always right.
21394 if test "${PATH_SEPARATOR+set}" != set; then
21395 echo "#! /bin/sh" >conf$$.sh
21396 echo "exit 0" >>conf$$.sh
21398 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21406 # Support unset when possible.
21407 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21415 # We need space, tab and new line, in precisely that order. Quoting is
21416 # there to prevent editors from complaining about space-tab.
21417 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21418 # splitting by setting IFS to empty value.)
21423 # Find who we are. Look in the path if we contain no directory separator.
21425 *[\\/]* ) as_myself=$0 ;;
21426 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21427 for as_dir in $PATH
21430 test -z "$as_dir" && as_dir=.
21431 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21437 # We did not find ourselves, most probably we were run as `sh COMMAND'
21438 # in which case we are not to be found in the path.
21439 if test "x$as_myself" = x; then
21442 if test ! -f "$as_myself"; then
21443 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21444 { (exit 1); exit 1; }
21447 # Work around bugs in pre-3.0 UWIN ksh.
21448 for as_var in ENV MAIL MAILPATH
21449 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21457 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21458 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21459 LC_TELEPHONE LC_TIME
21461 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21462 eval $as_var=C; export $as_var
21464 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21468 # Required to use basename.
21469 if expr a : '\(a\)' >/dev/null 2>&1 &&
21470 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21476 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21477 as_basename=basename
21483 # Name of the executable.
21484 as_me=`$as_basename -- "$0" ||
21485 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21486 X"$0" : 'X\(//\)$' \| \
21487 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21489 sed '/^.*\/\([^/][^/]*\)\/*$/{
21508 as_lineno_1=$LINENO
21509 as_lineno_2=$LINENO
21510 test "x$as_lineno_1" != "x$as_lineno_2" &&
21511 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21513 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21514 # uniformly replaced by the line number. The first 'sed' inserts a
21515 # line-number line after each line using $LINENO; the second 'sed'
21516 # does the real work. The second script uses 'N' to pair each
21517 # line-number line with the line containing $LINENO, and appends
21518 # trailing '-' during substitution so that $LINENO is not a special
21519 # case at line end.
21520 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21521 # scripts with optimization help from Paolo Bonzini. Blame Lee
21522 # E. McMahon (1931-1989) for sed's syntax. :-)
21534 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21537 ' >$as_me.lineno &&
21538 chmod +x "$as_me.lineno" ||
21539 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21540 { (exit 1); exit 1; }; }
21542 # Don't try to exec as it changes $[0], causing all sort of problems
21543 # (the dirname of $[0] is not the place where we might find the
21544 # original and so on. Autoconf is especially sensitive to this).
21545 . "./$as_me.lineno"
21546 # Exit status is that of the last command.
21551 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21557 ECHO_C= ECHO_N= ECHO_T=
21558 case `echo -n x` in
21560 case `echo 'x\c'` in
21561 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21568 if expr a : '\(a\)' >/dev/null 2>&1 &&
21569 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21575 rm -f conf$$ conf$$.exe conf$$.file
21576 if test -d conf$$.dir; then
21577 rm -f conf$$.dir/conf$$.file
21583 if ln -s conf$$.file conf$$ 2>/dev/null; then
21585 # ... but there are two gotchas:
21586 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21587 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21588 # In both cases, we have to default to `cp -p'.
21589 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21591 elif ln conf$$.file conf$$ 2>/dev/null; then
21596 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21597 rmdir conf$$.dir 2>/dev/null
21599 if mkdir -p . 2>/dev/null; then
21602 test -d ./-p && rmdir ./-p
21606 if test -x / >/dev/null 2>&1; then
21607 as_test_x='test -x'
21609 if ls -dL / >/dev/null 2>&1; then
21616 if test -d "$1"; then
21622 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21623 ???[sx]*):;;*)false;;esac;fi
21627 as_executable_p=$as_test_x
21629 # Sed expression to map a string onto a valid CPP name.
21630 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21632 # Sed expression to map a string onto a valid variable name.
21633 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21638 # Save the log message, to keep $[0] and so on meaningful, and to
21639 # report actual input values of CONFIG_FILES etc. instead of their
21640 # values after options handling.
21642 This file was extended by $as_me, which was
21643 generated by GNU Autoconf 2.61. Invocation command line was
21645 CONFIG_FILES = $CONFIG_FILES
21646 CONFIG_HEADERS = $CONFIG_HEADERS
21647 CONFIG_LINKS = $CONFIG_LINKS
21648 CONFIG_COMMANDS = $CONFIG_COMMANDS
21651 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21656 cat >>$CONFIG_STATUS <<_ACEOF
21657 # Files that config.status was made for.
21658 config_files="$ac_config_files"
21659 config_headers="$ac_config_headers"
21660 config_commands="$ac_config_commands"
21664 cat >>$CONFIG_STATUS <<\_ACEOF
21666 \`$as_me' instantiates files from templates according to the
21667 current configuration.
21669 Usage: $0 [OPTIONS] [FILE]...
21671 -h, --help print this help, then exit
21672 -V, --version print version number and configuration settings, then exit
21673 -q, --quiet do not print progress messages
21674 -d, --debug don't remove temporary files
21675 --recheck update $as_me by reconfiguring in the same conditions
21676 --file=FILE[:TEMPLATE]
21677 instantiate the configuration file FILE
21678 --header=FILE[:TEMPLATE]
21679 instantiate the configuration header FILE
21681 Configuration files:
21684 Configuration headers:
21687 Configuration commands:
21690 Report bugs to <bug-autoconf@gnu.org>."
21693 cat >>$CONFIG_STATUS <<_ACEOF
21696 configured by $0, generated by GNU Autoconf 2.61,
21697 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21699 Copyright (C) 2006 Free Software Foundation, Inc.
21700 This config.status script is free software; the Free Software Foundation
21701 gives unlimited permission to copy, distribute and modify it."
21708 cat >>$CONFIG_STATUS <<\_ACEOF
21709 # If no file are specified by the user, then we need to provide default
21710 # value. By we need to know if files were specified by the user.
21716 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21717 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21728 # Handling of the options.
21729 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21731 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21732 echo "$ac_cs_version"; exit ;;
21733 --debug | --debu | --deb | --de | --d | -d )
21735 --file | --fil | --fi | --f )
21737 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21738 ac_need_defaults=false;;
21739 --header | --heade | --head | --hea )
21741 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21742 ac_need_defaults=false;;
21744 # Conflict between --help and --header
21745 { echo "$as_me: error: ambiguous option: $1
21746 Try \`$0 --help' for more information." >&2
21747 { (exit 1); exit 1; }; };;
21748 --help | --hel | -h )
21749 echo "$ac_cs_usage"; exit ;;
21750 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21751 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21754 # This is an error.
21755 -*) { echo "$as_me: error: unrecognized option: $1
21756 Try \`$0 --help' for more information." >&2
21757 { (exit 1); exit 1; }; } ;;
21759 *) ac_config_targets="$ac_config_targets $1"
21760 ac_need_defaults=false ;;
21766 ac_configure_extra_args=
21768 if $ac_cs_silent; then
21770 ac_configure_extra_args="$ac_configure_extra_args --silent"
21774 cat >>$CONFIG_STATUS <<_ACEOF
21775 if \$ac_cs_recheck; then
21776 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21777 CONFIG_SHELL=$SHELL
21778 export CONFIG_SHELL
21779 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21783 cat >>$CONFIG_STATUS <<\_ACEOF
21787 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21788 ## Running $as_me. ##
21794 cat >>$CONFIG_STATUS <<_ACEOF
21798 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21802 cat >>$CONFIG_STATUS <<\_ACEOF
21804 # Handling of arguments.
21805 for ac_config_target in $ac_config_targets
21807 case $ac_config_target in
21808 "cairomm/cairommconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS cairomm/cairommconfig.h" ;;
21809 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21810 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
21811 "docs/reference/Makefile") CONFIG_FILES="$CONFIG_FILES docs/reference/Makefile" ;;
21812 "docs/reference/Doxyfile") CONFIG_FILES="$CONFIG_FILES docs/reference/Doxyfile" ;;
21813 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21814 "cairomm/Makefile") CONFIG_FILES="$CONFIG_FILES cairomm/Makefile" ;;
21815 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
21816 "examples/png_file/Makefile") CONFIG_FILES="$CONFIG_FILES examples/png_file/Makefile" ;;
21817 "examples/pdf-surface/Makefile") CONFIG_FILES="$CONFIG_FILES examples/pdf-surface/Makefile" ;;
21818 "examples/ps-surface/Makefile") CONFIG_FILES="$CONFIG_FILES examples/ps-surface/Makefile" ;;
21819 "examples/svg-surface/Makefile") CONFIG_FILES="$CONFIG_FILES examples/svg-surface/Makefile" ;;
21820 "examples/text-rotate/Makefile") CONFIG_FILES="$CONFIG_FILES examples/text-rotate/Makefile" ;;
21821 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
21822 "cairomm-1.0.pc") CONFIG_FILES="$CONFIG_FILES cairomm-1.0.pc" ;;
21823 "MSVC/Makefile") CONFIG_FILES="$CONFIG_FILES MSVC/Makefile" ;;
21824 "MSVC/gendef/Makefile") CONFIG_FILES="$CONFIG_FILES MSVC/gendef/Makefile" ;;
21825 "MSVC/cairomm/Makefile") CONFIG_FILES="$CONFIG_FILES MSVC/cairomm/Makefile" ;;
21826 "MSVC/cairomm/cairomm.rc") CONFIG_FILES="$CONFIG_FILES MSVC/cairomm/cairomm.rc" ;;
21827 "MSVC/examples/Makefile") CONFIG_FILES="$CONFIG_FILES MSVC/examples/Makefile" ;;
21828 "MSVC/examples/pdf-surface/Makefile") CONFIG_FILES="$CONFIG_FILES MSVC/examples/pdf-surface/Makefile" ;;
21829 "MSVC/examples/png_file/Makefile") CONFIG_FILES="$CONFIG_FILES MSVC/examples/png_file/Makefile" ;;
21830 "MSVC/examples/ps-surface/Makefile") CONFIG_FILES="$CONFIG_FILES MSVC/examples/ps-surface/Makefile" ;;
21831 "MSVC/examples/svg-surface/Makefile") CONFIG_FILES="$CONFIG_FILES MSVC/examples/svg-surface/Makefile" ;;
21832 "MSVC/examples/text-rotate/Makefile") CONFIG_FILES="$CONFIG_FILES MSVC/examples/text-rotate/Makefile" ;;
21834 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21835 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21836 { (exit 1); exit 1; }; };;
21841 # If the user did not use the arguments to specify the items to instantiate,
21842 # then the envvar interface is used. Set only those that are not.
21843 # We use the long form for the default assignment because of an extremely
21844 # bizarre bug on SunOS 4.1.3.
21845 if $ac_need_defaults; then
21846 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21847 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21848 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21851 # Have a temporary directory for convenience. Make it in the build tree
21852 # simply because there is no reason against having it here, and in addition,
21853 # creating and moving files from /tmp can sometimes cause problems.
21854 # Hook for its removal unless debugging.
21855 # Note that there is a small window in which the directory will not be cleaned:
21856 # after its creation but before its name has been assigned to `$tmp'.
21860 trap 'exit_status=$?
21861 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21863 trap '{ (exit 1); exit 1; }' 1 2 13 15
21865 # Create a (secure) tmp directory for tmp files.
21868 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21869 test -n "$tmp" && test -d "$tmp"
21872 tmp=./conf$$-$RANDOM
21873 (umask 077 && mkdir "$tmp")
21876 echo "$me: cannot create a temporary directory in ." >&2
21877 { (exit 1); exit 1; }
21881 # Set up the sed scripts for CONFIG_FILES section.
21884 # No need to generate the scripts if there are no CONFIG_FILES.
21885 # This happens for instance when ./config.status config.h
21886 if test -n "$CONFIG_FILES"; then
21893 for ac_last_try in false false false false false :; do
21894 cat >conf$$subs.sed <<_ACEOF
21895 SHELL!$SHELL$ac_delim
21896 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21897 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21898 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21899 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21900 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21901 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21902 exec_prefix!$exec_prefix$ac_delim
21903 prefix!$prefix$ac_delim
21904 program_transform_name!$program_transform_name$ac_delim
21905 bindir!$bindir$ac_delim
21906 sbindir!$sbindir$ac_delim
21907 libexecdir!$libexecdir$ac_delim
21908 datarootdir!$datarootdir$ac_delim
21909 datadir!$datadir$ac_delim
21910 sysconfdir!$sysconfdir$ac_delim
21911 sharedstatedir!$sharedstatedir$ac_delim
21912 localstatedir!$localstatedir$ac_delim
21913 includedir!$includedir$ac_delim
21914 oldincludedir!$oldincludedir$ac_delim
21915 docdir!$docdir$ac_delim
21916 infodir!$infodir$ac_delim
21917 htmldir!$htmldir$ac_delim
21918 dvidir!$dvidir$ac_delim
21919 pdfdir!$pdfdir$ac_delim
21920 psdir!$psdir$ac_delim
21921 libdir!$libdir$ac_delim
21922 localedir!$localedir$ac_delim
21923 mandir!$mandir$ac_delim
21924 DEFS!$DEFS$ac_delim
21925 ECHO_C!$ECHO_C$ac_delim
21926 ECHO_N!$ECHO_N$ac_delim
21927 ECHO_T!$ECHO_T$ac_delim
21928 LIBS!$LIBS$ac_delim
21929 build_alias!$build_alias$ac_delim
21930 host_alias!$host_alias$ac_delim
21931 target_alias!$target_alias$ac_delim
21932 GENERIC_MAJOR_VERSION!$GENERIC_MAJOR_VERSION$ac_delim
21933 GENERIC_MINOR_VERSION!$GENERIC_MINOR_VERSION$ac_delim
21934 GENERIC_MICRO_VERSION!$GENERIC_MICRO_VERSION$ac_delim
21935 GENERIC_VERSION!$GENERIC_VERSION$ac_delim
21936 GENERIC_LIBRARY_VERSION!$GENERIC_LIBRARY_VERSION$ac_delim
21937 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21938 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21939 INSTALL_DATA!$INSTALL_DATA$ac_delim
21940 CYGPATH_W!$CYGPATH_W$ac_delim
21941 PACKAGE!$PACKAGE$ac_delim
21942 VERSION!$VERSION$ac_delim
21943 ACLOCAL!$ACLOCAL$ac_delim
21944 AUTOCONF!$AUTOCONF$ac_delim
21945 AUTOMAKE!$AUTOMAKE$ac_delim
21946 AUTOHEADER!$AUTOHEADER$ac_delim
21947 MAKEINFO!$MAKEINFO$ac_delim
21948 install_sh!$install_sh$ac_delim
21949 STRIP!$STRIP$ac_delim
21950 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21951 mkdir_p!$mkdir_p$ac_delim
21953 SET_MAKE!$SET_MAKE$ac_delim
21954 am__leading_dot!$am__leading_dot$ac_delim
21955 AMTAR!$AMTAR$ac_delim
21956 am__tar!$am__tar$ac_delim
21957 am__untar!$am__untar$ac_delim
21959 CXXFLAGS!$CXXFLAGS$ac_delim
21960 LDFLAGS!$LDFLAGS$ac_delim
21961 CPPFLAGS!$CPPFLAGS$ac_delim
21962 ac_ct_CXX!$ac_ct_CXX$ac_delim
21963 EXEEXT!$EXEEXT$ac_delim
21964 OBJEXT!$OBJEXT$ac_delim
21965 DEPDIR!$DEPDIR$ac_delim
21966 am__include!$am__include$ac_delim
21967 am__quote!$am__quote$ac_delim
21968 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21969 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21970 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21971 CXXDEPMODE!$CXXDEPMODE$ac_delim
21972 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21973 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21974 CXXCPP!$CXXCPP$ac_delim
21975 build!$build$ac_delim
21976 build_cpu!$build_cpu$ac_delim
21977 build_vendor!$build_vendor$ac_delim
21978 build_os!$build_os$ac_delim
21979 host!$host$ac_delim
21980 host_cpu!$host_cpu$ac_delim
21981 host_vendor!$host_vendor$ac_delim
21982 host_os!$host_os$ac_delim
21984 CFLAGS!$CFLAGS$ac_delim
21985 ac_ct_CC!$ac_ct_CC$ac_delim
21986 CCDEPMODE!$CCDEPMODE$ac_delim
21987 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21988 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21990 GREP!$GREP$ac_delim
21991 EGREP!$EGREP$ac_delim
21994 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21996 elif $ac_last_try; then
21997 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21998 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21999 { (exit 1); exit 1; }; }
22001 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22005 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22006 if test -n "$ac_eof"; then
22007 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22008 ac_eof=`expr $ac_eof + 1`
22011 cat >>$CONFIG_STATUS <<_ACEOF
22012 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22013 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22016 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22017 s/^/s,@/; s/!/@,|#_!!_#|/
22020 s/'"$ac_delim"'$/,g/; t
22022 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22023 ' >>$CONFIG_STATUS <conf$$subs.sed
22024 rm -f conf$$subs.sed
22025 cat >>$CONFIG_STATUS <<_ACEOF
22031 for ac_last_try in false false false false false :; do
22032 cat >conf$$subs.sed <<_ACEOF
22033 LN_S!$LN_S$ac_delim
22034 ECHO!$ECHO$ac_delim
22036 RANLIB!$RANLIB$ac_delim
22037 DLLTOOL!$DLLTOOL$ac_delim
22039 OBJDUMP!$OBJDUMP$ac_delim
22042 FFLAGS!$FFLAGS$ac_delim
22043 ac_ct_F77!$ac_ct_F77$ac_delim
22044 LIBTOOL!$LIBTOOL$ac_delim
22045 PLATFORM_WIN32_TRUE!$PLATFORM_WIN32_TRUE$ac_delim
22046 PLATFORM_WIN32_FALSE!$PLATFORM_WIN32_FALSE$ac_delim
22047 OS_WIN32_TRUE!$OS_WIN32_TRUE$ac_delim
22048 OS_WIN32_FALSE!$OS_WIN32_FALSE$ac_delim
22049 PKG_CONFIG!$PKG_CONFIG$ac_delim
22050 CAIROMM_CFLAGS!$CAIROMM_CFLAGS$ac_delim
22051 CAIROMM_LIBS!$CAIROMM_LIBS$ac_delim
22052 BOOST_CPPFLAGS!$BOOST_CPPFLAGS$ac_delim
22053 BOOST_LDFLAGS!$BOOST_LDFLAGS$ac_delim
22054 BOOST_UNIT_TEST_FRAMEWORK_LIB!$BOOST_UNIT_TEST_FRAMEWORK_LIB$ac_delim
22055 AUTOTESTS_TRUE!$AUTOTESTS_TRUE$ac_delim
22056 AUTOTESTS_FALSE!$AUTOTESTS_FALSE$ac_delim
22057 DOXYGEN!$DOXYGEN$ac_delim
22059 DOCS_SUBDIR!$DOCS_SUBDIR$ac_delim
22060 LIBOBJS!$LIBOBJS$ac_delim
22061 LTLIBOBJS!$LTLIBOBJS$ac_delim
22064 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 29; then
22066 elif $ac_last_try; then
22067 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22068 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22069 { (exit 1); exit 1; }; }
22071 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22075 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22076 if test -n "$ac_eof"; then
22077 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22078 ac_eof=`expr $ac_eof + 1`
22081 cat >>$CONFIG_STATUS <<_ACEOF
22082 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22083 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22086 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22087 s/^/s,@/; s/!/@,|#_!!_#|/
22090 s/'"$ac_delim"'$/,g/; t
22092 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22093 ' >>$CONFIG_STATUS <conf$$subs.sed
22094 rm -f conf$$subs.sed
22095 cat >>$CONFIG_STATUS <<_ACEOF
22102 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22103 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22104 # trailing colons and then remove the whole line if VPATH becomes empty
22105 # (actually we leave an empty line to preserve line numbers).
22106 if test "x$srcdir" = x.; then
22107 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22108 s/:*\$(srcdir):*/:/
22109 s/:*\${srcdir}:*/:/
22111 s/^\([^=]*=[ ]*\):*/\1/
22117 cat >>$CONFIG_STATUS <<\_ACEOF
22118 fi # test -n "$CONFIG_FILES"
22121 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22124 :[FHLC]) ac_mode=$ac_tag; continue;;
22126 case $ac_mode$ac_tag in
22128 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22129 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22130 { (exit 1); exit 1; }; };;
22131 :[FH]-) ac_tag=-:-;;
22132 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22149 -) ac_f="$tmp/stdin";;
22150 *) # Look for the file first in the build tree, then in the source tree
22151 # (if the path is not absolute). The absolute path cannot be DOS-style,
22152 # because $ac_f cannot contain `:'.
22156 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22158 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22159 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22160 { (exit 1); exit 1; }; };;
22162 ac_file_inputs="$ac_file_inputs $ac_f"
22165 # Let's still pretend it is `configure' which instantiates (i.e., don't
22166 # use $as_me), people would be surprised to read:
22167 # /* config.h. Generated by config.status. */
22168 configure_input="Generated from "`IFS=:
22169 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22170 if test x"$ac_file" != x-; then
22171 configure_input="$ac_file. $configure_input"
22172 { echo "$as_me:$LINENO: creating $ac_file" >&5
22173 echo "$as_me: creating $ac_file" >&6;}
22177 *:-:* | *:-) cat >"$tmp/stdin";;
22182 ac_dir=`$as_dirname -- "$ac_file" ||
22183 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22184 X"$ac_file" : 'X\(//\)[^/]' \| \
22185 X"$ac_file" : 'X\(//\)$' \| \
22186 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22188 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22192 /^X\(\/\/\)[^/].*/{
22207 -*) as_dir=./$as_dir;;
22209 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22213 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22214 *) as_qdir=$as_dir;;
22216 as_dirs="'$as_qdir' $as_dirs"
22217 as_dir=`$as_dirname -- "$as_dir" ||
22218 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22219 X"$as_dir" : 'X\(//\)[^/]' \| \
22220 X"$as_dir" : 'X\(//\)$' \| \
22221 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22227 /^X\(\/\/\)[^/].*/{
22240 test -d "$as_dir" && break
22242 test -z "$as_dirs" || eval "mkdir $as_dirs"
22243 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22244 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22245 { (exit 1); exit 1; }; }; }
22249 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22251 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22252 # A ".." for each directory in $ac_dir_suffix.
22253 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22254 case $ac_top_builddir_sub in
22255 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22256 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22259 ac_abs_top_builddir=$ac_pwd
22260 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22261 # for backward compatibility:
22262 ac_top_builddir=$ac_top_build_prefix
22265 .) # We are building in place.
22267 ac_top_srcdir=$ac_top_builddir_sub
22268 ac_abs_top_srcdir=$ac_pwd ;;
22269 [\\/]* | ?:[\\/]* ) # Absolute name.
22270 ac_srcdir=$srcdir$ac_dir_suffix;
22271 ac_top_srcdir=$srcdir
22272 ac_abs_top_srcdir=$srcdir ;;
22273 *) # Relative name.
22274 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22275 ac_top_srcdir=$ac_top_build_prefix$srcdir
22276 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22278 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22288 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22289 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22293 cat >>$CONFIG_STATUS <<\_ACEOF
22294 # If the template does not know about datarootdir, expand it.
22295 # FIXME: This hack should be removed a few years after 2.60.
22296 ac_datarootdir_hack=; ac_datarootdir_seen=
22298 case `sed -n '/datarootdir/ {
22307 ' $ac_file_inputs` in
22308 *datarootdir*) ac_datarootdir_seen=yes;;
22309 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22310 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22311 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22313 cat >>$CONFIG_STATUS <<_ACEOF
22314 ac_datarootdir_hack='
22315 s&@datadir@&$datadir&g
22316 s&@docdir@&$docdir&g
22317 s&@infodir@&$infodir&g
22318 s&@localedir@&$localedir&g
22319 s&@mandir@&$mandir&g
22320 s&\\\${datarootdir}&$datarootdir&g' ;;
22324 # Neutralize VPATH when `$srcdir' = `.'.
22325 # Shell code in configure.ac might set extrasub.
22326 # FIXME: do we really want to maintain this feature?
22327 cat >>$CONFIG_STATUS <<_ACEOF
22331 cat >>$CONFIG_STATUS <<\_ACEOF
22333 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22334 s&@configure_input@&$configure_input&;t t
22335 s&@top_builddir@&$ac_top_builddir_sub&;t t
22336 s&@srcdir@&$ac_srcdir&;t t
22337 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22338 s&@top_srcdir@&$ac_top_srcdir&;t t
22339 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22340 s&@builddir@&$ac_builddir&;t t
22341 s&@abs_builddir@&$ac_abs_builddir&;t t
22342 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22343 s&@INSTALL@&$ac_INSTALL&;t t
22344 $ac_datarootdir_hack
22345 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22347 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22348 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22349 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22350 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22351 which seems to be undefined. Please make sure it is defined." >&5
22352 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22353 which seems to be undefined. Please make sure it is defined." >&2;}
22357 -) cat "$tmp/out"; rm -f "$tmp/out";;
22358 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22367 # Transform confdefs.h into a sed script `conftest.defines', that
22368 # substitutes the proper values into config.h.in to produce config.h.
22369 rm -f conftest.defines conftest.tail
22370 # First, append a space to every undef/define line, to ease matching.
22371 echo 's/$/ /' >conftest.defines
22372 # Then, protect against being on the right side of a sed subst, or in
22373 # an unquoted here document, in config.status. If some macros were
22374 # called several times there might be several #defines for the same
22375 # symbol, which is useless. But do not sort them, since the last
22376 # AC_DEFINE must be honored.
22377 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22378 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22379 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22380 # PARAMS is the parameter list in the macro definition--in most cases, it's
22381 # just an empty string.
22382 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22383 ac_dB='\\)[ (].*,\\1define\\2'
22391 s/^[ ]*#[ ]*define[ ][ ]*//
22396 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22397 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22398 ' >>conftest.defines
22400 # Remove the space that was appended to ease matching.
22401 # Then replace #undef with comments. This is necessary, for
22402 # example, in the case of _POSIX_SOURCE, which is predefined and required
22403 # on some systems where configure will not decide to define it.
22404 # (The regexp can be short, since the line contains either #define or #undef.)
22406 s,^[ #]*u.*,/* & */,' >>conftest.defines
22408 # Break up conftest.defines:
22409 ac_max_sed_lines=50
22411 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22412 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22413 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22415 ac_in='$ac_file_inputs'
22416 ac_out='"$tmp/out1"'
22417 ac_nxt='"$tmp/out2"'
22421 # Write a here document:
22422 cat >>$CONFIG_STATUS <<_ACEOF
22423 # First, check the format of the line:
22424 cat >"\$tmp/defines.sed" <<\\CEOF
22425 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22426 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22430 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22432 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22433 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22434 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22435 grep . conftest.tail >/dev/null || break
22436 rm -f conftest.defines
22437 mv conftest.tail conftest.defines
22439 rm -f conftest.defines conftest.tail
22441 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22442 cat >>$CONFIG_STATUS <<\_ACEOF
22443 if test x"$ac_file" != x-; then
22444 echo "/* $configure_input */" >"$tmp/config.h"
22445 cat "$ac_result" >>"$tmp/config.h"
22446 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22447 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22448 echo "$as_me: $ac_file is unchanged" >&6;}
22451 mv "$tmp/config.h" $ac_file
22454 echo "/* $configure_input */"
22458 # Compute $ac_file's index in $config_headers.
22460 for _am_header in $config_headers :; do
22461 case $_am_header in
22462 $ac_file | $ac_file:* )
22465 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22468 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
22469 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22470 X$ac_file : 'X\(//\)[^/]' \| \
22471 X$ac_file : 'X\(//\)$' \| \
22472 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
22474 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22478 /^X\(\/\/\)[^/].*/{
22490 s/.*/./; q'`/stamp-h$_am_stamp_count
22493 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22494 echo "$as_me: executing $ac_file commands" >&6;}
22499 case $ac_file$ac_mode in
22500 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22501 # Strip MF so we end up with the name of the file.
22502 mf=`echo "$mf" | sed -e 's/:.*$//'`
22503 # Check whether this is an Automake generated Makefile or not.
22504 # We used to match only the files named `Makefile.in', but
22505 # some people rename them; so instead we look at the file content.
22506 # Grep'ing the first line is not enough: some people post-process
22507 # each Makefile.in and add a new line on top of each file to say so.
22508 # So let's grep whole file.
22509 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22510 dirpart=`$as_dirname -- "$mf" ||
22511 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22512 X"$mf" : 'X\(//\)[^/]' \| \
22513 X"$mf" : 'X\(//\)$' \| \
22514 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22516 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22520 /^X\(\/\/\)[^/].*/{
22536 # Extract the definition of DEPDIR, am__include, and am__quote
22537 # from the Makefile without running `make'.
22538 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22539 test -z "$DEPDIR" && continue
22540 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22541 test -z "am__include" && continue
22542 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22543 # When using ansi2knr, U may be empty or an underscore; expand it
22544 U=`sed -n 's/^U = //p' < "$mf"`
22545 # Find all dependency output files, they are included files with
22546 # $(DEPDIR) in their names. We invoke sed twice because it is the
22547 # simplest approach to changing $(DEPDIR) to its actual value in the
22549 for file in `sed -n "
22550 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22551 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22552 # Make sure the directory exists.
22553 test -f "$dirpart/$file" && continue
22554 fdir=`$as_dirname -- "$file" ||
22555 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22556 X"$file" : 'X\(//\)[^/]' \| \
22557 X"$file" : 'X\(//\)$' \| \
22558 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22560 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22564 /^X\(\/\/\)[^/].*/{
22577 { as_dir=$dirpart/$fdir
22579 -*) as_dir=./$as_dir;;
22581 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22585 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22586 *) as_qdir=$as_dir;;
22588 as_dirs="'$as_qdir' $as_dirs"
22589 as_dir=`$as_dirname -- "$as_dir" ||
22590 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22591 X"$as_dir" : 'X\(//\)[^/]' \| \
22592 X"$as_dir" : 'X\(//\)$' \| \
22593 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22595 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22599 /^X\(\/\/\)[^/].*/{
22612 test -d "$as_dir" && break
22614 test -z "$as_dirs" || eval "mkdir $as_dirs"
22615 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22616 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22617 { (exit 1); exit 1; }; }; }
22618 # echo "creating $dirpart/$file"
22619 echo '# dummy' > "$dirpart/$file"
22628 { (exit 0); exit 0; }
22630 chmod +x $CONFIG_STATUS
22631 ac_clean_files=$ac_clean_files_save
22634 # configure is writing to config.log, and then calls config.status.
22635 # config.status does its own redirection, appending to config.log.
22636 # Unfortunately, on DOS this fails, as config.log is still kept open
22637 # by configure, so config.status won't be able to write to it; its
22638 # output is simply discarded. So we exec the FD to /dev/null,
22639 # effectively closing config.log, so it can be properly (re)opened and
22640 # appended to by config.status. When coming back to configure, we
22641 # need to make the FD available again.
22642 if test "$no_create" != yes; then
22644 ac_config_status_args=
22645 test "$silent" = yes &&
22646 ac_config_status_args="$ac_config_status_args --quiet"
22648 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22650 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22651 # would make configure fail if this is the last instruction.
22652 $ac_cs_success || { (exit 1); exit 1; }